/* ═══════════════════════════════════════════
   PRODUCTS GRID & CARDS Orizontal — grid multi-coloana (products.php)
═══════════════════════════════════════════ */

.menu-content { padding: 1.25rem; max-width: 1300px; margin: 0 auto; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }


.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: column; cursor: pointer; 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: 100%; height: 200px;
    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); }

.product-card-img .price-overlay {
    position: absolute; bottom: 0.5rem; right: 0.5rem;
    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 0rem 1rem;
    display: flex; flex-direction: column; gap: 0.4rem; 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: 2; line-clamp: 2; -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.5rem; padding: 0.75rem 1rem 0; border-top: 1px solid #f0f4f8; margin-top: auto;
}

.product-price {
	display: flex; flex-direction: column; align-content: center; text-align: center;
    font-size: 1.05rem; font-weight: 700; color: var(--price);
}