/**
 * KineticUltra — Kinetic Command header + mega menu + mobile drawer.
 * Loaded after kinetic.css; consumes its tokens.
 */

/* ---------- Header bar ---------- */
.k-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(var(--k-glass-rgb), 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--k-hairline);
}

.k-header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1920px;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
}

.k-header__left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.k-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--k-cyan);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  font-style: italic;
  text-decoration: none;
}

/* Image logo */
.k-header__logo-img {
  height: var(--k-logo-h, 36px);
  width: auto;
  display: block;
  object-fit: contain;
}
/* Dark mode: dark logo visible, light logo hidden */
.k-header__logo-img--light { display: none; }
/* Light mode: swap */
html[data-theme="light"] .k-header__logo-img--dark  { display: none; }
html[data-theme="light"] .k-header__logo-img--light { display: block; }

.k-header__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 1280px) {
  .k-header__menu {
    display: flex;
  }
}

.k-header__menu-item {
  position: relative;
}

.k-header__menu-item.has-mega::after {
  content: "";
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: 100%;
  height: 1.25rem;
}

.k-header__menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--k-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 200ms;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
}

.k-header__menu-link:hover,
.k-header__menu-link[aria-expanded="true"] {
  color: var(--k-cyan);
}

/* ---------- Mega menu (desktop ≥1280px) ---------- */
.k-mega {
  position: fixed;
  top: 63px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(var(--k-glass-rgb), 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 250ms, transform 250ms, visibility 250ms;
  pointer-events: none;
  z-index: 99;
}

.k-header__menu-item.has-mega:hover .k-mega,
.k-header__menu-item.has-mega:focus-within .k-mega,
.k-mega:hover,
.k-mega[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.k-mega__body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  max-width: 1920px;
  margin-inline: auto;
}

.k-mega__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 2.5rem;
  border-right: 1px solid var(--k-hairline);
}

.k-mega__group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.k-mega__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--k-cyan);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.k-mega__heading svg {
  width: 18px;
  height: 18px;
}

.k-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.k-mega__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.k-mega__list a {
  font-size: 13px;
  color: var(--k-text);
  opacity: 0.8;
  transition: color 200ms, opacity 200ms;
}

.k-mega__list a:hover {
  color: var(--k-cyan);
  opacity: 1;
}

.k-mega__count {
  font-size: 9px;
  color: var(--k-muted);
  border: 1px solid var(--k-hairline);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.k-mega__badge {
  font-size: 8px;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.k-mega__badge--cyan {
  background: rgba(0, 212, 255, 0.15);
  color: var(--k-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.k-mega__badge--green {
  background: rgba(0, 255, 136, 0.15);
  color: var(--k-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.k-mega__badge--violet {
  background: rgba(123, 97, 255, 0.15);
  color: var(--k-violet);
  border: 1px solid rgba(123, 97, 255, 0.3);
}

.k-mega__group-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--k-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.k-mega__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--k-muted);
  transition: color 200ms, transform 200ms;
}

.k-mega__footer-link:hover {
  color: var(--k-cyan);
  transform: translateX(4px);
}

.k-mega__footer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
}

.k-mega__footer-link--cyan {
  color: var(--k-cyan);
}

.k-mega__footer-link--green {
  color: var(--k-green);
}

.k-mega__footer-link--violet {
  color: var(--k-violet);
}

/* Mega feature panel */
.k-mega__feature {
  position: relative;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 60%),
    linear-gradient(135deg, var(--k-surface) 0%, var(--k-background) 100%);
  overflow: hidden;
}

/* Image background slot — only present when the merchant linked a
 * product or uploaded a custom image. Mirrors the design 05 spec:
 * mix-blend-luminosity + opacity 0.4, gradient overlay to keep text
 * readable, subtle hover scale. */
.k-mega__feature--has-image { padding: 0; }

.k-mega__feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  mix-blend-mode: luminosity;
  transition: transform 700ms ease;
  z-index: 0;
}

.k-mega__feature--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18, 18, 26, 0.95) 0%, rgba(18, 18, 26, 0.6) 60%, rgba(18, 18, 26, 0) 100%);
  z-index: 1;
}

