/* =====================================================
   RESET
===================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 80px;

  --ink:       #1d1d1f;
  --ink2:      #6e6e73;
  --ink3:      #aeaeb2;
  --surface:   rgba(255,255,255,0.85);
  --border:    rgba(0,0,0,0.08);
  --hover-bg:  rgba(0,0,0,0.05);
  --accent:    #0071e3;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* ── Hauteurs fixes ── */
  --bar-h:        32px;   /* announcement bar          */
  --header-h:     52px;   /* header fixe               */
  --mobile-cat-h: 42px;   /* barre catégories mobile   */

  /* top du dropdown = somme des trois couches */
  --dropdown-top: calc(var(--bar-h) + var(--header-h) + var(--mobile-cat-h));

  /* ── Couches z-index — le menu mobile doit dominer TOUT le site ── */
  --z-mega-menu:      1500;
  --z-menu-overlay:   2500;
  --z-mobile-dropdown:2900;
  --z-header:         3000;
  --z-announcement:   3100;
  --z-search-overlay: 9000;
  --z-menu-toggle:    10000;
  --z-icons:          10001;
  --z-navbar-mobile:  99999;  /* toujours au-dessus de tout, y compris header/icônes/search */
  --z-overlay-mobile: 99998;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

body.menu-open { overflow: hidden; }

/* =====================================================
   ANNOUNCEMENT BAR
===================================================== */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: var(--z-announcement);
  overflow: hidden;
  background: #000;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 12.5px;
}

.announcement-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.08), transparent 80%);
  opacity: 0.4;
  animation: shine 6s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Ticker */
.announcement-ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 80px;
  letter-spacing: 0.04em;
  opacity: 0.9;
  transition: opacity .3s ease;
}

.ticker-item:hover { opacity: 1; }
.ticker-item .icon { font-size: 13px; opacity: 0.85; }
.ticker-item strong { color: #f5c542; font-weight: 600; }

.ticker-sep {
  padding-right: 80px;
  color: rgba(255,255,255,0.25);
}

html[dir="rtl"] .ticker-track { direction: rtl; }

/* Boutons barre */
.bar-lang-btn,
.bar-track-btn {
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.bar-lang-btn {
  margin-left: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 5px 14px;
  white-space: nowrap;
}

.bar-track-btn {
  margin-left: 8px;
  font-size: 14px;
  line-height: 1;
  padding: 5px 10px;
}

.bar-lang-btn:hover,
.bar-track-btn:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* =====================================================
   HEADER
===================================================== */
.header {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  width: 100%;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-header);
  background: transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.header.scrolled,
body.menu-open .header,
.header.mega-active {
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}

/* =====================================================
   LOGO
===================================================== */
.logo { z-index: 500; }

.logo img {
  height: 150px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img { height: 80px; }
}

/* =====================================================
   NAVBAR DESKTOP
===================================================== */
.navbar-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  position: static;
}

.nav-item { position: static; }

.navbar-desktop a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.1px;
  color: #fff;
  padding: 6px 14px;
  display: block;
  transition: background .2s ease, color .2s ease;
}

.navbar-desktop a::after { display: none; }

.navbar-desktop a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.header.scrolled .navbar-desktop a,
body.menu-open .header .navbar-desktop a,
.header.mega-active .navbar-desktop a {
  color: var(--ink);
}

.header.scrolled .navbar-desktop a:hover,
.header.mega-active .navbar-desktop a:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

/* =====================================================
   ICONS
===================================================== */
.icons {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: var(--z-icons);
}

.icon-btn,
.icons a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

.icon-btn:hover,
.icons a:hover {
  background: rgba(255,255,255,0.15);
}

.header.scrolled .icon-btn:hover,
.header.scrolled .icons a:hover,
.header.mega-active .icon-btn:hover,
.header.mega-active .icons a:hover,
body.menu-open .header .icon-btn:hover,
body.menu-open .header .icons a:hover {
  background: rgba(0,0,0,0.06);
}

/* Font Awesome */
.fa-solid,
.fa-regular,
.fas {
  font-size: 15px;
  color: #fff;
}

