/* ==========================================================================
   ORIGIN_UI — MASTER STYLESHEET (V1.1 OPTIMISÉE)
   Theme System: Modular & Variable-Based for SaaS Customization
   ========================================================================== */

/* ==========================================================================
   1. CONFIGURATION MAÎTRE (:ROOT)
   ========================================================================== */
:root {
    /* --- PALETTE DE COULEURS (BRANDING) --- */
    --primary: #007bff;
    --primary-rgb: 0, 123, 255; 
    --secondary: #6c757d;
    --secondary-rgb: 108, 117, 125;
    
    /* Ajout: Couleur d'accentuation (Promos, Badges, Soldes) */
    --accent: #dc3545; 
    --accent-rgb: 220, 53, 69;
    
    /* --- ARRIÈRE-PLAN & TEXTE --- */
    --bg-body-color: #f8f9fa;
    --bg-body-image: none;
    --bg-body-repeat: no-repeat;
    --bg-body-size: cover;
    --bg-body-attachment: scroll; /* Scroll par défaut, le JS peut passer en fixed */
    --bg-body-position: center top;
    
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-inverse: #ffffff;

    /* --- TYPOGRAPHIE --- */
    --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    --heading-weight: 700;

    /* --- HEADER & NAV --- */
    --header-height: 70px;
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-backdrop-filter: blur(10px);
    --header-border-bottom: 1px solid rgba(0,0,0,0.05);
    
    /* Ajout: Positionnement dynamique du Header (Sticky vs Relative) */
    --header-position: sticky; 
    --header-sticky-top: 0;
    --header-z-index: 1020;

    /* --- FORMES (RADIUS) --- */
    --radius-btn: 8px;
    --radius-card: 12px;
    --radius-input: 8px;
    --radius-badge: 4px;
    --border-width: 1px;
    --border-color: #dee2e6;

    /* --- BOUTONS (STYLE) --- */
    --btn-padding-y: 0.75rem;
    --btn-padding-x: 1.5rem;
    --btn-font-weight: 600;
    --btn-text-transform: none; 
    --btn-letter-spacing: 0px;

    /* --- OMBRES (DEPTH) --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15); /* Ajout pour les survols */
    
    /* --- INTERACTION & ANIMATION --- */
    --transition-base: 0.3s;
    --ease-base: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --card-hover-transform: translateY(-5px);
    --card-border-hover: transparent; 

    /* --- LAYOUT --- */
    --container-max-width: 1320px;
    --spacing-section: 4rem;
    --input-height: 48px;
    
    /* --- SYSTEME Z-INDEX (HIERARCHIE STRICTE) --- */
    --z-dropdown: 1000;
    
    /* ÉTAGE 1 : Le site normal */
    --z-promo: 1020;        /* Bannière Promo */
    --z-sticky: 1030;       /* Header Header */
    --z-search: 1040;       /* Barre recherche */
    --z-bottom-nav: 1050;   /* Navigation bas mobile */
    
    /* ÉTAGE 2 : Les éléments flottants (Modales, Popups) */
    --z-modal-backdrop: 2000;
    --z-modal: 2050;
    
    /* ÉTAGE 3 : LE MENU MOBILE (Au-dessus de TOUT, y compris les modales) */
    --z-offcanvas-backdrop: 99990; 
    --z-offcanvas: 99999; 
}


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
html {
    scroll-behavior: smooth; /* UX Fluide pour les ancres */
    -webkit-text-size-adjust: 100%; /* Fix rotation mobile */
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-main);
    
    /* Gestion Background Dynamique */
    background-color: var(--bg-body-color);
    background-image: var(--bg-body-image);
    background-repeat: var(--bg-body-repeat);
    background-size: var(--bg-body-size);
    background-attachment: var(--bg-body-attachment);
    background-position: var(--bg-body-position);
    
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Typographie Maître */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    color: var(--text-main);
    margin-bottom: 0.5em;
}

/* Liens Maîtres */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base) var(--ease-base);
}

a:hover {
    color: var(--text-main); /* Ou une variante plus foncée de primary si préféré */
    text-decoration: none;
}

/* Images responsives par défaut */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   3. HEADER, NAVIGATION & MOBILE UI (OPTIMISÉ V1.1)
   ========================================================================== */

