/* Google Fonts loaded non-blocking via HTML <link> tags */

:root {
  --bg-color: #fafafa;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --accent-color: #0f172a;
  --accent-hover: #334155;
  --primary-light: #f8fafc;
  
  --couleur-whatsapp: #25D366;
  
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  
  --header-height: 110px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-color); color: var(--text-main); font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
ul { list-style: none; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; height: 100%; }
.nav-wrapper { width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; }

/* VISIBILITÉ CONDITIONNELLE */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 768px) {
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
}

/* --- HEADER MODERNE (Floating & Glassmorphism) --- */
.top-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1400px;
  height: 85px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-nav.scrolled {
  top: 10px;
  height: 65px;
  width: 85%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Version spéciale pour l'accueil sur le Hero */
.top-nav.home-nav {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.top-nav.home-nav.scrolled {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.top-nav.home-nav:hover, .top-nav.home-nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.05);
}

.logo { 
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; letter-spacing: 5px; 
  text-transform: uppercase; color: var(--text-main); 
  transition: all 0.4s;
}
.top-nav .logo { height: 100%; flex-shrink: 0; }
footer .logo { font-size: 4rem; margin-bottom: 40px; }

/* Logo image dynamique (injecté par app.js depuis Supabase) */
.site-logo { height: 45px; width: auto; object-fit: contain; display: block; }
.top-nav .site-logo { height: 45px; }
footer .site-logo { height: 60px; }

.top-nav.home-nav .logo { color: white; }
.top-nav.home-nav.scrolled .logo, .top-nav.home-nav:hover .logo { color: var(--text-main); }

.nav-links { display: flex; gap: 45px; margin-left: auto; margin-right: auto; align-items: center; height: 100%; }
.nav-links a { 
  font-weight: 600; 
  color: var(--text-muted); 
  transition: all 0.3s; 
  font-size: 0.9rem; 
  text-transform: uppercase; 
  letter-spacing: 2.5px;
  position: relative;
  padding: 5px 0;
}

/* Soulignement animé moderne */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-main);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.top-nav.home-nav .nav-links a { color: rgba(255,255,255,0.7); }
.top-nav.home-nav.scrolled .nav-links a, .top-nav.home-nav:hover .nav-links a { color: var(--text-muted); }
.top-nav.home-nav .nav-links a:hover, .top-nav.home-nav .nav-links a.active { color: white; }
.top-nav.home-nav.scrolled .nav-links a.active, .top-nav.home-nav:hover .nav-links a.active { color: var(--text-main); }

.nav-actions { display: flex; gap: 12px; align-items: center; height: 100%; }
.nav-action { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.03);
  position: relative; 
  color: var(--text-main); 
  transition: all 0.3s; 
}

.top-nav.home-nav .nav-action { color: white; background: rgba(255,255,255,0.1); }
.top-nav.home-nav.scrolled .nav-action, .top-nav.home-nav:hover .nav-action { color: var(--text-main); background: rgba(0,0,0,0.03); }

.nav-action:hover { transform: translateY(-3px); background: rgba(0,0,0,0.08); }
.top-nav.home-nav .nav-action:hover { background: rgba(255,255,255,0.2); }

#badge-panier { 
  position: absolute; top: -5px; right: -5px; 
  background: var(--text-main); color: white; 
  width: 20px; height: 20px; border-radius: 50%; 
  font-size: 0.65rem; font-weight: 800; 
  display: flex; align-items: center; justify-content: center; 
  border: 2px solid white;
}

/* --- BUTTONS --- */
.btn-primary { background: var(--accent-color); color: white; padding: 16px 36px; border-radius: 100px; font-weight: 600; font-size: 1.05rem; transition: background 0.3s, transform 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface-color); color: var(--text-main); border: 1px solid var(--border-color); padding: 16px 36px; border-radius: 100px; font-weight: 600; font-size: 1.05rem; transition: all 0.3s; display: inline-flex; gap: 10px; align-items: center; }
.btn-secondary:hover { border-color: var(--accent-color); background: var(--primary-light); transform: translateY(-2px); }

/* --- SECTION TITLES --- */
.section-padding { padding: var(--header-height) 0 80px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.section-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-top: 10px; max-width: 600px; }