.k-mega__feature--has-image:hover .k-mega__feature-bg { transform: scale(1.05); }

.k-mega__feature-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 32rem;
}

.k-mega__feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(123, 97, 255, 0.18);
  border: 1px solid rgba(123, 97, 255, 0.35);
  color: var(--k-violet);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1.25rem;
}

.k-mega__feature-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--k-violet);
  animation: k-pulse 1.8s ease-in-out infinite;
}

.k-mega__feature-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.7);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.k-mega__feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--k-text);
  margin: 0 0 1rem;
}

.k-mega__feature-title span {
  display: block;
  color: var(--k-cyan);
}

.k-mega__feature-desc {
  font-size: 12px;
  color: var(--k-muted);
  margin: 0 0 1.5rem;
  max-width: 22rem;
  line-height: 1.6;
}

.k-mega__feature-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.k-mega__feature-cta a {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  transition: box-shadow 200ms, background 200ms;
}

.k-mega__feature-cta .is-primary {
  background: var(--k-cyan);
  color: var(--k-background);
}

.k-mega__feature-cta .is-primary:hover {
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
}

.k-mega__feature-cta .is-secondary {
  background: transparent;
  color: var(--k-text);
  border: 1px solid var(--k-hairline);
}

.k-mega__feature-cta .is-secondary:hover {
  background: var(--k-hairline);
}

/* Mega bottom strip */
.k-mega__strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2.5rem;
  border-top: 1px solid var(--k-hairline);
  background: rgba(var(--k-glass-rgb), 0.6);
  gap: 1rem;
  flex-wrap: wrap;
}

.k-mega__strip-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.k-mega__strip-items span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--k-muted);
  font-family: 'Space Grotesk', sans-serif;
}

.k-mega__strip-items svg {
  width: 14px;
  height: 14px;
}

.k-mega__strip-items .is-green {
  color: var(--k-green);
}

.k-mega__strip-items .is-cyan {
  color: var(--k-cyan);
}

.k-mega__strip-items .is-violet {
  color: var(--k-violet);
}

.k-mega__strip-link {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--k-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.k-mega__strip-link:hover {
  color: var(--k-text);
}

/* ---------- Search + icons ---------- */
.k-header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.k-header__search {
  display: none;
  position: relative;
}

@media (min-width: 768px) {
  .k-header__search {
    display: block;
  }
}

.k-header__search input {
  background: var(--k-surface-2);
  border: 1px solid var(--k-hairline);
  border-radius: 10px;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  color: var(--k-text);
  font-size: 11px;
  letter-spacing: 0.08em;
  width: 20rem;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.k-header__search input::placeholder {
  color: rgba(139, 139, 158, 0.5);
}

.k-header__search input:focus {
  border-color: var(--k-cyan);
  box-shadow: 0 0 0 1px var(--k-cyan);
}

.k-header__search svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--k-muted);
  pointer-events: none;
}

.k-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.k-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 0;
  color: var(--k-text);
  border-radius: 10px;
  cursor: pointer;
  transition: background 200ms;
  position: relative;
}

.k-header__icon-btn:hover {
  background: var(--k-hairline);
}

.k-header__cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--k-cyan);
  color: var(--k-background);
  font-size: 9px;
  font-weight: 900;
  border-radius: 9999px;
}

.k-theme-toggle {
  position: relative;
}

.k-theme-toggle .k-theme-toggle__sun {
  display: none;
}

.k-theme-toggle .k-theme-toggle__moon {
  display: block;
}

html[data-theme="light"] .k-theme-toggle .k-theme-toggle__sun {
  display: block;
}

html[data-theme="light"] .k-theme-toggle .k-theme-toggle__moon {
  display: none;
}

.k-theme-toggle:hover {
  color: var(--k-cyan);
}

.k-header__burger {
  display: inline-flex;
}

@media (min-width: 1280px) {
  .k-header__burger {
    display: none;
  }
}

/* Shell offset so content clears the fixed header */
.k-shell {
  padding-top: 32px;
}

body:not(:has(.k-shell)) .site-content {
  padding-top: 32px;
}

