/* ============================================
   MAIN.CSS - Styles de base & layout global
   Inspiré de l'esthétique Maison Fauve
   ============================================ */

:root {
            --color-cream: #f8f5f0;
            --color-ecru: #f4f1ea;
            --color-beige: #e8e4d9;
            --color-taupe: #d8d3c6;
            --color-clay: #b8a99a;
            --color-terracotta: #a57f6f;
            --color-charcoal: #2c2c2c;
            --color-ink: #1a1a1a;
            --color-white: #ffffff;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            color: var(--color-ink);
            line-height: 1.6;
            background: var(--color-cream);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* ========== HEADER ========== */
        .header {
            background: var(--color-white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            position: relative;
            width: 100%;
        }
        
        .logo-container {
            flex: 0 0 auto;
            z-index: 1002;
        }
        
        .logo-img {
            height: 57px;
            width: auto;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .logo-img:hover {
            transform: scale(1.05);
        }
        
        .main-nav {
            flex: 1;
            display: flex;
            justify-content: center;
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .nav-links > li {
            position: relative;
        }
        
        .nav-links > li > a {
            color: var(--color-ink);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 10px 0;
            position: relative;
            transition: color 0.3s ease;
            display: block;
        }
        
        .nav-links > li > a:hover {
            color: var(--color-terracotta);
        }
        
        .nav-links > li > a:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--color-terracotta);
            transition: width 0.3s ease;
        }
        
        .nav-links > li > a:hover:after {
            width: 100%;
        }
        
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            z-index: 1002;
        }
        
        .user-menu {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
/*         .cart-icon {
            position: relative;
            color: var(--color-ink);
            font-size: 1.2rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        } */
        
        .cart-count {
            position: absolute;
            top: 0;
            right: 0;
            background: linear-gradient(135deg, #D4AF37, #c19a53);
            color: white;
            border-radius: 50%;
            min-width: 18px;
            height: 18px;
            font-size: 0.6rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 2px;
            box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
            border: 2px solid white;
        }

        .cart-icon:hover .cart-count {
            transform: scale(1.1);
        }
        
        .user-icon, .search-icon {
            color: var(--color-ink);
            font-size: 1.1rem;
            cursor: pointer;
            transition: color 0.3s ease, transform 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .user-icon:hover, .search-icon:hover {
            color: var(--color-terracotta);
            transform: translateY(-1px);
        }
        
        /* Menu Toggle (Hamburger) - TOUJOURS VISIBLE SUR MOBILE */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 24px;
            height: 18px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1002;
            position: relative;
        }
        
        .menu-toggle span {
            display: block;
            width: 100%;
            height: 2px;
            background: var(--color-ink);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
            transform-origin: center;
        }
        
        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
            background: var(--color-terracotta);
        }
        
        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }
        
        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
            background: var(--color-terracotta);
        }
        
        /* ========== CATEGORIES NAVIGATION ========== */
        .categories-nav {
            background: var(--color-white);
            border-bottom: 1px solid var(--color-ecru);
            position: relative;
            z-index: 999;
            transition: all 0.3s ease;
        }
        
        .categories-list {
            display: flex;
            justify-content: center;
            gap: 3rem;
            list-style: none;
            padding: 12px 0;
        }
        
        .category-item {
            position: relative;
        }
        
        .category-link {
            color: var(--color-ink);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            padding: 8px 0;
            position: relative;
            transition: color 0.3s ease;
            white-space: nowrap;
            display: block;
        }
        
        .category-link:hover {
            color: var(--color-terracotta);
        }
        
        /* =========================================== */
        /* BADGES - Style Bootstrap-like              */
        /* =========================================== */

        .badge {
            display: inline-block;
            padding: 0.25em 0.6em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: 0.25rem;
            transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
        }

        .badge-pill {
            padding-right: 0.6em;
            padding-left: 0.6em;
            border-radius: 10rem;
        }

        .badge-primary {
            color: #fff;
            background-color: #007bff;
        }

        .badge-secondary {
            color: #fff;
            background-color: #6c757d;
        }

        .badge-success {
            color: #fff;
            background-color: #28a745;
        }

        .badge-danger {
            color: #fff;
            background-color: #dc3545;
        }

        .badge-warning {
            color: #212529;
            background-color: #ffc107;
        }

        .badge-info {
            color: #fff;
            background-color: #17a2b8;
        }

        .badge-light {
            color: #212529;
            background-color: #f8f9fa;
        }

        .badge-dark {
            color: #fff;
            background-color: #343a40;
        }

        .wishlist-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
        }

        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 10;
            font-size: 12px;
            padding: 4px 8px;
        }

        .product-badge-new {
            background-color: #4CAF50;
            color: white;
        }

        .product-badge-sale {
            background-color: #f44336;
            color: white;
        }

        .product-badge-limited {
            background-color: #FF9800;
            color: white;
        }

        .product-badge-featured {
            background-color: #9C27B0;
            color: white;
        }

        .table-badge {
            font-size: 85%;
            padding: 0.2em 0.5em;
        }

        .badge-shadow {
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .badge-pulse {
            animation: badge-pulse 2s infinite;
        }

        @keyframes badge-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
            }
            70% {
                box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
            }
        }

        .wishlist-link {
            position: relative;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wishlist-counter {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #d4a574;
            color: white;
            font-size: 0.7rem;
            font-weight: 600;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .wishlist-count-badge {
            background: #ff4444;
            color: white;
            font-size: 0.75rem;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 5px;
        }

        /* Sous-catégories */
        .subcategories-dropdown {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: var(--color-white);
            min-width: 200px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            border-top: 2px solid var(--color-terracotta);
        }
        
        .category-item:hover .subcategories-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        
        .subcategories-list {
            list-style: none;
        }
        
        .subcategory-item {
            margin-bottom: 12px;
        }
        
        .subcategory-item:last-child {
            margin-bottom: 0;
        }
        
        .subcategory-link {
            color: var(--color-ink);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 400;
            transition: color 0.3s ease;
            padding: 4px 0;
            display: block;
        }
        
        .subcategory-link:hover {
            color: var(--color-terracotta);
            padding-left: 5px;
        }
        
        /* ========== HERO SECTION ========== */
        .hero-section {
            text-align: center;
            padding: 100px 20px;
            background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-ecru) 100%);
            overflow: hidden;
        }
        
        .hero-section h1 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--color-ink);
            line-height: 1.2;
        }
        
        .hero-section p {
            font-size: 1.2rem;
            color: var(--color-clay);
            max-width: 600px;
            margin: 0 auto 30px;
        }
        
        /* ========== BOUTONS ========== */
        .btn-fauve {
            display: inline-block;
            padding: 12px 30px;
            background: var(--color-ink);
            color: var(--color-white);
            text-decoration: none;
            border-radius: 4px;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease;
            -webkit-appearance: none;
        }
        
        .btn-fauve:hover {
            background: var(--color-terracotta);
            transform: translateY(-2px);
        }
        
        /* ========== PRODUITS ========== */
        .featured-products {
            padding: 80px 20px;
        }
        
        .featured-products h2 {
            text-align: center;
            font-family: 'Cormorant Garamond', serif;
            font-size: 2.5rem;
            margin-bottom: 50px;
            color: var(--color-ink);
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .product-card {
            background: var(--color-white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 25px rgba(0,0,0,0.1);
        }
        
        .product-image {
            position: relative;
            height: 250px;
            overflow: hidden;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-info {
            padding: 20px;
        }
        
        .product-info h3 {
            margin: 0 0 10px 0;
            font-size: 1.2rem;
            color: var(--color-ink);
        }
        
        .product-price {
            font-weight: bold;
            color: var(--color-ink);
            margin: 0 0 15px 0;
        }
        
        /* ========== FOOTER ========== */
        .footer {
            background: var(--color-ink);
            color: var(--color-white);
            padding: 60px 0 30px;
            margin-top: 80px;
        }
        
        .footer .container {
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        
        .footer-links a {
            color: var(--color-white);
            text-decoration: none;
            font-size: 0.9rem;
            opacity: 0.8;
            transition: opacity 0.3s ease, color 0.3s ease;
        }
        
        .footer-links a:hover {
            opacity: 1;
            color: var(--color-terracotta);
        }
        
        .copyright {
            opacity: 0.7;
            font-size: 0.85rem;
            margin-top: 20px;
        }
        
        /* CSS pour le cœur avec compteur intégré */
        .heart-container {
            position: relative;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .heart-container .fa-heart {
            font-size: 1.5rem;
            color: #666;
            transition: color 0.3s, transform 0.2s;
        }

        .heart-container:hover .fa-heart {
            color: #d4a574;
            transform: scale(1.1);
        }

        .heart-counter {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.85rem;
            font-weight: 900;
            color: red;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        
        /* ========== MENU MOBILE ========== */
        .mobile-menu-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .mobile-menu-container.active {
            display: block;
            opacity: 1;
            visibility: visible;
        }
        
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 85%;
            max-width: 400px;
            height: 100vh;
            background: var(--color-white);
            z-index: 1000;
            padding: 80px 30px 30px;
            overflow-y: auto;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            -webkit-overflow-scrolling: touch;
        }
        
        .mobile-menu.active {
            right: 0;
        }
        
        .mobile-nav-links {
            list-style: none;
            margin-bottom: 30px;
        }
        
        .mobile-nav-links > li {
            border-bottom: 1px solid var(--color-ecru);
        }
        
        .mobile-nav-links > li:last-child {
            border-bottom: none;
        }
        
        .mobile-nav-links > li > a {
            display: block;
            padding: 18px 0;
            color: var(--color-ink);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }
        
        .mobile-nav-links > li > a:hover {
            color: var(--color-terracotta);
        }
        
        .mobile-nav-links > li > a:active {
            background: var(--color-cream);
        }
        
        .mobile-categories {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--color-ecru);
        }
        
        .mobile-categories-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--color-clay);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .mobile-categories-list {
            list-style: none;
        }
        
        .mobile-category-item {
            margin-bottom: 12px;
        }
        
        .mobile-category-item:last-child {
            margin-bottom: 0;
        }
        
        .mobile-category-link {
            display: block;
            padding: 12px 0;
            color: var(--color-ink);
            text-decoration: none;
            font-size: 1rem;
            transition: color 0.3s ease;
            border-bottom: 1px solid transparent;
        }
        
        .mobile-category-link:hover {
            color: var(--color-terracotta);
            border-bottom-color: var(--color-terracotta);
        }
        
        .close-menu {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--color-ink);
            cursor: pointer;
            z-index: 1001;
            padding: 10px;
            transition: color 0.3s ease;
        }
        
        .close-menu:hover {
            color: var(--color-terracotta);
        }
        
        /* ========== RESPONSIVE DESIGN ========== */
        
        /* Tablettes et petits écrans */
        @media (max-width: 1024px) {
            .container {
                padding: 0 15px;
            }
            
            .categories-list {
                gap: 2rem;
            }
            
            .nav-links {
                gap: 1.5rem;
            }
            
            .hero-section {
                padding: 80px 20px;
            }
            
            .hero-section h1 {
                font-size: 2.5rem;
            }
            
            .featured-products {
                padding: 60px 20px;
            }
            
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 20px;
            }
        }
        
        /* Tablettes et mobiles */
        @media (max-width: 768px) {
            .header-content {
                padding: 12px 0;
                flex-wrap: nowrap;
            }
            
            .logo-container {
                order: 1;
                flex: 0 0 auto;
            }
            
            .logo-img {
                height: 50px;
            }
            
            .menu-toggle {
                display: flex;
                order: 2;
                margin-left: auto;
                margin-right: 15px;
            }
            
            .nav-actions {
                order: 3;
                flex: 0 0 auto;
            }
            
            .main-nav {
                display: none !important; /* Cache le menu desktop sur mobile */
            }
            
            .categories-nav {
                display: none !important; /* Cache les catégories sur mobile */
            }
            
            .hero-section {
                padding: 60px 20px;
            }
            
            .hero-section h1 {
                font-size: 2rem;
            }
            
            .hero-section p {
                font-size: 1.1rem;
                padding: 0 10px;
            }
            
            .featured-products h2 {
                font-size: 2rem;
                margin-bottom: 30px;
            }
            
            .footer-links {
                gap: 1.5rem;
                margin-bottom: 30px;
            }
            
            .footer-links a {
                flex: 0 0 calc(50% - 0.75rem);
                text-align: center;
                padding: 5px 0;
            }
            
            /* Ajustement des badges */
            .badge {
                font-size: 70%;
                padding: 0.2em 0.5em;
            }
            
            .wishlist-badge, .cart-count, .wishlist-counter {
                width: 16px;
                height: 16px;
                font-size: 10px;
                top: -6px;
                right: -6px;
            }
            
            .heart-container .fa-heart {
                font-size: 1.3rem;
            }
            
            .admin-link {
                color: #ef4444 !important;
                font-weight: 600 !important;
            }
    
            .admin-link:hover {
                color: #dc2626 !important;
            }
            
            .user-menu {
                gap: 0.8rem;
            }
        }
        
        /* Mobiles */
        @media (max-width: 480px) {
            .container {
                padding: 0 10px;
            }
            
            .logo-img {
                height: 45px;
            }
            
            .nav-actions {
                gap: 0.8rem;
            }
            
            .user-menu {
                gap: 0.6rem;
            }
            
            .hero-section {
                padding: 50px 15px;
            }
            
            .hero-section h1 {
                font-size: 1.8rem;
            }
            
            .hero-section p {
                font-size: 1rem;
            }
            
            .btn-fauve {
                padding: 10px 25px;
                font-size: 0.9rem;
            }
            
            .featured-products {
                padding: 50px 15px;
            }
            
            .featured-products h2 {
                font-size: 1.8rem;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .product-card {
                max-width: 100%;
            }
            
            .product-image {
                height: 220px;
            }
            
            .footer {
                padding: 40px 0 20px;
                margin-top: 60px;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 1rem;
            }
            
            .footer-links a {
                flex: 1;
                padding: 8px 0;
            }
            
            .copyright {
                font-size: 0.8rem;
            }
            
            .mobile-menu {
                width: 90%;
                padding: 70px 20px 20px;
            }
        }
        
        /* Très petits mobiles */
        @media (max-width: 320px) {
            .nav-actions {
                gap: 0.6rem;
            }
            
            .user-menu {
                gap: 0.5rem;
            }
            
            .hero-section h1 {
                font-size: 1.6rem;
            }
            
            .product-info h3 {
                font-size: 1.1rem;
            }
            
            .footer-links a {
                font-size: 0.85rem;
            }
            
            .mobile-menu {
                width: 95%;
            }
        }
        
        /* Desktop large */
        @media (min-width: 1400px) {
            .container {
                max-width: 1400px;
            }
        }
        
        /* Orientation paysage sur mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero-section {
                padding: 40px 20px;
            }
            
            .hero-section h1 {
                font-size: 1.8rem;
                margin-bottom: 15px;
            }
            
            .product-image {
                height: 200px;
            }
            
            .mobile-menu {
                padding-top: 60px;
            }
            
            .mobile-nav-links > li > a {
                padding: 12px 0;
            }
        }
        
        /* iPhone X et modèles avec notch */
        @supports (padding: max(0px)) {
            .header {
                padding-top: env(safe-area-inset-top);
                padding-bottom: env(safe-area-inset-bottom);
            }
            
            .mobile-menu {
                padding-top: calc(80px + env(safe-area-inset-top));
                padding-bottom: calc(30px + env(safe-area-inset-bottom));
            }
        }
        
        /* Pour éviter le zoom sur les inputs sur iOS */
        @media screen and (max-width: 768px) {
            input, select, textarea {
                font-size: 16px !important;
            }
            
            button, a {
                -webkit-touch-callout: none;
            }
        }

    /* ============================================
   STYLES POUR LE COMPTEUR DE PANIER
   ============================================ */

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #D4AF37;
}

.cart-icon i {
    font-size: 1.2rem;
}

/* Compteur de panier */
/* .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
    
    z-index: 10;
    transform: translate(30%, -30%);
} */

/* Pour les nombres à 2 chiffres */
.cart-count.double-digit {
    min-width: 24px;
    font-size: 0.65rem;
    padding: 0 4px;
}

/* Pour les nombres à 3 chiffres ou plus */
.cart-count.triple-digit {
    min-width: 28px;
    font-size: 0.6rem;
    padding: 0 5px;
}

/* Afficher quand il y a des items */
.cart-count.has-items {
    display: flex;
}

/* Animation lors de l'ajout */
@keyframes cartBounce {
    0% { transform: translate(30%, -30%) scale(1); }
    50% { transform: translate(30%, -30%) scale(1.3); }
    100% { transform: translate(30%, -30%) scale(1); }
}

.cart-count.updated {
    animation: cartBounce 0.5s ease;
}

/* ============================================
   VERSION MOBILE DU COMPTEUR
   ============================================ */

.mobile-nav-links .cart-count-badge {
    position: relative;
    top: -1px;
    margin-left: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
}

/* ============================================
   CORRECTIONS POUR LE BADGE WISHLIST
   ============================================ */

.wishlist-count {
    position: absolute;
    top: 11px;
    right: 5px;
    background: linear-gradient(135deg, #D4AF37, #c19a53);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
    border: 2px solid white;
}

.wishlist-count-badge {
    margin-left: 8px;
    background: linear-gradient(135deg, #D4AF37, #c19a53);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
}

/* FORCER l'affichage du badge */
#cartCount {
    display: flex !important; /* Force l'affichage */
    opacity: 0.5; /* Rendre discret quand 0 */
    transition: opacity 0.3s ease;
}

#cartCount.has-items {
    opacity: 1; /* Pleinement visible quand > 0 */
    background-color: #e74c3c; /* Rouge vif */
}

/* Style pour 0 */
#cartCount:empty {
    content: '0';
}

/* Animation pour la suppression */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-100px);
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden;
}

/* Style pour le badge */
/* #cartCount {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#cartCount.has-items {
    background: #e74c3c;
}

#cartCount:not(.has-items) {
    background: #95a5a6;
    opacity: 0.7;
} */