/* =============================================================
   WML Mega Menu – Bricks Builder Widget
   3 variants: Atelier · Editorial · Vitrine
   ============================================================= */

.wml-mega-menu {
  /* ── Surfaces ── */
  --mm-bg: #0a0b09;
  --mm-bg-2: #0d0f0c;
  --mm-surface: #101310;
  --mm-line: rgba(255, 255, 255, 0.08);
  --mm-line-strong: rgba(255, 255, 255, 0.16);

  /* ── Text ── */
  --mm-ink: #f1f3ec;
  --mm-ink-soft: #c3c8ba;
  --mm-ink-mute: #82887a;
  --mm-ink-faint: #5a5f53;

  /* ── Accent (overridable via Bricks color control) ── */
  --mm-accent: #b8e84f;
  --mm-accent-bright: #cdf76a;
  --mm-accent-deep: #8fbf2e;
  --mm-accent-glow: rgba(184, 232, 79, 0.35);
  --mm-accent-wash: rgba(184, 232, 79, 0.08);

  /* ── Placeholder tones ── */
  --mm-tone-camel: linear-gradient(150deg, #3a3326, #6b5a3c 55%, #2a2519);
  --mm-tone-moss: linear-gradient(150deg, #20281a, #3c4a26 55%, #161c10);
  --mm-tone-ink: linear-gradient(150deg, #15171c, #2a2f3a 55%, #0e0f13);
  --mm-tone-plum: linear-gradient(150deg, #221825, #463050 55%, #160f19);

  /* ── Nav link tokens (individually overridable) ── */
  --mm-link-color: var(--mm-ink-soft);
  --mm-link-hover: var(--mm-ink);
  --mm-underline-color: var(--mm-accent);
  --mm-underline-h: 1.5px;

  /* ── Panel link tokens ── */
  --mm-panel-link-color: var(--mm-ink-soft);
  --mm-panel-link-hover: var(--mm-ink);

  /* ── CTA tokens ── */
  --mm-cta-bg: var(--mm-accent);
  --mm-cta-text: #0a0b09;

  /* ── Logo ── */
  --mm-logo-h: 32px;

  /* ── Misc ── */
  --mm-radius: 14px;
  --mm-radius-sm: 9px;
  --mm-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.85), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --mm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mm-nav-h: 74px;

  font-family: "Outfit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  width: 100%;
}

/* =====================================================================
   HEADER
   ===================================================================== */

.wml-mm-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.92), rgba(8, 9, 7, 0.66) 70%, rgba(8, 9, 7, 0));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: background 0.4s var(--mm-ease);
}

.wml-mm-header.menu-open {
  background: rgba(8, 9, 7, 0.96);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.wml-mm-nav {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: var(--mm-nav-h);
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ── Brand ── */
.wml-mm-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 19px;
  color: var(--mm-ink);
  text-decoration: none;
}

.wml-mm-brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mm-accent);
  align-self: center;
  box-shadow: 0 0 12px var(--mm-accent-glow);
}

.wml-mm-brand .sub {
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--mm-ink-mute);
  font-weight: 500;
  transform: translateY(-2px);
}

/* ── Logo image ── */
.wml-mm-logo-img {
  display: block;
  height: var(--mm-logo-h);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Nav list ── */
.wml-mm-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wml-mega-menu .nav-item {
  position: relative;
}

.wml-mega-menu .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--mm-link-color);
  border-radius: 9px;
  text-decoration: none;
  font-family: inherit;
  transition: color 0.3s var(--mm-ease);
}

.wml-mega-menu .nav-link:hover,
.wml-mega-menu .nav-item.open .nav-link {
  color: var(--mm-link-hover);
}

.wml-mega-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: var(--mm-underline-h);
  background: var(--mm-underline-color);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.4s var(--mm-ease), opacity 0.3s var(--mm-ease);
}

.wml-mega-menu .nav-link:hover::after,
.wml-mega-menu .nav-item.open .nav-link::after {
  transform: scaleX(1);
  opacity: 1;
}

.wml-mega-menu[data-underline="off"] .nav-link::after {
  display: none;
}

.wml-mega-menu .nav-link .caret {
  width: 9px;
  height: 9px;
  transition: transform 0.4s var(--mm-ease);
  opacity: 0.55;
}

.wml-mega-menu .nav-item.open .nav-link .caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--mm-accent);
}

.wml-mega-menu .nav-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-accent);
  border: 1px solid var(--mm-accent-deep);
  border-radius: 100px;
  padding: 2px 6px;
  margin-left: 2px;
  transform: translateY(-1px);
}