/* --- CONFIGURATION GLOBALE HEADER --- */
.boutique-header {
    background-color: var(--header-bg);
    backdrop-filter: var(--header-backdrop-filter);
    -webkit-backdrop-filter: var(--header-backdrop-filter);
    border-bottom: var(--header-border-bottom);
    
    /* MODIFICATION : Utilisation des variables pour le switch Sticky/Static */
    position: var(--header-position, sticky); 
    top: var(--header-sticky-top, 0);
    
    z-index: var(--z-sticky);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.boutique-header .container-fluid {
    min-height: var(--header-height);
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- LOGO & TITRE (DESKTOP) --- */
.shop-name-desktop {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

/* --- LOGO & TITRE (MOBILE) --- */
.shop-name-mobile-center, .mobile-header-logo {
    display: none;
}

/* --- NAVIGATION DESKTOP --- */
.main-nav-desktop .nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    font-family: var(--font-body);
}

.main-nav-desktop .nav-link:hover,
.main-nav-desktop .nav-link.active {
    color: var(--primary) !important;
}

/* --- BOUTONS & ICÔNES HEADER --- */
.header-right-icons .btn,
.header-right-icons a {
    color: var(--text-main) !important;
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.header-right-icons .btn:hover,
.header-right-icons a:hover {
    color: var(--primary) !important;
}

.header-right-icons .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.5em;
    border-radius: var(--radius-badge);
    background-color: var(--accent) !important; /* Variable dynamique */
}

/* --- BARRE DE RECHERCHE (DROPDOWN) --- */
.search-bar-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    
    /* MODIFICATION : Fond dynamique */
    background-color: var(--bg-card); 
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    
    z-index: var(--z-fixed);
    padding: 1rem 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-bar-container .form-control {
    border-radius: 50px 0 0 50px;
    border-right: none;
    padding-left: 1.5rem;
    background-color: var(--bg-body-color); /* Contraste léger */
    color: var(--text-main);
    border-color: var(--border-color);
}

.search-bar-container .btn {
    border-radius: 0 50px 50px 0;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0 1.5rem;
}

/* ==========================================================================
   MOBILE UI SPECIFICS (APP-LIKE)
   ========================================================================== */

@media (max-width: 768px) {
    
    /* --- 1. LAYOUT HEADER MOBILE --- */
    .boutique-header .container-fluid {
        min-height: 55px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* GAUCHE : Logo */
    .header-left-group.d-md-none {
        display: flex !important; 
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        z-index: 10;
    }
    
    .header-left-group.d-none { display: none !important; }

    .mobile-header-logo {
        display: block;
        height: 32px;
        width: auto;
        object-fit: contain;
    }

    /* CENTRE : Nom Boutique */
    a.d-md-none > .shop-name-mobile-center {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 800;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 40%;
        z-index: 1;
        text-align: center;
        pointer-events: none;
    }
    
    .shop-name-mobile-center { pointer-events: auto; }

    /* DROITE : Loupe */
    .header-right-icons {
        flex: 1; 
        justify-content: flex-end; 
        display: flex;
        z-index: 10;
    }
    
    .header-right-icons a[href*="page=panier"],
    .header-left-group .btn[data-bs-target="#mobileMenuHeader"] { 
        display: none !important; 
    }

    /* --- 2. BOTTOM NAVIGATION BAR (AJUSTEMENT PADDING BODY) --- */
    body { padding-bottom: 80px !important; }
}

/* --- BARRE DE NAVIGATION "APP" --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    
    /* MODIFICATION : Fond dynamique */
    background-color: var(--bg-card); 
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: var(--z-modal); /* Doit être très haut */
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    position: relative;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* Badge Panier Mobile */
.mobile-bottom-nav .cart-icon-wrapper {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent); /* Rouge promo dynamique */
    color: #ffffff;
    border: 2px solid var(--bg-card); /* Contour couleur du fond pour détourer */
    border-radius: 10px;
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    text-align: center;
}

/* ==========================================================================
   OFFCANVAS MENU (MENU LATÉRAL)
   ========================================================================== */
.offcanvas {
    /* On utilise la variable suprême */
    z-index: var(--z-offcanvas) !important; 
    
    position: fixed;
    top: 0; bottom: 0; left: 0;
    height: 100vh !important;
    width: 85%;
    max-width: 350px;
    
    /* Fond opaque OBLIGATOIRE pour cacher ce qu'il y a derrière */
    background-color: var(--bg-card) !important; 
    color: var(--text-main);
    
    opacity: 1 !important;
    visibility: visible;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    
}

.offcanvas.show { transform: translateX(0) !important; }

.offcanvas-header {
    background-color: var(--bg-card); /* Idem */
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-header .btn-close {
    /* Hack pour s'assurer que la croix est visible sur fond sombre si besoin */
    filter: grayscale(1) invert(1) contrast(0.5); 
}

.offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 100px;
    background-color: var(--bg-card); /* Idem */
}

.offcanvas-backdrop {
    z-index: var(--z-offcanvas-backdrop) !important;
    background-color: rgba(0,0,0,0.5) !important;
}

/* Liens du menu Offcanvas */
.offcanvas-body .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-main);
    width: 100%;
    display: block;
}

.offcanvas-body .nav-link:active,
.offcanvas-body .nav-link:focus {
    color: var(--primary);
    background-color: transparent;
}

/* ==========================================================================
   PROMO BANNER (MARQUEE / TEXTE DÉFILANT) - CORRECTIF Z-INDEX
   ========================================================================== */
.promo-banner {
    /* MODIFICATION : Utilisation de la couleur d'accent */
    background-color: var(--accent); 
    color: var(--text-inverse); 
    
    padding: 8px 0;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Propriétés critiques */
    position: relative;
    overflow: hidden; 
    white-space: nowrap;
    
    /* --- CORRECTION DESKTOP & MOBILE --- */
    /* On met un niveau très bas (10) pour qu'elle reste derrière :
       - Le Header Sticky (niveau 1030)
       - Les menus déroulants (niveau 1000+)
       - Le Menu Mobile (niveau 2000)
    */
    z-index: 10; 
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-text-inner {
    display: inline-block;
    padding-left: 100%;
    /* Animation fluide */
    animation: promo-scroll 20s linear infinite; 
    will-change: transform;
}

/* Pause de l'animation au survol */
.promo-banner:hover .promo-text-inner {
    animation-play-state: paused;
    cursor: help;
}

/* Définition de l'animation */
@keyframes promo-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Mobile Adjustment --- */
@media (max-width: 768px) {
    .promo-banner {
        font-size: 0.8rem; 
        padding: 6px 0;
        /* Le z-index: 10 défini plus haut suffit maintenant, 
           plus besoin de forcer ici sauf cas extrême */
    }
    
    .promo-text-inner {
        animation-duration: 15s; 
    }
}

/* ==========================================================================
   5. PRODUCT CARDS & LISTS (OPTIMISÉ DESIGN SYSTEM)
   ========================================================================== */

/* --- Conteneur de la Carte --- */
.product-card.market-style {
    background-color: var(--bg-card);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Force la même hauteur pour toute la ligne */
    
    /* Animation fluide */
    transition: transform 0.3s var(--ease-base), box-shadow 0.3s var(--ease-base), border-color 0.3s;
}

/* Effet de survol global */
.product-card.market-style:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary); /* Met en valeur la bordure si border-width > 0 */
    z-index: 2;
}