/* ---------- Mobile drawer ---------- */
.k-mobile-menu {
  position: fixed;
  inset: 63px 0 0 0;
  background: var(--k-background);
  padding: 1.5rem;
  z-index: 90;
  overflow-y: auto;
}

.k-mobile-menu[hidden] {
  display: none;
}

.k-mobile-menu__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.k-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.k-mobile-item {
  border-bottom: 1px solid var(--k-hairline);
}

.k-mobile-item:last-child {
  border-bottom: 0;
}

.k-mobile-item__toggle,
.k-mobile-item>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0.25rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--k-text);
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.k-mobile-item__toggle svg {
  transition: transform 200ms;
}

.k-mobile-item__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.k-mobile-item__toggle[aria-expanded="true"] {
  color: var(--k-cyan);
}

.k-mobile-item__panel {
  display: none;
  padding: 0 0.25rem 1rem;
}

.k-mobile-item__panel[data-open="true"] {
  display: block;
}

.k-mobile-group {
  margin-bottom: 1rem;
}

.k-mobile-group h5 {
  font-size: 10px;
  font-weight: 700;
  color: var(--k-cyan);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0 0 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.k-mobile-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.k-mobile-group a {
  display: block;
  padding: 0.5rem 0;
  font-size: 12px;
  color: var(--k-muted);
  text-transform: none;
  letter-spacing: 0;
}

.k-mobile-group a:hover {
  color: var(--k-cyan);
}

/* ---------- Group-footer links inside mobile menu ----------
 * Les « Liens-pied de groupe » (menu items avec meta
 * `kinetic_footer_accent`) sont rendus par Kinetic_Ultra_Mobile_Walker
 * dans `.k-mobile-group__footer` à la fin de chaque groupe.
 * Pendant longtemps ils étaient skip silencieusement en mobile — on
 * les expose désormais avec un style aligné sur le desktop
 * (.k-mega__footer-link) : libellé court en MAJUSCULES, pastille colorée
 * pour l'accent fonctionnel. Touch target minimum 44px de hauteur.
 *
 * Spécificité : on préfixe avec `.k-mobile-group` (0-2-0) pour battre
 * `.k-mobile-group a` (0-1-1) qui force `display: block; color: muted;
 * text-transform: none; letter-spacing: 0` sur les `<a>` standards du
 * groupe — sans ce préfixe les footer-link reviennent à un style item
 * normal et perdent leur identité visuelle (uppercase, accent, pastille). */
.k-mobile-group .k-mobile-group__footer {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--k-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.k-mobile-group .k-mobile-group__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--k-muted);
  text-decoration: none;
  transition: color 200ms, transform 200ms;
}
.k-mobile-group .k-mobile-group__footer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  flex-shrink: 0;
}
.k-mobile-group .k-mobile-group__footer-link:hover,
.k-mobile-group .k-mobile-group__footer-link:focus-visible {
  color: var(--k-cyan);
  transform: translateX(4px);
}
.k-mobile-group .k-mobile-group__footer-link--cyan   { color: var(--k-cyan); }
.k-mobile-group .k-mobile-group__footer-link--green  { color: var(--k-green); }
.k-mobile-group .k-mobile-group__footer-link--violet { color: var(--k-violet); }

/* ---------- Mobile product offer (after k-mobile-menu__list) ---------- */
.k-mobile-offer {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--k-radius, 8px);
  background: linear-gradient(135deg,
      var(--k-surface) 0%,
      var(--k-background) 100%);
  border: 1px solid var(--k-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Image background variant — mirrors the desktop k-mega__feature pattern.
 * Vertical overlay because the mobile panel is portrait, not landscape. */
.k-mobile-offer--has-image { padding: 0; }

.k-mobile-offer__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  mix-blend-mode: luminosity;
  z-index: 0;
}

.k-mobile-offer--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(18, 18, 26, 0.55) 0%,
      rgba(18, 18, 26, 0.92) 70%,
      rgba(18, 18, 26, 0.98) 100%);
  z-index: 1;
}

