﻿/* ============================================
   OKAVEA - Styles E-commerce de Luxe
   ============================================ */

:root {
    /* B2026-08-13 v2 : theme monochrome BLANC PUR + noir
       Force : tout est blanc ou noir, AUCUN beige/cream/gris */
    --color-cream: #FFFFFF;
    --color-cream-light: #FFFFFF;
    --color-terracotta: #0F0F0F;
    --color-terracotta-dark: #000000;
    --color-charcoal: #000000;
    --color-charcoal-light: #1A1A1A;
    --color-white: #FFFFFF;
    --color-gold: #0F0F0F;
    --color-gold-light: #FFFFFF;
    --color-success: #1A7F3C;
    --color-warning: #B7791F;
    --color-error: #C0392B;
    --color-gray: #666666;
    --color-gray-light: #F5F5F5;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* B2026-08-13 v3 : look luxe, bordures plus arrondies */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* B2026-08-11: Fix coherence visuelle - les boutons heritent de la police du body (Montserrat) au lieu d'Arial par defaut du navigateur */
button,
input,
select,
textarea,
optgroup {
    font-family: inherit;
    font-size: 100%;
}

/* ============================================
   HEADER
   ============================================ */

header {
    background-color: var(--color-cream);
    padding: 1rem 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* M01 fix: header sticky pour rester visible au scroll */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-left {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.header-left a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: color var(--transition-normal);
    position: relative;
}

.header-left a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width var(--transition-normal);
}

.header-left a:hover {
    color: var(--color-terracotta);
}

.header-left a:hover::after {
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-normal);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: #000000;
}

.logo:hover {
    opacity: 0.85;
}

.header-right {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--color-charcoal);
    transition: color var(--transition-normal);
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.icon-btn:hover {
    color: var(--color-terracotta);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-terracotta);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   MAIN CONTENT & PAGES
   ============================================ */

main {
    min-height: 100vh;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-charcoal);
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
}

/* Aliwax-style: hero = image only, no text overlay.
   The user wants a clean hero showing only the slide image. */
.hero .slide-content {
    display: none !important;
}
.hero .slider-dots {
    display: none !important;
}

/* B2026-08-17 v5 : on retire le grayscale, on garde les couleurs des bannières */

.slider-container {
    position: relative;
    width: 100%;
    height: 85vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 5%;
    color: var(--color-white);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.slide.active {
    opacity: 1;
    display: flex;
}

.slide-content {
    max-width: 800px;
    z-index: 2;
}

.slide-content h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}


/* Slider Navigation */
.slider-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.slider-arrow:hover {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    border-color: var(--color-white);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    /* Expand tap target to 44x44px minimum */
    padding: 16px;
    margin: -16px;
    box-sizing: content-box;
}

.dot.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    padding: 1rem 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 15, 15, 0.3);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-charcoal);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.btn-link:hover {
    color: var(--color-terracotta);
}

/* ============================================
   CATEGORIES
   ============================================ */

.categories {
    padding: 6rem 5%;
    background-color: var(--color-cream-light);
}

/* Categories Carousel */
.categories-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.categories-scroll .category-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 250px;
    height: 300px;
    scroll-snap-align: start;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.carousel-prev {
    left: -22px;
}

.carousel-next {
    right: -22px;
}

.category-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-md);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
}

.category-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.featured-products, .products-section {
    padding: 6rem 5%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tablet - 3 columns */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablet - 2 columns */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Large phone - maintain 2 columns but reduce gap */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Mobile - 2 columns style Aliwax (PAS de 1 colonne, même sur iPhone SE 320px) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* iPhone SE / très petits écrans - 2 colonnes serrées */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-gray-light);
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-charcoal);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    opacity: 1;
}

.product-wishlist:hover,
.product-wishlist.active {
    color: var(--color-error);
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border-radius: var(--radius-sm);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.original-price {
    font-size: 0.9rem;
    color: var(--color-gray);
    text-decoration: line-through;
}

.product-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    width: auto;
    padding: 0.8rem;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-add-cart:hover {
    background-color: var(--color-terracotta);
}

.btn-discover {
    flex: 0 0 auto;
    padding: 0.8rem 1rem;
    background-color: transparent;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-discover:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

/* Bouton cœur favoris sur la carte produit */
.product-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    opacity: 0;
}

.product-card:hover .product-wishlist-btn,
.product-wishlist-btn.active,
.product-wishlist-btn:focus {
    opacity: 1;
}

.product-wishlist-btn i {
    color: var(--color-charcoal);
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-wishlist-btn:hover {
    background: var(--color-white);
    transform: scale(1.1);
}

.product-wishlist-btn:hover i {
    color: #e74c3c;
}

.product-wishlist-btn.active i {
    color: #e74c3c;
    font-weight: 900;
}

.product-wishlist-btn.active {
    background: #fff5f3;
}

/* Sur PC : cœur toujours visible (pas que hover) */
@media (min-width: 769px) {
    .product-wishlist-btn {
        opacity: 1;
    }
}

/* ============================================
   MOBILE BURGER MENU
   ============================================ */
/* Utiliser header .mobile-burger-btn (specificité 0,2,0) pour
   gagner contre .btn, button:not(.icon-btn) (0,1,1) qui impose
   position:relative sur tous les boutons. */
header .mobile-burger-btn {
    display: none;
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    /* Fix R15 2026-07-17: z-index 1002 (au-dessus du sidebar z-index 1001)
       pour rester cliquable même quand le menu latéral est ouvert. */
    z-index: 1002;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-charcoal);
    box-shadow: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.mobile-burger-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: var(--color-cream);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--color-terracotta);
    color: white;
}

.mobile-sidebar-header .logo {
    display: flex;
    align-items: center;
    color: #000000;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-sidebar-nav {
    padding: 1rem 0;
}

.mobile-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--color-charcoal);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.mobile-sidebar-nav a:hover {
    background: var(--color-cream);
}

.mobile-sidebar-nav a i {
    width: 20px;
    text-align: center;
    color: var(--color-terracotta);
}

.mobile-sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

.mobile-sidebar-section {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

/* ============================================
   SHOPIFY-STYLE SLIDING CART PANEL
   ============================================ */

.cart-slide-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-slide-panel.active {
    right: 0;
}

.cart-slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-slide-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-slide-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-slide-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0;
}

.cart-slide-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
}

.cart-slide-close:hover {
    color: var(--color-terracotta);
}

.cart-slide-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-slide-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-slide-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
}

.cart-slide-item-info {
    flex: 1;
}

.cart-slide-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-slide-item-price {
    color: var(--color-terracotta);
    font-weight: 600;
}

.cart-slide-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-slide-qty-btn {
    /* MOB-03 fix: touch target 28→44px (norme accessibilité mobile) */
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-slide-qty-btn:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.cart-slide-qty-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-slide-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-slide-item-remove:hover {
    color: var(--color-error);
}

.cart-slide-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.cart-slide-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.cart-slide-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-slide-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-slide-total span:last-child {
    color: var(--color-terracotta);
}

.cart-slide-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
}

.cart-slide-checkout:hover {
    background: var(--color-terracotta-dark);
}

.cart-slide-continue {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-slide-continue:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

/* Mobile cart panel */
@media (max-width: 480px) {
    .cart-slide-panel {
        width: 100%;
        right: -100%;
    }
    /* Boutons produit compacts sur mobile pour éviter le wrap */
    .product-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    .btn-add-cart,
    .btn-discover {
        width: 100%;
        padding: 0.65rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   MODERN LIVREUR LOGIN
   ============================================ */

.livreur-login-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-cream-light) 0%, var(--color-cream) 100%);
}

.livreur-login-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.livreur-login-logo {
    margin-bottom: 1rem;
}

.livreur-login-logo i {
    font-size: 3rem;
    color: var(--color-terracotta);
    margin-bottom: 0.5rem;
}

.livreur-login-logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-charcoal);
    margin: 0;
}

.livreur-login-card .subtitle {
    color: var(--color-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.livreur-login-card .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.livreur-login-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    font-size: 0.9rem;
}

.livreur-login-card input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.livreur-login-card input:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.livreur-login-card input::placeholder {
    color: var(--color-gray);
}

.livreur-login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.livreur-login-btn:hover {
    background: var(--color-terracotta-dark);
}

/* Mobile livreur login */
@media (max-width: 480px) {
    .livreur-login-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   STORY SECTION
   ============================================ */

.story {
    background-color: var(--color-cream);
    padding: 8rem 5%;
    text-align: center;
}

.story blockquote {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-charcoal);
    max-width: 900px;
    margin: 0 auto 2rem;
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews {
    padding: 6rem 5%;
    background-color: var(--color-cream-light);
    overflow: hidden;
}

.reviews-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.reviews-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.reviews-scroll .review-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 300px;
    scroll-snap-align: start;
    height: fit-content;
}

@media (max-width: 1024px) {
    .reviews-scroll .review-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .reviews-scroll .review-card {
        flex: 0 0 calc(100% - 0rem);
    }
}

.review-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-terracotta);
}

.review-author {
    font-weight: 600;
    color: var(--color-charcoal);
}

.review-stars {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.review-text {
    color: var(--color-charcoal-light);
    line-height: 1.7;
}

.review-photos {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.review-photo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================================
   SHOP PAGE
   ============================================ */

.shop-header {
    padding: 2rem 5% 1.5rem;
    text-align: center;
    background-color: var(--color-cream-light);
}

.shop-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-charcoal);
}

/* Barre de recherche avec icône loupe intégrée */
.shop-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto 1rem;
}
.shop-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    font-size: 0.95rem;
    pointer-events: none;
}
.shop-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 1.5px solid transparent;
    border-radius: 28px;
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-charcoal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-search-input::placeholder {
    color: #999;
}
.shop-search-input:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 2px 12px rgba(15, 15, 15, 0.15);
}

/* Toolbar : sort + filtres */
.shop-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.shop-sort-select {
    padding: 0.55rem 2rem 0.55rem 1rem;
    border: 1.5px solid var(--color-gray-light, #e0e0e0);
    border-radius: 28px;
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-charcoal);
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A1A1A'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px;
}
.shop-sort-select:focus {
    outline: none;
    border-color: var(--color-terracotta);
}
.shop-filter-btn {
    padding: 0.55rem 1rem;
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-light, #e0e0e0);
    border-radius: 28px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-charcoal);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}
.shop-filter-btn:hover {
    border-color: var(--color-charcoal);
}
.shop-filter-btn.active {
    background: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
}

.advanced-filters-panel {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1rem 0;
}

.advanced-filters-panel.active {
    display: block;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.filter-group input,
.filter-group select {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.filter-reset {
    padding: 0.6rem 1rem;
    background: #eee;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.filter-apply {
    padding: 0.6rem 1.5rem;
    background: var(--color-terracotta);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.shop-pagination {
    text-align: center;
    padding: 2rem 5%;
}

.btn-load-more {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(15, 15, 15, 0.3);
}

.btn-load-more:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 15, 15, 0.4);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   PRODUCT DETAIL - RESPONSIVE DESIGN
   ============================================ */

.product-detail-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    animation: fadeIn 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button */
.product-detail-wrapper .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--color-charcoal);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
}

.product-detail-wrapper .back-btn:hover {
    color: var(--color-terracotta);
}

/* Product Detail Content - Mobile First (Single Column) */
.product-detail-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.product-detail-left {
    width: 100%;
    padding: 0;
    animation: slideUp 0.5s ease-out 0.2s both;
}

.product-detail-right {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    animation: slideUp 0.5s ease-out 0.3s both;
}

.product-detail-category {
    font-size: 0.8rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

/* Wishlist Button in Detail */
.wishlist-btn-detail {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--color-charcoal);
    padding: 0.25rem;
    flex-shrink: 0;
    transition: color 0.3s, transform 0.3s;
}

.wishlist-btn-detail:hover,
.wishlist-btn-detail.active {
    color: var(--color-error);
    transform: scale(1.1);
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-terracotta);
    margin-bottom: 0.5rem;
}