/* --- Badges (Promo / Nouveau / Stock) --- */
.product-card.market-style .product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.product-card.market-style .badge {
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-badge);
    box-shadow: var(--shadow-sm);
}

.badge-promo { 
    background-color: var(--accent); /* Rouge dynamique */
    color: #fff; 
}

.badge-new { 
    background-color: var(--primary); /* Bleu dynamique */
    color: #fff; 
}

.badge-out-of-stock { 
    background-color: var(--text-main); /* Noir dynamique */
    color: var(--bg-card); 
    opacity: 0.9; 
}

/* --- Zone Image --- */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio Carré 1:1 parfait */
    background-color: #fff; /* On garde blanc pour détourer le produit */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-card.market-style .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image entière est visible */
    padding: 15px; /* Marge interne */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Zoom image au survol */
.product-card.market-style:hover .product-image {
    transform: scale(1.08);
}

/* --- Zone Informations (Titre & Prix) --- */
.product-info {
    padding: 1.25rem; /* Espace aéré sur Desktop */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pousse le footer vers le bas */
    justify-content: space-between;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    
    /* Tronquer après 2 lignes */
    height: 2.8em; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--primary);
}

.product-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Colle le prix au bas de la zone info */
}

.current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.base-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

/* --- Barre d'Actions (Panier / Partage) --- */
.product-actions-bar {
    padding: 12px 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    min-height: 60px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* MODIFICATION : On utilise une variable dynamique (défaut 12px) */
    gap: var(--gap-actions, 12px); 
}

.icon-button {
    width: 38px;
    height: 38px;
    
    /* MODIFICATION : Forme dynamique (Rond, Carré ou Squircle) */
    border-radius: var(--radius-btn); 
    
    border: 1px solid var(--border-color);
    background-color: var(--bg-body-color); /* Contraste léger */
    color: var(--text-muted);
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.icon-button:hover:not(:disabled) {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2); /* Ombre colorée */
}

.icon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-body-color);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .product-info {
        padding: 0.85rem; /* Padding réduit sur mobile */
    }
    
    .product-title {
        font-size: 0.9rem;
        height: 2.6em; /* Ajustement hauteur lignes */
        margin-bottom: 0.5rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .product-actions-bar {
        padding: 8px 0.85rem;
        min-height: 45px;
    }
    
    .icon-button {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   ORIGIN_UI — GALLERY CAROUSEL (OPTIMISÉ)
   Fichier : includes/boutique/gallery_carousel.php
   ========================================================================== */

/* --- Carousel Container --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    /* Hauteur Mobile (Compact) */
    height: 300px; 
    overflow: hidden;
    
    /* MODIFICATION : Couleur placeholder dynamique */
    background-color: var(--border-color); 
    
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
    
    /* Pas de border-radius sur mobile pour effet "Edge-to-Edge" type App */
    border-radius: 0; 
}

/* Responsive Heights configuration */
@media (min-width: 768px) {
    .carousel-wrapper {
        height: 450px;
        /* Sur desktop, on applique le radius choisi par le marchand */
        border-radius: var(--radius-card); 
        margin-bottom: var(--spacing-section);
    }
}

@media (min-width: 1200px) {
    .carousel-wrapper {
        height: 550px;
    }
}

/* --- Slides Track --- */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* Custom ease-out */
    will-change: transform;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- Images --- */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: translateZ(0); /* GPU acceleration */
}

/* --- Navigation Controls (Arrows) --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    
    /* Les flèches de navigation restent toujours rondes (UX Standard) */
    border-radius: 50%; 
    
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0; /* Hidden by default on Desktop */
}

/* Show arrows on hover */
.carousel-wrapper:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: #fff;
    color: var(--primary); /* S'adapte à la couleur du thème */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
    border-color: #fff;
}

.carousel-arrow.left { left: 20px; }
.carousel-arrow.right { right: 20px; }

/* --- Indicators (Dots) --- */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.carousel-indicators .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-indicators .dot.active {
    /* MODIFICATION : Utilisation de la couleur Primaire pour le branding */
    background: var(--primary); 
    
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    width: 25px; /* Pill shape for active state */
    border-radius: 10px;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        opacity: 1; /* Always show on mobile */
        background: rgba(0, 0, 0, 0.2);
        border: none;
    }
    
    .carousel-arrow.left { left: 10px; }
    .carousel-arrow.right { right: 10px; }
    
    .carousel-indicators {
        bottom: 15px;
        padding: 4px 8px;
        gap: 8px;
    }
}

/* ==========================================================================
   ORIGIN_UI — SHOP DESCRIPTION COMPONENT
   Fichier : includes/boutique/shop_description.php
   ========================================================================== */