/* ── Actions ── */
.wml-mm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ── No CTA: collapse to 2-col, nav right-aligned ── */
.wml-mega-menu[data-cta="off"] .wml-mm-nav {
  grid-template-columns: auto 1fr;
}
.wml-mega-menu[data-cta="off"] .wml-mm-nav-list {
  justify-content: flex-end;
}
@media (min-width: 921px) {
  .wml-mega-menu[data-cta="off"] .wml-mm-actions { display: none; }
}

.wml-mm-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--mm-cta-bg);
  color: var(--mm-cta-text);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.3s var(--mm-ease), box-shadow 0.3s var(--mm-ease), filter 0.3s var(--mm-ease);
}

.wml-mm-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px var(--mm-accent-glow);
  filter: brightness(1.1);
  color: var(--mm-cta-text);
}

/* ── Hamburger ── */
.wml-mm-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mm-ink);
}

.wml-mm-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.wml-mm-hamburger .bars {
  position: relative;
  width: 22px;
  height: 14px;
  margin: 0 auto;
  display: block;
}

.wml-mm-hamburger .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: var(--mm-ink);
  border-radius: 2px;
  transition: transform 0.4s var(--mm-ease), opacity 0.3s var(--mm-ease);
}

.wml-mm-hamburger .bars span:nth-child(1) {
  top: 0;
}

.wml-mm-hamburger .bars span:nth-child(2) {
  top: 6px;
}

.wml-mm-hamburger .bars span:nth-child(3) {
  top: 12px;
}

.wml-mega-menu.drawer-open .wml-mm-hamburger .bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.wml-mega-menu.drawer-open .wml-mm-hamburger .bars span:nth-child(2) {
  opacity: 0;
}

.wml-mega-menu.drawer-open .wml-mm-hamburger .bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =====================================================================
   MEGA PANEL – shared base
   ===================================================================== */

.wml-mega-menu .mega {
  position: fixed;
  top: calc(var(--mm-nav-h) - 6px);
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.wml-mega-menu .mega-inner {
  position: relative;
  width: min(calc(100vw - 40px), 1320px);
  flex: 0 0 auto;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  overflow: hidden;
  opacity: 0;
}

@keyframes wmlMmPanelIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.wml-mega-menu .nav-item.open .mega {
  pointer-events: auto;
}

.wml-mega-menu .nav-item.open .mega-inner {
  animation: wmlMmPanelIn 0.45s var(--mm-ease) both;
}

/* top hairline */
.wml-mega-menu .mega-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mm-accent), transparent);
  transform: scaleX(0);
  transition: transform 0.7s var(--mm-ease) 0.05s;
}

.wml-mega-menu .nav-item.open .mega-inner::before {
  transform: scaleX(1);
}

/* ── Grid layout ── */
.wml-mega-menu .mega-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr) 0.82fr;
  gap: 0;
}

.wml-mega-menu .mega.no-feature .mega-grid {
  grid-template-columns: repeat(var(--cols, 3), 1fr);
}

/* ── Columns ── */
.wml-mega-menu .mega-col {
  padding: 30px 24px 32px;
  border-right: 1px solid var(--mm-line);
  opacity: 0;
}

@keyframes wmlMmColIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wml-mega-menu .nav-item.open .mega-col {
  animation: wmlMmColIn 0.55s var(--mm-ease) both;
}

.wml-mega-menu .nav-item.open .mega-col:nth-child(1) {
  animation-delay: 0.06s;
}

.wml-mega-menu .nav-item.open .mega-col:nth-child(2) {
  animation-delay: 0.12s;
}

.wml-mega-menu .nav-item.open .mega-col:nth-child(3) {
  animation-delay: 0.18s;
}

.wml-mega-menu .nav-item.open .mega-col:nth-child(4) {
  animation-delay: 0.24s;
}

.wml-mega-menu .col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-ink-mute);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wml-mega-menu .col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--mm-accent-deep);
}

.wml-mega-menu .mega-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wml-mega-menu .mega-l {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--mm-panel-link-color);
  text-decoration: none;
  font-family: inherit;
  transition: color 0.25s var(--mm-ease), background 0.25s var(--mm-ease), padding-left 0.3s var(--mm-ease);
}

.wml-mega-menu .mega-l>span:first-child {
  flex: 1;
}

.wml-mega-menu .mega-l:hover {
  color: var(--mm-panel-link-hover);
  background: rgba(255, 255, 255, 0.04);
  padding-left: 16px;
}

