
        .header {
            background: white;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: var(--shadow-md);
        }

        .category-page {
            padding: 140px 0 40px;
            background: #f5f5f5;
        }

        .page-header {
            margin-bottom: 30px;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            margin-bottom: 20px;
            transition: var(--transition);
        }

        .back-link:hover {
            color: var(--primary-dark);
        }

        .category-title {
            font-size: 32px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .product-variants {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .variant-tag {
            background: #f0f0f0;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .no-products, .error-message {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: var(--radius-lg);
            color: var(--text-secondary);
        }

        .error-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            padding: 48px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            max-width: 400px;
       
         }

        .products-section {
            min-height: calc(100vh - 140px - 40px);
            position: relative;
         }

        .product-stock {
            color: var(--text-secondary);
            font-size: 14px;
            margin-top: 8px;
        }

        .product-stock i {
            margin-right: 6px;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(calc(50% - 1rem), 1fr));
            gap: 1.5rem;
            padding: 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
        }
        
        .product-image {
            position: relative;
            height: 300px; 
            width: 100%;
            overflow: hidden;
         }
        
         .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
         }


         .wishlist-btn {
            position: absolute;
            top: 10px;
            left: 10px;
            background: white;
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            z-index: 10;
        }

        .wishlist-btn i {
            font-size: 18px;
            color: #666;
            transition: all 0.2s;
        }

        .wishlist-btn:hover {
            transform: scale(1.1);
        }

        .wishlist-btn.active {
            background: #ef4444;
        }

        .wishlist-btn.active i {
            color: white;
        }
        
        @keyframes pop {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .product-discount {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(255, 71, 87, 0.5);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: bold;
            z-index: 5;
            display: block !important;
        }
        
        .product-info {
            padding: 1rem;
        }
        
        .product-title {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .product-price {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .original-price {
            text-decoration: line-through;
            color: #666;
        }
        
        .current-price {
            color: #006699;
            font-weight: bold;
        }
        
        .product-rating {
            color: #fbbf24;
            margin-bottom: 0.5rem;
        }
        
        .reviews {
            color: #666;
            font-size: 0.9rem;
        }
        
        .add-to-cart-btn {
            width: 100%;
            padding: 0.5rem;
            background: #006699;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 1rem;
            transition: background 0.3s;
        }
        
        .add-to-cart-btn:hover {
            background: #005580;
        }

/* Écrans moyens */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 1.5rem), 1fr));
        gap: 1.75rem;
        padding: 2rem;
    }
}

/* Grands écrans */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(25% - 2rem), 1fr));
        gap: 2rem;
    }
}

/* Très petits écrans - s'assurer qu'il y a toujours 2 produits par ligne */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    /* Réduire la taille des éléments du produit pour s'adapter à la largeur */
    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        /* Limiter le titre à 2 lignes */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.7rem;
    }

    .product-price {
        gap: 6px;
        margin-bottom: 0.4rem;
        flex-wrap: wrap;
    }

    .current-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .add-to-cart-btn {
        padding: 0.4rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
}



/* CSS pour le modal de sélection des options */
.options-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .options-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .options-modal {
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .options-modal-overlay.active .options-modal {
    transform: translateY(0);
  }
  
  .options-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
  }
  
  .options-modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #2d3748;
  }
  
  .options-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
  }
  
  .options-modal-close:hover {
    background: #edf2f7;
    color: #334155;
  }
  
  .options-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }
  
  .modal-product-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
  }
  
  .modal-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
  }
  
  .modal-product-details h3 {
    font-weight: 600;
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 4px;
  }
  
  .modal-product-details .modal-product-price {
    color: #006699;
    font-weight: 600;
    font-size: 18px;
  }
  
  .options-section {
    margin-bottom: 24px;
  }
  
  .options-section-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    color: #2d3748;
  }
  
  .options-section-title i {
    margin-right: 8px;
    color: #006699;
  }
  
  .required-badge {
    font-size: 11px;
    background: rgba(0, 102, 153, 0.1);
    color: #006699;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
  }
  
  .optional-badge {
    font-size: 11px;
    background: rgba(104, 211, 145, 0.15);
    color: #2f855a;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
  }
  
  /* Variants */
  .variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }
  
  .variant-option {
    position: relative;
  }
  
  .variant-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .variant-label {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
  }
  
  .variant-label:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
    transform: translateY(-2px);
  }
  
  .variant-input:checked + .variant-label {
    border-color: #006699;
    background: rgba(0, 102, 153, 0.05);
  }
  
  .variant-input:checked + .variant-label::before {
    content: "✓";
    position: absolute;
    top: -1px;
    right: -1px;
    background: #006699;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 0 6px 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
  }
  
  .variant-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2d3748;
  }
  
  .variant-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
  }
  
  .variant-attribute {
    background: #edf2f7;
    color: #4a5568;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Accompagnements */
  .accompaniments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .accompaniment-option {
    position: relative;
  }
  
  .accompaniment-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .accompaniment-label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
  }
  
  .accompaniment-label:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
  }
  
  .accompaniment-input:checked + .accompaniment-label {
    border-color: #006699;
    background: rgba(0, 102, 153, 0.05);
  }
  
  .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  
  .accompaniment-input:checked + .accompaniment-label .checkbox-custom {
    background: #006699;
    border-color: #006699;
  }
  
  .accompaniment-input:checked + .accompaniment-label .checkbox-custom::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 11px;
  }
  
  .accompaniment-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .accompaniment-name {
    font-weight: 500;
    font-size: 14px;
    color: #2d3748;
  }
  
  .accompaniment-price {
    font-weight: 600;
    color: #006699;
    font-size: 13px;
    background: rgba(0, 102, 153, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
  }
  
  /* Modal Footer */
  .options-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
  }
  
  .total-price {
    font-weight: 600;
    color: #2d3748;
  }
  
  .price-value {
    color: #006699;
    font-size: 18px;
    margin-left: 8px;
  }
  
  .add-to-cart-modal-btn {
    background: #006699;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
  }
  
  .add-to-cart-modal-btn:hover {
    background: #005588;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 153, 0.2);
  }
  
  /* Quantity Selector */
  .quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
  }
  
  .quantity-selector-label {
    font-weight: 500;
    color: #2d3748;
    margin-right: 10px;
  }
  
  .quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  .quantity-btn:hover {
    background: #edf2f7;
  }
  
  .quantity-input {
    width: 40px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
  }
  
  .quantity-input::-webkit-inner-spin-button,
  .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  /* Price summary */
  .price-summary {
    margin-top: 12px;
    padding: 10px;
    background: #f1f7fa;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
  }
  
  .price-breakdown {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
  }
  
  .price-breakdown.total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e0;
    font-weight: 600;
    color: #2d3748;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Responsive Adjustments */
  @media (max-width: 640px) {
    .variants-grid {
      grid-template-columns: 1fr;
    }
    
    .options-modal-footer {
      flex-direction: column;
      gap: 12px;
    }
    
    .add-to-cart-modal-btn {
      width: 100%;
      justify-content: center;
    }
  }