/* Styles améliorés pour la page produits */

/* Hero Section */
.page-hero {
    height: 60vh;
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(139, 69, 19, 0.8)), 
                url('../images/SHOOTING\ -\ PERSONNES/Legumes_1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.page-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInDown 0.8s ease-out;
}

.page-hero .hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Section Filtres */
.filters-section {
    padding: 40px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 1.1rem;
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.sort-options select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Résultats de recherche */
.results-count {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 2rem;
}

.no-results p {
    font-size: 1.2rem;
    margin: 0;
}

/* Section Produits Vedettes */
.featured-products {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.products-slider {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    margin: 0 auto;
    max-width: 1200px;
}

.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    will-change: transform;
}

.slider-item {
    flex: 0 0 auto;
    width: calc(33.333% - 1.333rem);
    min-width: 300px;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 15;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: linear-gradient(135deg, var(--secondary-brown), #d2691e);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

/* Indicateurs du carousel */
.slider-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(45, 80, 22, 0.3);
    border: 2px solid var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: var(--secondary-green);
    transform: scale(1.1);
}

/* Contrôles auto-play */
.slider-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-control-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-control-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.slider-control-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

/* Section Catégories */
.categories-section {
    padding: 80px 0;
    background: var(--white);
}

.category-section {
    margin-bottom: 80px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    border-left: 6px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 10px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-info h2 {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.9;
}

.view-all-btn {
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Grille de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-green);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 5px;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-brown);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.featured {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    animation: pulse 2s infinite;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--secondary-brown), #d2691e);
}

.product-info {
    padding: 2rem 1.5rem;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-category {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.product-formats {
    color: var(--primary-green);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quick-add-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.quick-add-btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.quick-add-btn.out-of-stock {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.view-details-btn {
    background: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details-btn:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Produits à Découvrir */
.discover-products {
    padding: 80px 0;
    background: var(--light-gray);
}

/* Modal Produit Amélioré */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideInUp 0.4s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: var(--white);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    gap: 3rem;
    padding: 3rem;
}

.modal .product-image {
    flex: 1;
    height: 450px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-details {
    flex: 1;
}

.product-details h2 {
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-details .product-category {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-brown);
    font-weight: 600;
}

.product-details .product-price {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-description {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Contrôles du produit dans le modal */
.product-controls-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
}

.product-controls-section h4 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Sélecteur de poids */
.weight-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weight-selector label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.weight-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.weight-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weight-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.05);
}

#modalWeight {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

#modalWeight:focus {
    outline: none;
    border-color: var(--primary-green);
}

.weight-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-brown);
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Formats de produits */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.format-option {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.format-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.format-option.selected {
    border-color: var(--primary-green);
    background: rgba(45, 80, 22, 0.05);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.2);
}

.format-option.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-green);
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.format-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.format-size {
    font-weight: bold;
    color: var(--primary-green);
    font-size: 1.2rem;
}

.format-container {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

.format-price {
    font-weight: bold;
    color: var(--primary-brown);
    font-size: 1.3rem;
    text-align: center;
}

/* Sélecteur de quantité */
.quantity-section {
    margin-bottom: 2rem;
}

.quantity-section h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 12px;
    justify-content: center;
}

.qty-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.05);
}

#modalQuantity {
    width: 80px;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: border-color 0.3s ease;
}

#modalQuantity:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Informations de stock */
.stock-info {
    margin-bottom: 2rem;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.stock-indicator.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.stock-indicator.low-stock {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.stock-indicator.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Bouton d'ajout au panier du modal */
.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--secondary-brown), #d2691e);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.add-to-cart-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de chargement */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .products-slider {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
        max-width: none;
    }

    .category-filters {
        justify-content: center;
    }

    .category-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }

    .category-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modal-body {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .modal .product-image {
        height: 300px;
    }

    .slider-btn {
        display: none;
    }
    
    .products-slider {
        padding: 0;
    }

    .page-hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .product-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .product-controls-section {
        padding: 1.5rem;
    }

    .weight-input-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    #modalWeight {
        min-width: 100px;
    }

    .quantity-selector {
        justify-content: center;
    }
}

/* Navigation active */
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/* =====STYLES MODALE AMÉLIORÉE AVEC VARIANTES ===== */

/* Layout de la modale */
.modal-left {
    flex: 1;
    min-width: 400px;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-image-container {
    width: 100%;
    height: 450px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    padding: 10px;
}

.product-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.product-header h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* Sélecteur de variantes */
.variant-selector-container,
.format-selector-container,
.weight-selector-container {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.selection-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selection-label i {
    font-size: 1.2rem;
}

.variant-buttons,
.format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.variant-btn,
.format-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.variant-btn:hover,
.format-btn:hover {
    border-color: var(--primary-green);
    background: rgba(45, 80, 22, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.variant-btn.selected,
.format-btn.selected {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.variant-btn.selected::after,
.format-btn.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-brown);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
}

.format-btn .format-size {
    font-weight: bold;
}

.format-btn .format-price {
    font-size: 0.9rem;
    color: var(--primary-brown);
}

/* Sélecteur de poids pour produits au kg */
.weight-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.weight-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weight-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.08);
}

.weight-btn:active {
    transform: scale(0.95);
}

#modalWeight {
    width: 100px;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

#modalWeight:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.weight-unit {
    font-weight: bold;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.weight-price {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-brown);
    padding: 0.8rem;
    background: var(--white);
    border-radius: 10px;
    border: 2px dashed var(--primary-brown);
}

/* Prix et actions */
.price-actions-container {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-green);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
}

.price-label {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.price-value {
    color: var(--white);
    font-size: 2rem;
    font-weight: 900;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--white);
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.qty-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.08);
}

#modalQuantity {
    width: 70px;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
}

#modalQuantity:focus {
    outline: none;
    border-color: var(--primary-green);
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--secondary-brown), #d2691e);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
}

.add-to-cart-btn i {
    font-size: 1.4rem;
}

/* Grid d'informations */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-item i {
    color: var(--primary-green);
    font-size: 1.3rem;
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .modal-left {
        min-width: auto;
    }
    
    .product-image-container {
        height: 300px;
    }
    
    .variant-buttons,
    .format-buttons {
        flex-direction: column;
    }
    
    .variant-btn,
    .format-btn {
        width: 100%;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
    }
    
    .price-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .weight-selector {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #modalWeight {
        width: 100%;
    }
    
    .close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}
