/**
 * Header V2
 * Matches Wix original: Logo | Account | Cart | Phone | SHOP KITS (arrow) | Hamburger
 */

/* Strip Elementor container padding */
.elementor-column
  > .elementor-element-populated:has(.elementor-widget-agency-header-v2),
.e-con:has(> .e-con-inner > .elementor-widget-agency-header-v2),
.e-con:has(.elementor-widget-agency-header-v2) {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 !important;
}

/* ── Brand tokens ────────────────────────────────────────────────────────── */
/* Scoped to .aew-hv2 so they don't leak into other widgets. Source of truth
   is design-system.md. Update there first; copy here second. */
.aew-hv2 {
  --aew-cards: var(--e-global-color-aew-cards, #ffffff);
  --aew-background: var(--e-global-color-aew-background, #f4f4f4);
  --aew-lines: var(--e-global-color-aew-lines, #dddddd);
  --aew-misc-accent: var(--e-global-color-aew-misc-accent, #666666);
  --aew-secondary-cards: var(--e-global-color-aew-secondary-cards, #eeeeee);
  --aew-secondary-bg: var(--e-global-color-aew-secondary-bg, #333333);
  --aew-secondary-accent: var(--e-global-color-aew-secondary-accent, #555555);
  --aew-text: var(--e-global-color-aew-text, #1a1a1a);
  --aew-cta: var(--e-global-color-aew-cta, #444444);
  --aew-cta-hover: var(--e-global-color-aew-cta-hover, #2b2b2b);
  --aew-gold-light: var(--e-global-color-aew-gold-light, #cdb797);
}

.aew-hv2 {
  display: block;
  min-height: var(--aew-hv2-bar-h, 64px);
}

.aew-hv2__bar {
  background: var(--aew-text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  /* Full-bleed background bar; the gutter lives on __bar-inner so the header
     content aligns with the 1440 rail used by the page blocks below. */
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

/* Offset the fixed bar below the WP admin bar when it's present (logged-in). */
body.admin-bar .aew-hv2__bar {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* Hidden state — slid up out of view. Applied by JS when scrolling DOWN past a
   small threshold; removed when scrolling UP so the menu is always one swipe
   away without returning to the top of the page. */
.aew-hv2--bar-hidden .aew-hv2__bar {
  transform: translateY(-100%);
}

/* Never hide the bar while the drawer is open. */
.aew-hv2.is-open .aew-hv2__bar {
  transform: none;
}

.aew-hv2__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1440px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Tablet keeps the 40px outer gutter (inherited). */

/* ── Logo ────────────────────────────────────────────────────────────────── */
.aew-hv2__logo {
  display: inline-flex;
  align-items: center;
  height: 50px;
  flex-shrink: 0;
}

.aew-hv2__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  height: 50px;
}

.aew-hv2__logo-img {
  display: block;
  height: 50px;
  width: auto;
}

/* Mobile logo: when a separate mobile logo is set, swap to it at ≤1024px;
   otherwise the desktop logo shows everywhere. */
.aew-hv2__logo-img--mobile {
  display: none;
}
@media (max-width: 1024px) {
  .aew-hv2 .aew-hv2__logo--has-mobile .aew-hv2__logo-img--desktop {
    display: none;
  }
  /* Mobile logo fixed to 65×45 (object-fit:contain keeps aspect within the box).
     High specificity (0,3,0) so it beats the ≤768px logo cap below. */
  .aew-hv2 .aew-hv2__logo--has-mobile .aew-hv2__logo-img--mobile {
    display: block;
    width: 65px;
    height: 45px;
    max-width: 65px;
    max-height: 45px;
    object-fit: contain;
  }
}

/* ── Actions row ─────────────────────────────────────────────────────────── */
.aew-hv2__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

/* ── Account / Cart icons ────────────────────────────────────────────────── */
.aew-hv2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aew-hv2-icon-color, var(--aew-background));
  text-decoration: none;
  transition: opacity 0.18s ease;
  line-height: 0;
  flex-shrink: 0;
}

.aew-hv2__icon:hover {
  opacity: 0.7;
}

.aew-hv2__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Cart with count badge */
.aew-hv2__cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aew-hv2__cart-count {
  position: absolute;
  bottom: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  background: var(--aew-cta);
  color: var(--aew-cards);
  font-family: "Lato", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none; /* hidden when 0 */
}

.aew-hv2__cart-count:not([data-cart-count="0"]):not(:empty) {
  display: block;
}

/* ── Phone ───────────────────────────────────────────────────────────────── */
.aew-hv2__phone {
  display: inline-flex;
  align-items: center;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--aew-hv2-phone-color, var(--aew-background));
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
  line-height: 0;
}

.aew-hv2__phone-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.aew-hv2__phone:hover {
  opacity: 0.7;
}

/* ── SHOP KITS button ────────────────────────────────────────────────────── */
.aew-hv2__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* padding owned by the cta_padding control */
  font-family: var(--aew-font-body, "Poppins", sans-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  background: var(--aew-hv2-cta-bg, var(--aew-cta-hover));
  color: var(
    --aew-text
  ); /* dark text on the yellow CTA — white failed WCAG AA contrast */
  border-radius: 8px;
  border: 0;
  transition: background-color 0.18s ease;
  flex-shrink: 0;
}

.aew-hv2__cta:hover {
  background-color: var(--aew-hv2-cta-bg-hover, var(--aew-cta));
  color: var(--aew-text);
}

.aew-hv2__cta-text {
  display: block;
}

/* CTA text: separate desktop / mobile copy. Desktop shown >1024, mobile ≤1024
   (matches the drawer / hamburger breakpoint). Falls back to the same text when
   no mobile override is set. */
/* .aew-hv2 prefix → (0,2,0) so this beats `.aew-hv2__drawer-cta span` (0,1,1)
   which would otherwise force both spans visible in the drawer button. */
.aew-hv2 .aew-hv2__cta-text--mobile {
  display: none;
}
@media (max-width: 1024px) {
  .aew-hv2 .aew-hv2__cta-text--desktop {
    display: none;
  }
  .aew-hv2 .aew-hv2__cta-text--mobile {
    display: block;
  }
}

.aew-hv2__cta-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.aew-hv2__cta-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ── Hamburger ───────────────────────────────────────────────────────────── */
/* Wrapper-class prefix (.aew-hv2) raises specificity to (0,2,0) so `padding:0`
   beats the Elementor kit's `.elementor-kit-N button { padding:20px 24px 16px }`
   rule (0,1,1) — otherwise the hamburger inherits button padding and the icon
   sits inset from the right edge. justify-content:flex-end pins the icon to the
   button's right so there's no empty space on the right. */
.aew-hv2 .aew-hv2__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--aew-hv2-icon-color, var(--aew-background));
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
  outline: none;
}

.aew-hv2__toggle:hover {
  opacity: 0.7;
}

.aew-hv2__toggle svg {
  width: 24px !important;
  height: 18px !important;
  min-width: 24px;
  flex-shrink: 0;
}

/* ── Overlay backdrop ────────────────────────────────────────────────────── */
.aew-hv2__overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.6);
  /* Always in DOM — visibility/opacity controlled, never display:none */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* Submenus respect hidden */
.aew-hv2__drawer-submenu[hidden] {
  display: none !important;
}

.aew-hv2.is-open .aew-hv2__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.aew-hv2-open {
  overflow: hidden;
}

/* Admin bar */
body.admin-bar .aew-hv2.is-open .aew-hv2__overlay {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* ── Drawer panel ────────────────────────────────────────────────────────── */
.aew-hv2__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: fit-content;
  min-width: min(320px, 95vw);
  background: var(--aew-text);
  padding: 0;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  visibility: visible; /* prevent inheriting visibility:hidden from overlay */
}

.aew-hv2.is-open .aew-hv2__drawer {
  transform: translateX(0);
}

/* ── Drawer top bar ──────────────────────────────────────────────────────── */
.aew-hv2__drawer-topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 20px 16px 40px;
  min-height: 64px;
  background: transparent; /* inherit the drawer background so it always matches */
  flex-shrink: 0;
}

/* LOGIN */
.aew-hv2__drawer-login {
  display: inline-flex;
  align-items: center;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--aew-background);
  text-decoration: none;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.aew-hv2__drawer-login:hover {
  opacity: 0.65;
}

/* Phone in drawer */
/* Cart in drawer */
.aew-hv2__drawer-cart {
  display: inline-flex;
  align-items: center;
  color: var(--aew-background);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  transition: opacity 0.18s ease;
}
.aew-hv2__drawer-cart:hover {
  opacity: 0.65;
}

/* SHOP KITS in drawer */
.aew-hv2__drawer-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 16px 24px;
  font-family: var(--aew-font-body, "Poppins", sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2; /* match main CTA */
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  background: var(--aew-hv2-cta-bg, var(--aew-cta-hover));
  color: var(
    --aew-text
  ); /* dark text on the yellow CTA — white failed WCAG AA contrast */
  border-radius: 8px;
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}
.aew-hv2__drawer-cta span {
  display: block;
}
.aew-hv2__drawer-cta:hover {
  background-color: var(--aew-cta-hover);
  color: var(--aew-text);
}
.aew-hv2__drawer-cta svg {
  fill: currentColor;
  flex-shrink: 0;
}

/* Phone icon in the drawer topbar (after the CTA button). */
.aew-hv2__drawer-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(
    --aew-hv2-phone-color,
    var(--aew-hv2-icon-color, var(--aew-background))
  );
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  transition: opacity 0.18s ease;
}
.aew-hv2__drawer-phone-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.aew-hv2__drawer-phone-icon:hover {
  opacity: 0.65;
}

/* Close button */
.aew-hv2 .aew-hv2__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Match the theme button reset: extra right padding, none on the left, so
     the X sits inset from the right edge. (.aew-hv2 prefix → 0,2,0 to beat the
     [type=button] reset.) */
  padding: 0.5rem 24px 0.5rem 0px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--aew-hv2-icon-color, var(--aew-background));
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}
.aew-hv2__drawer-close:hover {
  opacity: 0.5;
}

/* ── Drawer accordion nav ────────────────────────────────────────────────── */
.aew-hv2__drawer-nav {
  flex: 1;
  padding: 26px 0 2rem;
}

/* Staggered entrance — items slide in from right when drawer opens */
@keyframes aew-hv2-item-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.aew-hv2.is-open .aew-hv2__drawer-item {
  animation: aew-hv2-item-in 0.3s ease both;
}

.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(1) {
  animation-delay: 0.08s;
}
.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(2) {
  animation-delay: 0.12s;
}
.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(3) {
  animation-delay: 0.16s;
}
.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(4) {
  animation-delay: 0.2s;
}
.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(5) {
  animation-delay: 0.24s;
}
.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(6) {
  animation-delay: 0.28s;
}
.aew-hv2.is-open .aew-hv2__drawer-item:nth-child(7) {
  animation-delay: 0.32s;
}

.aew-hv2__drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* flex column so the "Menu item gap" control can add row-gap between parents. */
  display: flex;
  flex-direction: column;
}

.aew-hv2__drawer-item {
  border: none;
}

/* Row: label + chevron — both div (leaf) and button (parent) versions.
   Padding is owned by the "Menu row padding" control (Drawer section);
   defaults desktop 0/16/0/24, tablet+mobile 18/0/18/0 mirror the old CSS. */
.aew-hv2__drawer-item-row,
button.aew-hv2__drawer-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.aew-hv2__drawer-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Hello Elementor's reset.css paints every <button> with red (#c36) borders and
   a red hover background. Keep the header's own buttons (hamburger, drawer toggle,
   close) transparent so they never turn red. */
.aew-hv2 button {
  border-color: transparent;
}
.aew-hv2 button:hover,
.aew-hv2 button:focus {
  background-color: transparent;
}

/* Burger + close X: editable icon colour with a hover colour, at (0,2,0) so it
   beats hello-elementor's red <button> reset. Defaults to the header blue;
   override via Icons → Icon color / Icon hover color in the editor. */
.aew-hv2 .aew-hv2__toggle,
.aew-hv2 .aew-hv2__drawer-close {
  color: var(--aew-hv2-icon-color, var(--aew-secondary-bg, #305b83));
}
.aew-hv2 .aew-hv2__toggle:hover,
.aew-hv2 .aew-hv2__toggle:focus-visible,
.aew-hv2 .aew-hv2__drawer-close:hover,
.aew-hv2 .aew-hv2__drawer-close:focus-visible {
  color: var(
    --aew-hv2-icon-hover-color,
    var(--aew-hv2-icon-color, var(--aew-secondary-bg, #305b83))
  );
  opacity: 1;
}

/* Reset button styles on the row-button */
button.aew-hv2__drawer-item-row {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Parent label — main tabs: Teko SemiBold all caps; hover = light gold. */
/* .aew-hv2 prefix (0,2,0) so the button variant beats hello-elementor's
   `[type=button]` reset (red #c36 colour + centered text). */
.aew-hv2 .aew-hv2__drawer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-family: var(--aew-font-heading, "DM Serif Display", serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: normal;
  color: var(--aew-hv2-drawer-parent-color, var(--aew-background)) !important;
  text-decoration: none;
  /* Padding owned by the "Menu item padding" control; on the label so the whole
     row area is clickable + hoverable. Defaults desktop 0/16/0/24, ≤1024 18/0. */
  flex: 1;
  box-sizing: border-box;
  /* Works as <a> (leaf items) and <button> (parent items that open the
     submenu instead of navigating). !important beats hello-elementor's
     [type=button] / [type=button]:hover reset (red #c36 bg/border). */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.18s ease;
}
/* Hovering ANYWHERE on the row (whole <li> row) colours the label + the +/-
   indicator together — not just the text. Driven off :hover/:focus-within of
   the row so the entire row is the hover target. */
.aew-hv2 .aew-hv2__drawer-label:hover,
.aew-hv2 .aew-hv2__drawer-label:focus,
.aew-hv2 .aew-hv2__drawer-item-row:hover .aew-hv2__drawer-label,
.aew-hv2 .aew-hv2__drawer-item-row:focus-within .aew-hv2__drawer-label {
  color: var(
    --aew-hv2-drawer-parent-hover,
    var(--aew-gold-light, #cdb797)
  ) !important;
  background: transparent !important;
}
.aew-hv2 .aew-hv2__drawer-item-row:hover .aew-hv2__drawer-plus,
.aew-hv2 .aew-hv2__drawer-item-row:focus-within .aew-hv2__drawer-plus {
  color: var(--aew-hv2-drawer-parent-hover, var(--aew-gold-light, #cdb797));
}

.aew-hv2__drawer-toggle:hover {
  opacity: 0.8;
}
.aew-hv2__drawer-toggle:hover .aew-hv2__drawer-label {
  color: var(--aew-hv2-drawer-parent-hover, var(--aew-gold-light, #cdb797));
}
.aew-hv2__drawer-toggle[aria-expanded="true"] .aew-hv2__drawer-chevron {
  transform: rotate(180deg);
}

/* Accordion +/- indicator (replaces the chevron): + collapsed, - expanded. */
.aew-hv2__drawer-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(
    --aew-hv2-drawer-parent-color,
    var(--aew-secondary-accent, #314654)
  );
}
.aew-hv2__drawer-plus::before,
.aew-hv2__drawer-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.aew-hv2__drawer-plus::before {
  width: 16px;
  height: 2px;
}
.aew-hv2__drawer-plus::after {
  width: 2px;
  height: 16px;
}
.aew-hv2__drawer-toggle[aria-expanded="true"] .aew-hv2__drawer-plus::after {
  display: none;
}

.aew-hv2__drawer-chevron {
  fill: currentColor;
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Submenu */
.aew-hv2__drawer-submenu {
  list-style: none;
  margin: 0;
  padding: 16px 0 0px 0px;
  background: transparent !important;
  /* flex column so the "Submenu item gap" control can add row-gap between
     children. Default gap is 2px (see the control), matching the old
     `li + li { margin-top: 2px }`. */
  display: flex;
  flex-direction: column;
}
.aew-hv2__drawer-submenu li,
.aew-hv2__drawer-submenu a {
  background: transparent !important;
  background-color: transparent !important;
}

.aew-hv2__drawer-submenu a {
  font-family: var(--aew-font-body, Poppins, sans-serif);
  font-weight: 400;
  text-transform: none;
  font-size: 18px;
  line-height: 1.4;
  color: var(
    --aew-hv2-drawer-child-color,
    var(--aew-lines, #bfc0bf)
  ); /* secondary tabs sit quieter than the main tabs */
  text-decoration: none;
  display: block;
  padding: 0px 40px;
  transition: color 0.18s ease;
}
.aew-hv2__drawer-submenu a:hover {
  color: var(
    --aew-hv2-drawer-child-hover,
    var(--aew-gold-light, #cdb797)
  ); /* same hover as the main tabs */
}

/* ── Mobile (≤768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Tighter phone gutter on the outer bar (header is denser than body sections). */
  .aew-hv2__bar {
    padding-left: 0;
    padding-right: 0;
  }
  .aew-hv2__bar-inner {
    /* Height is owned by the responsive "Height" control (mobile default 55px);
       only the mobile gutter + gap are set here. */
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hide phone + account on mobile — only cart, CTA, and burger remain */
  .aew-hv2__phone--hide-mobile,
  .aew-hv2__icon--account {
    display: none !important;
  }

  /* Logo capped at 100px wide */
  .aew-hv2__logo,
  .aew-hv2__logo-link {
    height: auto;
    max-height: 40px;
  }
  .aew-hv2__logo-img {
    height: auto;
    max-height: 40px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
  }

  /* When a separate mobile logo is set, let its wrapper hold the fixed 65×45. */
  .aew-hv2 .aew-hv2__logo--has-mobile,
  .aew-hv2 .aew-hv2__logo--has-mobile .aew-hv2__logo-link {
    height: 45px;
    max-height: 45px;
  }

  .aew-hv2__actions {
    gap: 15px;
  }

  /* Mobile action order: cart, phone, CTA, burger (DOM order is
     account/cart/CTA/phone/burger — reorder via flex `order` so the phone
     icon sits BEFORE the CTA button without changing desktop markup). */
  .aew-hv2__icon--cart {
    order: 1;
  }
  .aew-hv2__phone {
    order: 2;
  }
  .aew-hv2__cta {
    order: 3;
  }
  .aew-hv2__toggle {
    order: 4;
  }

  /* Keep the 32×32 hamburger wrapper on mobile (matches the base rule). */
  .aew-hv2 .aew-hv2__toggle {
    width: 32px;
    height: 32px;
  }
}

/* ── Drawer — Mobile & Tablet (≤1024px) ──────────────────────────────────── */
/* Per design system: cream BG, dark forest text, Teko headings, brand CTA */
@media (max-width: 1024px) {
  .aew-hv2__drawer {
    background: var(--aew-background) !important;
    min-width: min(360px, 92vw);
    width: min(360px, 92vw);
  }

  /* Top bar: SHOP KITS pill (left) + close X (right), phone wraps to own row below. */
  .aew-hv2__drawer-topbar {
    background: transparent !important;
    padding: 16px 0px 0px 16px;
    min-height: auto;
    gap: 0px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 0;
  }

  .aew-hv2__drawer-login,
  .aew-hv2__drawer-cart {
    display: none !important;
  }

  /* SHOP KITS sits left, X gets pushed right */
  .aew-hv2__drawer-cta {
    order: 1;
    margin-left: auto;
    border-radius: 8px;
    padding: 16px 24px;
    font-family: var(--aew-font-body, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: normal;
  }
  .aew-hv2__drawer-cta:hover {
    background: var(--aew-cta-hover) !important;
  }
  .aew-hv2__drawer-cta svg {
    display: none;
  } /* hide chevron on mobile pill */

  /* Phone icon sits right after the CTA button, before the close X. */
  .aew-hv2__drawer-phone-icon {
    order: 1;
    margin-left: 12px;
    color: var(--aew-hv2-phone-color, var(--aew-text)) !important;
  }

  .aew-hv2__drawer-close {
    order: 2;
    margin-left: 12px;
    color: var(--aew-text) !important;
  }
  .aew-hv2__drawer-close svg {
    width: 22px;
    height: 22px;
  }

  /* Phone — large, prominent, below top bar */
  .aew-hv2__drawer-nav {
    padding: 0;
  }

  /* Inject phone as first nav element via dedicated drawer-phone-mobile if present.
     We re-purpose existing markup: surface the phone before the nav list. */
  .aew-hv2__drawer {
    --drawer-phone-color: var(--aew-text);
  }

  /* Menu list — full-width rows with bottom borders */
  .aew-hv2__drawer-list {
    padding: 42px 24px;
  }

  .aew-hv2__drawer-item {
    border-bottom: 0;
  }

  .aew-hv2__drawer-label {
    font-family: "Teko", sans-serif !important;
    font-weight: 600 !important;
    /* font-size owned by the drawer_item_font_size control */
    line-height: 0.95 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(
      --aew-hv2-drawer-parent-color,
      var(--aew-secondary-accent)
    ) !important;
    /* Padding owned by the "Menu item padding" control (on the label, so the
       whole row area is clickable). */
  }
  .aew-hv2__drawer-label:hover,
  .aew-hv2__drawer-toggle:hover .aew-hv2__drawer-label {
    color: var(--aew-hv2-drawer-parent-hover, var(--aew-cta)) !important;
  }

  .aew-hv2__drawer-chevron {
    color: var(--aew-secondary-accent);
    width: 14px;
    height: 8px;
  }

  /* Submenu — indented, same family, slightly smaller */
  .aew-hv2__drawer-submenu {
    background: transparent;
    padding: 12px 0px 0px 0px;
  }
  .aew-hv2__drawer-submenu a {
    font-family: var(--aew-font-body, Poppins, sans-serif) !important;
    font-weight: 400 !important;
    font-size: 18px;
    line-height: 1 !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
    color: var(
      --aew-hv2-drawer-child-color,
      var(--aew-secondary-bg)
    ) !important;
    padding: 10px 0;
  }
  .aew-hv2__drawer-submenu a:hover {
    color: var(--aew-hv2-drawer-child-hover, var(--aew-cta)) !important;
  }

  /* Hide scrollbar (prevents top-right flicker during slide-out) */
  .aew-hv2__drawer {
    scrollbar-width: none;
    box-shadow: none !important;
  }
  .aew-hv2__drawer::-webkit-scrollbar {
    display: none;
  }

  /* Kill the stagger-in animation on close — it leaves a residue when is-open
     is removed mid-flight, which flashes in the top-right of the drawer. */
  .aew-hv2.is-open .aew-hv2__drawer-item {
    animation: none !important;
  }
}