.fa-solid { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.fa-regular { font-family: "Font Awesome 6 Free" !important; font-weight: 400 !important; }

.header.scrolled .fa-solid,
.header.scrolled .fa-regular,
.header.scrolled .fas,
.header.mega-active .fa-solid,
.header.mega-active .fa-regular,
.header.mega-active .fas,
body.menu-open .header .fa-solid,
body.menu-open .header .fa-regular,
body.menu-open .header .fas {
  color: var(--ink);
}

/* User icon contour */
#userLink .fas.fa-user {
  color: transparent !important;
  -webkit-text-stroke: 1.5px #fff !important;
}

.header.scrolled #userLink .fas.fa-user,
.header.mega-active #userLink .fas.fa-user,
body.menu-open .header #userLink .fas.fa-user {
  color: transparent !important;
  -webkit-text-stroke: 1.5px var(--ink) !important;
}

/* Bag SVG */
.icon-shopping-bag { stroke: #fff !important; }

.header.scrolled .icon-shopping-bag,
.header.mega-active .icon-shopping-bag,
body.menu-open .header .icon-shopping-bag {
  stroke: #111 !important;
}

/* =====================================================
   CART BADGE
===================================================== */
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  min-width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 3px;
  border: 1.5px solid #f5f5f7;
  z-index: 10;
  transition: transform .2s ease;
}

.cart-count.bump { transform: scale(1.3); }

@media (max-width: 480px) {
  .cart-count {
    top: 1px;
    right: 1px;
    min-width: 14px;
    height: 14px;
    font-size: 8px;
  }
}

/* =====================================================
   HAMBURGER
===================================================== */
.menu-toggle {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-menu-toggle);
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: background .2s ease;
}

.menu-toggle:hover { background: rgba(255,255,255,0.12); }

.header.scrolled .menu-toggle:hover,
body.menu-open .menu-toggle:hover {
  background: rgba(0,0,0,0.06);
}

.burger-line {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .38s cubic-bezier(.4,0,.2,1),
              width     .3s  cubic-bezier(.4,0,.2,1),
              opacity   .25s ease;
  transform-origin: center;
}

.burger-line:nth-child(1) { width: 20px; }
.burger-line:nth-child(2) { width: 14px; }

.header.scrolled .burger-line,
body.menu-open .burger-line {
  background: var(--ink);
}

.menu-toggle.active .burger-line:nth-child(1) {
  width: 18px;
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.active .burger-line:nth-child(2) {
  width: 18px;
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
}

/* =====================================================
   MEGA MENU
===================================================== */
.mega-menu {
  position: fixed;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 48px 0 44px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  border-bottom: 0.5px solid var(--border);
  z-index: var(--z-mega-menu);
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mega-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 56px;
  padding: 0 60px;
}

.mega-link {
  text-align: center;
  width: 160px;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
}

.mega-link img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 14px;
  background: #fff;
  padding: 10px;
  transition: box-shadow .3s ease, transform .35s ease;
}

.mega-link span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--ink);
  display: block;
}

.mega-link small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink3);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 5px;
  transition: color .2s ease;
}

.mega-link:hover { transform: translateY(-5px); }

.mega-link:hover img {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  transform: scale(1.03);
}

.mega-link:hover small { color: var(--ink2); }

.mega-see-all,
.mega-link.see-all {
  flex: 0 0 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 10px;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}

.mega-link.see-all:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

/* Mega menu éditorial — numéros */
.mega-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #e4e4e4;
  line-height: 1;
  margin-bottom: 12px;
  transition: color .22s ease;
  font-variant-numeric: tabular-nums;
}

.mega-num--arrow {
  font-size: 28px;
  letter-spacing: 0;
}

.mega-link:hover .mega-num { color: var(--ink); }

/* Séparateur vertical entre items */
.mega-link + .mega-link {
  border-left: 0.5px solid var(--border);
  padding-left: 40px;
}

/* "Voir tout" — style discret */
.mega-link--voir-tout span:not(.mega-num) {
  font-weight: 500;
  color: var(--ink2);
}

.mega-link--voir-tout:hover span:not(.mega-num) {
  color: var(--ink);
}

@media (max-width: 1024px) {
  .mega-menu { display: none; }
}