/* --- Section Container --- */
.shop-description {
    background-color: var(--bg-card);
    position: relative;
    
    /* Intégration complète au Design System */
    border-radius: var(--radius-card); 
    border: var(--border-width) solid var(--border-color);
    box-shadow: var(--shadow-sm); /* Ajout de profondeur */
    
    padding: 2rem; /* Valeur standardisée */
    margin-bottom: var(--spacing-section);
}

/* --- Title Typography --- */
.shop-desc-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* --- Description Text --- */
.shop-desc-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
    /* On force la couleur muted mais définie dynamiquement */
    color: var(--text-muted) !important; 
}

/* --- Decorative Separator --- */
.shop-desc-separator {
    width: 50px;
    height: 4px;
    background-color: var(--primary); /* Couleur dynamique */
    border-radius: 2px;
    opacity: 0.8;
    transition: width 0.3s ease;
}

/* Hover Effect on Section triggers Separator expansion */
.shop-description:hover .shop-desc-separator {
    width: 80px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .shop-description {
        padding: 1.5rem; /* Padding réduit sur mobile */
        border-radius: var(--radius-btn); /* Rayon légèrement réduit */
    }

    .shop-desc-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .shop-desc-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   10. LANDING PAGES & SHORTCODES (DESIGN SYSTEM INTEGRATED)
   ========================================================================== */

/* --- Structure Globale LP --- */
.lp-body {
    background-color: var(--bg-body-color);
    color: var(--text-main);
    font-family: var(--font-body);
}

.lp-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.lp-header {
    background-color: var(--header-bg); /* Cohérence header principal */
    backdrop-filter: var(--header-backdrop-filter);
    -webkit-backdrop-filter: var(--header-backdrop-filter);
    
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    
    position: var(--header-position, sticky);
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--border-color);
}

.lp-shop-name-link {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.lp-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.lp-shop-name-text i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.lp-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- 1. [products] Grid Component --- */
.product-grid-component {
    margin: 2rem 0;
}

.product-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lp-card {
    background: var(--bg-card);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.3s var(--ease-base), box-shadow 0.3s var(--ease-base);
    display: flex;
    flex-direction: column;
}

.lp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.lp-card .product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff; /* On garde blanc pour l'image produit elle-même */
}

.lp-card .product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.lp-card .product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lp-card .product-name a {
    color: var(--text-main);
    text-decoration: none;
}

.lp-card .product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.lp-card .btn-add-to-cart {
    margin-top: auto;
    width: 100%;
    border-radius: var(--radius-btn);
}

/* --- 2. [product_detail] Component --- */
.product-detail-component {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: var(--border-width) solid var(--border-color);
}

.lp-detail-image {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
}

.product-detail-component .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    font-family: var(--font-heading);
}

.product-variants {
    background: var(--bg-body-color); /* Contraste vs bg-card */
    padding: 1rem;
    border-radius: var(--radius-input);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* --- 3. [form type="order"] Component --- */
.order-form-component {
    position: relative;
}

.scroll-anchor {
    position: absolute;
    top: -100px;
    visibility: hidden;
}

.lp-order-box {
    background: var(--bg-card); /* MODIFIÉ pour Dark Mode */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card); /* Homogénéité */
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.lp-order-box .section-title {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--bg-body-color);
    padding-bottom: 1rem;
    font-family: var(--font-heading);
}