.wml-mega-menu .mega-l .arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--mm-accent);
  margin-left: auto;
  transition: opacity 0.3s var(--mm-ease), transform 0.3s var(--mm-ease);
}

.wml-mega-menu .mega-l:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.wml-mega-menu .mega-l .tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-accent);
  background: var(--mm-accent-wash);
  border-radius: 100px;
  padding: 2px 7px;
  margin-left: 6px;
}

/* ── Featured cell ── */
.wml-mega-menu .mega-feature {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--mm-bg-2, #0d0f0c);
  opacity: 0;
}

.wml-mega-menu .nav-item.open .mega-feature {
  animation: wmlMmColIn 0.6s var(--mm-ease) 0.26s both;
}

.wml-mega-menu .feat-card {
  position: relative;
  flex: 1;
  border-radius: var(--mm-radius-sm);
  overflow: hidden;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  isolation: isolate;
  text-decoration: none;
}

.wml-mega-menu .feat-card .ph {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 0.9s var(--mm-ease);
}

.wml-mega-menu .feat-card:hover .ph {
  transform: scale(1.12);
}

.wml-mega-menu .feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.78));
}

.wml-mega-menu .feat-card .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-accent-bright);
  font-weight: 600;
  margin-bottom: 6px;
}

.wml-mega-menu .feat-card .f-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--mm-ink);
}

.wml-mega-menu .feat-card .f-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.wml-mega-menu .feat-card .f-price {
  font-size: 14px;
  color: var(--mm-ink-soft);
  font-weight: 500;
}

.wml-mega-menu .feat-card .f-cta {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mm-accent);
  color: #0a0b09;
  flex: 0 0 auto;
  transition: transform 0.3s var(--mm-ease), background 0.3s var(--mm-ease);
}

.wml-mega-menu .feat-card .f-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--mm-ease);
}

.wml-mega-menu .feat-card:hover .f-cta {
  background: var(--mm-accent-bright);
}

.wml-mega-menu .feat-card:hover .f-cta svg {
  transform: translateX(3px);
}

/* ── Tone placeholders ── */
.wml-mega-menu .ph {
  position: relative;
}

.wml-mega-menu .ph.camel {
  background: var(--mm-tone-camel);
}

.wml-mega-menu .ph.moss {
  background: var(--mm-tone-moss);
}

.wml-mega-menu .ph.ink {
  background: var(--mm-tone-ink);
}

.wml-mega-menu .ph.plum {
  background: var(--mm-tone-plum);
}

.wml-mega-menu .ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.wml-mega-menu .ph.has-image::before {
  display: none;
}

/* ── Panel footer ── */
.wml-mega-menu .mega-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid var(--mm-line);
  background: var(--mm-bg-2, #0d0f0c);
  font-size: 13px;
  color: var(--mm-ink-mute);
  font-family: inherit;
}

.wml-mega-menu .mega-foot .links {
  display: flex;
  gap: 22px;
}

.wml-mega-menu .mega-foot a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--mm-ease);
}

.wml-mega-menu .mega-foot a:hover {
  color: var(--mm-accent);
}

.wml-mega-menu .mega-foot .ship {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wml-mega-menu .mega-foot .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mm-accent);
  animation: wmlMmPulse 2.4s infinite;
}

@keyframes wmlMmPulse {
  0% {
    box-shadow: 0 0 0 0 var(--mm-accent-glow);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(184, 232, 79, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(184, 232, 79, 0);
  }
}

/* =====================================================================
   VARIANT – EDITORIAL
   Full-width panel, larger editorial type, dual feature cards
   ===================================================================== */

.wml-mega-menu[data-variant="editorial"] .mega-inner {
  border-radius: 0;
  border-left: none;
  border-right: none;
  width: 100vw;
  max-width: 100vw;
}

.wml-mega-menu[data-variant="editorial"] .mega-grid {
  max-width: 1320px;
  margin: 0 auto;
  grid-template-columns: repeat(var(--cols, 3), 1fr) 1.3fr;
}

.wml-mega-menu[data-variant="editorial"] .mega.no-feature .mega-grid {
  grid-template-columns: repeat(var(--cols, 3), 1fr);
}

.wml-mega-menu[data-variant="editorial"] .mega-col {
  padding: 40px 34px 44px;
}

.wml-mega-menu[data-variant="editorial"] .col-title {
  font-size: 12px;
  margin-bottom: 22px;
}

.wml-mega-menu[data-variant="editorial"] .mega-l {
  font-size: 17px;
  padding: 9px 10px;
  font-weight: 300;
}

.wml-mega-menu[data-variant="editorial"] .mega-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px;
  align-content: stretch;
}