/* =====================================================
   MENU MOBILE — thème noir premium
===================================================== */
.navbar-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 78%;
  max-width: 400px;
  height: 100dvh;
  background: #0c0c0d;
  display: flex;
  flex-direction: column;
  transition: left .38s cubic-bezier(.4,0,.2,1);
  z-index: var(--z-navbar-mobile); /* au-dessus de TOUT : header, icônes, search overlay, mega-menu */
  overflow: hidden;
  box-shadow: 10px 0 60px rgba(0,0,0,0.55);
}

.navbar-mobile.active { left: 0; }

/* Image de fond, assombrie par un filtre noir en dégradé */
.navbar-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/2669c5c3-a47e-4605-9831-70a038eb744b.jpeg');
  background-size: contain;
  background-position: center top;
  filter: grayscale(15%);
  opacity: 0.55;
  z-index: 0;
}

.navbar-mobile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.90) 45%,
    #0c0c0d 85%);
  z-index: 0;
}

/* Tout le contenu passe au-dessus du fond */
.mobile-menu-header,
.mobile-tabs,
.tab-content {
  position: relative;
  z-index: 1;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 16px;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

/* Bouton fermer */
.mobile-close-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.4,0,.2,1);
}

.mobile-close-btn svg { width: 15px; height: 15px; }


.mobile-close-btn:active { transform: rotate(90deg) scale(0.9); }
/* =====================================================
   FOOTER MENU MOBILE
===================================================== */
.mobile-menu-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
}

.mobile-footer-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  background: #fff;
  color: #0c0c0d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.mobile-footer-login:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
}

.mobile-footer-login i {
  width: 16px;
  height: 16px;
  stroke: #0c0c0d;
  flex-shrink: 0;
}

.mobile-footer-meta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}
/* Tabs */
.mobile-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  color: rgba(255,255,255,0.4);
  transition: color .2s ease, border-color .2s ease;
  font-family: inherit;
}

.tab-btn.active {
  border-bottom-color: #fff;
  color: #fff;
}

/* Contenu scrollable */
.tab-content {
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 0;
}

.tab-content::-webkit-scrollbar { display: none; }
.tab-content.active { display: flex; }

/* Lien simple */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  transition: background .15s ease;
}

.menu-item:hover { background: rgba(255,255,255,0.06); }

.menu-item i {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.menu-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.menu-item.sale-link,
.menu-item.sale-link span { color: #ff6152; }

/* Item avec sous-menu */
.menu-item-with-sub {
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.menu-item-with-sub > .menu-item {
  border-bottom: none;
  position: relative;
}

.menu-item-with-sub > .menu-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .2s;
}

.menu-item-with-sub.open > .menu-item::after {
  transform: rotate(45deg) translateX(-2px);
  border-color: #fff;
}

/* Sous-menu (liste texte) */
.menu-item-with-sub .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
  background: rgba(255,255,255,0.03);
  border-top: 0.5px solid rgba(255,255,255,0.08);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.menu-item-with-sub.open .submenu { max-height: 400px; }

.menu-item-with-sub .submenu li {
  background: transparent;
  transition: background .15s ease;
}

.menu-item-with-sub .submenu li:hover { background: rgba(255,255,255,0.05); }

.menu-item-with-sub .submenu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 32px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  transition: color .15s ease, padding .15s ease;
  letter-spacing: -0.1px;
}

.menu-item-with-sub .submenu li a:hover {
  color: #fff;
  padding-left: 38px;
}

.menu-item-with-sub .submenu li a::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .2s ease;
}

.menu-item-with-sub .submenu li a:hover::after {
  opacity: 1;
  border-color: #fff;
}

.menu-item-with-sub .submenu .submenu-see-all {
  background: rgba(255,255,255,0.04) !important;
  border-bottom: 0.5px solid rgba(255,255,255,0.08) !important;
}