/* --- GRID PRODUCT --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.product-card { background: transparent; border-radius: 0; padding: 0; transition: transform 0.4s; position: relative; border: none; display: flex; flex-direction: column; overflow: visible; }
.product-card:hover { transform: translateY(-5px); }

.img-container { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-xl); overflow: hidden; background: #f1f5f9; position: relative; margin-bottom: 20px; box-shadow: var(--shadow-sm); transition: box-shadow 0.4s; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; mix-blend-mode: multiply; cursor: pointer; }
.product-card:hover .img-container { box-shadow: var(--shadow-md); }
.product-card:hover .img-container img { transform: scale(1.05); }

.btn-add-cart-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); color: var(--text-main); text-align: center; padding: 18px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none; width: 100%; z-index: 10; font-family: inherit; }
.img-container:hover .btn-add-cart-overlay { transform: translateY(0); }
.btn-add-cart-overlay:hover { background: var(--text-main); color: white; }

.badge-top { 
  position: absolute; top: 15px; left: 15px; 
  background: rgba(255,255,255,0.7); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text-main); padding: 6px 14px; 
  font-size: 0.7rem; font-weight: 800; 
  text-transform: uppercase; letter-spacing: 1.5px; 
  z-index: 5; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.btn-fav { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); z-index: 5; opacity: 0; transform: translateY(-10px); transition: all 0.3s; color: var(--text-main); border: none; cursor: pointer; }
.product-card:hover .btn-fav { opacity: 1; transform: translateY(0); }
.btn-fav:hover { background: var(--text-main); color: white; }

.product-info { display: flex; flex-direction: column; flex-grow: 1; padding: 0 5px; }
.product-category { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: 600; display: block; }
.product-name { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: 5px; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;}
.price-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-top: 5px;}
.price-wrap { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.old-price { font-size: 0.95rem; color: var(--text-muted); text-decoration: line-through; }

/* --- FOOTER --- */
footer { background: var(--surface-color); padding: 80px 0 30px; border-top: 1px solid var(--border-color); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 25px; letter-spacing: -0.5px;}
.footer-col p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: var(--text-muted); transition: color 0.3s; font-weight: 500; }
.footer-links a:hover { color: var(--text-main); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 30px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem; }

/* --- TOASTS & WA --- */
.float-wa { position: fixed; bottom: 30px; left: 30px; background: var(--couleur-whatsapp); width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); z-index: 1000; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.float-wa:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4); }

#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--accent-color); color: white; padding: 16px 24px; border-radius: var(--radius-md); font-weight: 500; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-lg); animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.4s 3s forwards; }

/* ANIMATION */
.anim-entree { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.anim-entree.visible { opacity: 1; transform: translateY(0); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0;} to { transform: translateX(0); opacity: 1;} }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* --- CATEGORY CAROUSEL CIRCULAIRE --- */
.category-carousel-arrondi { display: flex; gap: 40px; overflow-x: auto; padding: 20px 10px 60px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; margin-top: 20px; }
.category-carousel-arrondi::-webkit-scrollbar { display: none; }

.cat-card-arrondi { flex: 0 0 clamp(100px, 15vw, 160px); display: flex; flex-direction: column; align-items: center; gap: 15px; text-decoration: none; scroll-snap-align: start; background: transparent; box-shadow: none; transform: none; position: relative; }
.cat-card-arrondi img { width: clamp(100px, 15vw, 160px); height: clamp(100px, 15vw, 160px); border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); filter: brightness(0.95); margin: 0 auto; }
.cat-card-arrondi:hover img { transform: translateY(-10px) scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.12); filter: brightness(1.05); }

.cat-content { position: relative; bottom: auto; text-align: center; color: var(--text-main); transform: none !important; }
.cat-content h3 { font-size: clamp(0.85rem, 1.2vw, 1rem); font-weight: 500; font-family: 'Poppins', sans-serif; letter-spacing: 2px; margin: 0; text-transform: uppercase; transition: color 0.3s; }
.cat-card-arrondi:hover .cat-content h3 { color: var(--text-muted); }

/* MEDIA QUERIES */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ==========================================
   AVIS ET EVALUATIONS (NOUVEAU)