.k-mobile-offer__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.k-mobile-offer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(123, 97, 255, 0.18);
  border: 1px solid rgba(123, 97, 255, 0.35);
  color: var(--k-violet);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  width: fit-content;
  font-family: 'Space Grotesk', sans-serif;
}

.k-mobile-offer__pulse {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--k-violet);
  animation: k-pulse 1.8s ease-in-out infinite;
}

.k-mobile-offer__eyebrow {
  font-size: 9px;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.7);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.k-mobile-offer__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--k-text);
  margin: 0;
}

.k-mobile-offer__title span {
  display: block;
  color: var(--k-cyan);
}

.k-mobile-offer__desc {
  font-size: 11px;
  color: var(--k-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 20rem;
}

.k-mobile-offer__cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.k-mobile-offer__cta a {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  transition: box-shadow 200ms, background 200ms;
  text-align: center;
}

.k-mobile-offer__cta .is-primary {
  background: var(--k-cyan);
  color: var(--k-background);
}

.k-mobile-offer__cta .is-primary:hover {
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.k-mobile-offer__cta .is-secondary {
  background: transparent;
  color: var(--k-text);
  border: 1px solid var(--k-hairline);
}

.k-mobile-offer__cta .is-secondary:hover {
  background: var(--k-hairline);
}

/* ---------- Mobile trust strip (mirrors desktop mega strip) ---------- */
.k-mobile-strip {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(var(--k-glass-rgb), 0.5);
  border-radius: var(--k-radius, 8px);
}

.k-mobile-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--k-muted);
  font-family: 'Space Grotesk', sans-serif;
}

.k-mobile-strip__item svg {
  width: 12px;
  height: 12px;
}

.k-mobile-strip__item.is-green {
  color: var(--k-green);
}

.k-mobile-strip__item.is-cyan {
  color: var(--k-cyan);
}

.k-mobile-strip__item.is-violet {
  color: var(--k-violet);
}

/* ---------- Mobile catalog link ----------
 * Pendant du `.k-mega__strip-link` desktop. Sourced from Customizer
 * (`kinetic_ultra_mega_catalog_label` / `_url`). Rendu pleine largeur
 * sous le strip pour servir de CTA de sortie vers la boutique complète.
 * Touch target ≥ 44px, fond `surface_container_high` pour se détacher
 * du noir ambiant du drawer, flèche translatée au hover/focus. */
.k-mobile-catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--k-surface-2, #19191f);
  color: var(--k-cyan);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: background 200ms, color 200ms;
}
.k-mobile-catalog-link svg {
  flex-shrink: 0;
  transition: transform 200ms;
}
.k-mobile-catalog-link:hover,
.k-mobile-catalog-link:focus-visible {
  background: var(--k-surface-3, #1f1f26);
  color: var(--k-cyan);
}
.k-mobile-catalog-link:hover svg,
.k-mobile-catalog-link:focus-visible svg {
  transform: translateX(4px);
}

/* Hide the desktop mega on mobile — mobile uses the drawer accordion */
@media (max-width: 1279.98px) {
  .k-mega {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/*                  Instant search dropdown (#instant-search)                  */
/* -------------------------------------------------------------------------- */

.k-search-dropdown {
  display: none;
  z-index: 9999;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.12);
  overflow: auto;
  color: var(--k-text);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.k-search-dropdown.is-open {
  display: block;
  animation: kSearchDropdownIn 160ms ease-out;
}

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

.k-search-dropdown__state {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--k-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.k-search-dropdown__state--error {
  color: var(--k-danger, #ff716c);
}

.k-search-dropdown__group {
  padding: 0.75rem 0.5rem;
}

.k-search-dropdown__group + .k-search-dropdown__group {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.k-search-dropdown__title {
  padding: 0 0.75rem 0.5rem;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--k-muted);
  font-weight: 600;
}

.k-search-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k-search-dropdown__list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0.75rem;
}

.k-search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 120ms;
}

.k-search-dropdown__item.is-active,
.k-search-dropdown__item:hover {
  background: rgba(0, 212, 255, 0.08);
}

.k-search-dropdown__thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.k-search-dropdown__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k-search-dropdown__thumb-fallback {
  color: var(--k-muted);
  font-size: 14px;
}

.k-search-dropdown__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k-search-dropdown__name {
  color: var(--k-text);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-search-dropdown__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--k-muted);
  font-size: 0.75rem;
}

.k-search-dropdown__meta .amount,
.k-search-dropdown__meta bdi {
  color: var(--k-cyan);
  font-weight: 600;
}

.k-search-dropdown__meta del {
  opacity: 0.55;
  margin-right: 0.35rem;
}

.k-search-dropdown__meta del .amount,
.k-search-dropdown__meta del bdi {
  color: var(--k-muted);
  font-weight: 400;
}

.k-search-dropdown__discount {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 59, 92, 0.15);
  color: var(--k-danger, #ff716c);
}

.k-search-dropdown__chips {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.k-search-dropdown__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.k-search-dropdown__chip--stock {
  color: var(--k-green);
  font-size: 12px;
  padding: 0;
}

.k-search-dropdown__chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--k-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}

.k-search-dropdown__chip-item.is-active,
.k-search-dropdown__chip-item:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--k-cyan);
}