.menu-item-with-sub .submenu .submenu-see-all a {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff !important;
  padding-left: 20px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.menu-item-with-sub .submenu .submenu-see-all a:hover { padding-left: 26px; }

.menu-item-with-sub .submenu .submenu-see-all a::after {
  opacity: 1 !important;
  border-color: #fff !important;
}

/* Sous-menu en grille 2 colonnes (variante images) */
.submenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.submenu-grid li {
  background: #131313;
  transition: background .15s ease;
}

.submenu-grid li:hover { background: #1c1c1c; }

.submenu-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-align: center;
  gap: 8px;
  letter-spacing: -0.1px;
}

.submenu-grid li a img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

/* Voir tout — pleine largeur */
.submenu-see-all {
  grid-column: 1 / -1;
  background: #131313 !important;
  border-top: 0.5px solid rgba(255,255,255,0.06) !important;
}

.submenu-see-all a {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  padding: 12px !important;
  font-size: 12px !important;
  font-weight: 600;
  color: #fff !important;
  gap: 4px;
}

/* Brands tab */
#brands { padding: 8px 0 32px; }

#brands a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  padding: 13px 20px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  transition: background .15s ease;
}

#brands a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transform: rotate(-45deg);
  flex-shrink: 0;
}

#brands a:hover { background: rgba(255,255,255,0.05); }

.submenu-trigger { cursor: pointer; user-select: none; }

/* =====================================================
   OVERLAY MENU
===================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: var(--z-overlay-mobile); /* juste sous le menu, mais au-dessus du reste du site */
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =====================================================
   LAYOUT MOBILE
===================================================== */
@media (max-width: 1024px) {
  .navbar-desktop { display: none; }

  .header {
    justify-content: center;
    padding: 0 16px;
    z-index: 1000;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .icons {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-icons);
  }
}

/* =====================================================
   BARRE CATÉGORIES MOBILE
   ─ Positionnement 100% CSS, aucun JS impliqué ─
===================================================== */
.mobile-categories-bar { display: none; }

@media (max-width: 1024px) {
  .mobile-categories-bar {
    display: flex;
    justify-content: space-around;
    position: fixed;
    /* colle juste sous le header, lui-même positionné sous la bar */
    top: calc(var(--bar-h) + var(--header-h));
    left: 0;
    width: 100%;
    height: var(--mobile-cat-h);
    background: transparent;
    z-index: 900;
    border-bottom: 0.5px solid transparent;
    transition: background .35s ease, border-color .35s ease;
  }

  .mobile-categories-bar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--border);
  }

  .mobile-category {
    position: static;
    padding: 0 8px;
    height: var(--mobile-cat-h);
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: color .2s ease;
  }

  .mobile-category.active,
  .mobile-category:hover { color: #fff; }

  /* ── Texte sombre après scroll ── */
  .mobile-categories-bar.scrolled .mobile-category         { color: var(--ink2); }
  .mobile-categories-bar.scrolled .mobile-category.active,
  .mobile-categories-bar.scrolled .mobile-category:hover   { color: var(--ink); }

  /* =====================================================
     DROPDOWN MOBILE — 100% CSS
     top = announcement-bar + header + barre-catégories
  ===================================================== */
  .mobile-dropdown {
    position: fixed;
    top: 50px !important;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 22px 20px;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;

    /* état par défaut : caché */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .28s ease, visibility .25s;

    border-bottom: 0.5px solid var(--border);
    z-index: var(--z-mobile-dropdown);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-dropdown::-webkit-scrollbar { display: none; }

  /* état actif : visible — déclenché par la classe .active sur .mobile-category */
  .mobile-category.active .mobile-dropdown {
    top: 40px !important;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-dropdown a {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink);
  }

  .mobile-dropdown img {
    width: 100%;
    height: 86px;
    object-fit: contain;
    margin-bottom: 8px;
    background: transparent;
    padding: 6px;
    transition: box-shadow .25s ease;
  }

  .mobile-dropdown a:hover img {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  /* ── Header + barre blancs quand un dropdown est ouvert (CSS :has) ── */
  .mobile-categories-bar:has(.mobile-category.active) {
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--border);
  }

  .mobile-categories-bar:has(.mobile-category.active) .mobile-category         { color: var(--ink2);    top: 45px !important;  }
  .mobile-categories-bar:has(.mobile-category.active) .mobile-category.active  { color: var(--ink);    top: 45px !important;  }

  body:has(.mobile-category.active) .header {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--border);
  }

  body:has(.mobile-category.active) #headerLogo           { content: url('/images/logonew.png'); }
  body:has(.mobile-category.active) .burger-line          { background: var(--ink); }

  body:has(.mobile-category.active) .fa-solid,
  body:has(.mobile-category.active) .fa-regular,
  body:has(.mobile-category.active) .fas                  { color: var(--ink); }

  body:has(.mobile-category.active) .icon-shopping-bag    { stroke: #111 !important; }

  body:has(.mobile-category.active) #userLink .fas.fa-user {
    color: transparent !important;
    -webkit-text-stroke: 1.5px var(--ink) !important;
  }
}