.wml-mega-menu[data-variant="editorial"] .mega-feature.single {
  grid-template-columns: 1fr;
}

.wml-mega-menu[data-variant="editorial"] .feat-card {
  min-height: 230px;
}

.wml-mega-menu[data-variant="editorial"] .feat-card .f-title {
  font-size: 21px;
}

.wml-mega-menu[data-variant="editorial"] .nav-link {
  font-size: 16px;
}

.wml-mega-menu[data-variant="editorial"] .nav-link::after {
  height: 2px;
  bottom: 4px;
}

/* =====================================================================
   VARIANT – VITRINE
   Frosted glass, vertical rail on the left, crossfade grids on right
   ===================================================================== */

.wml-mega-menu[data-variant="vitrine"] .mega-inner {
  background: rgba(16, 19, 15, 0.72);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--mm-line-strong);
  box-shadow: var(--mm-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wml-mega-menu .rail-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 360px;
}

/* rail sidebar */
.wml-mega-menu .rail {
  border-right: 1px solid var(--mm-line);
  padding: 20px 16px;
  background: rgba(10, 12, 9, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wml-mega-menu .rail-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-ink-mute);
  padding: 6px 14px 14px;
}

.wml-mega-menu .rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  transition: background 0.3s var(--mm-ease);
}

.wml-mega-menu .rail-item .r-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--mm-ink-soft);
  transition: color 0.25s var(--mm-ease);
}

.wml-mega-menu .rail-item .r-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 3px;
  background: var(--mm-accent);
  transition: transform 0.35s var(--mm-ease);
}

.wml-mega-menu .rail-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wml-mega-menu .rail-item.active {
  background: rgba(255, 255, 255, 0.05);
}

.wml-mega-menu .rail-item.active .r-label {
  color: var(--mm-ink);
}

.wml-mega-menu .rail-item.active .r-bar {
  transform: translateY(-50%) scaleY(1);
}

.wml-mega-menu .rail-item .r-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  color: var(--mm-accent);
  width: 14px;
  height: 14px;
  transition: 0.3s var(--mm-ease);
}

.wml-mega-menu .rail-item.active .r-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* rail content */
.wml-mega-menu .rail-content {
  position: relative;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.wml-mega-menu .rail-pane {
  display: none;
}

.wml-mega-menu .rail-pane.active {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 300px;
  /* fallback for browsers without subgrid */
  gap: 28px;
}

@supports (grid-template-columns: subgrid) {
  .wml-mega-menu .rail-pane.active {
    grid-template-columns: subgrid;
  }
}

.wml-mega-menu .rail-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  align-content: start;
}

.wml-mega-menu .rail-items-grid .ri {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 300;
  color: var(--mm-panel-link-color);
  text-decoration: none;
  font-family: inherit;
  transition: color 0.25s var(--mm-ease), background 0.25s var(--mm-ease), padding-left 0.3s var(--mm-ease);
}

.wml-mega-menu .rail-items-grid .ri:hover {
  color: var(--mm-panel-link-hover);
  background: rgba(255, 255, 255, 0.04);
  padding-left: 18px;
}

.wml-mega-menu .rail-items-grid .ri .arrow {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--mm-accent);
  transition: 0.3s var(--mm-ease);
}

.wml-mega-menu .rail-items-grid .ri:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wmlMmRailIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wml-mega-menu .rail-pane.enter .rail-items-grid>* {
  animation: wmlMmRailIn 0.5s var(--mm-ease) backwards;
}

.wml-mega-menu .rail-items-grid>*:nth-child(1) {
  animation-delay: 0.02s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(2) {
  animation-delay: 0.05s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(3) {
  animation-delay: 0.08s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(4) {
  animation-delay: 0.11s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(5) {
  animation-delay: 0.14s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(6) {
  animation-delay: 0.17s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(7) {
  animation-delay: 0.20s;
}

.wml-mega-menu .rail-items-grid>*:nth-child(8) {
  animation-delay: 0.23s;
}

.wml-mega-menu .rail-feature {
  position: relative;
  border-radius: var(--mm-radius-sm);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  text-decoration: none;
  isolation: isolate;
}

.wml-mega-menu .rail-feature .ph {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(1.05);
  transition: transform 1s var(--mm-ease);
}

.wml-mega-menu .rail-feature:hover .ph {
  transform: scale(1.12);
}

.wml-mega-menu .rail-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.8));
}

.wml-mega-menu .rail-feature .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mm-accent-bright);
  font-weight: 600;
  margin-bottom: 6px;
}

.wml-mega-menu .rail-feature .f-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--mm-ink);
}