.lp-delivery-choice {
    background-color: var(--bg-body-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
}

.order-form-lp .form-control, 
.order-form-lp .form-select {
    background-color: var(--bg-body-color); /* Contraste vs bg-card */
    color: var(--text-main);
    border: 1px solid var(--border-color);
    height: 50px;
    border-radius: var(--radius-input);
}

.order-form-lp .btn-primary {
    font-size: 1.1rem;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.order-form-lp .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* --- 4. [form type="newsletter"] Component --- */
.lp-newsletter-box {
    /* Gradient subtil utilisant les variables */
    background: linear-gradient(135deg, var(--bg-body-color) 0%, var(--bg-card) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-card);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.lp-newsletter-box h3 {
    font-weight: 800;
    color: var(--text-main);
}

.lp-newsletter-box .form-control {
    border-radius: 50px 0 0 50px;
    border-right: none;
    border-color: var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
}

.lp-newsletter-box .btn {
    border-radius: 0 50px 50px 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- 5. [media] Component --- */
.lp-media-content {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    display: block;
    max-width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .lp-header { padding: 0.5rem 0; }
    .lp-logo { height: 40px; }
    
    .lp-order-box {
        padding: 1.5rem;
    }
    
    .product-cards-container {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
    
    .lp-card .product-image {
        height: 200px;
    }
}

/* ==========================================================================
   6. PRODUCT DETAIL PAGE (PAGE PRODUIT OPTIMISÉE)
   ========================================================================== */

/* --- Container & Layout --- */
.product-page-section {
    background-color: var(--bg-card); /* Dynamique */
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

/* --- Breadcrumb --- */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2em;
    line-height: 1;
    color: var(--text-muted);
}

/* --- Main Image Area --- */
.main-image-wrapper {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    /* On garde le fond blanc pour l'image produit par défaut, même en dark mode */
    background-color: #fff; 
    border: 1px solid var(--border-color);
    cursor: zoom-in; /* Indique le zoom */
    box-shadow: var(--shadow-sm);
}

#variant-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* --- Gallery Thumbnails --- */
.gallery-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-input);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.gallery-item:hover,
.gallery-item.active {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Scrollbar fine pour la galerie mobile */
.d-flex.overflow-x-auto::-webkit-scrollbar {
    height: 4px;
}
.d-flex.overflow-x-auto::-webkit-scrollbar-thumb {
    background-color: var(--text-muted);
    border-radius: 4px;
}

/* --- Product Info Column (Sticky) --- */
@media (min-width: 992px) {
    .sticky-product-info {
        position: sticky;
        top: 100px; /* Offset par rapport au header fixe */
        z-index: 10;
        padding-left: 1rem;
    }
}

.product-title-h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.read-more-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    cursor: pointer;
}

/* --- Pricing --- */
.price-tag-lg {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-tag-old {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Form Elements (Variantes) --- */
.variant-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.variant-select {
    cursor: pointer;
    font-size: 1rem;
    height: 50px; /* Plus confortable */
    background-color: var(--bg-body-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-input);
}

/* --- Quantity Selector (Style Pro) --- */
.qty-input-group {
    /* Dimensions fixes et confortables */
    width: 150px;
    height: 50px; 
    
    /* Style du conteneur */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    background-color: var(--bg-card);
    overflow: hidden;
    
    /* Flexbox pour alignement parfait */
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effet de focus sur le groupe entier */
.qty-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* --- Les Boutons (- / +) --- */
.qty-btn {
    width: 45px;
    height: 100%; /* Prend toute la hauteur */
    
    background-color: var(--bg-body-color); /* Fond gris léger dynamique */
    border: none;
    border-right: 1px solid var(--border-color); 
    
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    
    /* Centrage parfait de l'icône/texte */
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.1s ease;
}

/* Le bouton + a le séparateur à gauche */
.qty-btn:last-child {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.qty-btn:hover {
    background-color: var(--border-color); /* Un peu plus foncé */
    color: var(--primary); /* La couleur change au survol */
}

.qty-btn:active {
    transform: scale(0.95); /* Petit effet de rebond au clic */
}

/* --- L'Input (Chiffre) --- */
#qty-input {
    flex-grow: 1; /* Prend tout l'espace restant */
    height: 100%;
    
    border: none;
    background: var(--bg-card);
    color: var(--text-main) !important;
    
    font-family: var(--font-heading); /* Police des titres pour les chiffres */
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    
    padding: 0;
    margin: 0;
    
    /* Désactive l'apparence par défaut */
    -moz-appearance: textfield;
    appearance: none;
    outline: none !important;
    box-shadow: none !important;
}

/* Cache les flèches natives des navigateurs (Chrome, Safari, Edge) */
#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Stock Badge --- */
.stock-status-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-badge);
    display: inline-flex;
    align-items: center;
}

.stock-in {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.stock-out {
    color: var(--accent);
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* --- Action Buttons --- */
.btn-action-lg {
    padding: 16px 20px;
    font-weight: 700;
    border-radius: var(--radius-btn);
    
    /* Contrôle via le moteur de thème */
    text-transform: var(--btn-text-transform);
    
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.2s ease-in-out;
}

.btn-add-cart {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-add-cart:hover:not(:disabled) {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-buy-now {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-buy-now:hover:not(:disabled) {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* --- Trust Badges --- */
.trust-badge {
    font-size: 0.8rem;
    text-align: center;
    padding: 0 10px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* --- Description Content --- */
.full-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
}

.full-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

/* --- Mobile Specifics --- */
@media (max-width: 768px) {
    .product-title-h1 { font-size: 1.5rem; }
    .price-tag-lg { font-size: 1.75rem; }

    .btn-action-lg {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .d-flex.gap-2 { padding-bottom: 5px; }
}

/* ==========================================================================
   11. ALL PRODUCTS PAGE (CATALOGUE OPTIMISÉ)
   ========================================================================== */

/* --- Section Header (Banner) --- */
.section-header-banner {
    background-color: var(--secondary); /* Fallback si pas d'image */
    position: relative;
    border-radius: var(--radius-card);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    
    /* On force le texte en blanc car c'est une bannière image souvent sombre */
    color: var(--text-inverse); 
}

.section-header-banner img {
    transition: transform 10s linear; /* Effet Ken Burns (zoom lent) */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-header-banner:hover img {
    transform: scale(1.1);
}

/* Texte sur l'image */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.display-4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

/* --- Section Title (Sans Banner) --- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* --- Sorting & Filters Bar --- */
/* On cible la combinaison de classes Bootstrap pour appliquer le thème */
.bg-light.border {
    background-color: var(--bg-card) !important; /* Dynamique */
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-input);
    padding: 0.5rem 1rem !important;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

#sort_by {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    border: none;
    background-color: transparent;
}

#sort_by:focus {
    outline: none;
    box-shadow: none;
    color: var(--primary);
}

/* --- Pagination --- */
.pagination {
    gap: 5px;
}

.page-item .page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Toujours rond pour la pagination (UX Standard) */
    font-weight: 600;
    
    /* Couleurs dynamiques */
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-item .page-link:hover {
    background-color: var(--bg-body-color);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary);
    color: #ffffff; /* Contraste sur couleur primaire */
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--text-muted);
    cursor: default;
    opacity: 0.6;
}

/* --- Empty State (Aucun produit) --- */
.text-center.py-5 i {
    color: var(--border-color); /* Icône discrète */
    margin-bottom: 1rem;
    font-size: 3rem;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .section-header-banner {
        height: 180px !important; /* Hauteur réduite sur mobile */
    }
    
    .section-header-banner h1 {
        font-size: 1.8rem;
    }

    /* Layout des filtres sur mobile */
    .d-flex.flex-column.flex-md-row {
        align-items: stretch !important; /* Pleine largeur */
    }
    
    .bg-light.border {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 1rem;
    }
    
    /* Grille produits mobile (2 colonnes serrées) */
    .row.g-4 {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }
}

/* ==========================================================================
   7. CART PAGE (PANIER OPTIMISÉ)
   ========================================================================== */

/* --- Page Layout --- */
.cart-page .page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

/* --- Empty State --- */
#empty-cart-message {
    font-size: 1.2rem;
    background-color: var(--bg-card); /* Fond dynamique */
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-card);
    padding: 3rem;
}

#empty-cart-button .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

#empty-cart-button .btn-lg:hover {
    transform: translateY(-3px);
}

/* --- Merchant Group Cards --- */
.merchant-cart-card {
    border: 1px solid var(--border-color); /* Ajout bordure subtile */
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.merchant-cart-card:hover {
    box-shadow: var(--shadow-md);
}

.merchant-cart-card .card-header {
    background-color: var(--bg-body-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.merchant-cart-card .card-title {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.shop-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.shop-link:hover {
    color: var(--primary);
}

/* --- Cart Item Rows --- */
.cart-item-row {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: background-color 0.2s;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-row:hover {
    background-color: var(--bg-body-color); /* Léger contraste au survol */
}

.cart-item-row .product-title {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-heading);
}

.product-options {
    font-size: 0.85rem;
    margin-top: 4px;
    color: var(--text-muted);
}

.product-stock-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.line-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- Quantity Controls (CORRECTIF CALCUL LARGEUR) --- */
.quantity-control {
    width: 120px; 
    height: 40px; 
    margin: 0 auto;
    
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    overflow: hidden;
    background-color: var(--bg-card);
    
    /* Flexbox strict */
    display: flex !important; 
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.quantity-control .qty-input {
    background-color: var(--bg-card);
    border: none;
    border-left: 1px solid var(--border-color); 
    border-right: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-main) !important;
    text-align: center;
    
    /* CORRECTION ICI : On laisse Flexbox calculer la largeur restante */
    flex: 1; 
    width: auto !important; 
    min-width: 0; /* Sécurité Flexbox */
    
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

.quantity-control .qty-input::-webkit-outer-spin-button,
.quantity-control .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control .btn-qty {
    background-color: var(--bg-body-color);
    border: none;
    color: var(--text-main);
    
    /* Largeur fixe pour les boutons */
    flex: 0 0 35px; 
    width: 35px !important;
    
    height: 100% !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
    z-index: 2;
}

.quantity-control .btn-qty:hover {
    background-color: var(--border-color);
    color: var(--primary);
}

/* --- Order Summary (Sticky) --- */
.order-summary-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    z-index: 100; 
    position: sticky;
    top: 100px;
}

.order-summary-card .card-title {
    font-weight: 800;
    color: var(--text-main);
    border-bottom: 2px solid var(--bg-body-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.order-summary-card .final-total-amount {
    color: var(--primary) !important; 
    font-weight: 800;
    font-size: 1.5rem;
}

#total-articles-value, 
#total-delivery-value {
    color: var(--text-main);
}

#promo-discount-value {
    color: var(--accent); /* Rouge promo dynamique */
}

/* --- Promo & Delivery Blocks --- */
.promo-code-block {
    background-color: var(--bg-body-color);
    border-radius: var(--radius-input);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.promo-code-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
}

.apply-promo-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* --- Modals (Guest Checkout) --- */
.modal-content {
    border-radius: 16px; /* Ou var(--radius-card) selon préférence */
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 800;
    color: var(--text-main);
}

.modal-body {
    padding: 2rem;
    background-color: var(--bg-card);
    color: var(--text-main);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: var(--bg-body-color);
    border-radius: 0 0 16px 16px;
}

/* ==========================================================================
   MOBILE CART OPTIMIZATION (GRID LAYOUT PRO)
   ========================================================================== */
@media (max-width: 768px) {
    .cart-item-row {
        padding: 1rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .cart-item-row > .row {
        display: grid;
        /* Colonnes : Checkbox (30px) | Image (90px) | Espace | Contenu */
        grid-template-columns: 30px 90px 1fr; 
        /* Lignes : Titre | Info | Prix | Quantité */
        grid-template-rows: auto auto auto auto;
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
        position: relative;
    }

    /* 1. Checkbox */
    .cart-item-row > .row > div:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: center;
        width: auto !important;
        display: flex;
        justify-content: center;
    }

    /* 2. Image */
    .cart-item-row > .row > div:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / span 4;
        width: auto !important;
        align-self: start;
    }
    .cart-item-row .col-2 img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: var(--radius-input); /* Cohérence */
        border: 1px solid var(--border-color);
        background-color: #fff; /* Toujours blanc pour l'image */
    }

    /* 3. Titre */
    .cart-item-row > .row > div:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
        width: 100% !important;
        padding-right: 35px; /* Place pour le bouton supprimer */
        text-align: left !important;
        align-self: start;
    }
    .cart-item-row .product-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Info Stock / Options */
    .product-stock-status {
        grid-column: 3;
        grid-row: 2;
        font-size: 0.8rem;
        margin-bottom: 4px;
        display: block;
        color: var(--text-muted);
    }

    /* 4. Prix */
    .cart-item-row > .row > div:nth-child(5) {
        grid-column: 3;
        grid-row: 3;
        width: 100% !important;
        text-align: left !important;
    }
    .line-total {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary);
        margin: 4px 0;
    }

    /* 5. Quantité */
    .cart-item-row > .row > div:nth-child(4) {
        grid-column: 3;
        grid-row: 4;
        width: auto !important;
        display: flex;
        justify-content: flex-start;
        margin-top: 5px;
    }
    .quantity-control {
        width: 110px;
        height: 36px;
        margin: 0;
    }

    /* 6. Bouton Supprimer (Absolu Haut Droite) */
    .cart-item-row > .row > div:nth-child(6) {
        position: absolute;
        top: 1;
        right: 0;
        width: auto !important;
        padding: 0;
        z-index: 5;
    }
    .cart-item-row .btn-remove {
        /* Style subtil rouge */
        border: 1px solid rgba(220, 53, 69, 0.2);
        background: rgba(220, 53, 69, 0.05);
        color: #dc3545; /* On garde le rouge danger ici, c'est sémantique */
        
        padding: 6px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-btn);
        font-size: 1rem;
        transition: all 0.2s;
    }
    .cart-item-row .btn-remove:active {
        background: #dc3545;
        color: #fff;
    }
    /* 1. On pousse le contenu du footer vers le haut */
    .modal-footer {
        /* Hauteur de la barre (65px) + Espace de confort (15px) */
        padding-bottom: 80px !important; 
        
        /* Gestion de la "Safe Area" pour les iPhone récents (Barre noire en bas) */
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        
        /* On s'assure que le bouton prend toute la largeur pour être facile à cliquer */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* 2. On force le bouton à être large (Optionnel mais recommandé sur mobile) */
    .modal-footer .btn {
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
    }

    /* 3. ALTERNATIVE : Si vous préférez que la modale passe PAR-DESSUS la barre du bas */
    /* Décommentez ces lignes si vous voulez cacher la barre du bas quand la modale est ouverte */
    /*
    .modal {
        z-index: 2100 !important; 
    }
    .modal-backdrop {
        z-index: 2090 !important;
    }
    */
}

/* ==========================================================================
   9. CONTACT & PAGES LÉGALES (OPTIMISÉ DARK MODE)
   ========================================================================== */

/* --- CONTACT PAGE (STRUCTURE) --- */
.contact-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 2rem;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Info Card (Coordonnées) --- */
.contact-info-card {
    background-color: var(--bg-card); /* Fond dynamique */
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.contact-info-card .card-title {
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

/* Icônes Rondes */
.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.icon-box i { font-size: 1.5rem; }

.icon-box:hover {
    background-color: var(--primary);
    color: #fff;
}

.contact-info-card a {
    transition: color 0.2s ease;
    color: var(--text-main);
    text-decoration: none;
}

.contact-info-card a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --- Social Buttons (Contact Page) --- */
.contact-info-card .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.contact-info-card .btn-outline-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important; /* Force le blanc */
    transform: translateY(-2px);
}

/* --- Formulaire de Contact --- */
.contact-form-card {
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.contact-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-bottom: none;
    color: #fff;
    padding: 1.5rem;
}

.contact-form-card .card-body {
    background-color: var(--bg-card); /* MODIFICATION : Fond dynamique */
    padding: 2rem;
}

.contact-form-card .form-control {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-input);
    border: 1px solid var(--border-color);
    background-color: var(--bg-body-color); /* Contraste vs bg-card */
    color: var(--text-main);
    transition: all 0.2s ease;
}

.contact-form-card .form-control:focus {
    background-color: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.contact-submit-btn {
    border-radius: var(--radius-btn);
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.8rem 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ==========================================================================
   CONTACT BLOCK COMPONENT (Map & Address)
   ========================================================================== */
.merchant-contact {
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-address {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.map-container {
    border-radius: var(--radius-card);
    overflow: hidden;
    background-color: var(--bg-body-color);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 300px;
}

/* ==========================================================================
   PAGES LÉGALES (Text Content)
   ========================================================================== */
.card-body.text-secondary {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main) !important; /* Meilleur contraste */
    text-align: left;
    background-color: var(--bg-card); /* Fond dynamique */
}

.card-body.text-secondary strong,
.card-body.text-secondary b {
    color: var(--text-main);
    font-weight: 700;
}

.card-body.text-secondary h1,
.card-body.text-secondary h2,
.card-body.text-secondary h3 {
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.card-body.text-secondary a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-body.text-secondary a:hover {
    color: var(--secondary);
    text-decoration: none;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info-card .card-body, 
    .contact-form-card .card-body {
        padding: 1.5rem !important;
    }

    .map-container iframe {
        height: 250px;
    }
    
    .merchant-contact {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   8. THANK YOU / ORDER CONFIRMATION PAGE (OPTIMISÉ)
   ========================================================================== */

/* --- Page Layout --- */
.thank-you-page {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-section {
    background-color: var(--bg-card); /* Fond dynamique */
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem !important;
    border: var(--border-width) solid var(--border-color);
}

/* --- Typography & Icons --- */
.page-title-confirmation {
    color: #198754; /* Succès universel */
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.page-title-confirmation i {
    display: block;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #198754;
    animation: scaleIn 0.5s var(--ease-base);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.section-subtitle {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--bg-body-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    font-family: var(--font-heading);
}

/* --- Order Details Card --- */
.order-details-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background-color: var(--bg-body-color);
    box-shadow: none !important;
}

.card-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.order-details-list .list-group-item {
    background-color: transparent;
    border-color: var(--border-color);
    padding: 0.75rem 0;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-main);
}

.order-details-list .list-group-item strong {
    color: var(--text-muted);
}

/* --- Status Badges --- */
.order-status-badge {
    padding: 0.5em 0.8em;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-badge);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Couleurs statiques pour les statuts (indépendantes du thème, sémantique pure) */
.status-pending { background-color: #ffc107; color: #000; }
.status-confirmed { background-color: #0dcaf0; color: #000; }
.status-shipped { background-color: #6610f2; color: #fff; }
.status-delivered { background-color: #198754; color: #fff; }
.status-cancelled { background-color: #dc3545; color: #fff; }
.status-returned { background-color: #6c757d; color: #fff; }
.status-exceeded { background-color: #212529; color: #ffc107; border: 1px solid #ffc107; }

/* --- Cost Summary --- */
.cost-summary-item {
    font-size: 1rem;
    color: var(--text-main);
}

.promo-discount-row {
    background-color: rgba(220, 53, 69, 0.05); /* Rouge léger pour remise */
    padding: 0.5rem;
    border-radius: var(--radius-input);
}

/* Bloc Total Final (Dynamique) */
.final-total-row {
    background-color: var(--primary); /* S'adapte au thème */
    color: #ffffff; /* Force le texte blanc sur fond coloré */
    padding: 1.5rem;
    border-radius: var(--radius-card);
    margin-top: 1rem;
    /* Ombre colorée dynamique */
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.final-total-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff !important;
}

.final-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important; 
}

/* --- Merchant Sub-orders --- */
.merchant-suborder-details {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary); /* Bordure gauche colorée */
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
}

.suborder-shop-title {
    font-size: 1.1rem;
    color: var(--text-main);
}

.shop-name-highlight {
    color: var(--primary);
}

.suborder-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.suborder-total-amount {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
}

/* --- Items Table (Responsive) --- */
.ordered-items-table th {
    background-color: var(--bg-body-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ordered-items-table td {
    vertical-align: middle;
    color: var(--text-main);
}

.variant-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Blurring logic for Limit Exceeded --- */
.blurred-content {
    filter: blur(4px);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.blur-overlay-message {
    border: 2px solid #ffc107;
    background-color: #fff3cd; /* Jaune warning */
    color: #856404;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 10;
    position: relative;
    border-radius: var(--radius-card);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-title-confirmation {
        font-size: 1.8rem;
    }
    
    .page-title-confirmation i {
        font-size: 3rem;
    }

    .order-details-list .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .final-total-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Mode "Carte" pour le tableau sur mobile */
    .ordered-items-table thead {
        display: none;
    }

    .ordered-items-table, 
    .ordered-items-table tbody, 
    .ordered-items-table tr, 
    .ordered-items-table td {
        display: block;
        width: 100%;
    }

    .ordered-items-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-card);
        overflow: hidden;
        background-color: var(--bg-card);
    }

    .ordered-items-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    .ordered-items-table td:last-child {
        border-bottom: none;
    }

    .ordered-items-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--text-muted);
        text-align: left;
        margin-right: 1rem;
    }
}

/* ==========================================================================
   9. FOOTER & NAVIGATION MOBILE (OPTIMISÉ & CORRIGÉ)
   ========================================================================== */

/* --- Footer Principal --- */
#theme-footer-override {
    /* Fond dynamique (Clair en mode jour, Sombre en mode nuit) */
    background-color: var(--bg-card); 
    border-top: 1px solid var(--border-color);
    
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}

#theme-footer-override h5,
#theme-footer-override h6 {
    color: var(--text-main);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    font-weight: 700;
}

#theme-footer-override p,
#theme-footer-override small {
    color: var(--text-muted);
}

#theme-footer-override a {
    color: var(--text-muted);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

#theme-footer-override a:hover {
    color: var(--primary);
    text-decoration: none;
    transform: translateX(3px);
    display: inline-block;
}

/* --- CORRECTIF COPYRIGHT (SOGUIFY LINK) --- */
/* On force la couleur du texte "text-white" du HTML pour qu'il soit visible sur fond clair */
#theme-footer-override .text-white {
    color: var(--text-main) !important; 
}

/* On cible spécifiquement le lien Soguify */
#theme-footer-override a.text-white {
    color: var(--primary) !important;
    font-weight: 700;
}

#theme-footer-override a.text-white:hover {
    color: var(--text-main) !important;
    text-decoration: underline;
}

/* On corrige aussi la bordure de séparation qui était blanche */
#theme-footer-override .border-secondary {
    border-color: var(--border-color) !important;
}

/* --- Social Icons --- */
.social-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    font-size: 1rem;
}

.social-icon:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

/* --- Newsletter Form --- */
#newsletter-form-footer .input-group {
    background-color: var(--bg-body-color);
    border-radius: var(--radius-input);
    padding: 2px;
    border: 1px solid var(--border-color);
}

#newsletter-form-footer .form-control {
    background-color: transparent;
    border: none;
    color: var(--text-main);
    box-shadow: none;
    font-size: 0.9rem;
}

#newsletter-form-footer .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

#newsletter-form-footer .btn-newsletter {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 0.4rem 1rem;
    transition: background-color 0.2s ease;
}

#newsletter-form-footer .btn-newsletter:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (APP STYLE)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    
    background-color: var(--bg-card); 
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: var(--z-modal);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

/* Badge Panier Mobile */
.mobile-bottom-nav .cart-icon-wrapper {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    
    background-color: var(--accent); 
    color: #ffffff;
    border: 2px solid var(--bg-card); 
    
    border-radius: 10px;
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    z-index: 2;
}

/* Espace pour ne pas cacher le footer sur mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px !important;
    }
}