/* =====================================================
   SEARCH OVERLAY
===================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-search-overlay);
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Mobile cats strip */
.search-mobile-cats {
  display: none;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid #e8e8e8;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  padding: 0;
}

.search-mobile-cats::-webkit-scrollbar { display: none; }

.smc-tag {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  background: #fff;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.smc-tag.active,
.smc-tag:hover {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
}

/* Top bar */
.search-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  height: 68px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  flex-shrink: 0;
}

.search-back-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid #e8e8e8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.search-back-btn:hover { border-color: #0a0a0a; color: #0a0a0a; }

.search-back-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.search-field-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid #e8e8e8;
  padding: 0 4px;
  height: 44px;
  transition: border-color 0.18s;
}

.search-field-wrap:focus-within { border-bottom-color: #0a0a0a; }

.sf-icon { width: 16px; height: 16px; color: #aaa; flex-shrink: 0; }

.search-field-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #0a0a0a;
  letter-spacing: 0.01em;
}

.search-field-wrap input::placeholder { color: #bbb; font-weight: 300; }

/* Body */
.search-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
.search-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid #e8e8e8;
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #fff;
  scrollbar-width: none;
}

.search-sidebar::-webkit-scrollbar { display: none; }

.ss-section { display: flex; flex-direction: column; gap: 10px; }

.ss-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0;
}

.recent-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.recent-tags .tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #666;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}