.wml-mega-menu .rail-feature .f-price {
  font-size: 14px;
  color: var(--mm-ink-soft);
  margin-top: 6px;
}

/* =====================================================================
   MOBILE DRAWER
   ===================================================================== */

.wml-mm-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 7, 5, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--mm-ease);
}

.wml-mm-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.wml-mm-drawer .drawer-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 90vw);
  background: var(--mm-bg);
  border-left: 1px solid var(--mm-line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--mm-ease-out);
  overflow-y: auto;
}

.wml-mm-drawer.open .drawer-sheet {
  transform: translateX(0);
}

.wml-mm-drawer .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--mm-line);
  position: sticky;
  top: 0;
  background: var(--mm-bg);
  z-index: 2;
}

.wml-mm-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--mm-ink-soft);
  background: none;
  border: none;
  cursor: pointer;
}

.wml-mm-drawer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mm-ink);
}

.wml-mm-drawer .drawer-nav {
  padding: 8px 0 24px;
}

.wml-mm-drawer .acc-simple {
  display: block;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--mm-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mm-line);
}

.wml-mm-drawer .acc-simple:hover {
  color: var(--mm-accent);
}

.wml-mm-drawer .acc {
  border-bottom: 1px solid var(--mm-line);
}

.wml-mm-drawer .acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--mm-ink);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.wml-mm-drawer .chev {
  width: 16px;
  height: 16px;
  color: var(--mm-ink-mute);
  transition: transform 0.4s var(--mm-ease), color 0.3s var(--mm-ease);
}

.wml-mm-drawer .acc.open .chev {
  transform: rotate(180deg);
  color: var(--mm-accent);
}

.wml-mm-drawer .acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--mm-ease);
}

.wml-mm-drawer .acc.open .acc-body {
  max-height: 1200px;
}

.wml-mm-drawer .acc-inner {
  padding: 0 24px 20px;
}

.wml-mm-drawer .acc-group+.acc-group {
  margin-top: 14px;
}

.wml-mm-drawer .acc-group-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mm-ink-mute);
  margin: 10px 0 6px;
}

.wml-mm-drawer .acc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  margin: 0 -14px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 300;
  color: var(--mm-ink-soft);
  text-decoration: none;
  transition: background 0.2s var(--mm-ease), color 0.2s var(--mm-ease);
}

.wml-mm-drawer .acc-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mm-ink);
}

.wml-mm-drawer .acc-link .tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-accent);
  background: var(--mm-accent-wash);
  border-radius: 100px;
  padding: 2px 7px;
}

.wml-mm-drawer-cta {
  margin: 18px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border-radius: 100px;
  background: var(--mm-accent);
  color: #0a0b09;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  text-decoration: none;
}

.wml-mm-drawer .drawer-foot {
  padding: 16px 24px 28px;
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--mm-ink-mute);
}

.wml-mm-drawer .drawer-foot a {
  color: inherit;
  text-decoration: none;
}

.wml-mm-drawer .drawer-foot a:hover {
  color: var(--mm-accent);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1280px) {
  .wml-mega-menu[data-variant="editorial"] .mega-feature {
    grid-template-columns: 1fr;
  }

  .wml-mega-menu[data-variant="editorial"] .feat-card {
    min-height: 148px;
  }

  .wml-mega-menu[data-variant="editorial"] .mega-l {
    font-size: 15px;
  }

  .wml-mega-menu[data-variant="editorial"] .mega-col {
    padding: 34px 22px;
  }
}

@media (max-width: 1080px) {
  .wml-mega-menu .mega-col {
    padding: 28px 18px 30px;
  }

  .wml-mega-menu .mega-l {
    font-size: 14px;
  }

  .wml-mega-menu[data-variant="vitrine"] .rail-content {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 920px) {
  .wml-mm-nav-list {
    display: none !important;
  }

  .wml-mm-cta {
    display: none !important;
  }

  .wml-mega-menu .mega {
    display: none !important;
  }

  .wml-mm-hamburger {
    display: grid;
  }

  .wml-mm-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .wml-mega-menu *,
  .wml-mm-drawer * {
    animation-duration: 0.001s !important;
    transition-duration: 0.08s !important;
  }
}