.k-search-dropdown__count {
  font-size: 10px;
  color: var(--k-muted);
}

.k-search-dropdown__chip-item.is-active .k-search-dropdown__count,
.k-search-dropdown__chip-item:hover .k-search-dropdown__count {
  color: var(--k-cyan);
}

.k-search-dropdown__see-all {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-cyan);
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 120ms;
}

.k-search-dropdown__see-all:hover {
  background: rgba(0, 212, 255, 0.08);
}

.k-search-dropdown__more {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
  padding: 0.4rem 0.75rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-muted);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}

.k-search-dropdown__list--inline .k-search-dropdown__more {
  margin-top: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
}

.k-search-dropdown__more.is-active,
.k-search-dropdown__more:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--k-cyan);
}

/* ---------- Light mode ---------- */
html[data-theme="light"] .k-search-dropdown {
  background: rgba(244, 244, 248, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .k-search-dropdown__group + .k-search-dropdown__group {
  border-top-color: var(--k-hairline);
}
html[data-theme="light"] .k-search-dropdown__thumb {
  background: var(--k-surface-2);
}
html[data-theme="light"] .k-search-dropdown__item.is-active,
html[data-theme="light"] .k-search-dropdown__item:hover {
  background: rgba(0, 170, 210, 0.08);
}
html[data-theme="light"] .k-search-dropdown__chip-item {
  background: var(--k-surface-2);
}
html[data-theme="light"] .k-search-dropdown__chip-item.is-active,
html[data-theme="light"] .k-search-dropdown__chip-item:hover {
  background: rgba(0, 170, 210, 0.12);
}
html[data-theme="light"] .k-search-dropdown__see-all {
  border-top-color: var(--k-hairline);
}
html[data-theme="light"] .k-search-dropdown__see-all:hover {
  background: rgba(0, 170, 210, 0.06);
}
html[data-theme="light"] .k-search-dropdown__more:hover,
html[data-theme="light"] .k-search-dropdown__more.is-active {
  background: rgba(0, 170, 210, 0.06);
}

/* ── Light mode — Mega feature panel ─────────────────────────────────
 * Le panel vitrine est toujours rendu dark (comme .k-hero), quel que soit
 * le mode du site. On rescope les tokens dark directement sur l'élément :
 * tous les enfants (eyebrow, title, desc, CTAs, badge) héritent
 * automatiquement des valeurs correctes sans overrides individuels.
 * --k-cyan restauré à la valeur neon (#00D4FF) car #007A99 (light mode)
 * n'a pas le contraste suffisant sur fond sombre (#12121A).
 * ─────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .k-mega__feature,
html[data-theme="light"] .k-mobile-offer {
  --k-background: #0A0A0F;
  --k-surface:    #12121A;
  --k-surface-2:  #19191f;
  --k-text:       #E8E8ED;
  --k-muted:      #8B8B9E;
  --k-glass-rgb:  18, 18, 26;
  --k-hairline:   rgba(232, 232, 237, 0.05);
  --k-cyan:       #00D4FF;
}