.recent-tags .tag:hover { border-color: #0a0a0a; color: #0a0a0a; }

.ss-cats { display: flex; flex-direction: column; }

.ss-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.ss-cat:first-child { border-top: 1px solid #f2f2f2; }
.ss-cat:hover { color: #0a0a0a; }
.ss-cat svg { width: 9px; height: 9px; color: #ccc; flex-shrink: 0; }
.ss-cat:hover svg { color: #0a0a0a; }

/* Main */
.search-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 28px 32px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.search-main::-webkit-scrollbar { width: 4px; }
.search-main::-webkit-scrollbar-track { background: transparent; }
.search-main::-webkit-scrollbar-thumb { background: #e0e0e0; }

.sm-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #0a0a0a;
}

.sm-title { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #0a0a0a; }
.sm-count { font-size: 10px; font-weight: 400; letter-spacing: 0.08em; color: #aaa; }

/* Products grid */
.search-overlay .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e8e8e8;
}

.search-overlay .pgrid-skeleton {
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
  animation: skshimmer 1.6s ease-in-out infinite;
}

@keyframes skshimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.search-overlay .product-card {
  display: block;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
  transition: background 0.15s;
}

.search-overlay .product-card:hover { background: #fafafa; }

.search-overlay .product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.search-overlay .product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.38s ease;
}

.search-overlay .product-card:hover .product-card-img { transform: scale(1.04); }

.search-overlay .product-card-info {
  padding: 8px 10px 12px;
  border-top: 1px solid #f2f2f2;
}

.search-overlay .product-card-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a0a0a;
  line-height: 1.4;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-overlay .product-card-brand {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
}

.search-overlay .product-card-price {
  font-size: 11px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: 0.03em;
}

.search-overlay .product-card-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 5px;
  background: #0a0a0a;
  color: #fff;
  margin-left: 5px;
  vertical-align: middle;
}

/* Results list */
.results-list { display: flex; flex-direction: column; }

.result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  transition: background 0.1s, padding 0.1s;
}

.result-item:first-child { border-top: 1px solid #f2f2f2; }
.result-item:last-child  { border-bottom: none; }

.result-item:hover {
  background: #fafafa;
  padding-left: 6px;
  padding-right: 6px;
  margin: 0 -6px;
}

.result-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border: 1px solid #efefef;
  overflow: hidden;
  flex-shrink: 0;
  background: #fafafa;
}

.result-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }

.result-info { flex: 1; min-width: 0; }

.result-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-price {
  font-size: 12px;
  font-weight: 700;
  color: #0a0a0a;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 13px 0;
  border: 1.5px solid #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s, color 0.15s;
}

.search-view-all:hover { background: #0a0a0a; color: #fff; }

/* Empty state */
.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  gap: 8px;
}

.search-empty-state svg { width: 32px; height: 32px; color: #ddd; margin-bottom: 6px; }

.search-empty-state p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0;
}

.search-empty-state span { font-size: 11px; font-weight: 400; color: #aaa; letter-spacing: 0.04em; }

/* Footer */
.search-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  height: 42px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
  flex-shrink: 0;
}

.sf-hint {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sf-hint kbd {
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-bottom-width: 2px;
  font-size: 9px;
  font-family: inherit;
  color: #666;
  letter-spacing: 0.03em;
}

.sf-brand {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ccc;
}

/* =====================================================
   RESPONSIVE TABLETTE ≤ 1024px
===================================================== */
@media (max-width: 1024px) {
  .search-top-bar  { padding: 0 20px; height: 60px; gap: 10px; }
  .search-main     { padding: 20px; }
  .search-overlay .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================
   RESPONSIVE MOBILE ≤ 768px
===================================================== */
@media (max-width: 768px) {
  .search-mobile-cats { display: flex; }
  .search-sidebar     { display: none; }
  .search-footer      { display: none; }

  .search-top-bar { padding: 0 14px; height: 56px; gap: 8px; }

  /* ≥ 16px pour éviter le zoom iOS au focus */
  .search-field-wrap input { font-size: 16px; }
  .search-field-wrap       { height: 40px; }

  .search-main { padding: 16px 14px; }
  .sm-header   { margin-bottom: 14px; padding-bottom: 10px; }

  .search-overlay .products-grid      { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .search-overlay .product-card-img-wrap { padding: 6px; }
  .search-overlay .product-card-info  { padding: 6px 8px 10px; }
  .search-overlay .product-card-name  { font-size: 9px; -webkit-line-clamp: 2; }
  .search-overlay .product-card-brand { display: none; }
  .search-overlay .product-card-price { font-size: 10px; }

  .result-thumb { width: 44px; height: 44px; min-width: 44px; }
  .result-name  { font-size: 11px; }
  .result-price { font-size: 11px; }

  .search-view-all { font-size: 9px; padding: 11px 0; }

  /* Ajustement si la bar est cachée sur mobile */
  @media (max-width: 768px) {
    :root { --bar-h: 32px; }
  }
}

/* =====================================================
   RESPONSIVE PETIT MOBILE ≤ 390px
===================================================== */
@media (max-width: 390px) {
  .search-top-bar { padding: 0 10px; height: 52px; gap: 6px; }
  .search-main    { padding: 12px 10px; }

  .search-overlay .products-grid     { grid-template-columns: repeat(2, 1fr); }
  .search-overlay .product-card-name  { font-size: 9px; }
  .search-overlay .product-card-price { font-size: 10px; }

  .smc-tag { padding: 0 12px; font-size: 10px; }
}

/* =====================================================
   ANNOUNCEMENT BAR RTL + MOBILE
===================================================== */
html[dir="rtl"] .ticker-track {
  animation-name: ticker-scroll-rtl;
  direction: rtl;
}

@keyframes ticker-scroll-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

@media (max-width: 768px) {
  .ticker-item { font-size: 11px; padding-right: 40px; }
  .ticker-sep  { padding-right: 40px; }
  .ticker-track { animation-duration: 20s; }
}

@media (max-width: 390px) {
  .announcement-bar { padding: 0 5px; }
  .ticker-item  { font-size: 10px; padding-right: 24px; }
  .ticker-sep   { padding-right: 24px; }
  .bar-lang-btn { padding: 3px 7px; font-size: 9px; }
  .bar-track-btn { font-size: 11px; }
}

/* =====================================================
   MEGA MENU — logo + header au survol
===================================================== */
.header.mega-active #headerLogo {
  content: url('/images/logonew.png');
}

/* =====================================================
   MISC
===================================================== */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: grab;
  overflow: hidden;
}

.zoom-overlay img {
  max-width: none;
  max-height: none;
  transform-origin: center center;
  transition: transform 0.2s ease;
  cursor: grab;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Premium Mega Drop ─────────────────────────── */
/* Le positionnement/visibilité est géré par JS (detachAndInitMegaMenus)
   On garde uniquement les styles visuels internes */

.mdp-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
  max-width: 860px;
  margin: 0 auto;
}

.mdp-section { display: flex; flex-direction: column; }

.mdp-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 10px;
}

.mdp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mdp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0.5px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.mdp-card:hover {
  border-color: rgba(0,0,0,0.18);
  background: var(--hover-bg);
}

.mdp-img {
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.mdp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mdp-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.mdp-sub {
  display: block;
  font-size: 11px;
  color: var(--ink3);
  margin-top: 1px;
}

.mdp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
  margin-top: 4px;
}

.mdp-see-all {
  font-size: 12px;
  font-weight: 500;
  color: black !important;
  text-decoration: none;
}

.mdp-promo-btn {
  font-size: 11px;
  background: #fff;
  color: #b45309;
  padding: 4px 12px;
  font-weight: 500;
  text-decoration: none;
}

/* ── Mobile dropdown Catégories : grille 4×3 premium (barre du haut, reste blanche) ── */
.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  padding: 0;
  overflow-x: visible;
  border-top: 0.5px solid var(--border);
}

.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 6px 14px;
  background: #fff;
  text-align: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
  width: auto;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
}

/* Supprimer le bord droit sur la 4e colonne */
.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a:nth-child(4n) {
  border-right: none;
}

/* Supprimer le bord bas sur la dernière ligne */
.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a:nth-last-child(-n+4) {
  border-bottom: none;
}

.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a:hover {
  background: #fff;
  color: var(--ink);
}

/* Point d'accent au tap — feedback premium */
.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a:active {
  background: #fff;
}

/* Wrapper image */
.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a .img-wrap,
.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  padding: 7px;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: transform .22s cubic-bezier(.25,.46,.45,.94);
}

