/* ===== PAGE PRODUITS ===== */

.page-hero {
    position: relative;
    height: 35vh;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/background.png');
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.2);
    z-index: 0;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(74, 30, 20, 0.45);
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== FILTRES ===== */

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 1rem 1rem;
}

.filter-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* ===== CATÉGORIES ===== */

.category-section {
    margin-bottom: 3rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary);
}

.category-title i {
    font-size: 1.5rem;
}

/* ===== GRILLE PRODUITS ===== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.product-img {
    height: 180px;
    overflow: hidden;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Placeholder icône quand pas d'image */
.product-img .icon-placeholder {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.product-info p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.8rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price {
    font-weight: bold;
    color: var(--dark);
    font-size: 1.1rem;
}

.price.variable {
    font-size: 0.9rem;
    color: var(--primary);
}

.btn-sm {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sm:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Badge bio */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.badge-bio {
    background: #c8e6c9;
    color: #2e7d32;
}

.badge-new {
    background: #fff3e0;
    color: #e65100;
}

/* Section vide (hidden par filtre) */
.category-section.hidden {
    display: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .page-hero h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-img {
        height: 140px;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }
}