/**
 * zymarg-header.css — Header base styles.
 *
 * Written to match the design reference mockup exactly.
 * CSS class name mapping (mockup → plugin):
 *   .z-header-wrap       → .z-hdr-wrap
 *   .z-topbar            → .z-hdr-topbar (with .z-hdr-topbar__inner as padding wrapper)
 *   .z-topbar__left/right→ .z-hdr-topbar__left / .z-hdr-topbar__right
 *   .z-topbar__seller    → .z-hdr-seller-btn
 *   .z-topbar__link      → .z-hdr-topbar__link
 *   .z-topbar__divider   → .z-hdr-topbar__divider
 *   .z-header            → .z-hdr-bar  (inner = .z-hdr-bar__inner)
 *   .z-header__logo      → .z-hdr-logo / .z-hdr-logo__link / .z-hdr-logo__img
 *   .z-header__search    → .z-hdr-search / .z-hdr-search__bar
 *   .z-header__actions   → .z-hdr-actions
 *   .z-action            → .z-hdr-action
 *   .z-action__icon      → .z-hdr-action__icon
 *   .z-action__label     → .z-hdr-action__label
 *   .z-badge             → .z-hdr-badge / .z-hdr-wishlist-count
 *
 * @package ZymargHeader
 * @since   1.1.2
 */