.product-detail-original {
    font-size: 1rem;
    color: var(--color-gray);
    text-decoration: line-through;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: var(--color-charcoal-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-success);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Quantity Selector */
.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-quantity label {
    font-weight: 500;
    color: var(--color-charcoal);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-light);
    border-radius: 14px;
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-selector button:hover {
    background: var(--color-gray-light);
}

.quantity-selector span {
    width: 50px;
    text-align: center;
    font-weight: 600;
}

/* Action Buttons - Large and Easy to Tap */
.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-detail-actions $116px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-detail-actions .btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

.btn-whatsapp-product {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #25D366;
    color: var(--color-white);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: auto;
}

.btn-whatsapp-product:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Share Button */
.btn-share-product {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-charcoal);
    color: var(--color-white);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: auto;
    margin-top: 0.75rem;
}

.btn-share-product:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Info Items */
.product-detail-info {
    padding: 1rem 1.5rem;
    background: var(--color-cream-light);
    border-radius: 14px;
    margin-top: 1rem;
}

.product-detail-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--color-charcoal);
    font-size: 0.9rem;
}

.product-detail-info .info-item:not(:last-child) {
    border-bottom: 1px solid var(--color-gray-light);
}

.product-detail-info .info-item i {
    color: var(--color-terracotta);
    font-size: 1rem;
    width: 20px;
}

/* ============================================
   PRODUCT DETAIL — breadcrumb, rating, tabs
   ============================================ */

/* Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-gray-dark, #888);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}
.product-breadcrumb a {
    color: var(--color-gray-dark, #888);
    text-decoration: none;
    transition: color 0.2s;
}
.product-breadcrumb a:hover { color: var(--color-terracotta, #0F0F0F); }
.product-breadcrumb .breadcrumb-sep { font-size: 0.7rem; opacity: 0.5; }
.product-breadcrumb .breadcrumb-current {
    color: var(--color-charcoal, #333);
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Rating row dans la page produit */
.product-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
}
.product-rating-stars { color: #f5a623; font-size: 0.95rem; letter-spacing: 1px; }
.product-rating-stars-big { font-size: 1.3rem; }
.product-rating-stars i { margin-right: 1px; }
.product-rating-value {
    font-weight: 600;
    color: var(--color-charcoal, #333);
    font-size: 0.95rem;
}
.product-rating-count {
    color: var(--color-gray-dark, #888);
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
}
.product-rating-count:hover { color: var(--color-terracotta, #0F0F0F); }

/* Badge stock prominent */
.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 32px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: auto;
}
.product-stock-badge.in-stock { background: #e6f7ec; color: #1e8e3e; }
.product-stock-badge.out-of-stock { background: #fde7e9; color: #c5221f; }
.product-stock-badge i { font-size: 0.85rem; }

.product-stock-count {
    display: block;
    font-size: 0.82rem;
    color: #1e8e3e;
    margin: 0.5rem 0 0;
}

/* Bouton wishlist dans la page produit (à côté du add-to-cart) */
.product-detail-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.6rem;
    align-items: stretch;
}
.product-detail-actions .btn-primary {
    flex: 1;
    width: auto;
}
.btn-wishlist-detail {
    flex: 0 0 56px;
    width: 56px;
    border: 2px solid var(--color-charcoal, #333);
    background: var(--color-white);
    border-radius: 14px;
    color: var(--color-charcoal, #333);
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-wishlist-detail:hover { background: var(--color-charcoal, #333); color: #fff; }
.btn-wishlist-detail.active { background: #fff5f3; border-color: #e74c3c; color: #e74c3c; }

/* Secondary actions row (whatsapp + share) */
.product-detail-secondary-actions {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.product-detail-secondary-actions button {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.btn-whatsapp-product { background: #25D366; color: #fff; }
.btn-whatsapp-product:hover { background: #128C7E; transform: translateY(-1px); }
.btn-share-product { background: var(--color-gray-light, #f0f0f0); color: var(--color-charcoal, #333); }
.btn-share-product:hover { background: var(--color-charcoal, #333); color: #fff; transform: translateY(-1px); }

/* Discount pill à côté du prix barré */
.discount-pill {
    display: inline-block;
    background: var(--color-terracotta, #0F0F0F);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Tabs Description / Avis */
.product-tabs {
    margin: 3rem 0 2rem;
    background: var(--color-white, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--color-gray-light, #f0f0f0);
    background: var(--color-white, #fff);
}
.product-tab-btn {
    flex: 1;
    padding: 1.1rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-dark, #888);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    position: static;
}
.product-tab-btn i { font-size: 0.9rem; }
.product-tab-btn:hover { color: var(--color-charcoal, #333); }
.product-tab-btn.active {
    color: var(--color-terracotta, #0F0F0F);
    border-bottom-color: var(--color-terracotta, #0F0F0F);
    font-weight: 600;
}
.product-tab-count {
    background: var(--color-gray-light, #f0f0f0);
    color: var(--color-charcoal, #333);
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 32px;
    font-weight: 600;
}
.product-tab-btn.active .product-tab-count {
    background: var(--color-terracotta, #0F0F0F);
    color: #fff;
}
.product-tabs-content { padding: 2rem 1.5rem; }
.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }
.product-tab-panel p { color: var(--color-charcoal, #333); line-height: 1.7; margin: 0; }

/* Reviews summary dans l'onglet */
.product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-light, #f0f0f0);
}
.product-rating-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-charcoal, #333);
    line-height: 1;
}
.product-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.product-review-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light, #f0f0f0);
}
.product-review-item:last-child { border-bottom: none; }
.product-review-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-terracotta, #0F0F0F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}
.product-review-body { flex: 1; }
.product-review-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.product-review-head strong { color: var(--color-charcoal, #333); }
.product-review-stars { color: #f5a623; font-size: 0.85rem; letter-spacing: 1px; }
.product-review-date { color: var(--color-gray-dark, #888); font-size: 0.78rem; margin-left: auto; }
.product-review-text {
    color: var(--color-charcoal, #333);
    line-height: 1.6;
    margin: 0;
    font-size: 0.92rem;
}
.product-no-reviews {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-gray-dark, #888);
}
.product-no-reviews i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; opacity: 0.4; }
.product-no-reviews p { margin: 0; }

/* Mobile adjustments pour la page produit */
@media (max-width: 640px) {
    .product-breadcrumb { font-size: 0.78rem; }
    .product-rating-row { gap: 0.5rem; }
    .product-rating-stars { font-size: 0.85rem; }
    .product-stock-badge { margin-left: 0; font-size: 0.72rem; }
    .product-detail-actions { gap: 0.5rem; }
    .btn-wishlist-detail { flex: 0 0 50px; width: 50px; }
    .product-detail-secondary-actions { flex-direction: column; }
    .product-tabs-content { padding: 1.5rem 1rem; }
    .product-reviews-summary { gap: 1rem; }
    .product-rating-big { font-size: 2.2rem; }
}

/* Similar Products */
.similar-products {
    padding: 2rem 1.5rem;
    background: var(--color-cream-light);
    margin-top: 2rem;
}

.similar-products h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ============================================
   DESKTOP (PC) - Two Columns with Sticky Image
   ============================================ */
@media (min-width: 1024px) {
    .product-detail-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem 5%;
    }

    .product-detail-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        min-height: 70vh;
    }

    /* Sticky Image */
    .product-detail-left {
        position: sticky;
        top: 100px;
        height: fit-content;
        transition: transform 0.3s ease;
    }

    .product-zoom-container {
        height: 500px;
        border-radius: 16px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-zoom-container:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }

    .product-thumbnails {
        padding: 1.5rem 0;
    }

    /* Centered Info */
    .product-detail-right {
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-detail-name {
        font-size: 2.2rem;
    }

    .product-detail-price {
        font-size: 2.5rem;
    }

    .product-detail-description {
        font-size: 1rem;
    }

    .product-detail-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .product-detail-actions .btn-primary,
    .btn-whatsapp-product,
    .btn-share-product {
        flex: 1;
        width: auto;
    }

    .similar-products {
        padding: 3rem 5%;
    }
}

/* ============================================
   AMAZON-STYLE PRODUCT PAGE
   ============================================ */

.amazon-layout {
    display: grid;
    grid-template-columns: 50% 35% 15%;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.amazon-images {
    padding-right: 2rem;
}

.amazon-main-image {
    margin-bottom: 1rem;
}

.amazon-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amazon-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.amazon-thumbnails .thumbnail:hover,
.amazon-thumbnails .thumbnail.active {
    border-color: var(--color-terracotta);
}

.amazon-info {
    padding-right: 2rem;
}

.amazon-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #0F1111;
}

.amazon-brand {
    color: #565959;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.amazon-brand a {
    color: #007185;
    text-decoration: none;
}

.amazon-brand a:hover {
    color: #C7511F;
    text-decoration: underline;
}

.amazon-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.amazon-rating .stars {
    color: #FFA41C;
    font-size: 1.1rem;
}

.amazon-rating a {
    color: #007185;
    font-size: 0.9rem;
    text-decoration: none;
}

.amazon-rating a:hover {
    color: #C7511F;
}

.amazon-price-section {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.amazon-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #B12704;
}

.amazon-original-price {
    font-size: 1rem;
    color: #565959;
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.amazon-discount {
    background: #B12704;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.amazon-delivery {
    margin: 1rem 0;
    color: #565959;
    font-size: 0.95rem;
}

.amazon-delivery i {
    color: var(--color-terracotta);
}

.amazon-stock {
    margin: 1rem 0;
}

.amazon-stock .in-stock {
    color: #007600;
    font-weight: 500;
}

.amazon-stock .out-stock {
    color: #B12704;
    font-weight: 500;
}

.amazon-features {
    margin: 1.5rem 0;
}

.amazon-features h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0F1111;
}

.amazon-features ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: #565959;
}

.amazon-features li {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Buy Box */
.amazon-buy {
    padding-left: 1rem;
    border-left: 1px solid #ddd;
}

.amazon-buy-box {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 1.5rem;
    background: #fff;
}

.amazon-price-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: #B12704;
    margin-bottom: 0.5rem;
}

.amazon-savings {
    color: #007600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.amazon-delivery-date {
    font-size: 0.9rem;
    margin: 1rem 0;
    color: #0F1111;
}

.amazon-quantity {
    margin: 1rem 0;
}

.amazon-quantity label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #0F1111;
}

.amazon-quantity select {
    padding: 6px 12px;
    border: 1px solid #888;
    border-radius: 8px;
    font-size: 0.9rem;
}

.amazon-btn-cart {
    width: 100%;
    padding: 10px;
    margin: 0.5rem 0;
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.amazon-btn-cart:hover {
    background: #F7CA00;
}

.amazon-btn-buy {
    width: 100%;
    padding: 10px;
    margin: 0.5rem 0;
    background: #FFA41C;
    border: 1px solid #FF8F00;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111;
    transition: all 0.2s;
}

.amazon-btn-buy:hover {
    background: #FF8F00;
}

.amazon-secure {
    font-size: 0.8rem;
    color: #565959;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.amazon-btn-whatsapp {
    width: 100%;
    padding: 10px;
    margin: 0.5rem 0;
    background: #25D366;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.amazon-btn-whatsapp:hover {
    background: #20BD5A;
}

/* Responsive */
@media (max-width: 1024px) {
    .amazon-layout {
        grid-template-columns: 1fr 1fr;
    }

    .amazon-buy {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .amazon-layout {
        grid-template-columns: 1fr;
    }

    .amazon-images,
    .amazon-info,
    .amazon-buy {
        padding-right: 0;
        padding-left: 0;
    }

    .amazon-title {
        font-size: 1.4rem;
    }
}

.back-btn {
    background: none;
    border: none;
    color: var(--color-charcoal);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--color-terracotta);
}

.product-main-image {
    margin-bottom: 1rem;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.product-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
    border-color: var(--color-terracotta);
}

.similar-products {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
    overflow: hidden;
}

.similar-products h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
}

.similar-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.similar-products .product-card {
    max-width: 100%;
    overflow: hidden;
}

.similar-products .product-card .product-image {
    max-width: 100%;
    overflow: hidden;
}

.similar-products .product-card .product-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.product-zoom-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    background-color: var(--color-white);
}

.product-zoom-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail-category {
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wishlist-btn-detail {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-charcoal);
    transition: all 0.3s ease;
    padding: 0.5rem;
    flex-shrink: 0;
}

.wishlist-btn-detail:hover,
.wishlist-btn-detail.active {
    color: var(--color-error);
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-terracotta);
    margin-bottom: 0.5rem;
}

.product-detail-original {
    font-size: 1.2rem;
    color: var(--color-gray);
    text-decoration: line-through;
    margin-bottom: 1.5rem;
}

.product-detail-description {
    color: var(--color-charcoal-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-detail-quantity label {
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--color-cream-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.quantity-selector button:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
}

.quantity-selector span {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-detail-actions .btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 2rem;
    font-size: 1rem;
}

.product-detail-actions .btn-secondary {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.btn-whatsapp-product {
    width: 100%;
    padding: 1rem;
    background-color: #25D366;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-whatsapp-product:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.product-detail-info {
    background-color: var(--color-cream-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.product-detail-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.product-detail-info .info-item:last-child {
    border-bottom: none;
}

.product-detail-info .info-item i {
    color: var(--color-terracotta);
    font-size: 1.2rem;
    width: 24px;
}

@media (max-width: 768px) {
    .product-detail-left {
        position: static;
    }

    .product-zoom-container {
        height: 300px;
    }
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

#page-cart .whatsapp-float,
#page-checkout .whatsapp-float,
.cart-slide-panel.active ~ .whatsapp-float,
#cart-slide-panel.active ~ .whatsapp-float {
    display: none !important;
}

.cart-container h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-cream);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.cart-item-price {
    color: var(--color-terracotta);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    background: var(--color-cream);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-btn {
    /* MOB-03 fix: touch target 32→44px (norme accessibilité mobile) */
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-cream);
    color: var(--color-charcoal);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.quantity-btn:hover {
    background: var(--color-terracotta);
    color: white;
}

.quantity-value {
    width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-remove {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--color-gray-light);
    color: var(--color-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-normal);
}

.cart-item-remove:hover {
    background: var(--color-error);
    border-color: var(--color-error);
    color: white;
}

.cart-summary {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.promo-code {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.promo-code input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.promo-code button {
    padding: 0.8rem 1.5rem;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.promo-code button:hover {
    background-color: var(--color-terracotta);
}

.cart-total .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.cart-total .total-row.total-final {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-terracotta);
    padding-top: 1rem;
}

.btn-checkout {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1rem;
}

/* Desktop cart layout */
@media (min-width: 768px) {
    .cart-item {
        grid-template-columns: 100px 1fr auto auto auto;
        align-items: center;
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .cart-item-details {
        gap: 0.25rem;
    }

    .cart-item-name {
        font-size: 1.1rem;
    }

    .cart-item-actions {
        margin-top: 0;
    }

    .cart-item-subtotal {
        display: block;
        font-weight: 700;
        color: var(--color-charcoal);
        min-width: 90px;
        text-align: right;
    }

    .cart-item-price {
        min-width: 90px;
    }

    .cart-summary {
        max-width: 400px;
        margin-left: auto;
        padding: 2rem;
    }
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.checkout-container {
    padding: 4rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.checkout-container h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h2 i {
    color: var(--color-terracotta);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background-color: var(--color-cream-light);
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.order-total-preview {
    background: var(--color-gray-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.order-total-preview span {
    color: var(--color-terracotta);
    font-weight: bold;
}

.btn-gps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-terracotta, #0F0F0F);
    color: #fff;
    border: none;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal, 0.2s);
}
.btn-gps:hover:not(:disabled) {
    background-color: var(--color-terracotta-dark, #000000);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 15, 15, 0.25);
}
.btn-gps:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-gps i {
    font-size: 1rem;
}

/* [Stripe 2026-07-30] Bouton "Détecter ma position" — version 2 */
.btn-gps-v2 {
    position: relative;
    overflow: hidden;
}
.btn-gps-v2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-gps-v2:hover::before {
    width: 200px;
    height: 200px;
}
.btn-gps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.btn-gps:hover:not(:disabled) {
    background-color: var(--color-terracotta);
}
.btn-gps:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-gps i { font-size: 1rem; }

.gps-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-success);
    min-height: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.gps-status i { font-size: 1.05rem; }

.gps-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.85rem;
    background-color: #4285F4;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.15s;
}
.gps-maps-link:hover {
    background-color: #1a73e8;
    color: #fff;
    transform: translateY(-1px);
}
.gps-maps-link i { font-size: 0.85rem; }

.form-hint {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 0.75rem;
}

#map-container {
    margin-bottom: 1rem;
    position: relative;
}

#location-map {
    height: 300px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-gray-light);
    z-index: 1;
}

.map-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    color: #333;
    transition: all 0.2s;
}

.map-fullscreen-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

#map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#map-container.fullscreen #location-map {
    flex: 1;
    height: auto;
    border-radius: 14px;
}

#map-container.fullscreen .map-fullscreen-btn {
    top: 20px;
    right: 20px;
    background: #fff;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

.map-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-gray-light);
    color: var(--color-charcoal);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--color-gray);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.payment-option:hover {
    border-color: var(--color-terracotta);
}

.payment-option.selected {
    border-color: var(--color-terracotta);
    background-color: rgba(15, 15, 15, 0.05);
}

.payment-option input {
    display: none;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.payment-content i {
    font-size: 1.5rem;
    color: var(--color-terracotta);
    width: 40px;
    text-align: center;
}

.payment-content strong {
    display: block;
    margin-bottom: 0.2rem;
}

.payment-content span {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* ============================================
   ORDER TRACKING
   ============================================ */

.tracking-container {
    padding: 4rem 5%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tracking-container h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.tracking-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tracking-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.tracking-form button {
    padding: 1rem 2rem;
    background-color: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.tracking-form button:hover {
    background-color: var(--color-terracotta-dark);
}

.tracking-result {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.tracking-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracking-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-left: 2px solid var(--color-gray-light);
    position: relative;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.2rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-gray-light);
}

.tracking-step.completed::before {
    background-color: var(--color-success);
}

/* Order Confirmation Styles */
.tracking-success {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-success), #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.tracking-success h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.order-confirmed-text {
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.delivery-code-box {
    background: linear-gradient(135deg, var(--color-terracotta), #c2410c);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.delivery-code-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.code-instruction {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.code-display {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    background: rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 1rem;
}

.code-order-id {
    font-size: 1rem;
    opacity: 0.9;
}

.code-order-id span {
    font-weight: 600;
}

.order-summary {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-gray-light);
    border-radius: var(--radius-sm);
}

.order-summary h4 {
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.tracking-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tracking-actions .btn-secondary {
    background-color: var(--color-gray);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color var(--transition-normal);
}

.tracking-actions .btn-secondary:hover {
    background-color: var(--color-charcoal);
}

.contact-info-box {
    border-top: 1px solid var(--color-gray-light);
    padding-top: 1.5rem;
}

.contact-info-box h4 {
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.contact-info-box p {
    color: var(--color-gray);
}

.tracking-step.current::before {
    background-color: var(--color-terracotta);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 15, 15, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(15, 15, 15, 0); }
}

.tracking-step-content h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tracking-step-content p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* ============================================
   WISHLIST
   ============================================ */

.wishlist-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
    background: var(--color-cream);
}

.wishlist-container h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-charcoal);
}

.wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ============================================
   ACCOUNT / AUTH
   ============================================ */

.account-container {
    padding: 4rem 5%;
    max-width: 500px;
    margin: 0 auto;
}

.account-container h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-gray);
    transition: all var(--transition-normal);
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--color-terracotta);
    border-bottom-color: var(--color-terracotta);
}

.auth-form {
    display: none;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-menu button {
    padding: 1rem 1.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.account-menu button:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

/* Account Header */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.account-user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-terracotta);
}

.account-user-details h2 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.account-user-details p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.account-header .btn-secondary {
    background: var(--color-white);
    color: var(--color-terracotta);
}

/* Account Tabs */
.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-gray-light);
    padding-bottom: 0;
    overflow-x: auto;
}

.account-tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray);
    white-space: nowrap;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-tab:hover {
    color: var(--color-terracotta);
}

.account-tab.active {
    color: var(--color-terracotta);
    border-bottom-color: var(--color-terracotta);
}

.account-tab i {
    font-size: 1.1rem;
}

/* Account Sections */
.account-section {
    display: none;
}

.account-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-charcoal);
}

.section-header p {
    color: var(--color-gray);
    margin: 0;
}

.section-header .btn-primary {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.order-id {
    font-weight: 600;
    color: var(--color-charcoal);
}

.order-date {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.order-status {
    padding: 0.35rem 0.75rem;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.order-status.processing {
    background: #CCE5FF;
    color: #004085;
}

.order-status.shipped {
    background: #D4EDDA;
    color: #155724;
}

.order-status.delivered {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.order-status.cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.order-item-name {
    color: var(--color-charcoal);
}

.order-item-qty {
    color: var(--color-gray);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-light);
}

.order-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.order-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.no-orders {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray);
}

.no-orders i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-gray-light);
}

/* Addresses Grid */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.address-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
}

.address-card.default {
    border-color: var(--color-terracotta);
}

.address-card.default::before {
    content: 'Par défaut';
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-type {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-details {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.address-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.no-addresses {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray);
}

.no-addresses i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-gray-light);
}

/* Address Form */
.address-form {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.address-form h3 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.wishlist-item {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-image {
    height: 150px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.wishlist-info {
    padding: 1rem;
}

.wishlist-name {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.wishlist-price {
    color: var(--color-terracotta);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.wishlist-actions {
    display: flex;
    gap: 0.5rem;
}

.wishlist-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.no-wishlist {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray);
}

.no-wishlist i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-gray-light);
}

/* Settings Groups */
.settings-group {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-group h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-group h3 i {
    color: var(--color-terracotta);
}

.setting-toggle {
    margin-bottom: 1rem;
}

.setting-toggle label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-charcoal);
}

.setting-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-terracotta);
}

.setting-toggle p {
    margin: 0.25rem 0 0 2.25rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.danger-zone {
    border-color: var(--color-error);
}

.danger-zone h3 {
    color: var(--color-error);
}

.danger-zone h3 i {
    color: var(--color-error);
}

.danger-zone p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition-normal);
}

.btn-danger:hover {
    background: #c82333;
}

/* Profile Edit Form */
.profile-edit-form {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 600px;
}

/* Account Footer */
.account-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
}

.btn-logout {
    background: transparent;
    color: var(--color-error);
    border: 2px solid var(--color-error);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all var(--transition-normal);
}

.btn-logout:hover {
    background: var(--color-error);
    color: var(--color-white);
}

/* ============================================
   MOBILE-FIRST ACCOUNT DASHBOARD
   ============================================ */

#account-dashboard {
    display: none;
    padding: 0;
}

#account-dashboard.active {
    display: block;
}

/* Mobile Account Header */
.mobile-account-header {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    padding: 1.5rem;
    color: white;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mobile-user-info h2 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.mobile-user-info p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

/* Quick Links Grid */
.mobile-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
}

.mobile-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: var(--color-charcoal);
    border-radius: var(--radius-md);
    transition: background var(--transition-normal);
    position: relative;
}

.mobile-link-card:active {
    background: var(--color-cream);
}

.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-terracotta);
}

.mobile-link-card span {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.link-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--color-terracotta);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 16px;
    font-weight: 600;
}

/* Mobile Section */
.mobile-section {
    padding: 1rem;
    background: var(--color-white);
    margin-top: 0.5rem;
}

.mobile-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-section .section-title h3 {
    font-size: 1rem;
    margin: 0;
}

.mobile-section .section-title a {
    color: var(--color-terracotta);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Actions */
.mobile-actions {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mobile-action-btn.logout {
    color: var(--color-error);
    border-color: var(--color-error);
}

.mobile-action-btn.logout:active {
    background: var(--color-error);
    color: white;
}

/* Mobile Full Section (for detail views) */
.mobile-full-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-full-section.active {
    display: block;
}

.mobile-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-section-header button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-cream);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.mobile-section-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.mobile-section-actions {
    padding: 1rem;
}

.mobile-section-actions .btn-primary {
    width: 100%;
}

/* Mobile Orders List */
.mobile-orders-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-order-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mobile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.mobile-order-id {
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-order-date {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.mobile-order-status {
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-order-status.pending { background: #FFF3CD; color: #856404; }
.mobile-order-status.processing { background: #CCE5FF; color: #004085; }
.mobile-order-status.shipped { background: #D4EDDA; color: #155724; }
.mobile-order-status.delivered { background: var(--color-terracotta); color: white; }

.mobile-order-items {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 0.75rem;
}

.mobile-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-light);
}

.mobile-order-total {
    font-weight: 700;
    color: var(--color-terracotta);
}

.mobile-order-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-order-actions button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Mobile Addresses */
.mobile-addresses-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-address-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mobile-address-card.default {
    border: 2px solid var(--color-terracotta);
}

.mobile-address-default-badge {
    display: inline-block;
    background: var(--color-terracotta);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-address-text {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.mobile-address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Mobile Wishlist */
.mobile-wishlist-list {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mobile-wishlist-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mobile-wishlist-image {
    height: 120px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-wishlist-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.mobile-wishlist-info {
    padding: 0.75rem;
}

.mobile-wishlist-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.mobile-wishlist-price {
    color: var(--color-terracotta);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mobile-wishlist-actions {
    display: flex;
    gap: 0.25rem;
}

.mobile-wishlist-actions button {
    flex: 1;
    padding: 0.4rem;
    font-size: 0.75rem;
}

/* Mobile Settings */
.mobile-settings-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-settings-list .settings-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mobile-settings-list .settings-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.mobile-settings-list .settings-card.danger {
    border: 1px solid var(--color-error);
}

/* Desktop Enhancements - Hide mobile elements on desktop */
@media (min-width: 768px) {
    #mobile-dashboard-content {
        display: none !important;
    }

    .mobile-account-header,
    .mobile-quick-links,
    .mobile-section,
    .mobile-actions,
    .mobile-full-section {
        display: none !important;
    }

    #account-dashboard {
        display: grid !important;
        grid-template-columns: 280px 1fr;
        min-height: calc(100vh - 120px);
        background: var(--color-cream);
    }

    #account-dashboard.active {
        display: grid !important;
    }

    .dashboard-sidebar {
        display: flex;
    }

    .dashboard-content {
        display: block;
    }
}

/* Mobile Dashboard Styles - Only show when active */
@media (max-width: 768px) {
    .shopify-dashboard {
        display: none;
        min-height: auto;
        padding: 1rem;
        background: var(--color-cream);
    }

    .shopify-dashboard.active {
        display: block;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-content {
        display: block;
        padding: 1rem;
    }
}

/* Mobile (default) */
#mobile-dashboard-content {
    display: block;
}

#account-dashboard {
    display: none;
}

.shopify-dashboard {
    display: none;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 120px);
    gap: 0;
    background: var(--color-cream);
}

.shopify-dashboard.active {
    display: grid;
}

.shopify-auth-wrapper {
    max-width: 480px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Account Container */
#account-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

/* Modern Auth Wrapper - Single column centered */
.auth-modern-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-brand {
    display: none;
}

.auth-forms {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-switch {
    display: flex;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 2rem;
}

.auth-switch-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-switch-btn.active {
    background: #0F0F0F;
    color: white;
}

.auth-switch-btn:not(.active) {
    color: #666;
}

.auth-form-container {
    text-align: center;
}

.auth-form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-form-container > p {
    color: #888;
    margin-bottom: 1.5rem;
}

.auth-form-container .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.auth-form-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 16px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form-container input:focus {
    outline: none;
    border-color: #0F0F0F;
}

/* Mobile - hide brand column */
@media (max-width: 768px) {
    .auth-modern-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-forms {
        padding: 2rem;
    }
}

/* Hide dashboard by default */
.shopify-dashboard {
    display: none;
}

/* Show dashboard when active */
.shopify-dashboard.active {
    display: grid;
}

/* Account auth container */
#account-auth {
    min-height: 60vh;
}

/* Responsive auth forms */
@media (max-width: 480px) {
    .shopify-auth-wrapper {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .shopify-auth-wrapper .auth-tabs {
        display: flex;
        margin-bottom: 1.5rem;
    }

    .shopify-auth-wrapper .auth-tab {
        flex: 1;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .shopify-auth-wrapper .form-group {
        margin-bottom: 1rem;
    }

    .shopify-auth-wrapper .form-group label {
        font-size: 0.85rem;
    }

    .shopify-auth-wrapper input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .shopify-auth-wrapper button {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

.btn-full {
    width: 100%;
    justify-content: center;
}
.btn-google, .btn-phone {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    margin-top: 8px;
    transition: all 0.2s;
}
.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}
.btn-google:hover { background: #f5f5f5; }
.btn-phone {
    background: #0F0F0F;
    color: #fff;
}
.btn-phone:hover { background: #000000; }
.auth-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    color: #888;
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Sidebar */
.dashboard-sidebar {
    background: var(--color-white);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-gray-light);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-user {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--color-gray-light);
    margin-bottom: 1rem;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.sidebar-user-info h3 {
    font-size: 1.1rem;
    color: var(--color-charcoal);
    margin-bottom: 0.25rem;
}

.sidebar-user-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--color-charcoal);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.nav-item:hover {
    background: var(--color-cream);
}

.nav-item.active {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--color-gray-light);
    padding: 0.15rem 0.5rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.sidebar-footer {
    padding: 1rem 0.75rem 0;
    border-top: 1px solid var(--color-gray-light);
    margin-top: auto;
}

.nav-item.logout {
    color: var(--color-error);
}

.nav-item.logout:hover {
    background: #FFF0F0;
}

/* Main Content */
.dashboard-content {
    padding: 2rem 3rem;
    background: var(--color-cream);
    overflow-y: auto;
}

.shopify-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.shopify-section.active {
    display: block;
}

.shopify-section .section-header {
    margin-bottom: 2rem;
}

.shopify-section .section-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.shopify-section .section-header p {
    color: var(--color-gray);
    margin: 0;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-terracotta);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 0.25rem;
}

/* Content Card */
.content-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.content-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.content-card .card-header h2 {
    font-size: 1.1rem;
    color: var(--color-charcoal);
}

.content-card .card-header a {
    color: var(--color-terracotta);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.content-card .card-header a:hover {
    text-decoration: underline;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-card {
    background: var(--color-white);
    border: 2px dashed var(--color-gray-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--color-gray);
}

.action-card:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
    background: #FFF8F6;
}

.action-card i {
    font-size: 1.5rem;
}

.action-card span {
    font-weight: 500;
}

/* Orders Table */
.orders-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.orders-table {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.order-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
    align-items: center;
}

.order-row:last-child {
    border-bottom: none;
}

.order-row.header {
    background: var(--color-cream);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.order-number {
    font-weight: 600;
    color: var(--color-charcoal);
}

.order-items-list {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.order-row .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-row .status-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.order-row .status-badge.processing {
    background: #CCE5FF;
    color: #004085;
}

.order-row .status-badge.shipped {
    background: #D4EDDA;
    color: #155724;
}

.order-row .status-badge.delivered {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.order-total {
    font-weight: 600;
    color: var(--color-charcoal);
}

.order-actions-cell {
    display: flex;
    gap: 0.5rem;
}

.order-actions-cell button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.no-orders-table {
    padding: 3rem;
    text-align: center;
    color: var(--color-gray);
}

.no-orders-table i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-gray-light);
}

/* Addresses */
.addresses-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.address-row {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.address-row.default {
    border: 2px solid var(--color-terracotta);
}

.address-row.default::before {
    content: 'Par défaut';
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-type-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-charcoal);
}

.address-text {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.address-actions-row {
    display: flex;
    gap: 0.5rem;
}

/* Address Modal */
.address-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gray);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--color-gray-light);
}

/* Admin Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.category-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-cream-light);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-terracotta);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--color-charcoal);
}

.category-id {
    font-size: 0.8rem;
    color: var(--color-gray);
    font-family: monospace;
    background: var(--color-gray-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.category-subcategories {
    padding: 1rem 1.5rem;
}

.category-subcategories h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcategory-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--color-cream);
    color: var(--color-charcoal);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    border: 1px solid var(--color-cream);
}

/* Admin Banners */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.banner-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner-preview {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-terracotta);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: bold;
}

.banner-info {
    padding: 1rem;
}

.banner-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.banner-info p {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Wishlist Products */
.wishlist-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.wishlist-product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.wishlist-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wishlist-product-image {
    height: 180px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.wishlist-product-info {
    padding: 1rem;
}

.wishlist-product-name {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.wishlist-product-price {
    color: var(--color-terracotta);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.wishlist-product-actions {
    display: flex;
    gap: 0.5rem;
}

.wishlist-product-actions button {
    flex: 1;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.settings-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.settings-card.danger {
    border: 1px solid var(--color-error);
}

.settings-card .card-header {
    padding: 1rem 1.5rem;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-gray-light);
}

.settings-card .card-header h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card .card-header h3 i {
    color: var(--color-terracotta);
}

.settings-card.danger .card-header h3 i {
    color: var(--color-error);
}

.settings-card .card-body {
    padding: 1.5rem;
}

.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.notification-option:last-of-type {
    border-bottom: none;
}

.option-info strong {
    display: block;
    color: var(--color-charcoal);
    margin-bottom: 0.25rem;
}

.option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-gray-light);
    transition: .3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-terracotta);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Responsive */
@media (max-width: 768px) {
    .shopify-dashboard.active {
        display: grid;
    }

    .shopify-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-gray-light);
        padding: 1rem 0;
    }

    .sidebar-user {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 1rem;
        border-bottom: none;
        margin-bottom: 0;
    }

    .sidebar-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .sidebar-user-info h3 {
        font-size: 1rem;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        white-space: nowrap;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .nav-item i {
        margin-right: 0.25rem;
    }

    .nav-item span {
        display: none;
    }

    .nav-badge {
        margin-left: 0.25rem;
        min-width: 18px;
        text-align: center;
    }

    .sidebar-footer {
        display: none;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .shopify-section .section-header h1 {
        font-size: 1.5rem;
    }

    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .orders-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .order-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .order-row.header {
        display: none;
    }

    .order-number {
        font-size: 0.9rem;
    }

    .order-items-list {
        font-size: 0.8rem;
    }

    .order-actions-cell {
        flex-direction: column;
        gap: 0.25rem;
    }

    .order-actions-cell button {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .notification-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .toggle {
        align-self: flex-start;
    }

    .addresses-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .address-row {
        padding: 1rem;
    }

    .address-actions-row {
        flex-wrap: wrap;
    }

    .wishlist-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .wishlist-product-image {
        height: 120px;
    }

    .wishlist-product-info {
        padding: 0.75rem;
    }

    .wishlist-product-name {
        font-size: 0.85rem;
    }

    .wishlist-product-price {
        font-size: 0.9rem;
    }

    .wishlist-product-actions {
        flex-direction: column;
    }

    .wishlist-product-actions button {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }

    .order-row {
        grid-template-columns: 1fr;
    }

    .shopify-dashboard {
        min-height: auto;
    }

    .dashboard-sidebar {
        padding: 0.5rem 0;
    }

    .sidebar-user-info p {
        font-size: 0.75rem;
    }

    .mobile-logout-btn {
        display: block !important;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .dashboard-content {
        position: relative;
        padding-bottom: 4rem;
    }
}

/* Responsive Account */

/* ============================================
   STORY PAGE
   ============================================ */

.story-hero {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    padding: 6rem 5%;
    text-align: center;
    color: white;
}

.story-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
}

.story-container {
    padding: 0;
    max-width: 100%;
}

.story-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.story-section.bg-cream {
    background: var(--color-cream);
}

.story-section.bg-terracotta {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    color: white;
}

.story-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-intro h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
}

.story-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-charcoal-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--color-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-terracotta);
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-charcoal);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Ingredients List */
.ingredients-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ingredient-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.ingredient-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-terracotta);
}

.ingredient-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.ingredient-info p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Mission */
.mission-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.mission-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.mission-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* CTA */
.story-cta {
    text-align: center;
    padding: 5rem 5%;
    background: var(--color-cream);
}

.story-cta h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.story-cta p {
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.story-cta .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Story Responsive */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .story-hero {
        padding: 4rem 1rem;
    }

    .story-hero h1 {
        font-size: 2.5rem;
    }

    .story-section {
        padding: 3rem 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .ingredients-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ingredient-item {
        flex-direction: column;
        text-align: center;
    }

    .ingredient-icon {
        margin: 0 auto;
    }

    .mission-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

#notifications {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    border-left: 4px solid var(--color-success);
}

.notification.error {
    border-left: 4px solid var(--color-error);
}

.notification.warning {
    border-left: 4px solid var(--color-warning);
}

.notification-icon {
    font-size: 1.3rem;
}

.notification.success .notification-icon {
    color: var(--color-success);
}

.notification.error .notification-icon {
    color: var(--color-error);
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    /* MOB-01 fix: z-index passé de 10001 à 9998 pour passer SOUS le cart slide (10000) */
    z-index: 9998;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-light);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.footer-column p,
.footer-column a {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--color-charcoal);
    text-decoration: none;
    display: block;
    transition: color var(--transition-normal);
}

.footer-column a:hover {
    color: var(--color-terracotta);
}

.footer-column i {
    margin-right: 0.5rem;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Social Media Icons */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #000000;
    color: #FFFFFF;
}

.social-icon i {
    color: #FFFFFF;
    font-size: 18px;
    display: inline-block;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: #333333;
}

.social-icon.facebook,
.social-icon.instagram,
.social-icon.tiktok {
    background-color: #000000;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-light);
    border-top-color: var(--color-terracotta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-image {
        position: static;
        height: 400px;
    }
}

/* Desktop (PC) - Two column product detail */
@media (min-width: 1025px) {
    .product-detail-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 4rem 5%;
    }

    .product-detail-left {
        position: sticky;
        top: 120px;
        height: fit-content;
    }

    .product-detail-right {
        padding: 2rem 0;
    }
}

/* Desktop auth improvements */
@media (min-width: 1024px) {
    .shopify-auth-wrapper {
        max-width: 450px;
        padding: 3rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .shopify-auth-wrapper .auth-tabs {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .shopify-auth-wrapper .auth-tab {
        flex: 1;
        padding: 1rem;
        font-size: 1rem;
    }

    .shopify-auth-wrapper .form-group {
        margin-bottom: 1.25rem;
    }

    .shopify-auth-wrapper .form-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .shopify-auth-wrapper input {
        padding: 1rem;
        font-size: 1rem;
    }

    .shopify-auth-wrapper button {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    /* Fix 2026-07-17 (audit Playwright) : sur mobile le burger se retrouvait
       dans le flux grid, créant 2 lignes (44+44=88px). Solution : header
       en grid 2 colonnes (logo | icons), burger en absolute par-dessus. */
    header {
        padding: 0.5rem 4% 0.5rem calc(44px + 0.75rem);
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        min-height: 60px;
        position: sticky;
        top: 0;
        z-index: 1000;
        column-gap: 0.5rem;
    }

    .header-left {
        display: none;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        font-size: 1.25rem;
        letter-spacing: 0.15rem;
        line-height: 1.1;
        min-width: 0;
    }

    .header-right {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    /* Sur mobile : cacher les boutons desktop-only (panier, compte)
       pour ne garder que la loupe de recherche à droite du header */
    .header-desktop-only {
        display: none !important;
    }

    /* Utiliser header .mobile-burger-btn (specificité 0,1,1) + !important
       pour gagner contre .btn, button:not(.icon-btn) (0,1,1) qui impose
       position:relative sur tous les boutons (sans !important, le .btn
       gagne car déclaré après dans le CSS). */
    header .mobile-burger-btn {
        display: flex;
        position: absolute !important;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 1.1rem;
    }

    .icon-btn .badge {
        top: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .story blockquote {
        font-size: 1.8rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-quantity,
    .cart-item-remove {
        grid-column: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-form .btn-primary {
        width: 100%;
    }
}

/* ============================================
   MOBILE BREAKPOINTS - 320px a 375px
   ============================================ */

@media (max-width: 375px) {
    .hero {
        min-height: 60vh;
    }

    .slider-container {
        height: 60vh;
    }

    /* Fix R04 2026-07-17: code-display (4 chars) déborde sur 320px.
       3.5rem × 4 + 8px letter-spacing × 3 + 2rem padding × 2 = 312px.
       Réduction à 2.2rem + letter-spacing 4px + padding 0.75/1rem = 200px max. */
    .code-display {
        font-size: 2.2rem;
        letter-spacing: 4px;
        padding: 0.75rem 1rem;
    }

    .slide-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 20px;
        gap: 6px;
        /* Fix R17 2026-07-17: max-width + flex-wrap pour éviter débordement
           quand > 5 dots sur 320px (sinon ils sortent du viewport). */
        max-width: 90vw;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Products grid - 2 columns style Aliwax (sur très petits écrans) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .product-image {
        /* aspect-ratio: 1/1 hérité */
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-actions {
        padding: 0 0.75rem 0.75rem;
    }

    .btn-add-cart {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    /* Categories */
    .categories {
        padding: 2.5rem 0.75rem;
    }

    .categories-scroll .category-card {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 140px;
        height: 180px;
    }

    .category-overlay {
        padding: 1rem;
    }

    .category-overlay h3 {
        font-size: 1.1rem;
    }

    /* Footer small mobile */
    footer {
        padding: 1.5rem 0.75rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-column h3 {
        font-size: 1rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    /* Cart responsive small mobile */
    .cart-container {
        padding: 1.5rem 0.75rem;
    }

    .cart-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-name {
        font-size: 0.8rem;
    }

    .cart-item-price {
        font-size: 0.8rem;
    }

    /* Checkout small mobile */
    .checkout-container {
        padding: 1.5rem 0.75rem;
    }

    .checkout-container h1 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .form-section {
        padding: 1rem 0.75rem;
    }

    /* Product detail small mobile */
    .product-zoom-container {
        height: 240px;
    }

    .product-detail-name {
        font-size: 1.2rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .product-detail-description {
        font-size: 0.9rem;
    }

    /* Account small mobile */
    .account-container {
        padding: 1.5rem 0.75rem;
    }

    .account-container h1 {
        font-size: 1.5rem;
    }

    /* Notifications */
    #notifications {
        top: 70px;
        right: 5px;
        left: 5px;
    }

    .notification {
        padding: 0.75rem 1rem;
        max-width: 100%;
    }

    /* WhatsApp float - smaller on very small screens */
    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 320px) {
    .hero {
        min-height: 50vh;
    }

    .slider-container {
        height: 50vh;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    /* Fix r01 2026-07-17: sur 320px, le logo + 3.5rem padding-left sort
       de l'écran. Réduire padding-left à 3rem et font-size à 1.1rem. */
    .logo {
        padding-left: 3rem;
        font-size: 1.1rem;
        letter-spacing: 0.1rem;
    }

    .products-grid {
        gap: 0.5rem;
    }

    .product-image {
        /* aspect-ratio: 1/1 hérité */
    }

    .bubble-img {
        width: 80px;
        height: 80px;
    }

    .bubble-label {
        font-size: 0.65rem;
    }

    .whatsapp-float {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }

    .slider-container {
        height: 50vh;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .slider-navigation {
        padding: 0 5px;
    }

    .slider-dots {
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0 0.5rem;
    }

    /* Fix R16 2026-07-17: shop-search-input min-width 280px force
       overflow horizontal sur 320px. Le passer à width:100% sur mobile. */
    .shop-search-input {
        min-width: 0;
        width: 100%;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-image {
        /* aspect-ratio: 1/1 hérité */
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-actions {
        padding: 0 1rem 1rem;
    }

    .btn-add-cart {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .btn-discover {
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .categories {
        padding: 3rem 1rem;
    }

    .categories-scroll .category-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 150px;
        height: 200px;
    }

    .carousel-arrow {
        display: none;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        height: 200px;
    }

    .story {
        padding: 3rem 1rem;
    }

    .story blockquote {
        font-size: 1.2rem;
    }

    .reviews {
        padding: 3rem 1rem;
    }

    .reviews .carousel-arrow {
        display: none;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-column p,
    .footer-column a {
        font-size: 0.85rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Cart responsive */
    .cart-container {
        padding: 2rem 1rem;
    }

    .cart-container h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-price {
        font-size: 0.85rem;
    }

    .cart-item-details {
        gap: 0.35rem;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-item-quantity {
        width: 100%;
        justify-content: space-between;
    }

    .cart-item-remove {
        width: 100%;
        justify-content: center;
    }

    .cart-summary {
        padding: 1rem;
        margin: 0;
        max-width: 100%;
    }

    .promo-code {
        flex-direction: column;
    }

    .promo-code input,
    .promo-code button {
        width: 100%;
    }

    /* Checkout responsive */
    .checkout-container {
        padding: 2rem 1rem;
    }

    .checkout-container h1 {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 1.5rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-options {
        gap: 0.8rem;
    }

    .payment-option {
        padding: 0.8rem;
    }

    .payment-content i {
        font-size: 1.2rem;
        width: 30px;
    }

    .payment-content strong {
        font-size: 0.9rem;
    }

    .payment-content span {
        font-size: 0.75rem;
    }

    /* Product detail responsive */
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail {
        padding: 1.5rem 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-zoom-container {
        height: 280px;
        overflow: hidden;
    }

    .product-zoom-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-thumbnails {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-thumbnails .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-detail-name {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .product-detail-description {
        font-size: 0.95rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .btn-whatsapp-product,
    .btn-share-product {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* Contact responsive */
    .contact-container {
        padding: 2rem 1rem;
    }

    .contact-container > h1 {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-form-section {
        padding: 1.5rem 1rem;
    }

    .contact-form-section h2 {
        font-size: 1.2rem;
    }

    .map-placeholder {
        height: 200px;
    }

    /* Account responsive */
    .account-container {
        padding: 2rem 1rem;
    }

    .account-container h1 {
        font-size: 1.8rem;
    }

    .account-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .account-user-info {
        flex-direction: column;
    }

    .account-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .account-tab i {
        margin-right: 0.25rem;
    }

    .orders-list,
    .addresses-grid,
    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .order-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .order-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-actions {
        justify-content: stretch;
    }

    .order-actions button {
        flex: 1;
    }

    .settings-group {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    /* Tracking responsive */
    .tracking-container {
        padding: 2rem 1rem;
    }

    .tracking-container h1 {
        font-size: 1.8rem;
    }

    .tracking-form {
        flex-direction: column;
    }

    .tracking-form input,
    .tracking-form button {
        width: 100%;
    }

    /* Wishlist responsive */
    .wishlist-container {
        padding: 2rem 1rem;
    }

    .wishlist-container h1 {
        font-size: 1.8rem;
    }

    .wishlist-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Shop responsive */
    .shop-header {
        padding: 1.25rem 1rem 1rem;
    }

    .shop-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.85rem;
    }

    .shop-search-wrap {
        max-width: 100%;
    }

    .shop-search-input {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem 0.7rem 2.25rem;
    }

    .shop-toolbar {
        gap: 0.5rem;
    }

    .shop-sort-select,
    .shop-filter-btn {
        font-size: 0.72rem;
        padding: 0.5rem 1.6rem 0.5rem 0.85rem;
        min-width: 0;
    }

    /* Story responsive */
    .story-container {
        padding: 3rem 1rem;
    }

    .story-container h1 {
        font-size: 1.8rem;
    }

    .story-content p {
        font-size: 1rem;
    }

    /* WhatsApp float */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        bottom: 15px;
        right: 15px;
    }

    /* Admin responsive */
    .admin-main {
        padding: 1rem;
    }

    .admin-header h1 {
        font-size: 1.5rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }

    .admin-card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-table {
        font-size: 0.7rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Empty state */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state i {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.2rem;
    }

    /* Notifications */
    #notifications {
        top: 80px;
        right: 10px;
        left: 10px;
    }

    .notification {
        max-width: 100%;
    }
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-gray-light);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.empty-state .btn-primary {
    display: inline-block;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container > h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--color-terracotta);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--color-charcoal-light);
    font-size: 0.95rem;
    margin: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #25D366;
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.contact-form-section {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-map {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-map h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-placeholder {
    height: 300px;
    background-color: var(--color-cream-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-terracotta);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-container > h1 {
        font-size: 2rem;
    }
}

/* ============================================
   ADMIN PANEL STYLES - MODERN & RESPONSIVE
   ============================================ */

/* CSS Variables for Admin */
:root {
    --admin-bg: #f4f7f6;
    --admin-card: #ffffff;
    --admin-sidebar: #1e293b;
    --admin-sidebar-hover: #334155;
    --admin-text: #1e293b;
    --admin-text-muted: #64748b;
    --admin-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --admin-shadow-hover: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --admin-radius: 12px;
    --admin-sidebar-width: 260px;
}

/* Admin Wrapper - Grid Layout */
.admin-wrapper {
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) 1fr;
    min-height: 100vh;
    background-color: var(--admin-bg);
}

/* Sidebar - Fixed Left */
.admin-sidebar {
    background-color: var(--admin-sidebar);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.admin-sidebar * {
    pointer-events: auto;
}

.admin-logo {
    padding: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-menu {
    padding: 1rem 0;
    flex: 1;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    pointer-events: auto;
}

/* Mobile menu items - larger touch target */
@media (max-width: 768px) {
    .admin-menu-item {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background-color: var(--admin-sidebar-hover);
    color: #fff;
    border-left: 3px solid var(--color-terracotta);
}

.admin-menu-item i {
    width: 20px;
    text-align: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1002;
    background: var(--admin-sidebar);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* Main Content */
.admin-main {
    grid-column: 2;
    padding: 2rem;
    background-color: var(--admin-bg);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure admin pages are visible */
.admin-page {
    display: none;
    width: 100%;
}

.admin-page.active {
    display: block;
    visibility: visible;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--admin-text);
    margin: 0;
}

/* Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--admin-card);
    padding: 1.5rem;
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

.stat-card h3 {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--admin-text);
}

.stat-card .change {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.stat-card .change.positive { color: #10b981; }
.stat-card .change.negative { color: #ef4444; }

/* Admin Cards */
.admin-card {
    background-color: var(--admin-card);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Admin Table */
.admin-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background-color: #f8fafc;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--admin-text-muted);
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.pending, .status-badge.processing { background-color: #FEF3C7; color: #D97706; }
.status-badge.shipped { background-color: #E0E7FF; color: #4F46E5; }
.status-badge.delivered { background-color: #D1FAE5; color: #059669; }
.status-badge.cancelled, .status-badge.inactive { background-color: #FEE2E2; color: #DC2626; }
.status-badge.active { background-color: #D1FAE5; color: #059669; }
.status-badge.busy { background-color: #E0E7FF; color: #4F46E5; }

/* Admin Buttons - Touch Friendly (45px+) */
.admin-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 45px;
    min-width: 45px;
}

.admin-btn.small {
    padding: 0.5rem 0.875rem;
    min-height: 36px;
    font-size: 0.8rem;
}

.admin-btn.view { background-color: var(--color-terracotta); color: #fff; }
.admin-btn.edit { background-color: var(--admin-sidebar); color: #fff; }
.admin-btn.delete { background-color: #ef4444; color: #fff; }
.admin-btn.danger { background-color: #ef4444; color: #fff; }

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--admin-bg);
    border: 2px dashed #cbd5e1;
    border-radius: var(--admin-radius);
    cursor: pointer;
    min-width: 140px;
}

.quick-action-btn i { font-size: 1.25rem; color: var(--color-terracotta); }

/* Cards Grid */
.categories-grid, .banners-grid, .promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card, .banner-card {
    background: var(--admin-card);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.category-header, .banner-info {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--color-cream);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-terracotta);
}

.category-info, .banner-info { flex: 1; }
.category-info h3, .banner-info h3 { margin: 0 0 0.25rem 0; font-size: 1rem; font-weight: 600; }
.category-id { font-size: 0.75rem; color: var(--admin-text-muted); }
.category-info .admin-btn, .banner-info .admin-btn { margin-left: auto; }

.category-subcategories, .banner-preview { padding: 1rem 1.25rem; border-top: 1px solid #e2e8f0; }
.subcategory-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.subcategory-tag { background: var(--admin-bg); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; }

.banner-preview { height: 180px; background-size: cover; background-position: center; position: relative; }
.banner-overlay { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,0.6); color: #fff; padding: 0.25rem 0.75rem; border-radius: 10px; font-size: 0.8rem; }
.banner-info p { margin: 0; font-size: 0.85rem; color: var(--admin-text-muted); }

.promo-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: var(--admin-bg); border-radius: 14px; }
.promo-code { font-weight: 700; font-family: monospace; font-size: 1rem; color: var(--color-terracotta); }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root { --admin-sidebar-width: 220px; }
    .admin-wrapper { grid-template-columns: var(--admin-sidebar-width) 1fr; }
    .admin-main { padding: 1.5rem; }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .admin-sidebar { transform: translateX(-100%); width: 280px; z-index: 1001; }
    .admin-sidebar.active { transform: translateX(0); }
    .admin-wrapper { grid-template-columns: 1fr; }
    .admin-main { grid-column: 1; margin-left: 0; padding: 4rem 1rem 1rem; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .admin-header h1 { font-size: 1.5rem; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1rem; }
    .stat-card .value { font-size: 1.25rem; }

    /* Tables to Cards - CRITICAL */
    .admin-table table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { display: block; }
    .admin-table thead { display: none; }
    .admin-table tr { background: var(--admin-card); border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); margin-bottom: 1rem; padding: 1rem; }
    .admin-table td { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #e2e8f0; }
    .admin-table td:last-child { border-bottom: none; }
    .admin-table td::before { content: attr(data-label); font-weight: 600; color: var(--admin-text-muted); font-size: 0.8rem; text-transform: uppercase; }
    .admin-table td:last-child { justify-content: flex-end; padding-top: 1rem; border-top: 1px solid #e2e8f0; }

    .categories-grid, .banners-grid, .promo-list { grid-template-columns: 1fr; }
    .quick-actions { flex-direction: column; }
    .quick-action-btn { width: 100%; justify-content: flex-start; }
    .admin-card-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .admin-btn { width: 100%; }
    .admin-actions { width: 100%; }
    .admin-actions .admin-btn { flex: 1; }
}

/* Email Settings Styles */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: var(--admin-radius);
    border: 1px solid #e2e8f0;
}

.notification-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--admin-text);
}

.notification-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--admin-text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-success);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Email Templates */
.email-templates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.email-template-card {
    background: var(--admin-bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--admin-radius);
    padding: 1rem;
}

.email-template-card .template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.email-template-card .template-header h4 {
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 16px;
    background: #e2e8f0;
    color: #64748b;
}

.template-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.email-template-card .template-description {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    margin: 0 0 1rem 0;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
}

.template-actions .admin-btn {
    flex: 1;
    justify-content: center;
}

/* Email Logs */
.email-logs {
    max-height: 400px;
    overflow-y: auto;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.error {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .admin-stats { grid-template-columns: 1fr; }
}

/* ============================================
   LOGIN/REGISTER PAGE - RESPONSIVE FIX
   ============================================ */

/* Center auth on page with flexbox */
#account-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

/* PC - Fixed width, centered, rounded corners, shadow */
.auth-modern-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.auth-forms {
    padding: 0;
}

/* Tab Switch */
.auth-switch {
    display: flex;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 2rem;
}

.auth-switch-btn {
    flex: 1;
    padding: 0.85rem;
    border: none;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.auth-switch-btn.active {
    background: var(--color-terracotta);
    color: white;
}

.auth-switch-btn:not(.active) {
    color: #666;
}

/* Form Styles */
.auth-form-container h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.auth-form-container > p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-form-container .form-group {
    margin-bottom: 1.25rem;
}

.auth-form-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-charcoal);
}

.auth-form-container input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 14px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    height: 48px;
}

.auth-form-container input:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.15);
}

.auth-form-container input::placeholder {
    color: #aaa;
}

/* Error Message */
.auth-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: left;
}

/* Full Width Button */
.auth-form-container button {
    width: 100%;
    padding: 1rem;
    background: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    height: 50px;
    margin-top: 0.5rem;
}

.auth-form-container button:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

/* Mobile - 90% width */
@media (max-width: 480px) {
    #account-auth {
        padding: 1rem;
        align-items: center;
    }

    .auth-modern-wrapper {
        width: 90%;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .auth-switch {
        margin-bottom: 1.5rem;
    }

    .auth-switch-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .auth-form-container h3 {
        font-size: 1.3rem;
    }

    .auth-form-container input {
        height: 45px;
    }

    .auth-form-container button {
        height: 48px;
    }
}

/* ============================================
   FOOTER SOCIAL ICONS - CENTERED
   ============================================ */

.footer-column {
    text-align: center !important;
}

.footer-column h3 {
    text-align: center !important;
}

.social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.social-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background-color: var(--color-charcoal) !important;
    color: var(--color-white) !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    line-height: 44px !important;
}

.social-icon i {
    color: var(--color-white) !important;
    font-size: 18px !important;
    display: block !important;
    text-align: center !important;
    line-height: 1 !important;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: var(--color-terracotta) !important;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
    }

    .footer-column {
        text-align: center !important;
        margin-bottom: 2rem;
    }
}


/* FORCE CENTER SOCIAL ICONS - Méthode robuste : fit-content + margin auto
   La div .social-links shrink à la taille de son contenu (les 4 icônes + gaps)
   et se centre automatiquement dans la colonne via margin auto. Plus fiable
   que flexbox + width:100% qui peut donner l'impression d'être à gauche. */
footer .footer-column { text-align: center !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
footer .social-links {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 1.2rem auto !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}
footer .social-icon { width: 44px !important; height: 44px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #333 !important; color: #fff !important; vertical-align: top !important; flex-shrink: 0 !important; }
footer .social-icon i { font-size: 18px !important; color: #fff !important; display: inline-block !important; vertical-align: baseline !important; line-height: 1 !important; }

/* ============================================
   UI/UX PLUGIN STYLES
   ============================================ */

/* SweetAlert2 Custom Styling */
.okavea-swal-popup {
    border-radius: var(--radius-lg) !important;
    font-family: var(--font-body) !important;
}

.okavea-swal-confirm, .okavea-swal-cancel {
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
}

/* Nanobar */
.nanobar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    z-index: 999999 !important;
}

/* Product Wishlist Button */
.btn-wishlist-detail {
    background: transparent;
    border: 2px solid var(--color-terracotta);
    color: var(--color-terracotta);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.btn-wishlist-detail:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.btn-wishlist-detail.active {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.btn-wishlist-detail.active i {
    font-weight: 900;
}

/* Product Lightbox Thumbnails */
.product-thumbnails a.thumbnail {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-thumbnails a.thumbnail:hover,
.product-thumbnails a.thumbnail.active {
    border-color: var(--color-terracotta);
}

.product-thumbnails a.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Lightbox Main Image */
.product-lightbox {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.product-lightbox img {
    transition: transform var(--transition-normal);
}

.product-lightbox:hover img {
    transform: scale(1.05);
}

/* Product Detail Actions - Updated layout */
.product-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.product-detail-actions .btn-primary {
    flex: 1;
    min-width: 200px;
}

/* Toastify Custom Styling */
.toastify-container {
    font-family: var(--font-body) !important;
}

/* Product Card Hover Effects */
.product-card {
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image img {
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Badge Animation */
.product-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Cart Slide Panel Enhanced */
.cart-slide-panel {
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
}

.cart-slide-item {
    transition: background var(--transition-fast);
}

.cart-slide-item:hover {
    background: var(--color-cream-light);
}

/* Loading Skeleton for Products */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Form Validation Styles */
.is-invalid {
    border-color: var(--color-error) !important;
}

.is-valid {
    border-color: var(--color-success) !important;
}

.error-message {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Smooth Page Transitions */
.page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Bulk Actions */
.bulk-actions-bar {
    display: none;
    background: var(--color-terracotta);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    align-items: center;
    gap: 1rem;
}

.bulk-actions-bar.active {
    display: flex;
}

.bulk-actions-bar .selected-count {
    font-weight: 600;
}

.bulk-action-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: background var(--transition-fast);
}

.bulk-action-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Admin Checkbox Selection */
.admin-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-terracotta);
}

/* Scrollbar Custom Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-terracotta);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracotta-dark);
}

/* ============================================
   HOMEPAGE REDESIGN - PREMIUM SECTIONS
   ============================================ */

/* Section Header Center */
.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-center .section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-charcoal);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray);
    font-weight: 300;
}

/* ── Section title style "Aliwax" ─────────────────────────
   Titre petit, en majuscules, aligné à droite, avec underline.
   C'est le style "MAROQUINERIE" de la référence Aliwax. */
.section-title-aliwax {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-charcoal);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    margin: 0 0 1.25rem;
    padding-right: 0.5rem;
}
.section-title-aliwax:hover {
    color: var(--color-terracotta);
    text-decoration-color: var(--color-terracotta);
}

/* Section Nouveautés : on cache le centrage + subtitle pour matcher Aliwax */
.section-new-arrivals .section-header-center {
    text-align: right;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}
.section-new-arrivals .section-header-center .section-subtitle {
    display: none;
}
.section-new-arrivals .section-header-center .section-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-charcoal);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-align: right;
    margin-bottom: 0;
}

/* Section sub-category landing (Aliwax-style header) */
.sub-category-header {
    text-align: right;
    padding: 0 0.5rem 0.5rem;
}
.sub-category-header h2 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-charcoal);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    margin: 0;
}

/* ── Aliwax-style bottom navigation (mobile) ──────────── */
@media (min-width: 769px) {
    .bottom-nav { display: none !important; }
}
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
    padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: stretch;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
}
.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.25rem;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    position: relative;
    min-width: 0;
    cursor: pointer;
    background: transparent;
    border: none;
}
.bottom-nav-item i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--color-charcoal);
}
.bottom-nav-item.active i {
    transform: scale(1.1);
}
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 0 0 2px 2px;
}
.bottom-nav-badge {
    position: absolute;
    top: 0.2rem;
    right: calc(50% - 18px);
    background: var(--color-error);
    color: var(--color-white);
    border-radius: 16px;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ── Sub-category landing page (Aliwax style) ─────────── */
#page-subcat-landing {
    padding: 1.5rem 0 2rem;
    min-height: 70vh;
    background-color: var(--color-white);
}
.subcat-landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 1rem;
}
.back-to-categories {
    background: transparent;
    border: 1.5px solid var(--color-charcoal);
    color: var(--color-charcoal);
    padding: 0.55rem 0.85rem;
    border-radius: 28px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.back-to-categories:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
}
.back-to-categories i {
    font-size: 0.8rem;
}
.subcat-landing-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-charcoal);
    text-align: right;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.subcat-bubbles-wrapper {
    padding: 2rem 0;
}
#subcat-bubbles {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}
#subcat-bubbles::-webkit-scrollbar {
    display: none;
}
#subcat-bubbles .bubble-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    scroll-snap-align: start;
    min-width: 80px;
}
#subcat-bubbles .bubble-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-cream-light);
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 auto 0.6rem;
}
#subcat-bubbles .bubble-img i {
    font-size: 1.8rem;
    color: var(--color-terracotta);
    transition: color 0.3s ease;
}
#subcat-bubbles .bubble-item:hover .bubble-img {
    transform: translateY(-4px);
    border-color: var(--color-terracotta);
    box-shadow: 0 10px 24px rgba(15,15,15,0.15);
}
#subcat-bubbles .bubble-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-charcoal);
    transition: color 0.3s ease;
}
#subcat-bubbles .bubble-item:hover .bubble-label {
    color: var(--color-terracotta);
}

/* ── Bulles catégories persistantes dans la boutique ────
   Remplace le menu déroulant. Le client peut switcher de
   catégorie sans revenir à l'accueil. */
.shop-categories-bubbles {
    background: var(--color-cream-light);
    padding: 1rem 0 0.5rem;
    border-radius: 0 0 20px 20px;
    margin-bottom: 1.5rem;
}
.shop-categories-bubbles .bubbles-scroll {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
}
.shop-categories-bubbles .bubble-item {
    cursor: pointer;
    min-width: 70px;
}
.shop-categories-bubbles .bubble-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.4rem;
}
.shop-categories-bubbles .bubble-img i {
    font-size: 1.6rem;
}
.shop-categories-bubbles .bubble-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-categories-bubbles .bubble-label {
    font-size: 0.7rem;
}
.shop-categories-bubbles .bubble-item.active .bubble-img {
    border-color: var(--color-charcoal);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}
.shop-categories-bubbles .bubble-item.active .bubble-label {
    color: var(--color-charcoal);
    font-weight: 700;
}
.shop-subcat-bubbles {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.75rem !important;
    margin-top: 0.5rem;
}
/* Bouton "Toutes" dans la vue sous-catégories (style retour) */
.shop-subcat-bubbles .bubble-back .bubble-img {
    background: var(--color-cream);
    border: 2px dashed var(--color-gray-light, #d0d0d0);
    box-shadow: none;
}
.shop-subcat-bubbles .bubble-back:hover .bubble-img {
    border-color: var(--color-terracotta);
    border-style: solid;
    transform: translateY(-4px);
}
.shop-subcat-bubbles .bubble-back .bubble-label {
    color: var(--color-gray);
    font-size: 0.65rem;
}
.shop-subcat-bubbles .bubble-img {
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid var(--color-gray-light, #e0e0e0);
}
.shop-subcat-bubbles .bubble-item.active .bubble-img {
    border-color: var(--color-charcoal);
    background: var(--color-charcoal);
}
.shop-subcat-bubbles .bubble-item.active .bubble-img i {
    color: var(--color-white);
}
.shop-subcat-bubbles .bubble-item.active .bubble-label {
    color: var(--color-charcoal);
    font-weight: 700;
}

/* Sous-catégories en grid sur desktop (au lieu de scroll) */
@media (min-width: 769px) {
    .shop-subcat-bubbles {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}

/* Category Bubbles */
.section-bubbles {
    padding: 3rem 5%;
    background-color: var(--color-cream-light);
}

.bubbles-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.bubbles-scroll {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0.5rem;
    /* Fix 2026-07-21: centrer le contenu visible. Sans ces marges
       auto + max-width, justify-content:center ne centre que le
       contenu total (qui déborde) mais pas ce qui est visible. */
    margin: 0 auto;
    max-width: fit-content;
}

.bubbles-scroll::-webkit-scrollbar {
    display: none;
}

.bubble-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    scroll-snap-align: center;
    cursor: pointer;
    /* B2026-08-13: fix couleur par defaut des liens (bleu) qui rendait le hover/focus illisible */
    color: var(--color-charcoal);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.bubble-item:visited,
.bubble-item:hover,
.bubble-item:focus,
.bubble-item:active {
    color: var(--color-charcoal);
    text-decoration: none;
    outline: none;
}
.bubble-item:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 4px;
    border-radius: 14px;
}

.bubble-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transition: all 0.35s ease;
    position: relative;
}

.bubble-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.35s ease;
}

.bubble-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Quand la bulle n'a pas d'image, on affiche l'icône sur fond crème */
.bubble-img i {
    font-size: 3rem;
    color: var(--color-terracotta);
    background: var(--color-cream-light);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bubble-item:hover .bubble-img i {
    color: var(--color-white);
    background: var(--color-charcoal);
}

.bubble-item:hover .bubble-img {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bubble-item:hover .bubble-img::after {
    border-color: var(--color-charcoal);
}

.bubble-item:hover .bubble-img img {
    transform: scale(1.1);
}

/* B2026-08-13 v3 : style ACTIF (cliqué) bien visible — fond noir, contour noir, label inversé */
.bubble-item.active .bubble-img,
.bubble-item:focus .bubble-img,
.bubble-item:focus-visible .bubble-img {
    background: var(--color-charcoal) !important;
    border-color: var(--color-charcoal) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    transform: scale(1.05);
}
.bubble-item.active .bubble-img i,
.bubble-item.active .bubble-img::after,
.bubble-item:focus .bubble-img i,
.bubble-item:focus-visible .bubble-img i,
.bubble-item:focus .bubble-img::after,
.bubble-item:focus-visible .bubble-img::after {
    color: var(--color-white) !important;
    background: var(--color-charcoal) !important;
    border-color: var(--color-white) !important;
}
.bubble-item.active .bubble-label,
.bubble-item:focus .bubble-label,
.bubble-item:focus-visible .bubble-label {
    color: var(--color-white) !important;
    font-weight: 700 !important;
    background: var(--color-charcoal);
    padding: 4px 12px;
    border-radius: 999px;
}

.bubble-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-charcoal);
    transition: color 0.3s ease;
}

.bubble-item:hover .bubble-label {
    color: var(--color-terracotta);
}

.bubble-sub-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    background: var(--color-charcoal);
    color: var(--color-white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 6px rgba(15, 15, 15, 0.3);
}

/* ============================================
   SUBCAT LANDING (B2026-08-13)
   ============================================ */
.subcat-landing-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5% 5rem;
    min-height: 70vh;
}
.subcat-landing-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.subcat-back-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1.5px solid var(--color-charcoal);
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}
.subcat-back-btn:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    transform: translateX(-2px);
}
.subcat-landing-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0;
    color: var(--color-charcoal);
}
.subcat-landing-subtitle {
    color: var(--color-gray);
    font-size: 1rem;
    margin: 0 0 2.5rem 4.5rem;
}
.subcat-landing-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    padding: 0 4.5rem;
}
.subcat-landing-bubbles .bubble-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: var(--color-charcoal);
    cursor: pointer;
    width: 120px;
}
.subcat-landing-bubbles .bubble-item .bubble-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.subcat-landing-bubbles .bubble-item:hover .bubble-img {
    transform: translateY(-4px);
    border-color: var(--color-charcoal);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.subcat-landing-bubbles .bubble-item .bubble-img i {
    font-size: 2.4rem;
    color: var(--color-charcoal);
    transition: color 0.3s ease;
}
.subcat-landing-bubbles .bubble-item:hover .bubble-label {
    color: var(--color-charcoal);
}
.subcat-landing-bubbles .bubble-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-charcoal);
}
@media (max-width: 640px) {
    .subcat-landing-bubbles { padding: 0; justify-content: center; }
    .subcat-landing-bubbles .bubble-item { width: 100px; }
    .subcat-landing-bubbles .bubble-item .bubble-img { width: 90px; height: 90px; }
    .subcat-landing-subtitle { margin-left: 0; }
}

/* New Arrivals Section */
.section-new-arrivals {
    padding: 6rem 5%;
    background-color: var(--color-white);
}

.section-new-arrivals .products-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Premium Product Card for New Arrivals */
.section-new-arrivals .product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.section-new-arrivals .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.section-new-arrivals .product-card:hover .product-image img {
    transform: scale(1.05);
}

.section-new-arrivals .product-image {
    /* aspect-ratio: 1/1 hérité de .product-image */
}

.section-new-arrivals .product-info {
    padding: 1.25rem;
}

.section-new-arrivals .product-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.section-new-arrivals .product-price {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border: 1.5px solid var(--color-charcoal);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

/* Brands Showcase */
.section-brands {
    padding: 5rem 5%;
    background-color: var(--color-cream-light);
}

.section-brands .brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    flex: 0 0 auto;
    opacity: 0.6;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.brand-item img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.8);
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Storytelling Section */
.section-story {
    padding: 8rem 5%;
    background-color: var(--color-white);
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-text {
    padding-right: 2rem;
}

.story-tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-terracotta);
    margin-bottom: 1.5rem;
}

.story-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
}

.story-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.story-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.story-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-cream-light);
    border-radius: 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.story-feature i {
    font-size: 1rem;
}

.btn-link-animated {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link-animated i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-link-animated:hover {
    color: var(--color-terracotta);
}

.btn-link-animated:hover i {
    transform: translateX(5px);
}

.story-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* B2026-08-17 v5 : on retire le grayscale, on garde les couleurs */
}

/* Services Section */
.section-services {
    padding: 5rem 5%;
    background-color: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.4rem;
    color: var(--color-terracotta);
}

.service-card:hover .service-icon {
    background-color: var(--color-terracotta);
}

.service-card:hover .service-icon i {
    color: var(--color-white);
}

.service-card h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-gray);
    font-weight: 300;
}

/* Reviews Section Premium */
.section-reviews {
    padding: 6rem 5%;
    background-color: var(--color-white);
}

.section-reviews .reviews-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 1rem 0;
}

.section-reviews .reviews-scroll::-webkit-scrollbar {
    display: none;
}

/* Enhanced Reviews */
.review-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    min-width: 300px;
    max-width: 350px;
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-badge-verified::before {
    content: '✓';
}

.review-helpful-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.review-helpful-label {
    font-size: 0.8rem;
    color: #666;
}

.review-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.review-vote-btn:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.review-vote-btn.active {
    background: var(--color-terracotta);
    color: #fff;
    border-color: var(--color-terracotta);
}

.review-vote-count {
    font-weight: 700;
    margin-left: 4px;
}

.review-admin-reply {
    background: #f8f4f0;
    border-left: 4px solid var(--color-terracotta);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.review-admin-reply-label {
    font-size: 0.75rem;
    color: var(--color-terracotta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.review-photos-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.review-photo-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-photo-thumb:hover {
    transform: scale(1.1);
}

/* Review Lightbox */
.review-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.review-lightbox.active {
    display: flex;
}

.review-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
}

.review-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-text {
        padding-right: 0;
        text-align: center;
    }

    .story-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header-center .section-title {
        font-size: 2rem;
    }

    .bubble-img {
        width: 90px;
        height: 90px;
    }

    .bubbles-scroll {
        gap: 1.5rem;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .section-brands .brands-grid {
        gap: 2rem;
    }

    .brand-item img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .bubble-img {
        width: 100px;
        height: 100px;
    }

    .bubble-label {
        font-size: 0.7rem;
    }

    .bubbles-scroll {
        gap: 1.8rem;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
    }

    /* Fix scroll 2026-07-17: categories-scroll doit aussi scroller
       sur mobile (4 cartes > 100% viewport). */
    .categories-scroll {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix scroll 2026-07-17: reviews-scroll doit scroller
       sur mobile (3+ avis > 100% viewport). */
    .reviews-scroll,
    .section-reviews .reviews-scroll {
        -webkit-overflow-scrolling: touch;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .story-title {
        font-size: 1.8rem;
    }

    .story-image img {
        height: 280px;
    }

    /* Similar Products - Mobile Slider */
    .similar-products {
        padding: 1.5rem 0;
    }

    .similar-products h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .similar-products .products-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 1rem;
    }

    .similar-products .products-grid::-webkit-scrollbar {
        display: none;
    }

    .similar-products .product-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }

    .similar-products .product-card .product-image img {
        height: 180px;
    }
}

/* Print Styles for Invoice */
@media print {
    .no-print { display: none !important; }

    .admin-sidebar, .admin-header-bar {
        display: none !important;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}


/* ============================================
   OKAVEA - UI Polish & Micro-interactions
   Phase 7 - Premium feel
   ============================================ */

/* Smooth scroll global - Fix scroll 2026-07-17: scroll-behavior:smooth sur
   html peut créer du jank avec le header sticky sur iOS. On le limite aux
   ancres uniquement (et on le désactive sur mobile <768px). */
html { scroll-behavior: auto; }
html a[href^="#"] { scroll-behavior: smooth; }

@media (min-width: 769px) {
    html { scroll-behavior: smooth; }
}

/* Better focus state (accessibilité) */
*:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: 8px;
    transition: outline-offset 0.15s ease;
}
*:focus:not(:focus-visible) { outline: none; }

/* Selection branding */
::selection {
    background: var(--color-gold);
    color: var(--color-charcoal);
}
::-moz-selection {
    background: var(--color-gold);
    color: var(--color-charcoal);
}

/* ── Animations réutilisables ───────────────────────────── */
@keyframes okavea-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes okavea-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes okavea-fade-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes okavea-scale-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes okavea-slide-right {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes okavea-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes okavea-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes okavea-bounce-in {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes okavea-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes okavea-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Classes utilitaires d'animation */
.animate-fade-in { animation: okavea-fade-in 0.5s ease both; }
.animate-fade-up { animation: okavea-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-fade-down { animation: okavea-fade-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-scale-in { animation: okavea-scale-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-slide-right { animation: okavea-slide-right 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-bounce-in { animation: okavea-bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-float { animation: okavea-float 3s ease-in-out infinite; }

/* Délais d'animation (cascade) */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Hover effects améliorés ────────────────────────────── */
.product-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
    will-change: transform;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.product-card .product-image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image img {
    transform: scale(1.04);
}
.product-card .product-overlay,
.product-card .quick-view-btn {
    display: none !important;
}

/* ── Product cards style Aliwax ─────────────────────────── */
/* Sur la home et la boutique, on cache la catégorie affichée dans la card
   (le user a déjà le filtre catégorie + badges "Boutique Femme"). */
.section-new-arrivals .product-category,
.products-grid .product-category {
    display: none !important;
}
.section-new-arrivals .product-info,
.products-grid .product-info {
    padding: 0.75rem 0.5rem 1rem;
    text-align: left;
}
.section-new-arrivals .product-name,
.products-grid .product-name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    color: var(--color-charcoal);
}
.section-new-arrivals .product-price,
.products-grid .product-price {
    gap: 0.4rem;
}
.section-new-arrivals .current-price,
.products-grid .current-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-charcoal);
}
.section-new-arrivals .original-price,
.products-grid .original-price {
    font-size: 0.8rem;
    color: var(--color-gray);
}
.section-new-arrivals .product-card,
.products-grid .product-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.section-new-arrivals .product-card:hover,
.products-grid .product-card:hover {
    box-shadow: none;
}

/* Catégories : effet zoom + shadow */
.category-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
.category-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover img { transform: scale(1.1); }

/* Boutons : effet premium */
/* Fix 2026-07-17: ajouter .back-to-top à la liste d'exclusion pour qu'il
   garde position:fixed (sinon specificity 0,1,1 > .back-to-top 0,1,0).
   Fix 2026-07-23: ajouter .product-wishlist-btn pour qu'il garde position:absolute. */
.btn, button:not(.icon-btn):not(.close-btn):not(.modal-close):not(.back-to-top):not(.product-wishlist-btn) {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover, button:not(.icon-btn):not(.close-btn):not(.modal-close):not(.back-to-top):not(.product-wishlist-btn):hover {
    transform: translateY(-2px);
}
.btn:active, button:not(.icon-btn):not(.close-btn):not(.modal-close):not(.back-to-top):not(.product-wishlist-btn):active {
    transform: translateY(0);
}
.btn-primary, .cta-button {
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
    box-shadow: 0 4px 14px rgba(15, 15, 15, 0.3);
}
.btn-primary:hover, .cta-button:hover {
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.45);
}

/* Effet ripple sur boutons */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* ── Liens premium ──────────────────────────────────────── */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* ── Inputs et textarea ─────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--color-terracotta) !important;
    box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.1);
}

/* ── Skeleton loading ───────────────────────────────────── */
@keyframes okavea-skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg,
        var(--color-gray-light) 0%,
        #ececec 50%,
        var(--color-gray-light) 100%);
    background-size: 200% 100%;
    animation: okavea-skeleton 1.5s ease-in-out infinite;
    border-radius: 10px;
    min-height: 20px;
}

/* ── Scroll smooth + scrollbar custom ───────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb {
    background: var(--color-terracotta);
    border-radius: 10px;
    border: 2px solid var(--color-cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-terracotta-dark); }

/* ── Back to top button ─────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 15, 15, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    /* Fix R07 2026-07-17: padding interne invisible pour agrandir la zone
       tactile effective au-delà des 44x44 visibles. */
    padding: 8px;
    background-clip: content-box;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    box-shadow: 0 10px 30px rgba(15, 15, 15, 0.5);
    transform: translateY(-4px);
}
.back-to-top i { font-size: 1.1rem; }

/* ── Toasts premium ─────────────────────────────────────── */
.toastify {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
}

/* ── Cart badge pulse ───────────────────────────────────── */
.cart-badge {
    animation: okavea-bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-badge.updated {
    animation: okavea-pulse 0.4s ease;
}

/* ── Section reveal on scroll ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero section improved ──────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201, 169, 110, 0.08), transparent 50%);
    pointer-events: none;
}

/* ── Accessibility ──────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Prefers-reduced-motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ── Mobile polish ──────────────────────────────────────── */
@media (max-width: 768px) {
    .product-card:hover { transform: none; }
    .product-card:active { transform: scale(0.98); }
    .category-card:hover { transform: none; }
    .btn:hover, button:hover { transform: none; }
    .btn:active, button:active { transform: scale(0.97); }
    .back-to-top {
        width: 44px; height: 44px;
        bottom: 86px;
        right: 16px;
    }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
    .back-to-top, .cart-slide-panel, .navbar, .footer { display: none !important; }
    body { background: white; color: black; }
}


/* ============================================
   OKAVEA - Wishlist UI
   ============================================ */

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    color: #999;
    font-size: 1.05rem;
    padding: 0;
}
.wishlist-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    color: var(--color-terracotta);
}
.wishlist-btn.active {
    color: #E74C3C;
    background: white;
}
.wishlist-btn.active i {
    animation: okavea-bounce-in 0.4s ease;
}
.wishlist-btn.bump {
    animation: okavea-bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E74C3C;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

/* Wishlist page grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.wishlist-item {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgba(15, 15, 15, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: okavea-fade-up 0.4s ease both;
}
.wishlist-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--color-gold);
}
.wishlist-item.removing {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wishlist-item-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-cream-light);
}
.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.wishlist-item:hover .wishlist-item-image img {
    transform: scale(1.05);
}

.wishlist-item-info {
    padding: 1rem 1.25rem 0.75rem;
    flex: 1;
}
.wishlist-item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.wishlist-item-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: var(--color-charcoal);
    cursor: pointer;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wishlist-item-name:hover { color: var(--color-terracotta); }
.wishlist-item-price {
    margin-bottom: 0.5rem;
}
.wishlist-item-stock {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.wishlist-item-stock.in-stock { color: #2ECC71; }
.wishlist-item-stock.out-of-stock { color: #E74C3C; }

.wishlist-item-actions {
    padding: 0.75rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wishlist-item-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.wishlist-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #888;
}
.wishlist-empty i {
    font-size: 4rem;
    color: var(--color-gold-light);
    margin-bottom: 1rem;
    display: block;
}
.wishlist-empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-charcoal);
    margin: 0 0 0.5rem;
}
.wishlist-empty p {
    color: #888;
    margin-bottom: 1.5rem;
}

.wishlist-loading, .wishlist-error {
    text-align: center;
    padding: 2rem;
    color: #888;
    grid-column: 1 / -1;
}
.wishlist-loading i { margin-right: 0.5rem; }
.wishlist-error { color: #E74C3C; }

.section-count {
    color: var(--color-gold);
    font-weight: 400;
    font-size: 0.9em;
    margin-left: 0.3rem;
}

/* Wishlist link in mobile menu */
.mobile-menu .nav-item .wishlist-count { display: inline-block; margin-left: 0.5rem; }

@media (max-width: 600px) {
    .wishlist-grid { grid-template-columns: 1fr; }
    .wishlist-item { flex-direction: row; }
    .wishlist-item-image { width: 110px; aspect-ratio: 1; flex-shrink: 0; }
    .wishlist-item-actions { flex-direction: column; }
}


