/* ═══════════════════════════════════════════
   PRODUCTS GRID & CARDS Horizontal (products.php)
═══════════════════════════════════════════ */

.menu-content { padding: 1.25rem; max-width: 1300px; margin: 0 auto; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(410px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/*.product-card =======================*/
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row; /* schimbat din column */
    align-items: stretch;
    cursor: pointer;
    padding: 0; /* scos padding-ul general */
    height: 300px;
    padding: 1rem;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border: 1px solid var(--accent);
}

.product-card-img {
    width: 260px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #254968;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.07);
}

.img-dots {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
}
.img-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: background .2s, transform .2s;
}
.img-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.product-card-img .price-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    bottom: auto;
    right: auto;
    background: rgba(10,22,40,0.88);
    backdrop-filter: blur(4px);
    color: var(--price);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(39,174,96,0.35);
}

.product-card-body {
    flex: 1;
    padding: 1rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.product-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 20px;
}

.product-card-desc {
    font-size: 0.82rem;
    color: #7f8c8d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-subcat {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0 0;
    border-top: 1px solid #f0f4f8;
    margin-top: auto;
    flex-wrap: wrap;
}

.product-price {
	align-content: center; text-align: center;
    font-size: 1.05rem; font-weight: 700; color: var(--price);
}

/* Responsive - pe mobil revine vertical */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
        min-height: auto;
    }

    .product-card-img {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .product-card-body {
        padding: 1rem;
    }

    .product-card-footer {
        padding-top: 0.75rem;
    }
    .product-card {
        height: auto;
    }
}