========================================== */
.reviews-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.reviews-header h2 {
  font-size: 1.8rem;
  font-weight: 500;
}
.reviews-average {
  display: flex;
  align-items: center;
  gap: 15px;
}
.reviews-average-score {
  font-size: 3rem;
  font-weight: 600;
}
.reviews-average-stars {
  color: #fbbf24;
  font-size: 1.2rem;
}
.reviews-average-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.review-card {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.review-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.review-stars {
  color: #fbbf24;
  margin-bottom: 10px;
}
.review-text {
  font-size: 1rem;
  line-height: 1.6;
}
.review-form-container {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
}
.star-rating-input {
  display: flex;
  gap: 5px;
  font-size: 2rem;
  color: var(--border-color);
  cursor: pointer;
  margin-bottom: 15px;
}
.star-rating-input span:hover,
.star-rating-input span.active {
  color: #fbbf24;
}
.btn-submit-review {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================
   RECHERCHE GLOBALE (NOUVEAU)
========================================== */
.search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.search-modal-content {
  width: 90%;
  max-width: 800px;
}
.search-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 30px;
}
#global-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-main);
  outline: none;
}
#global-search-input::placeholder {
  color: #ccc;
}
.btn-close-search {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-main);
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 60vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  padding: 15px;
  border-radius: 12px;
  transition: background 0.2s;
}
.search-result-item:hover {
  background: var(--bg-secondary);
}
.search-result-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.search-result-info h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 5px;
}
.search-result-info p {
  color: var(--text-muted);
}

/* ==========================================
   APP-LIKE MOBILE UI (NOUVEAU RESPONSIVE)
========================================== */
.mobile-tabs-scroll { display: none; }
.mobile-bottom-bar { display: none; }
.mobile-hero-app { display: none; }
.mobile-home-wrapper { display: none; }