.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown a:hover img {
  transform: scale(1.06);
}

.mobile-category:has([data-i18n="bar.categories"]) .mobile-dropdown p {
  margin: 0;
  line-height: 1.35;
  color: var(--ink2);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Mobile dropdown Packs — éditorial (barre du haut, reste blanche) ── */
.mobile-dropdown--packs {
  display: flex !important;
  flex-direction: column;
  padding: 0;
  overflow-x: visible;
  gap: 0;
  background: #fff;
}

.mobile-dropdown--packs a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
  width: 100%;
  text-align: left;
  transition: background .15s ease;
  flex-direction: row;
}

.mobile-dropdown--packs a:last-child {
  border-bottom: none;
}

.mobile-dropdown--packs a:hover,
.mobile-dropdown--packs a:active {
  background: #fff;
}

.mob-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #e0e0e0;
  line-height: 1;
  flex-shrink: 0;
  width: 42px;
  transition: color .2s ease;
}

.mobile-dropdown--packs a:hover .mob-num {
  color: var(--ink);
}

.mobile-dropdown--packs p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.mobile-dropdown--packs small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.mobile-dropdown--packs a:last-child .mob-num {
  color: var(--ink3);
  font-size: 20px;
}

#megaTousContainer {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px 32px;
  max-width: 950px;
}


#megaTousContainer .mega-link img {
  background: #fff;
}

#megaTousContainer .mega-link small {
  font-size: 11px;
  color: var(--ink3);
  display: block;
  margin-top: 2px;
}

.mob-skeleton {
  flex: 0 0 100px;
  height: 120px;
  background: #fff;
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.mega-see-all,
.mega-link.see-all {
  font-size: 12px;
  font-weight: 500;

}

.mdp-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--ink);
  line-height: 1.3;
}

.mdp-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink3);
  margin-top: 1px;
}