@font-face {
  font-family: "Zymarg Badge Numerals";
  src: url("../fonts/zymarg-badge-numerals.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ────────────────────────────────────────────────── */
:where(.z-hdr-wrap) {
  box-sizing: border-box;
}
:where(.z-hdr-wrap) *,
:where(.z-hdr-wrap) *::before,
:where(.z-hdr-wrap) *::after {
  box-sizing: inherit;
}
:where(.z-hdr-wrap input, .z-hdr-wrap button, .z-hdr-wrap ul, .z-hdr-wrap li, .z-hdr-wrap p) {
  margin: 0;
  padding: 0;
}

/* ── Body padding (header is position:fixed) ──────────────── */
body {
  padding-top: 106px; /* 38px topbar + 68px header bar */
}
body.hdr-sticky {
  padding-top: 106px; /* Preserve reserved space when the top bar collapses. */
}

/* ── Header wrapper ──────────────────────────────────────── */
.z-hdr-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--zym-color-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Shift the fixed header below WP's admin toolbar, which position:fixed
 * ignores by default. */
body.admin-bar .z-hdr-wrap {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .z-hdr-wrap {
    top: 46px;
  }
}

/* ══════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════ */
.z-hdr-topbar {
  background: linear-gradient(135deg, #f9eeff 0%, #f0d8ff 100%);
  border-bottom: 1px solid rgba(149, 0, 165, 0.13);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.25s ease;
}
.z-hdr-topbar__inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 32px;
}
.z-hdr-topbar__left {
  display: flex;
  align-items: center;
}
.z-hdr-topbar__right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Become a Seller button — restored to the brand's real --zym-gradient
   token (v1.3.0 regression fix). The previous version referenced
   --zym-color-primary-container, which does not exist in the canonical
   zymarg-tokens.css, so this pill rendered fully transparent.
   Text/icon colour is a FIXED white (#fff), not --zym-color-surface: the
   gradient background never changes between light/dark mode (per the
   Design Tokens file's own rule — "the mark should read the same in both
   modes"), but --zym-color-surface DOES flip to near-black in dark mode,
   which made this text unreadable against the still-purple gradient. */
.z-hdr-seller-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #C518C5;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--zym-shadow-btn);
  transition: opacity 0.2s, box-shadow 0.2s;
}
/* Explicit link states — themes often style a:visited/a:hover with a
   higher specificity (0,1,1) than a plain class selector (0,1,0), which
   can override the white text above once this link has been visited or
   is hovered/clicked, making it unreadable against the gradient. Matching
   each pseudo-class here (specificity 0,2,0) keeps the text white in
   every state. */
.z-hdr-seller-btn:link,
.z-hdr-seller-btn:visited,
.z-hdr-seller-btn:hover,
.z-hdr-seller-btn:active,
.z-hdr-seller-btn:focus {
  color: #fff;
}
.z-hdr-seller-btn:hover {
  opacity: 0.87;
  box-shadow: var(--zym-shadow-btn-hover);
}
.z-hdr-seller-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}

/* Top bar links */
.z-hdr-topbar__link {
  font-size: 12.5px;
  color: #6b0077;
  text-decoration: none;
  padding: 0 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.z-hdr-topbar__link:hover {
  color: var(--zym-color-primary);
}
.z-hdr-topbar__divider {
  width: 1px;
  height: 14px;
  background: rgba(149, 0, 165, 0.22);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   HEADER BAR
   ══════════════════════════════════════════════════════════ */
.z-hdr-bar {
  background: var(--zym-color-surface);
  border-bottom: 1px solid rgba(149, 0, 165, 0.10);
  height: 68px;
  transition: box-shadow 0.3s ease;
}
.z-hdr-bar__inner {
  /* Three real columns: logo | search | actions. Each one is contained to
     its own column and can never overlap its neighbors, at any viewport
     width — the middle column shrinks first if space gets tight. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 100%;
  padding: 0 32px;
  gap: 20px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.z-hdr-logo {
  grid-column: 1;
  display: flex;
  align-items: center;
}
.z-hdr-logo__link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
/* Modern-format wrappers must not change the logo's flex layout. */
.z-hdr-logo__link picture { display: contents; }
.z-hdr-logo__img,
.z-hdr-logo .custom-logo {
  height: 34px;
  width: auto;
  display: block;
  max-width: none;
}
.z-hdr-logo__text {
  font-size: 20px;
  font-weight: 700;
  color: var(--zym-color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ── Search ───────────────────────────────────────────────── */
.z-hdr-search {
  /* Confined to its own grid column — the column width is whatever space
     is actually left between the logo and the action icons, so the search
     bar can never grow wide enough to overlap either of them (e.g. on
     tablet widths). It's centered within that column and capped at 540px. */
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 540px;
  min-width: 0;
}
.z-hdr-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf6ff;
  border: 1.5px solid rgba(149, 0, 165, 0.18);
  border-radius: 24px;
  padding: 0 18px;
  height: 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.z-hdr-search__bar:focus-within {
  border-color: #9500a5;
  box-shadow: 0 0 0 3px rgba(149, 0, 165, 0.10);
}
.z-hdr-search__bar svg {
  flex-shrink: 0;
  display: block;
  color: #a07aaa;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
}
.z-hdr-search__bar input,
.z-hdr-search__bar form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: #1a1a2e;
  width: 100%;
  font-family: inherit;
}
.z-hdr-search__bar input::placeholder {
  color: #b08aaa;
}
.z-hdr-search__bar form {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ── Actions ──────────────────────────────────────────────── */
.z-hdr-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Each action item */
/* Horizontal padding tightened 12px -> 4px (@since 1.5.19) so adjacent
   icons sit ~10px apart on desktop/tablet (4px padding + 2px .z-hdr-actions
   gap + 4px padding) instead of ~26px. Mobile keeps its own separate
   override in the max-width:767px media query below, untouched. */
.z-hdr-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.15s;
  color: inherit;
}
.z-hdr-action:hover {
  background: #f9eeff;
}
.z-hdr-action:hover .z-hdr-action__icon svg {
  stroke: var(--zym-color-primary);
}

/* Icon wrapper */
.z-hdr-action__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* All action SVGs — constrained to 22 × 22 px.
   Dark-mode fix: was a hardcoded light-mode-only hex (#4a2a50), which
   stayed dark and became invisible against a dark page background once
   [data-theme="dark"] was active. --zym-color-dark flips to a near-white
   value in dark mode, so this now stays visible in both modes. */
.z-hdr-action__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--zym-color-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.15s;
}

/* Label below icon — dark-mode fix: was a hardcoded light-mode-only hex
   (#7a5a80), same invisible-in-dark-mode bug as the icon above.
   --zym-color-text flips to a light muted value in dark mode. */
.z-hdr-action__label {
  font-size: 10.5px;
  color: var(--zym-color-text);
  white-space: nowrap;
  font-weight: 500;
  line-height: 1;
}

/* ── Badges ───────────────────────────────────────────────── */
/* Restored to --zym-gradient (v1.3.0 regression fix) — see .z-hdr-seller-btn
   comment above for the root cause (a nonexistent token silently resolving
   to transparent, which is why this wishlist/cart count badge lost its
   background). Text colour is a fixed white (#fff), same reasoning as
   .z-hdr-seller-btn above — the gradient never changes in dark mode, so
   the text colour on top of it must not change either. */
.z-hdr-badge,
.z-hdr-wishlist-count {
  position: absolute;
  top: -5px;
  right: -7px;
  background: var(--zym-gradient);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 20px;
  border: 2px solid #fff;
  padding: 0 3px;
  box-sizing: border-box !important;
  /* !important on every centering-related property below: some
     themes/plugins set a global line-height, text-align, or flex
     alignment on spans/badges that loaded after this stylesheet, which
     was pushing the number off-centre inside the circle. These
     guarantee the digit stays dead-centre both ways regardless of
     load order or outside rules. */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}
.z-hdr-badge[hidden],
.z-hdr-wishlist-count[hidden] {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════
   CART INSIDE ACTIONS
   .z-hdr-cart-root  →  outer scope wrapper
   .zymarg-tb-cart   →  inner cart root (owns cart.js + scoped CSS)
   The trigger <a> reuses .z-hdr-action styles above via dual
   class="zymarg-tb-cart__trigger z-hdr-action z-hdr-action--cart"
   The icon <span> reuses .z-hdr-action__icon via dual
   class="zymarg-tb-cart__icon-wrap z-hdr-action__icon"
   ══════════════════════════════════════════════════════════ */
.z-hdr-actions .z-hdr-cart-root {
  position: relative;
  display: flex;
  align-items: center;
}

/* The cart inner div must not expand beyond the trigger button */
.z-hdr-actions .z-hdr-cart-root .zymarg-tb-cart {
  position: static;
}

/* Cart icon SVG — sized by admin inline CSS (default 24 px via
   Settings::cart_inline_css()); the header's .z-hdr-action__icon svg
   rule above would apply if NOT overridden, so we keep parity. */

/* Cart badge is managed by zymarg-cart.js + Settings::cart_inline_css().
   Hide-when-zero is handled by the [hidden] attribute. */
.z-hdr-actions .z-hdr-cart-root .zymarg-tb-cart__count[hidden] {
  display: none !important;
}

/* Dropdown panel — absolute position below the trigger */
.z-hdr-actions .z-hdr-cart-root .zymarg-tb-cart__panel--dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 9999;
}

/* ══════════════════════════════════════════════════════════
   STICKY STATE
   ══════════════════════════════════════════════════════════ */
.z-hdr-wrap.is-sticky .z-hdr-topbar {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}
.z-hdr-wrap.is-sticky .z-hdr-bar {
  box-shadow: 0 4px 24px rgba(149, 0, 165, 0.16);
}

/* ══════════════════════════════════════════════════════════
   MOBILE  (≤ 767 px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  body {
    padding-top: 56px;
  }
  body.hdr-sticky {
    padding-top: 56px;
  }

  /* Hide top bar entirely on mobile */
  .z-hdr-topbar {
    display: none;
  }

  /* Compact header bar */
  .z-hdr-bar {
    height: 56px;
  }
  .z-hdr-bar__inner {
    padding: 0 16px;
    gap: 0;
  }

  /* Smaller logo */
  .z-hdr-logo__img,
  .z-hdr-logo .custom-logo {
    height: 28px;
  }

  /* Hide search on mobile */
  .z-hdr-search {
    display: none;
  }

  /* Hide all action items, then selectively re-show cart + wishlist */
  .z-hdr-action {
    display: none;
  }
  .z-hdr-action--cart,
  .z-hdr-action--wishlist {
    display: flex !important;
  }
  .z-hdr-action__label {
    display: none;
  }

  /* Desktop-only items (account link only — wishlist is shown on
     mobile too, so it no longer carries this class) */
  .z-hdr-desktop-only {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   WISHLIST BADGE — CONFIGURABLE ANIMATIONS
   Class z-hdr-wishlist--badge-anim-{type} is set on the wishlist
   <a> element by class-renderer.php from the admin setting.
   JS adds .is-animating on every count change (no page reload).
   @since 1.1.13
   ══════════════════════════════════════════════════════════════ */

/* Bounce */
.z-hdr-wishlist--badge-anim-bounce .z-hdr-wishlist-count.is-animating {
  animation: z-hdr-wishlist-bounce 0.5s ease;
}
@keyframes z-hdr-wishlist-bounce {
  0%,  100% { transform: scale(1); }
  30%        { transform: scale(1.45); }
  60%        { transform: scale(1.1); }
}

/* Pulse */
.z-hdr-wishlist--badge-anim-pulse .z-hdr-wishlist-count.is-animating {
  animation: z-hdr-wishlist-pulse 0.6s ease;
}
@keyframes z-hdr-wishlist-pulse {
  0%,  100% { box-shadow: 0 0 0 0 rgba(149,0,165,0.5); }
  50%        { box-shadow: 0 0 0 8px rgba(149,0,165,0); }
}

/* Shake */
.z-hdr-wishlist--badge-anim-shake .z-hdr-wishlist-count.is-animating {
  animation: z-hdr-wishlist-shake 0.5s ease;
}
@keyframes z-hdr-wishlist-shake {
  0%,  100% { margin-left: 0; }
  20%, 60%   { margin-left: -3px; }
  40%, 80%   { margin-left:  3px; }
}

/* Scale */
.z-hdr-wishlist--badge-anim-scale .z-hdr-wishlist-count.is-animating {
  animation: z-hdr-wishlist-scale 0.4s ease;
}
@keyframes z-hdr-wishlist-scale {
  0%   { transform: scale(0.4); }
  100% { transform: scale(1); }
}

/* Fade */
.z-hdr-wishlist--badge-anim-fade .z-hdr-wishlist-count.is-animating {
  animation: z-hdr-wishlist-fade 0.5s ease;
}
@keyframes z-hdr-wishlist-fade {
  0%   { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Shared badge appearance at every breakpoint. Dimensions, radius, border,
   and calibrated optical-centering padding are generated by
   Settings::header_inline_css(), so all size controls remain functional. The
   bundled numeral font prevents device-level font substitution and tabular
   figures keep different counts visually consistent. @since 1.5.29 */
.z-hdr-wrap .z-hdr-badge,
.z-hdr-wrap .z-hdr-wishlist-count {
  box-sizing: border-box !important;
  background: var(--zym-gradient) !important;
  color: #fff !important;
  font-family: "Zymarg Badge Numerals", Arial, sans-serif !important;
  font-size-adjust: none;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  font-weight: 400 !important;
  line-height: 1 !important;
  -webkit-text-stroke: 0;
}

@media (prefers-reduced-motion: reduce) {
 .z-hdr-wrap, .z-hdr-topbar, .z-hdr-bar { transition: none !important; }
 .z-hdr-wishlist-count { animation: none !important; }
}

/* Mobile logo/seller rotation. No animation library or new assets. */
.z-hdr-rotation__face { display: contents; }
.z-hdr-rotation__seller { display: none; }

@media (max-width: 767px) {
  /* Keep wide logos contained without reserving space for a rotation control.
     Both faces size the shared slot; action icons do not move across switches. */
  .z-hdr-bar__inner.z-hdr-has-rotation {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
  }
  .z-hdr-logo.is-rotating {
    display: grid;
    position: relative;
    min-width: 0;
    height: 100%;
    touch-action: pan-y pinch-zoom;
    user-select: none;
  }
  .z-hdr-logo.is-rotating .z-hdr-logo__link,
  .z-hdr-logo.is-rotating .z-hdr-rotation__seller {
    grid-area: 1 / 1;
    overflow: hidden;
    height: 100%;
    min-width: 0;
    pointer-events: none;
  }
  .z-hdr-logo.is-rotating[data-active-link="logo"] .z-hdr-logo__link,
  .z-hdr-logo.is-rotating[data-active-link="seller"] .z-hdr-rotation__seller,
  .z-hdr-logo.is-rotating[data-active-link="both"] .z-hdr-logo__link,
  .z-hdr-logo.is-rotating[data-active-link="both"] .z-hdr-rotation__seller {
    pointer-events: auto;
  }
  .z-hdr-logo.is-rotating .z-hdr-logo__img,
  .z-hdr-logo.is-rotating .custom-logo { max-width: 100%; object-fit: contain; object-position: left center; }
  .z-hdr-logo.is-rotating .z-hdr-rotation__seller:not([hidden]) {
    display: flex;
    position: relative;
    align-items: center;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    color: #fff;
    text-decoration: none;
  }
  .z-hdr-logo.is-rotating .z-hdr-rotation__face {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    opacity: 0;
    transform: none;
    transition: opacity 220ms ease, transform 220ms ease;
    transform-origin: left center;
  }
  .z-hdr-logo.is-rotating .z-hdr-rotation__seller .z-hdr-rotation__face {
    justify-content: flex-start;
    width: 100%;
  }
  .z-hdr-logo.is-rotating .z-hdr-rotation__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    height: var(--z-hdr-seller-logo-height, 28px);
    padding: 0 12px;
    border-radius: 20px;
    background: #C518C5;
    color: #fff;
    font-size: min(13px, calc(var(--z-hdr-seller-logo-height, 28px) * .65));
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: transform 180ms ease;
  }
  .z-hdr-logo.is-rotating .z-hdr-rotation__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .z-hdr-logo.is-rotating .z-hdr-rotation__seller svg {
    width: min(18px, calc(var(--z-hdr-seller-logo-height, 28px) * .8));
    height: min(18px, calc(var(--z-hdr-seller-logo-height, 28px) * .8));
    flex: 0 0 min(18px, calc(var(--z-hdr-seller-logo-height, 28px) * .8));
  }
  /* The ON mode sizes the shared slot from the logo alone. The seller face
     stays out of intrinsic sizing and fills the measured, untransformed box. */
  .z-hdr-logo.is-rotating[data-seller-match-logo-width="1"] .z-hdr-rotation__seller:not([hidden]) {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--z-hdr-seller-logo-width, 100%);
    max-width: 100%;
  }
  .z-hdr-logo.is-rotating[data-seller-match-logo-width="1"] .z-hdr-rotation__pill {
    width: 100%;
    padding-inline: min(12px, calc(var(--z-hdr-seller-logo-width, 100px) * .12));
    gap: min(6px, calc(var(--z-hdr-seller-logo-width, 100px) * .05));
  }
  .z-hdr-logo.is-rotating[data-rotation-animation="vertical_slide"] .z-hdr-logo__link .z-hdr-rotation__face {
    opacity: 1; transform: translateY(-110%);
  }
  .z-hdr-logo.is-rotating[data-rotation-animation="vertical_slide"] .z-hdr-rotation__seller .z-hdr-rotation__face {
    opacity: 1; transform: translateY(110%);
  }
  .z-hdr-logo.is-rotating[data-rotation-animation="horizontal_slide"] .z-hdr-logo__link .z-hdr-rotation__face {
    opacity: 1; transform: translateX(-110%);
  }
  .z-hdr-logo.is-rotating[data-rotation-animation="horizontal_slide"] .z-hdr-rotation__seller .z-hdr-rotation__face {
    opacity: 1; transform: translateX(110%);
  }
  .z-hdr-logo.is-rotating[data-rotation-animation="gentle_scale"] .z-hdr-rotation__face { transform: scale(.88); }
  .z-hdr-logo.is-rotating[data-rotation-state="logo"] .z-hdr-logo__link .z-hdr-rotation__face,
  .z-hdr-logo.is-rotating[data-rotation-state="seller"] .z-hdr-rotation__seller .z-hdr-rotation__face {
    opacity: 1; transform: none;
  }
  .z-hdr-logo.is-rotation-instant .z-hdr-rotation__face { transition: none !important; }
  /* No automatic motion or manual switch control: both links stay available. */
  .z-hdr-logo.is-rotating.is-rotation-static { display: flex; gap: 12px; touch-action: auto; user-select: auto; }
  .z-hdr-logo.is-rotating.is-rotation-static .z-hdr-logo__link { flex: 1 1 0; min-width: 40px; }
  .z-hdr-logo.is-rotating.is-rotation-static .z-hdr-rotation__seller:not([hidden]) {
    position: static;
    flex: 0 1 auto;
    width: max-content;
    max-width: calc(100% - 52px);
  }
  /* Equal columns let both static links fit together without a sizing loop.
     The image itself remains the observed source, never this shared container. */
  .z-hdr-logo.is-rotating.is-rotation-static[data-seller-match-logo-width="1"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .z-hdr-logo.is-rotating.is-rotation-static[data-seller-match-logo-width="1"] .z-hdr-logo__link,
  .z-hdr-logo.is-rotating.is-rotation-static[data-seller-match-logo-width="1"] .z-hdr-rotation__seller:not([hidden]) {
    grid-area: auto;
    min-width: 0;
  }
  .z-hdr-logo.is-rotating.is-rotation-static[data-seller-match-logo-width="1"] .z-hdr-rotation__seller:not([hidden]) {
    position: relative;
    inset: auto;
    width: var(--z-hdr-seller-logo-width, 100%);
    max-width: 100%;
  }
  .z-hdr-logo.is-rotating.is-rotation-static .z-hdr-logo__link .z-hdr-rotation__face,
  .z-hdr-logo.is-rotating.is-rotation-static .z-hdr-rotation__seller .z-hdr-rotation__face {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .z-hdr-logo.is-rotating .z-hdr-logo__link:focus-visible,
  .z-hdr-logo.is-rotating .z-hdr-rotation__seller:focus-visible {
    outline: 2px solid var(--zym-color-primary, #9500a5);
    outline-offset: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .z-hdr-logo .z-hdr-rotation__face { transition: none !important; }
}

/* Motion-only adaptation of Design Tokens v15 Glow Sweep. All rules are
   Header-scoped; the existing top-bar background, colors and geometry remain. */
.z-hdr-wrap .z-hdr-seller-sweep {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.z-hdr-wrap .z-hdr-seller-sweep::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: -70%;
  width: 20%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  z-index: 0;
}
.z-hdr-wrap .z-hdr-seller-sweep > svg,
.z-hdr-wrap .z-hdr-seller-sweep > span { position: relative; z-index: 1; }
@keyframes zHdrSellerHoverSweep { from { transform: translateX(0); } to { transform: translateX(850%); } }
@keyframes zHdrSellerClickSweep { from { transform: translateX(0); } to { transform: translateX(850%); } }
@keyframes zHdrSellerClickSweepAlt { from { transform: translateX(0); } to { transform: translateX(850%); } }
@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .z-hdr-wrap .z-hdr-rotation__seller:hover .z-hdr-rotation__pill {
    transform: translateY(-1px);
  }
  .z-hdr-wrap .z-hdr-rotation__pill:hover::before {
    opacity: 1;
    animation: zHdrSellerHoverSweep 1.4s linear infinite;
  }
}
.z-hdr-wrap .z-hdr-rotation__seller:active .z-hdr-rotation__pill { transform: none; }
.z-hdr-wrap .z-hdr-seller-sweep.is-seller-clicking::before {
  opacity: 1;
  animation: zHdrSellerClickSweep 1.4s linear 1;
}
.z-hdr-wrap .z-hdr-seller-sweep.is-seller-clicking.is-seller-click-alt::before {
  animation-name: zHdrSellerClickSweepAlt;
}
.z-hdr-wrap.is-seller-effects-hidden .z-hdr-seller-sweep::before {
  opacity: 0;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .z-hdr-wrap .z-hdr-seller-sweep::before { animation: none !important; opacity: 0 !important; }
  .z-hdr-wrap .z-hdr-logo.is-rotating .z-hdr-rotation__pill { transition: none !important; transform: none !important; }
}