@media (max-width: 768px) {
  /* Cacher les éléments desktop et promo superflues */
  .desktop-hero, .hero-ecommerce { display: none !important; }
  .hide-mobile-top { display: none !important; }
  .desktop-only-header { display: none !important; }
  .trust-strip { display: none !important; }
  .collection-banner { display: none !important; }
  .newsletter-immersive { display: none !important; }
  footer { display: none !important; }
  
  /* Afficher wrapper UI Mobile */
  .mobile-home-wrapper { display: block; padding-top: 15px; }

  /* Top Nav et Tabs (Discover, New In...) -> Celles pour boutique.html s'il y a lieu */
  .top-nav { height: auto; padding-bottom: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
  .nav-wrapper { padding-bottom: 10px; }
  
  .mobile-tabs-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 0 20px 10px;
    scrollbar-width: none;
    font-family: 'Inter', sans-serif;
  }
  .mobile-tabs-scroll::-webkit-scrollbar { display: none; }
  .mobile-tabs-scroll a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
  }
  .mobile-tabs-scroll a.active {
    color: var(--text-main);
    border-bottom-color: var(--accent-color);
  }

  /* --- HEADER MOBILE PREMIUM (Floating & Pill) --- */
  .mobile-new-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    position: relative;
    z-index: 101;
  }
  .mh-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  #mh-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
  }
  .mh-greeting {
    display: flex;
    flex-direction: column;
  }
  .mh-greeting-text {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #mh-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
  }
  .mh-cart-icon {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--text-main);
  }
  .mh-cart-icon span {
    position: absolute;
    top: -3px; right: -3px;
    background: #ef4444; color: white;
    font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
  }

  /* --- BARRE DE RECHERCHE MOBILE PREMIUM NATIVE --- */
  .mobile-search-wrapper {
    padding: 0 20px 25px;
  }
  .msw-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 14px 20px;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .msw-inner:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  }
  .msw-inner svg {
    color: #111827;
    width: 22px; height: 22px;
  }
  .msw-inner input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    color: #111827;
  }
  .msw-inner input::placeholder {
    color: #94a3b8;
    font-weight: 400;
  }

  /* --- SECTIONS GLOBALES MOBILE (App Style) --- */
  .section-padding { padding: 15px 0 !important; }
  
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
  }
  .section-header > div { margin: 0; }
  .section-title {
    font-size: 1.45rem !important;
    font-weight: 700;
    margin: 0;
    color: #111827;
    letter-spacing: -0.5px;
  }
  .section-subtitle { display: none; } /* Cacher description sur mobile */
  
  .btn-secondary {
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
    border: none;
    text-transform: none;
    letter-spacing: 0;
  }
  .btn-secondary::after {
    content: " >";
  }

  /* --- BANNIERE COLLECTION MOBILE (Card App) --- */
  .collection-banner {
    height: 180px !important;
    min-height: auto !important;
    margin: 20px !important;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  .banner-content { padding: 20px; text-align: left; width: 100%; display: flex; flex-direction: column; justify-content: center; height: 100%; }
  .banner-content h2 { font-size: 1.5rem !important; margin-bottom: 10px; }
  .banner-content .btn-hero-primary {
    padding: 8px 16px;
    font-size: 0.75rem;
    width: max-content;
  }

  /* --- NEWSLETTER MOBILE (Card Compacte) --- */
  .newsletter-immersive {
    height: auto !important;
    min-height: auto !important;
    margin: 20px !important;
    border-radius: 16px;
    padding: 30px 20px;
  }
  .newsletter-content { padding: 0; text-align: left; }
  .newsletter-content h2 { font-size: 1.6rem !important; margin-bottom: 10px; letter-spacing: -1px; }
  .newsletter-content p { font-size: 0.9rem !important; margin-bottom: 20px; }
  .newsletter-form-minimal { flex-direction: row !important; align-items: stretch; gap: 10px !important; border: none !important; }
  .newsletter-form-minimal input { border: 1px solid rgba(255,255,255,0.4) !important; padding: 12px 15px !important; border-radius: 8px; font-size: 0.9rem !important; }
  .newsletter-form-minimal button { background: white !important; color: black !important; padding: 0 15px !important; border-radius: 8px; font-size: 1.2rem !important; transform: none !important; }  /* --- CARROUSEL BANNIERES MOBILE --- */
  .mobile-promo-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px 20px;
    gap: 15px;
    scrollbar-width: none;
  }
  .mobile-promo-carousel::-webkit-scrollbar { display: none; }
  
  .mhc-slide {
    flex: 0 0 88%;
    height: 200px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08); /* Ombre douce Appli Native */
    background: #111827; /* Fallback luxury dark */
    transition: transform 0.2s;
  }
  .mhc-slide:active {
    transform: scale(0.98);
  }
  .mhc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .mhc-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.0) 100%);
    z-index: 2;
  }
  .mhc-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 25px;
    color: white;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .mhc-slide-content h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  .mhc-slide-content p {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
  }

  /* --- BOUTIQUE MOBILE NATIVE HEADER --- */
  .mobile-only { display: block !important; }
  .mobile-boutique-header {
    background: transparent;
    padding: 20px 20px 0;
    position: relative;
    z-index: 50;
    border-bottom: none;
  }
  .mbh-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  .mbh-top h2 { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }
  .mbh-top .mh-cart-icon { position: relative; color: var(--text-main); display: flex; align-items: center; justify-content: center; }
  .mbh-top .mh-cart-icon span {
    position: absolute; top: -5px; right: -8px; 
    background: #ef4444; color: white; border-radius: 10px;
    font-size: 0.65rem; padding: 2px 5px; font-weight: bold;
  }
  .mobile-filters-scroll {
    display: flex;
    overflow-x: auto;
    padding: 15px 0 15px;
    gap: 10px;
    scrollbar-width: none;
    margin: 0 -20px; /* Bleed to edges */
  }
  .mobile-filters-scroll::before, .mobile-filters-scroll::after { content: ''; flex: 0 0 20px; }
  .mobile-filters-scroll::-webkit-scrollbar { display: none; }
  .chip {
    padding: 8px 18px;
    border-radius: 100px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    outline: none;
  }
  .chip.active {
    background: var(--text-main);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* --- CATEGS MOBILE (Shop by Category Formatté) --- */
  .mobile-category-header {
    display: block;
    padding: 0 20px;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 5px;
  }
  .mobile-category-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
  }
  .desktop-only { display: none !important; }

  .category-carousel-arrondi {
    padding: 10px 20px 20px;
    gap: 15px;
    justify-content: flex-start;
  }
  .cat-card-arrondi {
    flex: 0 0 auto !important;
    min-width: 65px;
    gap: 8px !important;
  }
  .cat-card-arrondi img {
    width: 68px !important;
    height: 68px !important;
    border: 1.5px solid #0f766e; /* Cercle Teal/Vert d'eau */
    padding: 3px;
    background: transparent;
    filter: none !important;
    box-shadow: none !important;
    transform: none !important; /* Pas d'effet hover scale sur mobile */
  }
  .cat-card-arrondi .cat-content {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
  }
  .cat-card-arrondi h3 {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
  }

  /* --- BOTTOM NAVIGATION BAR (Ultra Premium / iOS 18 Style) --- */
  body { padding-bottom: 90px; }
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 82px;
    background: white;
    border-top: 0.5px solid rgba(0,0,0,0.06);
    z-index: 1000;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #b0b8c4;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
    position: relative;
    padding: 4px 0;
    min-width: 64px;
    -webkit-tap-highlight-color: transparent;
  }
  .mb-nav-item:active { transform: scale(0.9); }
  .mb-nav-item svg { 
    width: 24px; height: 24px;
    margin-bottom: 5px; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .mb-nav-item.active {
    color: #111827;
  }
  .mb-nav-item.active svg {
    transform: scale(1.05);
  }

  /* Active Dot Indicator */
  .mb-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 5px; height: 5px;
    background: #111827;
    border-radius: 50%;
  }

  .mb-nav-item span { 
    font-size: 0.6rem; 
    font-weight: 600; 
    letter-spacing: 0.3px; 
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1;
  }

  /* Cart Badge */
  .mb-cart-badge {
    position: absolute; top: -2px; right: 10px;
    background: #111827; color: white;
    font-size: 10px; font-weight: 800; border-radius: 10px;
    min-width: 18px; height: 18px;
    display: none; align-items: center; justify-content: center;
    padding: 0 5px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(17,24,39,0.2);
  }
  .mb-cart-badge.visible { display: flex; }
  
  /* Mobile Hero (Carousel-like Banner) */
  .mobile-hero-app {
    display: block;
    padding: 110px 20px 20px;
  }
  .mobile-hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  .mobile-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.85);
  }
  .mhc-content {
    padding: 20px;
    color: white;
    width: 80%;
    position: relative;
    z-index: 2;
  }
  .mhc-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    line-height: 1.25;
    font-weight: 700;
  }
  .mhc-content p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.9;
  }
  .btn-mhc {
    display: inline-block;
    background: var(--surface-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .float-wa { bottom: 85px; right: 20px; left: auto; transform: scale(0.9); }
  #toast-container { bottom: 85px; }
  
  /* Grille 2 colonnes App-Style Ultra-Luxe */
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 12px !important;
    padding: 10px 15px 40px !important;
  }
  .product-card { 
    box-shadow: none !important; 
    border: none !important; 
    background: transparent !important;
  }
  .img-container { 
    border-radius: 8px !important; 
    aspect-ratio: 3/4 !important; 
    height: auto !important;
  }
  .img-container img {
    object-position: top;
  }
  .product-info { 
    padding: 12px 2px 0 !important; 
    text-align: left !important;
  }
  .product-info h3 { 
    font-size: 0.85rem !important; 
    font-weight: 500 !important; 
    line-height: 1.3 !important; 
    margin-bottom: 6px !important; 
    color: #374151 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .price { 
    font-size: 0.95rem !important; 
    font-weight: 700 !important; 
    color: #111827 !important; 
    margin-top: auto;
  }
  .product-card .btn-fav { 
    top: 10px; right: 10px; 
    width: 32px; height: 32px; 
    opacity: 1; visibility: visible; 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(5px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }
  .btn-add-cart-overlay { display: none !important; } 
  
  .category-carousel-arrondi {
    padding: 10px 15px 30px;
    gap: 20px;
  }
}

/* --- PROFILE DROPDOWN --- */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: -10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 15px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header strong {
  color: var(--text-main);
  display: block;
  font-size: 1.1rem;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--accent-color);
  transform: translateX(5px);
}

.dropdown-item.text-danger {
  color: #ef4444;
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
}

/* ==========================================
   VARIANTS & CHOICES (HYPER AESTHETIC)
========================================== */
.variant-group { margin-bottom: 30px; }
.variant-label { 
  display: block; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  color: var(--text-muted); 
  margin-bottom: 12px; 
}
.variant-options { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-variant {
  min-width: 60px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.btn-variant:hover {
  border-color: var(--text-main);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-variant.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

/* Specific scale animation on click */
.btn-variant:active { transform: scale(0.95); }

/* Error state if not selected */
.variant-error { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; border-color: #ef4444 !important; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
