/* ==========================================================================
   Zyra Design System — Phase 2.3 (staging)
   Additive stylesheet. Loaded AFTER theme.min.css; never edit theme.min.css.
   Tokens + components per PHASE2.3-DESIGN-SYSTEM.md.
   Naming: all classes prefixed `zyra-` to avoid collisions with --fn-* theme.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --zyra-ink: #111827;          /* text, black CTAs, completed steps */
  --zyra-paper: #ffffff;        /* page background, cards, floating nav */
  --zyra-surface: #f5f5f4;      /* image wells, address/order cards, inputs */
  --zyra-muted: #6b7280;        /* secondary text, counts, old prices */
  --zyra-border: #e5e7eb;       /* card borders, dividers, unselected radios */
  --zyra-brand: #4d8693;        /* brand primary (live theme override) */
  --zyra-brand-dark: #346d7a;   /* brand hover/active */
  --zyra-brand-subtle: #edf3f4; /* brand-tinted backgrounds */
  --zyra-sale: #e5484d;         /* sale price, discount badges, current step */
  --zyra-danger: #f03d3d;       /* errors, destructive actions */
  --zyra-success: #33b36b;      /* in stock, verified, secure payment */
  --zyra-star: #f59e0b;         /* rating glyph */
  --zyra-info: #79429e;         /* info accents (live override) */

  --zyra-radius-card: 16px;
  --zyra-radius-well: 12px;
  --zyra-radius-pill: 999px;
  --zyra-shadow-nav: 0 8px 24px rgba(17, 24, 39, .12);
  --zyra-shadow-btn: 0 2px 8px rgba(17, 24, 39, .15);
}

[data-bs-theme="dark"] {
  --zyra-ink: #f9fafb;
  --zyra-paper: #1f2937;
  --zyra-surface: #374151;
  --zyra-muted: #9ca3af;
  --zyra-border: #374151;
  --zyra-brand-subtle: #172332;
  --zyra-shadow-nav: 0 8px 24px rgba(0, 0, 0, .45);
  --zyra-shadow-btn: 0 2px 8px rgba(0, 0, 0, .4);
}

/* --- 2. Type ------------------------------------------------------------- */
.zyra-display { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.zyra-section-title { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.zyra-h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.zyra-muted { color: var(--zyra-muted); }
.zyra-small { font-size: 13px; line-height: 1.4; }
.zyra-tiny { font-size: 12px; font-weight: 500; line-height: 1.4; }

/* --- 3. Buttons ---------------------------------------------------------- */
.zyra-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .625rem 1.5rem; border-radius: var(--zyra-radius-pill);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.zyra-btn:hover { text-decoration: none; }
.zyra-btn-primary { background: var(--zyra-ink); color: #fff; }
.zyra-btn-primary:hover { background: #000; color: #fff; }
[data-bs-theme="dark"] .zyra-btn-primary { background: #f9fafb; color: #111827; }
[data-bs-theme="dark"] .zyra-btn-primary:hover { background: #fff; color: #111827; }
.zyra-btn-secondary { background: var(--zyra-paper); color: var(--zyra-ink); border-color: var(--zyra-border); }
.zyra-btn-secondary:hover { border-color: var(--zyra-ink); }
.zyra-btn-brand { background: var(--zyra-brand); color: #fff; }
.zyra-btn-brand:hover { background: var(--zyra-brand-dark); color: #fff; }
/* Outline button (2026-12-03 buy buttons): a clear 1.5px ink border so the
   secondary buy action reads as a button in both themes — ink/paper tokens
   flip together, so the pairing stays readable light and dark. */
.zyra-btn-outline { background: var(--zyra-paper); color: var(--zyra-ink); border: 2px solid var(--zyra-ink); }
.zyra-btn-outline:hover { background: var(--zyra-surface); color: var(--zyra-ink); }
.zyra-btn-outline:active { background: var(--zyra-brand-subtle); }
.zyra-btn:disabled { opacity: .5; pointer-events: none; }

/* Buy actions (2026-12-03): Add to Bag (outline) + Add & Checkout (solid).
   Stacked full-width on phones; side by side once there is room. */
.zyra-buy-actions { display: flex; flex-direction: column; gap: .5rem; }
.zyra-buy-actions .zyra-btn { width: 100%; min-height: 52px; }
@media (min-width: 576px) {
  .zyra-buy-actions { flex-direction: row; }
  .zyra-buy-actions .zyra-btn { flex: 1 1 0; width: auto; }
}
.zyra-buy-total { font-size: 15px; font-weight: 700; color: var(--zyra-ink); margin: 0; white-space: nowrap; }
.zyra-buy-total .zyra-buy-total-note { font-size: 12px; font-weight: 500; color: var(--zyra-muted); }
.zyra-buy-reason { font-size: 13px; font-weight: 600; color: var(--zyra-sale); margin: .5rem 0 0; }
.zyra-buy-msg { font-size: 13px; font-weight: 600; color: var(--zyra-danger); margin: .5rem 0 0; }
.zyra-buy-msg[hidden] { display: none; }

/* Icon buttons: 40px circle (quick-add), 36px ghost circle (heart) */
.zyra-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--zyra-border);
  background: var(--zyra-paper); color: var(--zyra-ink); cursor: pointer; flex-shrink: 0;
  transition: transform .15s ease, background-color .15s ease;
}
.zyra-icon-btn:hover { transform: scale(1.05); }
.zyra-icon-btn--sm { width: 36px; height: 36px; }
.zyra-icon-btn--shadow { border: 0; box-shadow: var(--zyra-shadow-btn); }
.zyra-icon-btn--active { color: var(--zyra-sale); }
.zyra-icon-btn--active .fi-heart { font-weight: 700; }

/* --- 4. Search bar ------------------------------------------------------- */
.zyra-search-bar {
  display: flex; align-items: center; gap: .5rem;
  height: 48px; padding: 0 .5rem 0 1rem; border-radius: 12px;
  background: var(--zyra-surface); border: 1px solid transparent;
}
.zyra-search-bar:focus-within { border-color: var(--zyra-brand); background: var(--zyra-paper); }
.zyra-search-bar .fi-search { color: var(--zyra-muted); flex-shrink: 0; }
.zyra-search-bar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--zyra-ink);
}
.zyra-search-bar input::placeholder { color: var(--zyra-muted); }
.zyra-search-clear {
  display: none; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--zyra-border); color: var(--zyra-ink); font-size: 12px; line-height: 1;
}
.zyra-search-bar.has-text .zyra-search-clear { display: inline-flex; }

/* Header search (desktop, >=992px) */
.zyra-topbar-search { display: none; }
@media (min-width: 992px) {
  .zyra-topbar-search { display: flex; flex: 1; max-width: 420px; margin: 0 1rem; }
}

/* --- 5. Filter pills ----------------------------------------------------- */
.zyra-filter-bar {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px; -webkit-overflow-scrolling: touch;
}
.zyra-filter-bar::-webkit-scrollbar { display: none; }
.zyra-filter-pill {
  display: inline-flex; align-items: center; gap: .375rem; flex-shrink: 0;
  height: 36px; padding: 0 .875rem; border-radius: var(--zyra-radius-pill);
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  font-size: 14px; font-weight: 500; color: var(--zyra-ink); cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
.zyra-filter-pill:hover { border-color: var(--zyra-ink); text-decoration: none; color: var(--zyra-ink); }
.zyra-filter-pill.is-active { background: var(--zyra-ink); border-color: var(--zyra-ink); color: #fff; }
[data-bs-theme="dark"] .zyra-filter-pill.is-active { background: #f9fafb; border-color: #f9fafb; color: #111827; }
.zyra-filter-pill .fi-chevron-down { font-size: 12px; color: var(--zyra-muted); }
.zyra-filter-pill.is-active .fi-chevron-down { color: inherit; }

/* --- 6. Cards ------------------------------------------------------------ */
.zyra-card {
  position: relative; /* stretched-link targets inside need a positioned ancestor */
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-card); overflow: hidden; height: 100%;
}
.zyra-card-img {
  position: relative; background: var(--zyra-surface);
  border-radius: var(--zyra-radius-well); overflow: hidden;
}
.zyra-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zyra-card-img--square { aspect-ratio: 1 / 1; }
.zyra-card-img--landscape { aspect-ratio: 4 / 3; }
.zyra-card-body { padding: 16px; }
.zyra-card-name {
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--zyra-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zyra-card-name a { color: inherit; text-decoration: none; }
.zyra-card-name a:hover { text-decoration: underline; }

/* Price: sale bold red + old struck muted; plain price bold ink */
.zyra-price { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--zyra-ink); }
.zyra-price--lg { font-size: 20px; }
.zyra-price--sale { color: var(--zyra-sale); }
.zyra-price-old { font-size: 14px; font-weight: 400; color: var(--zyra-muted); text-decoration: line-through; margin-left: .375rem; }

/* Rating: one line — amber star, ink value, muted count */
.zyra-rating { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--zyra-ink); }
.zyra-rating .zyra-star { color: var(--zyra-star); }
.zyra-rating .zyra-rating-count { color: var(--zyra-muted); font-weight: 400; }

/* Discount badge: red pill, top-left of the image well */
.zyra-badge-sale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: .2rem .5rem; border-radius: var(--zyra-radius-pill);
  background: var(--zyra-sale); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3;
}
.zyra-card-heart { position: absolute; top: 12px; right: 12px; z-index: 2; }
.zyra-quick-add {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--zyra-paper); color: var(--zyra-ink); box-shadow: var(--zyra-shadow-btn);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.zyra-quick-add:hover { transform: scale(1.08); }
.zyra-card--oos .zyra-card-img img { opacity: .5; }

/* --- 7. Homepage: hero --------------------------------------------------- */
.zyra-hero { padding-top: 1.5rem; }
@media (min-width: 768px) { .zyra-hero { padding-top: 2.5rem; } }
.zyra-hero-title { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
@media (min-width: 992px) { .zyra-hero-title { font-size: 40px; } }
.zyra-hero-sub { font-size: 16px; line-height: 1.5; color: var(--zyra-muted); max-width: 34rem; }

/* Hero search card: white rounded card holding the listing search */
.zyra-hero-search {
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-card); padding: 8px;
  box-shadow: 0 4px 16px rgba(17, 24, 39, .06);
}
.zyra-hero-search .form-select { border: 0; background-color: transparent; font-size: 15px; }
.zyra-hero-search .form-select:focus { box-shadow: none; }
.zyra-hero-search .range-slider-ui { margin-top: 1rem; margin-bottom: 1rem; }

/* Hero image cards: rounded, no giant outline words */
.zyra-hero-media { border-radius: var(--zyra-radius-card); overflow: hidden; background: var(--zyra-surface); }
.zyra-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- 8. Homepage: category strip ----------------------------------------- */
.zyra-cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  height: 100%; min-height: 96px; padding: 16px 12px; text-align: center;
  background: var(--zyra-paper); border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
  text-decoration: none; color: var(--zyra-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.zyra-cat-card:hover { border-color: var(--zyra-ink); text-decoration: none; color: var(--zyra-ink); box-shadow: 0 4px 16px rgba(17, 24, 39, .06); }
.zyra-cat-card .zyra-cat-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.zyra-cat-card .zyra-cat-count { font-size: 13px; color: var(--zyra-muted); display: inline-flex; align-items: center; gap: .3rem; }

/* --- 9. Homepage: property cards ----------------------------------------- */
.zyra-prop-card { display: flex; flex-direction: column; height: 100%; }
.zyra-prop-card .zyra-card-body { display: flex; flex-direction: column; gap: .375rem; flex: 1; padding: 16px; }
.zyra-prop-meta { display: flex; align-items: center; gap: .75rem; font-size: 13px; color: var(--zyra-muted); padding-top: .5rem; margin-top: auto; border-top: 1px solid var(--zyra-border); }
.zyra-prop-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.zyra-prop-meta i { font-size: 15px; }

/* --- 10. Empty states ----------------------------------------------------- */
.zyra-empty { text-align: center; padding: 48px 16px; }
.zyra-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px;
  background: var(--zyra-surface); color: var(--zyra-muted); font-size: 28px;
}
.zyra-empty-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.zyra-empty-copy { font-size: 14px; color: var(--zyra-muted); margin-bottom: 20px; }

/* --- 11. Floating bottom nav (mobile only) ------------------------------- */
/* Fixed 62px pill: 44px items + 8px top/bottom padding + 2px border. The
   safe-area inset lives in `bottom` (the gap under the pill), NOT in padding:
   padding-bottom with env(safe-area-inset-bottom) inflated the pill to ~94px
   on notched iPhones (34px inset) and ~81px in landscape, which is the tall
   oval the user photographed. The pill height is now identical in portrait
   and landscape. */
.zyra-mobile-nav {
  display: none;
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1030;
  align-items: center; gap: 4px; height: 62px; padding: 8px 12px;
  background: var(--zyra-paper); border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-pill);
  box-shadow: var(--zyra-shadow-nav);
  transition: transform 220ms ease, opacity 220ms ease, visibility 0s linear 0s;
}
@media (max-width: 991.98px) { .zyra-mobile-nav { display: flex; } }
/* Never float over an open drawer: the hamburger drawer lives inside the
   sticky header's z-1030 stacking context (.z-fixed), so the pill at z-1030
   later in the DOM painted above it and covered the drawer's bottom content
   (Appearance toggle). While any Bootstrap offcanvas is open the drawer is
   the navigation, so the pill hides until it closes. Same suppression the
   bar already has on detail/cart/checkout pages. */
@media (max-width: 991.98px) {
  body:has(.offcanvas.show) .zyra-mobile-nav,
  body:has(.offcanvas.showing) .zyra-mobile-nav { display: none !important; }
}
/* Scroll auto-hide (JS adds .is-hidden, assets/js/zyra-mobile-nav.js): the
   pill slides fully off-screen below the viewport, fades out, and stops
   taking taps or focus. Hide after 5px of accumulated downward scroll;
   show again on 1px of upward scroll. Visibility flips only after the
   220ms slide on hide, and instantly on show, so the bar never pops in
   invisible or lingers as a ghost. */
@media (max-width: 991.98px) {
  .zyra-mobile-nav.is-hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease, visibility 0s linear 220ms;
  }
  /* JS-driven drawer hide (body.zyra-drawer-open, set on Bootstrap's
     shown/hidden.bs.offcanvas events): same effect as the :has() rule
     above, but it does not depend on :has() support or on the phone
     having picked up the new stylesheet yet — which is why the user was
     still seeing the pill over the drawer. The :has() rule stays as a
     fallback for pages where the JS has not run. */
  body.zyra-drawer-open .zyra-mobile-nav { display: none !important; }
}
.zyra-mobile-nav-item {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 44px; border-radius: var(--zyra-radius-pill);
  color: var(--zyra-muted); text-decoration: none; font-size: 21px;
}
.zyra-mobile-nav-item:hover { color: var(--zyra-ink); text-decoration: none; }
.zyra-mobile-nav-item.is-active { background: var(--zyra-ink); color: #fff; }
[data-bs-theme="dark"] .zyra-mobile-nav-item.is-active { background: #f9fafb; color: #111827; }
.zyra-mobile-nav-badge {
  position: absolute; top: 2px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--zyra-radius-pill); background: var(--zyra-sale); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
/* Keep page content clear of the floating nav on mobile (only when it renders) */
@media (max-width: 991.98px) {
  /* Pill zone = 16px gap + safe-area inset + 62px height (112px on notched
     phones). Clearance must cover the whole zone or the pill overlaps the
     last footer content (subscribe form) at max scroll. */
  body:has(.zyra-mobile-nav) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html:has(.zyra-mobile-nav) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .zyra-mobile-nav ~ .floating-buttons { display: none; }
}

/* --- 12. Checkout stepper (RUNLO pattern) -------------------------------- */
.zyra-stepper {
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
  padding: 20px 16px 16px; background: var(--zyra-paper);
}
.zyra-stepper-track { display: flex; align-items: flex-start; }
.zyra-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.zyra-step-dot {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--zyra-paper); border: 2px solid var(--zyra-border); color: var(--zyra-muted); font-size: 18px; flex-shrink: 0;
}
.zyra-step-label { font-size: 13px; font-weight: 500; color: var(--zyra-muted); }
.zyra-step.is-done .zyra-step-dot { background: var(--zyra-ink); border-color: var(--zyra-ink); color: #fff; }
.zyra-step.is-done .zyra-step-label { color: var(--zyra-ink); }
.zyra-step.is-current .zyra-step-dot { background: var(--zyra-sale); border-color: var(--zyra-sale); color: #fff; }
.zyra-step.is-current .zyra-step-label { color: var(--zyra-ink); font-weight: 700; }
.zyra-step-line { flex: 1; height: 2px; background: var(--zyra-border); margin-top: 19px; }
.zyra-step-line.is-done { background: var(--zyra-ink); }
.zyra-stepper-caption { text-align: center; font-size: 13px; color: var(--zyra-muted); margin-top: 12px; }

/* Radio cards (delivery + payment methods) */
.zyra-radio-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 16px; border-radius: var(--zyra-radius-card); cursor: pointer;
  background: var(--zyra-paper); border: 1px solid var(--zyra-border); text-align: left;
}
.zyra-radio-card.is-selected { border: 2px solid var(--zyra-ink); padding: 15px; }
.zyra-radio-card .zyra-radio-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 2px solid var(--zyra-border); background: var(--zyra-paper); position: relative;
}
.zyra-radio-card.is-selected .zyra-radio-dot { border-color: var(--zyra-ink); }
.zyra-radio-card.is-selected .zyra-radio-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--zyra-ink);
}
.zyra-radio-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.zyra-radio-card-sub { font-size: 13px; color: var(--zyra-muted); line-height: 1.4; }
.zyra-radio-card-price { font-size: 15px; font-weight: 700; margin-left: auto; white-space: nowrap; }

/* Sticky checkout CTA bar (mobile) */
.zyra-sticky-cta {
  position: sticky; bottom: 0; z-index: 1020; background: var(--zyra-paper);
  border-top: 1px solid var(--zyra-border); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) { .zyra-sticky-cta { position: static; border-top: 0; padding: 0; } }

/* --- 13. Tables, status pills -------------------------------------------- */
.zyra-status-pill {
  display: inline-flex; align-items: center; padding: .2rem .6rem;
  border-radius: var(--zyra-radius-pill); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.zyra-status-pill--ok { background: #e6f4ec; color: #157347; }
.zyra-status-pill--warn { background: #fef3c7; color: #92400e; }
.zyra-status-pill--muted { background: var(--zyra-surface); color: var(--zyra-muted); }
.zyra-status-pill--unknown { background: transparent; color: var(--zyra-danger); border: 1px solid var(--zyra-danger); }

/* --- 14. Loading skeletons ------------------------------------------------ */
.zyra-skeleton { background: var(--zyra-surface); border-radius: var(--zyra-radius-well); }
.zyra-skeleton--img { aspect-ratio: 1 / 1; }
.zyra-skeleton--line { height: 14px; border-radius: 7px; }

/* --- 15. Focus / accessibility ------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
.zyra-filter-pill:focus-visible, .zyra-cat-card:focus-visible, .zyra-mobile-nav-item:focus-visible {
  outline: 2px solid var(--zyra-brand); outline-offset: 2px;
}

/* --- 16. Storefront (Phase 2.3 homepage) ---------------------------------- */
/* Filter bar: overflow visible (not the scrolling default) so the pill
   dropdown menus are not clipped; pills wrap to a second row on narrow phones. */
.zyra-storefront { padding-top: 16px; }
.zyra-storefront .zyra-search-bar { margin-bottom: 12px; }
.zyra-storefront .zyra-filter-bar { overflow: visible; flex-wrap: wrap; }
.zyra-search-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--zyra-ink); font-size: 16px; line-height: 1;
  text-decoration: none; flex-shrink: 0;
}
.zyra-search-back:hover { color: var(--zyra-ink); text-decoration: none; }
.zyra-search-camera {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--zyra-muted); font-size: 16px; line-height: 1;
  flex-shrink: 0;
}
.zyra-search-camera:hover { color: var(--zyra-ink); }
.zyra-results-count { margin: 12px 0 16px; font-size: 13px; color: var(--zyra-muted); }
.zyra-card--oos .zyra-card-img img { opacity: .55; }
/* Card price row: price left, stock label right — the label must never
   touch the price (min 8px gap; wraps to its own right-aligned line on
   narrow cards). Badge colours hold >=4.5:1 contrast in both themes
   (light #4b5563 on #f5f5f4 = 6.9:1; dark #d1d5db on #374151 = 7.0:1). */
.zyra-card-price-row { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; }
.zyra-card-price { flex: 1 1 auto; min-width: 0; }
.zyra-card-oos {
  margin-left: auto; flex-shrink: 0; text-align: right;
  display: inline-flex; align-items: center; padding: .15rem .5rem;
  border-radius: var(--zyra-radius-pill); background: #f5f5f4; color: #4b5563;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
[data-bs-theme="dark"] .zyra-card-oos { background: #374151; color: #d1d5db; }
.zyra-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); z-index: 1080;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px;
  background: var(--zyra-ink); color: var(--zyra-paper); font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.zyra-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 992px) { .zyra-toast { bottom: 32px; } }

/* --- 17. Cart + checkout (RUNLO pattern) ---------------------------------- */
/* Step panels are hidden until active ONLY when JS runs: the inline script
   in checkout.php adds .zyra-js to <html> before the form renders, so
   no-JS users always see every section and the single Place order submit. */
/* Single-page checkout (2026-12-03): sections are always visible —
   the old stepped-panel hiding rule is retired. */
.zyra-step-panel { scroll-margin-top: 16px; }
.zyra-step.is-done { cursor: pointer; }
.zyra-step-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.zyra-step-nav .zyra-btn-primary { flex: 1; min-width: 200px; }
.zyra-step-back {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 48px;
  border: 0; background: transparent; color: var(--zyra-muted); font-size: 15px; font-weight: 600;
  cursor: pointer; padding: 0 .25rem; text-decoration: none;
}
.zyra-step-back:hover { color: var(--zyra-ink); text-decoration: none; }

/* Radio cards with a real (visually hidden) input: the label is the card,
   so the whole card is clickable. :has() paints the selected state even
   before JS runs; JS also toggles .is-selected for older browsers. */
.zyra-radio-card { position: relative; }
.zyra-radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.zyra-radio-card:has(input:checked) { border: 2px solid var(--zyra-ink); padding: 15px; }
.zyra-radio-card:has(input:checked) .zyra-radio-dot { border-color: var(--zyra-ink); }
.zyra-radio-card:has(input:checked) .zyra-radio-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--zyra-ink);
}
.zyra-radio-card:focus-within { outline: 2px solid var(--zyra-brand); outline-offset: 2px; }

/* Shipping address card (saved address, Step 2) */
.zyra-address-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; background: var(--zyra-surface); border-radius: var(--zyra-radius-card);
}
.zyra-address-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--zyra-paper); color: var(--zyra-muted); font-size: 18px;
}
.zyra-address-lines { font-size: 14px; line-height: 1.5; color: var(--zyra-muted); min-width: 0; }
.zyra-address-lines strong { color: var(--zyra-ink); font-size: 15px; }
.zyra-address-edit {
  margin-left: auto; flex-shrink: 0; border: 0; background: transparent; cursor: pointer;
  color: var(--zyra-muted); font-size: 14px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; padding: 4px 0;
}
.zyra-address-edit:hover { color: var(--zyra-ink); }

/* Order summary rows + trust lines */
.zyra-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.zyra-summary-row .zyra-summary-label { color: var(--zyra-muted); }
.zyra-summary-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--zyra-border); padding-top: 12px; margin-top: 8px;
}
.zyra-summary-total .zyra-summary-amount { font-size: 20px; font-weight: 700; }
.zyra-order-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--zyra-border); }
.zyra-order-line:last-of-type { border-bottom: 0; }
.zyra-order-thumb {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  background: var(--zyra-surface); border: 1px solid var(--zyra-border);
}
.zyra-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 13px; color: var(--zyra-muted); }
.zyra-trust span { display: inline-flex; align-items: center; gap: 6px; }
.zyra-trust i { color: var(--zyra-success); }

/* Cart: line-item cards + quantity stepper */
.zyra-cart-list { display: flex; flex-direction: column; gap: 12px; }
.zyra-cart-item {
  display: flex; gap: 12px; padding: 16px;
  background: var(--zyra-paper); border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
}
.zyra-cart-item-img {
  width: 72px; height: 72px; border-radius: var(--zyra-radius-well); object-fit: cover; flex-shrink: 0;
  background: var(--zyra-surface); border: 1px solid var(--zyra-border);
}
.zyra-cart-item-img--placeholder {
  display: inline-flex; align-items: center; justify-content: center; color: var(--zyra-muted); font-size: 24px;
}
.zyra-cart-item-body { flex: 1; min-width: 0; }
.zyra-cart-item-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.zyra-cart-item-name a { color: inherit; text-decoration: none; }
.zyra-cart-item-name a:hover { text-decoration: underline; }
.zyra-cart-item-shop { font-size: 13px; color: var(--zyra-muted); }
.zyra-cart-item-shop a { color: inherit; text-decoration: none; }
.zyra-cart-item-shop a:hover { text-decoration: underline; }
.zyra-cart-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.zyra-cart-item-total { font-size: 15px; font-weight: 700; white-space: nowrap; }
.zyra-qty {
  display: inline-flex; align-items: center; border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-pill); background: var(--zyra-paper); overflow: hidden;
}
.zyra-qty-btn {
  width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--zyra-ink); flex-shrink: 0;
}
.zyra-qty-btn:hover { background: var(--zyra-surface); }
.zyra-qty-btn:disabled { opacity: .4; cursor: default; }
.zyra-qty input {
  width: 40px; border: 0; outline: 0; background: transparent; text-align: center;
  font-size: 15px; font-weight: 600; color: var(--zyra-ink); padding: 0;
}
.zyra-qty input::-webkit-outer-spin-button,
.zyra-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zyra-qty input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.zyra-qty-update {
  width: 36px; height: 36px; border: 0; border-left: 1px solid var(--zyra-border);
  background: transparent; cursor: pointer; color: var(--zyra-muted); font-size: 15px; flex-shrink: 0;
}
.zyra-qty-update:hover { color: var(--zyra-ink); background: var(--zyra-surface); }

/* Sticky checkout/cart CTA bar (mobile only, RUNLO pattern).
   Full-width fixed bar; hidden on desktop where the in-form CTA lives.
   The floating mobile nav is suppressed on cart/checkout pages
   ($zyraHideMobileNav) so the two bars never collide. */
.zyra-checkout-bar { display: none; }
@media (max-width: 991.98px) {
  .zyra-checkout-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: var(--zyra-consent-h, 0px); z-index: 1030;
    background: var(--zyra-paper); border-top: 1px solid var(--zyra-border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(17, 24, 39, .08);
  }
  body:has(.zyra-checkout-bar) { padding-bottom: calc(118px + var(--zyra-consent-h, 0px)); }
}
/* Cart bar (2026-12-03): the single checkout CTA, visible at every
   width as a fixed bottom bar; the summary card no longer carries
   a second button. */
.zyra-checkout-bar--cart {
  display: block; position: fixed; left: 0; right: 0; bottom: var(--zyra-consent-h, 0px); z-index: 1030;
  background: var(--zyra-paper); border-top: 1px solid var(--zyra-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(17, 24, 39, .08);
}
body:has(.zyra-checkout-bar--cart) { padding-bottom: calc(118px + var(--zyra-consent-h, 0px)); }
.zyra-checkout-bar--cart .zyra-btn { min-height: 52px; }
.zyra-checkout-bar-inner { max-width: 720px; margin: 0 auto; }
.zyra-checkout-bar-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.zyra-checkout-bar-next { font-size: 13px; color: var(--zyra-muted); }
.zyra-checkout-bar-next strong { color: var(--zyra-ink); font-weight: 700; }
.zyra-checkout-bar-total { font-size: 15px; font-weight: 700; }
.zyra-checkout-bar .zyra-btn { width: 100%; min-height: 52px; }

/* --- Single-page checkout (2026-12-03) -----------------------------------
   Contact, Delivery, Order summary, Payment stacked in one form.
   Desktop: summary sticky in the right column. Phone: summary is a
   collapsible disclosure between Delivery and Payment, and the
   sticky Pay now bar owns the bottom (safe-area aware, 52px tap
   target). Colours use design tokens only, so both themes pair. */
.zyra-checkout-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.zyra-checkout-section { min-width: 0; scroll-margin-top: 16px; }
.zyra-checkout-contact { order: 1; }
.zyra-checkout-delivery { order: 2; }
.zyra-checkout-summary { order: 3; }
.zyra-checkout-payment { order: 4; }
@media (min-width: 992px) {
  .zyra-checkout-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "contact summary" "delivery summary" "payment summary";
    align-items: start;
  }
  .zyra-checkout-contact { grid-area: contact; }
  .zyra-checkout-delivery { grid-area: delivery; }
  .zyra-checkout-summary { grid-area: summary; position: sticky; top: 16px; }
  .zyra-checkout-payment { grid-area: payment; }
}
.zyra-summary-disclosure { padding: 0; overflow: hidden; }
.zyra-summary-disclosure-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 20px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; color: var(--zyra-ink);
}
.zyra-summary-disclosure-head::-webkit-details-marker { display: none; }
.zyra-summary-disclosure-total { font-size: 15px; font-weight: 700; white-space: nowrap; }
@media (min-width: 992px) {
  .zyra-summary-disclosure-head { cursor: default; }
  .zyra-summary-disclosure-total { display: none; }
}
.zyra-summary-vendor { padding: 12px 0; border-bottom: 1px solid var(--zyra-border); }
.zyra-summary-vendor:first-of-type { padding-top: 0; }
.zyra-summary-vendor-name { font-size: 14px; font-weight: 700; color: var(--zyra-ink); margin-bottom: 4px; }
.zyra-delivery-group { padding: 14px 0; border-top: 1px solid var(--zyra-border); }
.zyra-delivery-group:first-of-type { border-top: 0; padding-top: 4px; }
.zyra-delivery-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.zyra-digital-delivery-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; background: var(--zyra-surface);
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
  font-size: 14px; line-height: 1.5; color: var(--zyra-ink);
}
.zyra-digital-delivery-line i { color: var(--zyra-success); font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.zyra-mm-operator { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.zyra-mm-provider-select { width: auto; max-width: 220px; min-height: 44px; }
.zyra-pay-actions { margin-top: 24px; }
.zyra-pay-btn { width: 100%; min-height: 52px; }
.zyra-pay-btn.is-processing, .zyra-checkout-bar .zyra-btn.is-processing { opacity: .75; pointer-events: none; }
.zyra-pay-btn.is-processing [data-pay-label]::before,
.zyra-checkout-bar .zyra-btn.is-processing [data-pay-label]::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  vertical-align: -2px; animation: zyra-pay-spin .7s linear infinite;
}
@keyframes zyra-pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .zyra-pay-btn.is-processing [data-pay-label]::before,
  .zyra-checkout-bar .zyra-btn.is-processing [data-pay-label]::before { animation: none; }
}
.zyra-waiting-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zyra-waiting-actions .btn, .zyra-waiting-actions .zyra-btn { min-height: 48px; }

/* --- 18. Top bar (RUNLO pattern, user-directed 2026-11-30) ---------------- */
/* One bar on all viewports: hamburger left, centred // ZYRA wordmark,
   search icon + bag with red count badge right. Nav links, account,
   notifications, theme switcher and Sell on Zyra live in the hamburger
   drawer (#navbarNav). The old desktop inline search bar is gone — the
   search icon toggles the expandable row below the bar. */
.navbar > .container.zyra-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.zyra-topbar-left { justify-self: start; }
.zyra-topbar-right { justify-self: end; display: flex; align-items: center; gap: 2px; }
.zyra-wordmark {
  justify-self: center; display: inline-flex; align-items: baseline; gap: .4rem;
  line-height: 1; text-decoration: none; white-space: nowrap;
}
.zyra-wordmark:hover { text-decoration: none; }
.zyra-wordmark__mark {
  color: var(--zyra-sale); font-weight: 800; font-style: italic;
  font-size: 22px; letter-spacing: -.06em;
}
.zyra-wordmark__text {
  color: var(--fn-body-color); font-weight: 800; font-size: 21px; letter-spacing: .18em;
}
.zyra-topbar-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--fn-body-color); cursor: pointer;
  text-decoration: none; position: relative; flex-shrink: 0;
}
.zyra-topbar-btn:hover { background: var(--zyra-surface); color: var(--fn-body-color); text-decoration: none; }
.zyra-topbar-btn:focus-visible { outline: 2px solid var(--zyra-brand); outline-offset: 2px; }
.zyra-topbar-btn i { font-size: 22px; line-height: 1; }
.zyra-hamburger { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.zyra-hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--fn-body-color); }
.zyra-bag-badge {
  position: absolute; top: 1px; right: -1px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--zyra-sale); color: #fff; border: 2px solid var(--zyra-paper);
  font-size: 11px; font-weight: 700; line-height: 14px; text-align: center;
}
/* Expandable search row under the bar (marketplace only). */
.navbar .zyra-topbar-searchrow { flex: 0 0 100%; width: 100%; border-top: 1px solid var(--zyra-border); }
.zyra-topbar-searchrow .container { padding-top: 10px; padding-bottom: 12px; }
.zyra-topbar-searchrow .zyra-search-bar { width: 100%; }
/* Hamburger drawer contents. */
.zyra-drawer-actions { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.zyra-drawer-row {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .5rem;
  border-radius: 10px; color: var(--fn-body-color); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.zyra-drawer-row:hover { background: var(--zyra-surface); color: var(--fn-body-color); text-decoration: none; }
.zyra-drawer-row i { font-size: 18px; color: var(--zyra-muted); flex-shrink: 0; }
.zyra-drawer-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--zyra-sale); color: #fff; font-size: 12px; font-weight: 700;
  line-height: 20px; text-align: center;
}
.zyra-drawer-user { display: flex; align-items: center; gap: .65rem; padding: .6rem .5rem; font-weight: 700; font-size: 15px; }
.zyra-drawer-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.zyra-drawer-theme { padding: .75rem .5rem 0; }
.zyra-drawer-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zyra-muted); }
.zyra-drawer-heading { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zyra-muted); padding: .8rem .5rem .25rem; }
.zyra-drawer-theme-btns { display: flex; gap: 6px; margin-top: 8px; }
.zyra-drawer-theme-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 40px; border-radius: 999px; border: 1px solid var(--zyra-border);
  background: var(--zyra-paper); color: var(--fn-body-color);
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.zyra-drawer-theme-btn .theme-icon { display: inline-flex; }
.zyra-drawer-theme-btn.active { background: var(--zyra-ink); border-color: var(--zyra-ink); color: #fff; }
[data-bs-theme="dark"] .zyra-drawer-theme-btn.active { background: #f9fafb; border-color: #f9fafb; color: #111827; }

/* --- 19. ZYRA orbit logo (user-provided logo, 2026-11-30) ---------------- */
/* Inline SVG logo, fill currentColor so it follows the theme (dark on light,
   light on dark). Replaces the // ZYRA text wordmark in the top bar and the
   drawer header. .zyra-wordmark__mark / .zyra-wordmark__text are now dead CSS. */
.zyra-wordmark { align-items: center; }
.zyra-logo { display: block; height: 40px; width: auto; color: var(--fn-body-color); }
.zyra-logo--sm { height: 32px; }

/* --- 20. Product detail (mobile detail look, user-directed 2026-11-30) --- */
/* Single column on mobile (gallery, name, price, rating, options, sticky
   bar), two columns on desktop (gallery left, info right). The top bar is
   untouched in this task (templates/nav.php not modified). */

.zyra-detail .container { max-width: 1200px; }

/* Gallery: 1:1 rounded well; back + heart overlays; dots below the image
   (only rendered when there is more than one image). */
.zyra-detail-gallery {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--zyra-surface); aspect-ratio: 1 / 1;
}
.zyra-detail-gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zyra-gallery-btn {
  position: absolute; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--zyra-paper); color: var(--zyra-ink);
  box-shadow: var(--zyra-shadow-btn); font-size: 20px; text-decoration: none;
}
.zyra-gallery-btn:hover { color: var(--zyra-ink); text-decoration: none; transform: scale(1.05); }
.zyra-gallery-back { left: 12px; }
.zyra-gallery-heart { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.zyra-gallery-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; }
.zyra-gallery-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--zyra-border); cursor: pointer;
}
.zyra-gallery-dot.is-active { background: var(--zyra-ink); width: 20px; border-radius: 999px; }

/* Info column */
.zyra-detail-vendor {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 13px; color: var(--zyra-muted); text-decoration: none; margin-bottom: 8px;
}
.zyra-detail-vendor:hover { color: var(--zyra-ink); text-decoration: none; }
.zyra-detail-vendor-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.zyra-detail-verified {
  padding: .15rem .5rem; border-radius: 999px; background: var(--zyra-brand-subtle);
  color: var(--zyra-brand-dark); font-size: 11px; font-weight: 700;
}
.zyra-detail-name { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 6px; }
@media (min-width: 992px) { .zyra-detail-name { font-size: 32px; } }
.zyra-detail-sub {
  font-size: 15px; line-height: 1.5; color: var(--zyra-muted); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zyra-detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: 8px; }
.zyra-price-off {
  padding: .2rem .5rem; border-radius: 999px; background: var(--zyra-sale); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.zyra-detail-rating { margin: 0 0 8px; }
.zyra-detail-stock { font-size: 13px; color: var(--zyra-muted); margin: 0 0 20px; }
.zyra-detail-stock::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--zyra-success); margin-right: 6px;
}
.zyra-detail-stock.is-oos { color: var(--zyra-sale); }
.zyra-detail-stock.is-oos::before { background: var(--zyra-sale); }

/* Colour / size sections. No variant data exists yet (the variants table is
   empty and unwired), so these are honest coming-soon notes — never fake
   selectors whose choice would be silently dropped at checkout. */
.zyra-detail-opts { margin-bottom: 20px; }
.zyra-detail-opts-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.zyra-detail-opts-note { font-size: 13px; color: var(--zyra-muted); margin: 0; }

/* Buy box */
.zyra-detail-buy { margin-bottom: 24px; }
.zyra-detail-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.zyra-detail-qty-label { font-size: 14px; font-weight: 600; }
.zyra-detail-buy .zyra-btn { min-height: 56px; }
.zyra-detail-buy .zyra-buy-total { margin-left: auto; }
/* Bigger stepper targets in the buy box (48px tall row). */
.zyra-detail-buy .zyra-qty-btn, .zyra-qv-buy .zyra-qty-btn { width: 44px; height: 48px; }
.zyra-detail-buy .zyra-qty input, .zyra-qv-buy .zyra-qty input { width: 44px; font-size: 16px; }

/* Description */
.zyra-detail-desc { margin-bottom: 24px; }
.zyra-detail-desc-text { font-size: 15px; line-height: 1.6; }
.zyra-detail-desc-text.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zyra-detail-readmore {
  border: 0; background: transparent; padding: 6px 0 0; cursor: pointer;
  color: var(--zyra-brand-dark); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* Badges row */
.zyra-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* Reviews */
.zyra-detail-reviews .zyra-card-body { padding: 16px; }

/* Sticky Add to Bag bar (mobile only, same pattern as .zyra-checkout-bar).
   The floating pill nav is suppressed on this page ($zyraHideMobileNav) so
   the two bars never collide. */
.zyra-detail-bar { display: none; }
@media (max-width: 991.98px) {
  .zyra-detail-bar {
    /* Sit above the cookie-consent banner while it is shown (same
       --zyra-consent-h offset the checkout bars use) so the buy buttons
       are never covered for first-time visitors. */
    display: block; position: fixed; left: 0; right: 0; bottom: var(--zyra-consent-h, 0px); z-index: 1030;
    background: var(--zyra-paper); border-top: 1px solid var(--zyra-border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(17, 24, 39, .08);
  }
}
/* Two-button bar (2026-12-03): total row on top, Add to Bag (outline) +
   Add & Checkout (solid) side by side below — both ≥48px targets. */
.zyra-detail-bar-inner { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin: 0 auto; }
.zyra-detail-bar-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.zyra-detail-bar-price { font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.zyra-detail-bar-note { font-size: 12px; color: var(--zyra-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zyra-detail-bar-actions { display: flex; gap: .5rem; }
.zyra-detail-bar-actions .zyra-btn { flex: 1 1 0; min-height: 52px; padding-left: .5rem; padding-right: .5rem; font-size: 14px; }
.zyra-detail-bar-cta { flex: 1; min-height: 52px; }

/* §21 — Cramped-fix (2026-11-30): related carousel sizing, TOP button parking,
   deterministic footer clearance for the sticky detail bar. */
/* Related-products carousel: cards need a definite flex basis. Inside the
   horizontal flex track they otherwise shrink to min-content (~50px) and the
   product name wraps one letter per line. */
.product-carousel .carousel-track .zyra-card {
  flex: 0 0 168px; width: 168px; scroll-snap-align: start;
}
@media (min-width: 992px) {
  .product-carousel .carousel-track .zyra-card { flex-basis: 200px; width: 200px; }
}
@media (max-width: 991.98px) {
  /* Prev/next arrows sit on top of the cards on touch screens; swipe is the pattern. */
  .product-carousel .carousel-btn { display: none !important; }
  /* TOP button: the theme pins it mid-screen at the right edge, over content.
     Park it above the sticky bar / floating nav instead. */
  body .floating-buttons {
    top: auto !important; bottom: 140px !important; right: 12px !important;
    margin-right: 0 !important; padding-bottom: 0 !important;
  }
  /* Footer clearance for the sticky Add to Bag bar. The space must sit AFTER
     the footer (a spacer inside <main> would not help); this margin does that
     deterministically, replacing the :has() rule removed from §20. */
  main.zyra-detail ~ footer { margin-bottom: 164px; }
}

/* --- 23. Listing page (Phase 2.3, 2026-11-30) --------------------------- */
/* Sidebar filter panel: DS panel replacing the old Bootstrap card. */
.zyra-filter-panel {
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-card); padding: 16px;
}
.zyra-filter-panel.sticky-top { top: 100px; }
.zyra-filter-list { list-style: none; margin: 0; padding: 0; }
.zyra-filter-link {
  display: flex; align-items: center; gap: .5rem;
  padding: 6px 8px; border-radius: 8px;
  font-size: 14px; line-height: 1.4; color: var(--zyra-ink); text-decoration: none;
}
.zyra-filter-link:hover { background: var(--zyra-surface); text-decoration: none; color: var(--zyra-ink); }
.zyra-filter-link.is-active { font-weight: 700; color: var(--zyra-brand); background: var(--zyra-brand-subtle); }
.zyra-filter-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyra-filter-count { flex-shrink: 0; font-size: 13px; color: var(--zyra-muted); }
.zyra-filter-more {
  background: none; border: 0; cursor: pointer; padding: 4px 8px;
  font-size: 13px; font-weight: 600; color: var(--zyra-brand);
}
.zyra-filter-more:hover { color: var(--zyra-brand-dark); }

/* Active-filter pills under the pill bar. */
.zyra-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 12px 0 0; }
.zyra-active-filter {
  display: inline-flex; align-items: center; gap: .375rem;
  height: 32px; padding: 0 .75rem; border-radius: var(--zyra-radius-pill);
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  font-size: 13px; font-weight: 500; color: var(--zyra-ink); text-decoration: none; white-space: nowrap;
}
.zyra-active-filter:hover { border-color: var(--zyra-ink); text-decoration: none; color: var(--zyra-ink); }
.zyra-active-filter .fi-x { font-size: 12px; color: var(--zyra-muted); }
.zyra-active-clear { font-size: 13px; font-weight: 600; color: var(--zyra-muted); text-decoration: none; padding: 0 .25rem; }
.zyra-active-clear:hover { color: var(--zyra-ink); text-decoration: none; }

/* Pagination: DS pill buttons instead of the theme's square ones. */
.zyra-pagination .pagination { gap: 6px; justify-content: center; margin-bottom: 0; }
.zyra-pagination .page-item { margin: 0; }
.zyra-pagination .page-link {
  min-width: 40px; height: 40px; padding: 0 .625rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--zyra-radius-pill); border: 1px solid var(--zyra-border);
  background: var(--zyra-paper); color: var(--zyra-ink); font-size: 14px; font-weight: 600;
}
.zyra-pagination .page-item:first-child .page-link,
.zyra-pagination .page-item:last-child .page-link { border-radius: var(--zyra-radius-pill); }
.zyra-pagination .page-link:hover { border-color: var(--zyra-ink); color: var(--zyra-ink); background: var(--zyra-paper); }
.zyra-pagination .page-item.active .page-link { background: var(--zyra-ink); border-color: var(--zyra-ink); color: #fff; }
[data-bs-theme="dark"] .zyra-pagination .page-item.active .page-link { background: #f9fafb; border-color: #f9fafb; color: #111827; }
.zyra-pagination .page-item.disabled .page-link { color: var(--zyra-muted); opacity: .6; }
/* --- 24. Vendor portal (Phase 2.3, 2026-11-30) --------------------------- */
/* Every vendor page carries <main class="... zyra-vendor">; the rules below
   restyle the old Bootstrap markup that remains in vendor pages so the
   portal reads as DS even where a class swap was not practical (JS-rendered
   rows, inline fragments). Source swaps (btn -> zyra-btn, card -> zyra-card,
   badge bg-* -> zyra-status-pill) carry the same look in the served HTML. */

/* Page titles + section heads inside vendor pages. */
.zyra-vendor h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.zyra-vendor h2 { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.zyra-vendor h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.zyra-vendor .page-header { margin-bottom: 24px; }
.zyra-vendor .page-header h1 { margin-bottom: 4px; }

/* DS page header (zyraPageHeader output). */
.zyra-page-header { margin-bottom: 24px; }
.zyra-page-header .breadcrumb { font-size: 13px; margin-bottom: 8px; }
.zyra-page-header .breadcrumb-item a { color: var(--zyra-muted); text-decoration: none; }
.zyra-page-header .breadcrumb-item a:hover { color: var(--zyra-ink); text-decoration: underline; }
.zyra-page-header .breadcrumb-item.active { color: var(--zyra-muted); }
.zyra-page-header h1 { margin-bottom: 4px; }
.zyra-page-header p { color: var(--zyra-muted); font-size: 15px; margin-bottom: 0; }

/* Buttons: small / large DS sizes + danger-outline (used by vendor tables). */
.zyra-btn--sm { height: 36px; padding: 0 .875rem; font-size: 13px; }
.zyra-btn--lg { height: 56px; padding: 0 1.5rem; font-size: 16px; }
.zyra-btn-danger { background: var(--zyra-paper); color: var(--zyra-danger); border-color: var(--zyra-danger); }
.zyra-btn-danger:hover { background: var(--zyra-danger); color: #fff; border-color: var(--zyra-danger); }
.zyra-btn-ghost { background: transparent; color: var(--zyra-ink); border-color: transparent; }
.zyra-btn-ghost:hover { background: var(--zyra-surface); color: var(--zyra-ink); }

/* Fallback: any old Bootstrap button left inside a vendor page still reads DS. */
.zyra-vendor .btn-primary { background: var(--zyra-ink); border-color: var(--zyra-ink); color: #fff; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .btn-primary:hover { background: #000; border-color: #000; color: #fff; }
.zyra-vendor .btn-secondary { background: var(--zyra-surface); border-color: var(--zyra-border); color: var(--zyra-ink); border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .btn-outline-primary, .zyra-vendor .btn-outline-secondary, .zyra-vendor .btn-outline-dark,
.zyra-vendor .btn-outline-success, .zyra-vendor .btn-outline-info {
  background: var(--zyra-paper); border-color: var(--zyra-border); color: var(--zyra-ink);
  border-radius: var(--zyra-radius-pill); font-weight: 600;
}
.zyra-vendor .btn-outline-primary:hover, .zyra-vendor .btn-outline-secondary:hover,
.zyra-vendor .btn-outline-dark:hover { border-color: var(--zyra-ink); color: var(--zyra-ink); background: var(--zyra-paper); }
.zyra-vendor .btn-outline-danger { background: var(--zyra-paper); border-color: var(--zyra-danger); color: var(--zyra-danger); border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .btn-outline-danger:hover { background: var(--zyra-danger); color: #fff; }
.zyra-vendor .btn-danger { background: var(--zyra-danger); border-color: var(--zyra-danger); color: #fff; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .btn-success { background: var(--zyra-brand); border-color: var(--zyra-brand); color: #fff; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .btn-link { color: var(--zyra-brand); text-decoration: none; font-weight: 600; }
.zyra-vendor .btn-link:hover { color: var(--zyra-brand-dark); }
.zyra-vendor .btn-sm { height: 36px; padding: 0 .875rem; font-size: 13px; display: inline-flex; align-items: center; gap: .375rem; }

/* Cards: flat hairline cards, no shadow (DS §4/§9). */
.zyra-vendor .card, .zyra-card--panel {
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-card); box-shadow: none;
}
.zyra-vendor .card-header, .zyra-card-head {
  background: transparent; border-bottom: 1px solid var(--zyra-border);
  font-size: 16px; font-weight: 700; padding: 16px; color: var(--zyra-ink);
}
.zyra-vendor .card-body { padding: 16px; }
.zyra-vendor .card-title { font-size: 16px; font-weight: 700; color: var(--zyra-ink); }
.zyra-vendor .card-footer { background: transparent; border-top: 1px solid var(--zyra-border); padding: 16px; }
.zyra-vendor .shadow-sm, .zyra-vendor .shadow { box-shadow: none !important; }

/* Status pills: extra variants + fallback for any badge bg-* left in vendor markup.
   Bootstrap bg-* uses !important, so the DS colours need it too here. */
.zyra-status-pill--danger { background: #fdecec; color: #b42318; }
.zyra-status-pill--brand { background: var(--zyra-brand-subtle); color: var(--zyra-brand-dark); }
.zyra-vendor .badge.bg-success { background: #e6f4ec !important; color: #157347 !important; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .badge.bg-warning { background: #fef3c7 !important; color: #92400e !important; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .badge.bg-danger { background: #fdecec !important; color: #b42318 !important; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .badge.bg-primary, .zyra-vendor .badge.bg-info { background: var(--zyra-brand-subtle) !important; color: var(--zyra-brand-dark) !important; border-radius: var(--zyra-radius-pill); font-weight: 600; }
.zyra-vendor .badge.bg-secondary, .zyra-vendor .badge.bg-light, .zyra-vendor .badge.bg-dark { background: var(--zyra-surface) !important; color: var(--zyra-muted) !important; border-radius: var(--zyra-radius-pill); font-weight: 600; }

/* Tables: 14px, row dividers only, no table-light band, right-aligned money. */
.zyra-vendor .table, .zyra-table { font-size: 14px; color: var(--zyra-ink); }
.zyra-vendor .table thead th, .zyra-table thead th {
  background: transparent; border-bottom: 1px solid var(--zyra-border);
  color: var(--zyra-muted); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em; padding: 12px;
}
.zyra-vendor .table tbody td, .zyra-table tbody td { padding: 12px; vertical-align: middle; border-top: 1px solid var(--zyra-border); }
.zyra-vendor .table-light, .zyra-table .table-light { background: transparent !important; }
.zyra-vendor .table .text-end, .zyra-table .text-end { text-align: right; }

/* Forms inside vendor pages (DS §8: 48px, 12px radius, hairline border). */
.zyra-vendor .form-control, .zyra-vendor .form-select {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--zyra-border);
  font-size: 15px; background-color: var(--zyra-paper); color: var(--zyra-ink);
}
.zyra-vendor textarea.form-control { min-height: 96px; }
.zyra-vendor .form-control:focus, .zyra-vendor .form-select:focus {
  border-color: var(--zyra-brand); box-shadow: 0 0 0 2px var(--zyra-brand-subtle); outline: none;
}
.zyra-vendor .table .form-control, .zyra-vendor .table .form-select { min-height: 40px; }
.zyra-vendor .form-label { font-size: 14px; font-weight: 600; color: var(--zyra-ink); }
.zyra-vendor .form-text { font-size: 13px; color: var(--zyra-muted); }
.zyra-vendor .input-group-text { background: var(--zyra-surface); border-color: var(--zyra-border); color: var(--zyra-muted); }

/* Alerts (DS §12: 12px radius, icon + message). */
.zyra-alert { border-radius: 12px; border: 1px solid var(--zyra-border); padding: 12px 16px; font-size: 14px; }
.zyra-alert--success { background: #e6f4ec; border-color: #bfe6cb; color: #157347; }
.zyra-alert--info { background: var(--zyra-brand-subtle); border-color: #dbe7e9; color: var(--zyra-brand-dark); }
.zyra-alert--warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.zyra-alert--danger { background: #fdecec; border-color: #fbc9c9; color: #b42318; }
.zyra-alert .btn-close { filter: none; opacity: .6; }
.zyra-vendor .alert { border-radius: 12px; font-size: 14px; }

/* Reconciliation / financial warnings stay amber/red callouts, wording untouched. */
.zyra-vendor .alert-warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.zyra-vendor .alert-danger { background: #fdecec; border-color: #fbc9c9; color: #b42318; }

/* List groups, dropdowns, tabs, progress, brand accents. */
.zyra-vendor .list-group-item { background: var(--zyra-paper); border-color: var(--zyra-border); color: var(--zyra-ink); padding: 12px 16px; }
.zyra-vendor .list-group-item.active { background: var(--zyra-brand-subtle); border-color: var(--zyra-border); color: var(--zyra-ink); font-weight: 700; }
.zyra-vendor .dropdown-menu { border: 1px solid var(--zyra-border); border-radius: 12px; box-shadow: var(--zyra-shadow-nav); padding: 8px; }
.zyra-vendor .dropdown-item { font-size: 14px; border-radius: 8px; padding: 8px 12px; color: var(--zyra-ink); }
.zyra-vendor .dropdown-item:hover, .zyra-vendor .dropdown-item:focus { background: var(--zyra-surface); color: var(--zyra-ink); }
.zyra-vendor .dropdown-item.active { background: var(--zyra-brand-subtle); color: var(--zyra-brand-dark); font-weight: 600; }
.zyra-vendor .nav-tabs .nav-link { color: var(--zyra-muted); font-weight: 600; border-radius: 12px 12px 0 0; }
.zyra-vendor .nav-tabs .nav-link.active { color: var(--zyra-ink); border-color: var(--zyra-border) var(--zyra-border) var(--zyra-paper); }
.zyra-vendor .progress { border-radius: var(--zyra-radius-pill); background: var(--zyra-surface); }
.zyra-vendor .progress-bar { background: var(--zyra-brand); border-radius: var(--zyra-radius-pill); }
.zyra-vendor .text-primary { color: var(--zyra-brand) !important; }
.zyra-vendor .bg-primary { background: var(--zyra-brand) !important; }
.zyra-vendor .bg-light { background: var(--zyra-surface) !important; }
.zyra-vendor .text-muted { color: var(--zyra-muted) !important; }

/* Vendor nav ("Vendor Panel", templates/vendor_nav.php): white bar, hairline,
   teal brand, active item = brand-tinted pill. */
.zyra-vendor-nav { background: var(--zyra-paper); border-bottom: 1px solid var(--zyra-border); }
.zyra-vendor-nav .navbar-brand { color: var(--zyra-brand); font-weight: 700; font-size: 17px; }
.zyra-vendor-nav .navbar-brand:hover { color: var(--zyra-brand-dark); }
.zyra-vendor-nav .nav-link { color: var(--zyra-ink); font-size: 14px; font-weight: 500; border-radius: var(--zyra-radius-pill); padding: 8px 12px; }
.zyra-vendor-nav .nav-link:hover { background: var(--zyra-surface); color: var(--zyra-ink); }
.zyra-vendor-nav .nav-link.active, .zyra-vendor-nav .dropdown-item.active {
  background: var(--zyra-brand-subtle); color: var(--zyra-brand-dark); font-weight: 700;
}
.zyra-vendor-nav .dropdown-menu { border: 1px solid var(--zyra-border); border-radius: 12px; box-shadow: var(--zyra-shadow-nav); padding: 8px; }
.zyra-vendor-nav .dropdown-item { font-size: 14px; border-radius: 8px; padding: 8px 12px; color: var(--zyra-ink); }
.zyra-vendor-nav .dropdown-item:hover { background: var(--zyra-surface); color: var(--zyra-ink); }
.zyra-vendor-nav .navbar-toggler { border: 1px solid var(--zyra-border); border-radius: 12px; }

/* Vendor stat cards: label / value / meta (DS §9). */
.zyra-vendor .zyra-stat-label { font-size: 13px; color: var(--zyra-muted); font-weight: 500; }
.zyra-vendor .zyra-stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--zyra-ink); }
.zyra-vendor .zyra-stat-meta { font-size: 13px; color: var(--zyra-muted); }

/* Storefront (vendor/store.php is public): same treatment under its own main. */
.zyra-store-page h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.zyra-store-page h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.zyra-store-page .card { background: var(--zyra-paper); border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card); box-shadow: none; }
.zyra-store-page .card-header { background: transparent; border-bottom: 1px solid var(--zyra-border); font-weight: 700; padding: 16px; }
.zyra-store-page .card-body { padding: 16px; }

/* Generic DS panel (vendor/admin list panels): same hairline card look as
   .zyra-card but without overflow:hidden / height:100%, so dropdowns and
   modals inside panels are not clipped. */
.zyra-panel {
  background: var(--zyra-paper); border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-card); box-shadow: none;
}
.zyra-panel .card-header, .zyra-panel .card-body, .zyra-panel .card-footer { background: transparent; }

/* DS background utilities (replace bg-primary / bg-success / bg-danger /
   bg-warning / bg-info / bg-secondary / bg-light used as fills). */
.zyra-bg-brand { background: var(--zyra-brand) !important; color: #fff; }
.zyra-bg-ok { background: #e6f4ec !important; color: #157347; }
.zyra-bg-warn { background: #fef3c7 !important; color: #92400e; }
.zyra-bg-danger { background: #fdecec !important; color: #b42318; }
.zyra-bg-muted { background: var(--zyra-surface) !important; color: var(--zyra-muted); }
/* Headings inside tinted fills must take the fill text colour: Bootstrap
   reboot colours headings via --bs-heading-color, which turns near-white
   in dark mode and was unreadable on the pastel fills (white on mint). */
.zyra-bg-brand :where(h1, h2, h3, h4, h5, h6, p, small, strong, span),
.zyra-bg-ok :where(h1, h2, h3, h4, h5, h6, p, small, strong, span),
.zyra-bg-warn :where(h1, h2, h3, h4, h5, h6, p, small, strong, span),
.zyra-bg-danger :where(h1, h2, h3, h4, h5, h6, p, small, strong, span) { color: inherit; }
/* Bootstrap text-* utilities inside tinted fills (e.g. text-warning amber
   on pale yellow = ~2:1) must yield to the fill text colour. */
.zyra-bg-brand .text-white, .zyra-bg-brand .text-muted, .zyra-bg-brand .text-success, .zyra-bg-brand .text-warning, .zyra-bg-brand .text-danger, .zyra-bg-brand .text-info,
.zyra-bg-ok .text-white, .zyra-bg-ok .text-muted, .zyra-bg-ok .text-success, .zyra-bg-ok .text-warning, .zyra-bg-ok .text-danger, .zyra-bg-ok .text-info,
.zyra-bg-warn .text-white, .zyra-bg-warn .text-muted, .zyra-bg-warn .text-success, .zyra-bg-warn .text-warning, .zyra-bg-warn .text-danger, .zyra-bg-warn .text-info,
.zyra-bg-danger .text-white, .zyra-bg-danger .text-muted, .zyra-bg-danger .text-success, .zyra-bg-danger .text-warning, .zyra-bg-danger .text-danger, .zyra-bg-danger .text-info { color: inherit !important; }
/* Dark mode: deep tinted fills with light text (pastels glare off-theme
   and fail contrast with themed headings). */
[data-bs-theme="dark"] .zyra-bg-brand { background: #0f766e !important; color: #fff; }
[data-bs-theme="dark"] .zyra-bg-ok { background: #123528 !important; color: #7ee2b8; }
[data-bs-theme="dark"] .zyra-bg-warn { background: #3d2f07 !important; color: #ffd54d; }
[data-bs-theme="dark"] .zyra-bg-danger { background: #3d1414 !important; color: #ff9d94; }
.zyra-card-foot { background: transparent; border-top: 1px solid var(--zyra-border); padding: 16px; }

/* --- Light-mode contrast fix (2026-12-01) ---------------------------------
   Fixed-white text on theme-flipping backgrounds rendered invisible in one
   mode (Report hero: .zyra-bg-muted's !important surface beat the inline
   dark hero background while text-white never flipped). Per-mode values
   follow the footer pattern: explicit light values + dark scopes. Every
   background below is unchanged in both modes; only text colours are
   pinned. Ratios (WCAG): hero title 16.26:1 light / 10.31:1 dark, hero
   lead 9.45:1 / 7.01:1, muted pill 5.34:1 / 6.35:1, brand-subtle dark
   tint 8.06:1, buttons 16.98:1. */

/* Report page hero (surface background + title/lead) */
.zyra-page-hero__title { color: #111827; }
.zyra-page-hero__lead { color: #374151; }
[data-bs-theme="dark"] .zyra-page-hero__title { color: #fff; }
[data-bs-theme="dark"] .zyra-page-hero__lead { color: rgba(255, 255, 255, .78); }

/* Muted card heads: ink title instead of inherited muted grey */
.zyra-card-head.zyra-bg-muted { color: #111827; }
[data-bs-theme="dark"] .zyra-card-head.zyra-bg-muted { color: #f9fafb; }

/* Muted status pill: DS muted measures 4.43:1 light / 4.06:1 dark on the
   surface — darken/lighten to clear 4.5:1 in both modes */
.zyra-status-pill--muted { color: #5b6675; }
[data-bs-theme="dark"] .zyra-status-pill--muted { color: #c3ccd6; }

/* Brand-subtle backgrounds flip to #172332 in dark mode, where brand-dark
   text (#346d7a) drops to 2.73:1 — use a light brand tint there */
[data-bs-theme="dark"] .zyra-status-pill--brand,
[data-bs-theme="dark"] .zyra-alert--info,
[data-bs-theme="dark"] .zyra-detail-verified,
[data-bs-theme="dark"] .zyra-vendor .dropdown-item.active { color: #8fc1cc; }
[data-bs-theme="dark"] .zyra-vendor .badge.bg-primary,
[data-bs-theme="dark"] .zyra-vendor .badge.bg-info { color: #8fc1cc !important; }
.zyra-filter-link.is-active { color: var(--zyra-brand-dark); }
[data-bs-theme="dark"] .zyra-filter-link.is-active { color: #8fc1cc; }

/* Code blocks on the muted surface take the flipping ink colour */
pre.zyra-bg-muted { color: var(--zyra-ink); }

/* Area primary buttons + checkout step dot: --zyra-ink flips to #f9fafb in
   dark mode, so fixed white labels vanished — mirror .zyra-btn-primary */
[data-bs-theme="dark"] .zyra-public .btn-primary,
[data-bs-theme="dark"] .zyra-portal .btn-primary,
[data-bs-theme="dark"] .zyra-admin .btn-primary,
[data-bs-theme="dark"] .zyra-auth .btn-primary,
[data-bs-theme="dark"] .zyra-vendor .btn-primary,
[data-bs-theme="dark"] .zyra-admin .admin-btn-primary { background: #f9fafb; border-color: #f9fafb; color: #111827; }
[data-bs-theme="dark"] .zyra-public .btn-primary:hover,
[data-bs-theme="dark"] .zyra-portal .btn-primary:hover,
[data-bs-theme="dark"] .zyra-admin .btn-primary:hover,
[data-bs-theme="dark"] .zyra-auth .btn-primary:hover,
[data-bs-theme="dark"] .zyra-vendor .btn-primary:hover,
[data-bs-theme="dark"] .zyra-admin .admin-btn-primary:hover { background: #fff; border-color: #fff; color: #111827; }
[data-bs-theme="dark"] .zyra-step.is-done .zyra-step-dot { background: #f9fafb; border-color: #f9fafb; color: #111827; }

/* --- 31. Top bar scroll-linked hide + edge-to-edge top (Amazon
   pattern, user-directed 2026-12-01) --- */
/* Behaviour only — the bar's look, height and contents are unchanged.
   On phones/tablets the header is FIXED at the top of the viewport and
   an in-flow spacer (.zyra-header-spacer, templates/nav.php) holds its
   height at the top of the document. The spacer scrolls away with the
   content, so when the bar is away, page content reaches the very top
   edge of the viewport, directly beneath the phone's status bar — no
   dead band. (The previous sticky + transform hide preserved the
   sticky box anchored at the scrollport top, leaving an empty band
   content never entered; fixed + spacer removes that anchored box.)
   Hide = SCROLL-LINKED (user-directed: "like Amazon it doesn't
   fade"): JS (zyra-mobile-nav.js) drives translateY 1:1 with
   downward scroll movement, clamped to [0, -(header height
   incl. safe-area inset + 40px shadow clearance)], so the bar
   scrolls away with the page; upward return is gated by 32px
   of accumulated upward scroll (hysteresis, §34) so micro
   upward movements never pop the bar back. Fully away it sits
   entirely above the top edge — box-shadow included — leaving
   nothing pinned there for iOS 26 Safari to sample as a
   status-bar tint (§33). The bar stays fully opaque while it
   moves — no opacity fade and no transition on the transform
   (a transition would lag behind the scroll).
   prefers-reduced-motion falls back in JS to instant show/hide
   (5px accumulated down, 32px accumulated up, always visible
   at the top of the page). The JS never hides
   the bar while the hamburger drawer or the expandable search row is
   open/focused; opening the drawer snaps the header to translateY(0)
   instantly (a transformed ancestor would become the containing
   block for the fixed drawer). The JS also syncs the spacer height
   and the travel clamp to the header's real height. Desktop
   (>=992px) keeps the sticky always-visible header and no spacer —
   no rules outside the <992px query, and the JS clears any transform
   there. .zyra-header-away (fully travelled) only drops hit-testing. */
.zyra-header-spacer { display: none; }
@media (max-width: 991.98px) {
  header.zyra-fixed-header {
    position: fixed; top: 0; left: 0; right: 0;
    will-change: transform;
  }
  header.zyra-fixed-header.zyra-header-away { pointer-events: none; }
  .zyra-header-spacer { display: block; height: 64px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 991.98px) {
  header.zyra-fixed-header { will-change: auto; }
}

/* --- 32. Home Screen app (standalone) safe-area top ---
   In standalone (launched from the Home Screen icon) with
   viewport-fit=cover + black-translucent status bar, the page paints
   behind the status bar / Dynamic Island (the Amazon-app look). The
   fixed top bar therefore takes the top safe-area inset as extra
   top padding: its background extends behind the island zone while
   the controls sit below it. When the bar scrolls away (§31),
   content scrolls up behind the island with nothing blocking. The spacer's
   pre-JS height includes the inset; the JS sync reads the header's
   offsetHeight (padding included), so it stays exact with no JS
   change. The drawer is fixed against the viewport, so its header
   takes the inset too (close button clear of the island) and its
   body clears the home-indicator zone. py-3 / pb-4 are Bootstrap
   utilities with !important, hence the !important here. Every rule
   is inside display-mode: standalone — browser-tab layout is
   untouched. */
@media (display-mode: standalone) {
  header.zyra-fixed-header {
    padding-top: calc(0.625rem + env(safe-area-inset-top, 0px));
  }
  #navbarNav .offcanvas-header {
    padding-top: calc(1rem + env(safe-area-inset-top, 0px)) !important;
  }
  #navbarNav .offcanvas-body {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 991.98px) and (display-mode: standalone) {
  .zyra-header-spacer { height: calc(64px + env(safe-area-inset-top, 0px)); }
}

/* --- 33. Safari tab edge-to-edge: content behind the status bar ---
   iOS 26 Safari (Liquid Glass) makes the status bar a translucent
   overlay: page content painted behind it shows through, blurred,
   while the document scrolls — IF nothing qualifies as a tint
   sampler at that edge. Safari 26 ignores theme-color in tabs and
   instead samples the background-color of a fixed/sticky element
   near the edge (within ~4px of the top, near-full width, solid
   background); visibility:hidden / opacity:0 elements are still
   sampled, display:none elements and ::before/::after are skipped.
   Our fixed header carried .bg-body (background-color !important)
   on the element itself, so even faded out it kept the status-bar
   zone a solid tint and content never showed through — the dark
   band in the user's screenshot. Amazon's mobile web has no such
   pinned sampler at the top while scrolled, so its content flows
   behind the Dynamic Island in a normal tab.
   Fix: the header element itself becomes transparent and its
   identical background moves to ::before (skipped by the sampler;
   inset:0 covers the full bar incl. inset padding; z-index:-1
   stays inside the header's stacking context, behind its
   controls). With no sampler at the top edge, Safari composites
   real content behind the status bar while scrolling; at rest it
   falls back to the body background (same colour as the bar), so
   the top reads continuous. The scroll-linked hide (§31) moves the
   whole bar above the top edge when away, so mid-scroll nothing is
   pinned there at all; the bar looks identical.
   Tab safe-area insets (display-mode: browser only — §32 remains
   the sole standalone source, Home Screen behaviour unchanged):
   the bar and spacer take env(safe-area-inset-top) so controls
   clear the island wherever the inset reports; it resolves to 0
   on desktop and non-iOS browsers, leaving them unchanged. The
   drawer takes the same insets as §32. html gets the body
   background colour so Safari's fallback tint chain (body, then
   html) always resolves to the page colour in both modes. */
html { background-color: var(--fn-body-bg); }
@media (max-width: 991.98px) {
  header.zyra-fixed-header { background-color: transparent !important; }
  header.zyra-fixed-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-color: rgba(var(--fn-body-bg-rgb), 1);
  }
}
@media (display-mode: browser) and (max-width: 991.98px) {
  header.zyra-fixed-header {
    padding-top: calc(0.625rem + env(safe-area-inset-top, 0px));
  }
  .zyra-header-spacer { height: calc(64px + env(safe-area-inset-top, 0px)); }
}
@media (display-mode: browser) {
  #navbarNav .offcanvas-header {
    padding-top: calc(1rem + env(safe-area-inset-top, 0px)) !important;
  }
  #navbarNav .offcanvas-body {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* --- 34. Top-zone clearance + return hysteresis (2026-12-01) ---
   The user tested the scroll-linked bar on their iPhone: "that
   white [bar] that keeps popping up on top". Two causes, both
   fixed here + in zyra-mobile-nav.js:
   (1) No return hysteresis: the 1:1 return brought the white bar
       back on micro upward movements (momentum jitter, reading
       adjustments). JS now accumulates 32px of upward scroll
       before the return engages (Amazon feel); downward scroll
       resets the accumulator. No CSS needed for the gate itself.
   (2) Top-zone painters while the bar is away:
       - The theme .navbar box-shadow (0 .5rem 2rem -.25rem)
         paints ~36px below the bar. The old clamp stopped at
         the bar's height, so the shadow kept painting in the
         top zone while the bar was away. The JS clamp now adds
         40px of shadow clearance (SHADOW_CLEARANCE_PX); the
         shadow stays when the bar is in and clears fully when
         away. border-bottom is pinned to 0 so no theme border
         can paint a line in the island zone.
       - The listing filter panel (.zyra-filter-panel.sticky-top,
         top: 100px, solid paper background) sticks inside the
         top 120px on phones when the filter collapse is open.
         On <992px it now scrolls away with the content
         (Amazon's filter chips scroll away); the desktop
         sticky sidebar is unchanged.
       - The closed quick-view drawer carries [hidden] but its
         display:flex rule overrides the UA hidden style, so
         the closed panel (fixed, top:0, solid body background,
         40px shadow) stays rendered off-canvas. [hidden] now
         wins, so a closed quick view paints nothing at all.
   Header children need no change: the topbar container and
   buttons are transparent (button hover surface is a child of
   the fixed header, skipped by Safari's sampler), the search
   row is [hidden] while closed and the header is interlocked
   fully in while it is open, and the drawer is visibility:
   hidden + translated off-canvas while closed (no paint; a
   child of the fixed header besides). The at-rest sampler
   state is unchanged from §33: transparent header element,
   background on ::before (skipped), body/html fallback tint. */
@media (max-width: 991.98px) {
  header.zyra-fixed-header { border-bottom: 0; }
  .zyra-filter-panel.sticky-top { position: static; top: auto; }
}
.zyra-qv[hidden], .zyra-qv-backdrop[hidden] { display: none !important; }

/* --- 35. Safari compositing: unrender the bar while away ---
   The user's phone (2026-12-01, listing scrolled) showed the
   filter pills sliced mid-text at a hard white edge under the
   status bar, in a normal tab AND in Private Browsing (so not
   cache): content extends behind the status-bar glass
   (viewport-fit=cover, single meta) but Safari paints the
   glass opaque white over it. §33 removed the header's
   sampled background and §31/§34 moved the bar (and its
   shadow) entirely above the top edge — yet the glass stayed
   solid. Why: iOS 26 Safari shows page content through its
   status-bar glass only when the document scrolls AND
   nothing is pinned near that edge. A rendered
   position:fixed header at top:0 still counts as pinned
   even when translated entirely above the edge — a transform
   does not unpin it, and Safari keeps the solid state (a
   transform-moved strip keeps the colour Safari picked;
   hiding the strip makes Safari ignore it). Amazon's mobile
   web has no fixed header at all — its in-flow header
   scrolls away — so nothing is ever pinned and Safari
   composites the page behind the Dynamic Island.
   Fix: at full travel the JS adds .zyra-header-gone, removing
   the header from rendering entirely. display:none elements
   are ignored by Safari's edge check under every source's
   rules, so while the bar is away nothing rendered is pinned
   at the top and Safari composites the products behind the
   island. The JS removes the class synchronously with the
   return transform (travel still ~max at the engagement
   frame), so the bar never flashes; drawer/search interlocks
   and the top of the page restore it instantly. The in-flow
   spacer is a separate element, so unrendering the fixed
   header shifts no layout. theme-color stays (iOS 26 tabs
   ignore it; it still serves Safari 15-18, Android and the
   Home Screen app) and the body/html background fallback
   stays (it only sources the at-rest/overscroll tint colour
   and icon contrast — compositing is gated by pinned
   presence, not by the fallback colour). Desktop never gets
   the class (JS gate) and the rule is <992px only; in
   standalone the same toggle applies and is visually
   identical (bar above the edge either way). */
@media (max-width: 991.98px) {
  header.zyra-fixed-header.zyra-header-gone { display: none !important; }
}

/* --- 36. Menu drawer panel guard (2026-12-01) ---
   The user's phone showed the open drawer as a white header
   strip with a transparent panel: the dimmed page showed
   through, only "Home" was faintly readable over the search
   bar, and the rest of the menu was invisible. Root cause:
   the drawer <nav id="navbarNav"> was nested INSIDE the
   fixed header. §31 gives the header will-change:transform
   (and the JS drives translate3d), and a transformed /
   will-change:transform element becomes the containing
   block for fixed-position descendants — so the offcanvas
   panel (position:fixed; top:0; bottom:0) was sized to the
   HEADER's box (~64px + inset padding), not the viewport.
   Its background (--fn-offcanvas-bg = --fn-body-bg, intact;
   §33's transparent rule targets the header element only)
   painted only that strip, and .offcanvas-body
   (flex-grow:1; overflow-y:auto) was compressed/clipped
   inside the collapsed panel, its links spilling unreadable
   over the backdrop-dimmed page (~1.15:1). The JS snap
   cleared the transform but not the CSS will-change, so the
   containing block persisted. Bootstrap also appends the
   backdrop to the offcanvas's parentNode, so the backdrop
   lived inside the header's stacking context (z-fixed 1030)
   below the panel (1045) — strip bright, page dimmed.
   Fix: templates/nav.php now renders the drawer as a
   SIBLING after </header>, fixed against the viewport at
   full height; the backdrop's root becomes <body> and the
   theme order (backdrop 1040 < panel 1045) holds at root.
   The rules below pin the panel's paint explicitly so no
   future header change can silently strip it again:
   background and text both come from the theme body tokens
   (they flip together — never a flipping bg under fixed
   text; computed contrast: links 10.98:1 light / 11.59:1
   dark, body text 7.50:1 / 11.43:1, muted labels 4.83:1 /
   6.99:1). The header row never shrinks, so the close
   button stays visible in landscape; the body scrolls. */
#navbarNav {
  background-color: var(--fn-offcanvas-bg, var(--fn-body-bg));
  color: var(--fn-body-color);
  z-index: 1045;
}
#navbarNav .offcanvas-header { flex-shrink: 0; }
#navbarNav .offcanvas-body { overflow-y: auto; }
.offcanvas-backdrop { z-index: 1040; }

/* --- Document-validation surfaces (Phase 2.3, 2026-12-02) -----------------
   Scoped to .zyra-docval panels (vendor verification panel + admin
   verifications tab): 44px touch targets, brand buttons darkened to
   brand-dark for 5.81:1 white-text contrast, long metadata wraps. */
.zyra-docval .zyra-btn--sm { height: 44px; min-height: 44px; }
.zyra-docval .zyra-btn-brand { background: var(--zyra-brand-dark); }
.zyra-docval .zyra-btn-brand:hover { background: #2b5d68; }
.zyra-docval input[type="file"] { min-height: 44px; }
.zyra-docval .doc-meta { min-width: 0; overflow-wrap: anywhere; }
.zyra-docval .form-control, .zyra-docval .form-select { min-width: 0; }

/* --- 37. Trader-type chooser (Phase 2.3, 2026-12-02) ----------------------
   Individual / Sole trader / Limited company packaging for the vendor
   verification section: three option cards; choosing one pops out only
   that type's section. Colours come from theme tokens that flip
   together (paper/ink, muted on paper); the Selected pill is a fixed
   white-on-brand-dark pair (5.81:1 in both themes). */
.tt-chooser { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { .tt-chooser { grid-template-columns: repeat(3, 1fr); } }
.tt-option {
  display: flex; flex-direction: column; gap: .3rem; text-align: left;
  width: 100%; min-height: 44px; padding: .9rem 1rem;
  background: var(--zyra-paper); color: var(--zyra-ink);
  border: 1.5px solid var(--zyra-border); border-radius: var(--zyra-radius-well);
  cursor: pointer; font: inherit;
}
.tt-option:hover { border-color: var(--zyra-brand-dark); }
.tt-option:focus-visible { outline: 3px solid var(--zyra-brand-dark); outline-offset: 2px; }
.tt-option--selected {
  border-color: var(--zyra-brand-dark); border-width: 2px;
  background: var(--zyra-brand-subtle);
}
.tt-option-label { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.tt-option-tagline { font-size: .875rem; line-height: 1.35; }
.tt-option-asks { font-size: .8125rem; line-height: 1.4; color: var(--zyra-muted); }
.tt-option--selected .tt-option-asks { color: var(--zyra-ink); }
.tt-option-state {
  align-self: flex-start; margin-top: .35rem; padding: .2rem .65rem;
  border-radius: var(--zyra-radius-pill); font-size: .75rem; font-weight: 600;
  border: 1px solid var(--zyra-border); color: var(--zyra-ink); background: var(--zyra-paper);
}
.tt-option--selected .tt-option-state {
  background: var(--zyra-brand-dark); border-color: var(--zyra-brand-dark); color: #fff;
}
.tt-section--open { animation: tt-pop .28s ease-out; }
@keyframes tt-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tt-section--open { animation: none; }
}

/* --- 38. Membership profile preview (Phase 2.3, 2026-12-02) ---------------
   Store-profile preview on the vendor membership page, mirroring the
   storefront store header (avatar, name, badges, meta, stats) plus a
   plan-reactive points line and benefits list. Text pairs flip with the
   theme tokens (ink/muted on paper); the selected plan pill and the
   Previewing tag are fixed white-on-brand-dark (5.81:1 in both themes).
   Unearned badges render dashed/muted with a Preview label so they never
   read as earned. The Elite pill uses fi-award (fi-crown is absent from
   the served icons CSS). */
.pp-profile { display: flex; gap: 1rem; align-items: flex-start; }
.pp-avatar {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--zyra-paper);
  background: var(--zyra-surface); box-shadow: 0 0 0 1px var(--zyra-border);
}
.pp-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-identity { flex: 1 1 auto; min-width: 0; }
.pp-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.pp-name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--zyra-ink); overflow-wrap: anywhere; }
.pp-badges { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.pp-handle { color: var(--zyra-muted); font-size: .9rem; margin-top: .15rem; overflow-wrap: anywhere; }
.pp-bio { margin: .5rem 0 0; color: var(--zyra-ink); overflow-wrap: anywhere; }
.pp-bio--empty { color: var(--zyra-muted); font-style: italic; }
.pp-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; color: var(--zyra-muted); font-size: .875rem; }
.pp-meta .fi { margin-right: .3rem; }
.pp-star { color: #b45309; }
[data-bs-theme="dark"] .pp-star { color: var(--zyra-star); }
.pp-stats { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.pp-stat { display: flex; flex-direction: column; }
.pp-stat strong { font-size: 1.05rem; color: var(--zyra-ink); }
.pp-stat span { font-size: .8rem; color: var(--zyra-muted); }
.pp-tick-preview { display: inline-flex; align-items: center; gap: .35rem; }
.pp-tick-preview svg { opacity: .4; filter: grayscale(70%); }
.pp-preview-tag {
  padding: .15rem .55rem; border-radius: var(--zyra-radius-pill);
  border: 1px dashed var(--zyra-brand-dark); background: var(--zyra-brand-subtle);
  color: var(--zyra-ink); font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.pp-elite-preview {
  display: inline-flex; align-items: center; padding: .2rem .6rem;
  border-radius: var(--zyra-radius-pill); border: 1.5px dashed var(--zyra-brand-dark);
  color: var(--zyra-ink); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.pp-points { font-size: 1.05rem; font-weight: 600; color: var(--zyra-ink); }
.pp-note { margin: .5rem 0 0; font-size: .875rem; color: var(--zyra-muted); }
.pp-note a, .pp-needs a { color: var(--zyra-brand-dark); font-weight: 600; }
[data-bs-theme="dark"] .pp-note a, [data-bs-theme="dark"] .pp-needs a { color: #8fc1cc; }
.pp-plans { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pp-plan-pill {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .5rem .9rem; border-radius: var(--zyra-radius-pill);
  border: 1.5px solid var(--zyra-border); background: var(--zyra-paper);
  color: var(--zyra-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.pp-plan-pill:hover { border-color: var(--zyra-brand-dark); }
.pp-plan-pill:focus-visible { outline: 3px solid var(--zyra-brand-dark); outline-offset: 2px; }
.pp-plan-pill--selected { background: var(--zyra-brand-dark); border-color: var(--zyra-brand-dark); color: #fff; }
.pp-plan-price { font-size: .8rem; font-weight: 500; opacity: .85; }
.pp-benefits-head { margin-top: 1rem; font-weight: 600; color: var(--zyra-ink); }
.pp-benefits { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.pp-benefits li { display: flex; gap: .55rem; align-items: flex-start; color: var(--zyra-ink); font-size: .925rem; }
.pp-benefits .fi { color: var(--zyra-brand-dark); margin-top: .15rem; }
[data-bs-theme="dark"] .pp-benefits .fi { color: #8fc1cc; }
.pp-needs { margin: .6rem 0 0; font-size: .875rem; color: var(--zyra-muted); }
.pp-footnote { margin: .6rem 0 0; font-size: .8rem; color: var(--zyra-muted); }
.pp-plan-card { cursor: pointer; }
.pp-plan-card--previewing { outline: 2px solid var(--zyra-brand-dark); outline-offset: -2px; }
.pp-previewing-tag {
  padding: .2rem .6rem; border-radius: var(--zyra-radius-pill);
  background: var(--zyra-brand-dark); color: #fff;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}

/* --- 39. Membership compact verification (Phase 2.3, 2026-12-02) -----------
   Foldable document groups/rows, one-ID chooser, real progress bar and
   steps, preview verification strip, and declutter folds. Text pairs
   reuse proven token pairs (ink/muted on paper/surface flip together);
   fixed pairs: required tag brand-dark on brand-subtle (5.0:1 light),
   dark #8fc1cc on #172332 (7.9:1); elite tag #92400e on #fef3c7
   (8.4:1, both themes); optional tag #5b6675 on #f5f5f4 (5.4:1),
   dark #c3ccd6 on #374151 (6.3:1); bar fill brand-dark on surface
   (5.3:1), dark #8fc1cc on #374151 (5.4:1). Summary rows are >=44px
   tap targets; chevrons are border-drawn and rotate when open. */
.pp-plans-label { margin-top: 1rem; font-weight: 600; color: var(--zyra-ink); font-size: .95rem; }
.pp-verify-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin-top: 1rem; padding: .8rem 1rem;
  background: var(--zyra-surface); border: 1px solid var(--zyra-border);
  border-radius: var(--zyra-radius-well);
}
.pp-verify-strip-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--zyra-muted);
}
.pp-verify-strip-text { flex: 1 1 12rem; color: var(--zyra-ink); font-size: .925rem; }

.ci-chevron {
  flex: 0 0 auto; width: .55rem; height: .55rem; margin-left: .25rem;
  border-right: 2px solid var(--zyra-muted); border-bottom: 2px solid var(--zyra-muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
details[open] > summary .ci-chevron { transform: rotate(225deg); }
@media (prefers-reduced-motion: reduce) { .ci-chevron { transition: none; } }
.ci-how > summary,
.ci-fold-head,
.ci-group-head,
.ci-slot-head { list-style: none; cursor: pointer; }
.ci-how > summary::-webkit-details-marker,
.ci-fold-head::-webkit-details-marker,
.ci-group-head::-webkit-details-marker,
.ci-slot-head::-webkit-details-marker { display: none; }
.ci-how > summary:focus-visible,
.ci-fold-head:focus-visible,
.ci-group-head:focus-visible,
.ci-slot-head:focus-visible { outline: 3px solid var(--zyra-brand-dark); outline-offset: 2px; }

.ci-how > summary {
  display: flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--zyra-brand-dark);
}
[data-bs-theme="dark"] .ci-how > summary { color: #8fc1cc; }
.ci-how-body { padding: .25rem 0 .5rem; }

.ci-progress {
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
  background: var(--zyra-paper); padding: 1rem; margin-bottom: 1rem;
}
.ci-progress-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  justify-content: space-between; margin-bottom: .6rem; color: var(--zyra-ink);
}
.ci-bar {
  height: 10px; border-radius: var(--zyra-radius-pill);
  background: var(--zyra-surface); border: 1px solid var(--zyra-border);
  overflow: hidden;
}
.ci-bar > span {
  display: block; height: 100%; background: var(--zyra-brand-dark);
  border-radius: var(--zyra-radius-pill); transition: width .3s ease;
}
[data-bs-theme="dark"] .ci-bar > span { background: #8fc1cc; }
@media (prefers-reduced-motion: reduce) { .ci-bar > span { transition: none; } }
.ci-progress-counts { margin: .55rem 0 0; color: var(--zyra-ink); font-weight: 600; font-size: .925rem; }
.ci-steps {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  list-style: none; margin: .7rem 0 0; padding: 0;
}
.ci-steps li {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--zyra-muted); font-size: .85rem;
}
.ci-steps li::before {
  content: ""; flex: 0 0 auto; width: .6rem; height: .6rem; border-radius: 50%;
  border: 2px solid var(--zyra-muted); background: transparent;
}
.ci-steps li.is-done { color: var(--zyra-brand-dark); font-weight: 600; }
.ci-steps li.is-done::before { background: var(--zyra-brand-dark); border-color: var(--zyra-brand-dark); }
[data-bs-theme="dark"] .ci-steps li.is-done { color: #8fc1cc; }
[data-bs-theme="dark"] .ci-steps li.is-done::before { background: #8fc1cc; border-color: #8fc1cc; }
.ci-steps li.is-current { color: var(--zyra-ink); font-weight: 700; }
.ci-steps li.is-current::before { border-color: var(--zyra-ink); box-shadow: 0 0 0 3px var(--zyra-brand-subtle); }
.ci-progress-time { margin: .6rem 0 0; color: var(--zyra-muted); font-size: .875rem; }
.ci-progress-missing { margin: .35rem 0 0; color: var(--zyra-ink); font-size: .875rem; }
.ci-tier-chips { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .7rem; }
.ci-tier-chip { color: var(--zyra-muted); font-size: .875rem; }
.ci-tier-chip strong { color: var(--zyra-ink); }

.ci-individual-note {
  border: 1px dashed var(--zyra-border); border-radius: var(--zyra-radius-well);
  padding: .85rem 1rem; margin-bottom: 1rem;
}

.ci-fold-head {
  display: flex; align-items: center; gap: .6rem; min-height: 44px;
  padding: .3rem 0; color: var(--zyra-ink);
}
.ci-fold-status { margin-left: auto; color: var(--zyra-muted); font-size: .85rem; white-space: nowrap; }
.ci-fold-body { padding-top: .75rem; }

.ci-id-chooser { margin-bottom: 1rem; }
.ci-id-options .tt-option { padding: .75rem .9rem; }
.ci-id-option.is-selected {
  border-color: var(--zyra-brand-dark); border-width: 2px;
  background: var(--zyra-brand-subtle);
}
.ci-id-option.is-selected .tt-option-state {
  background: var(--zyra-brand-dark); border-color: var(--zyra-brand-dark); color: #fff;
}
.ci-id-option:disabled { opacity: .65; cursor: wait; }

.ci-group {
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
  background: var(--zyra-paper); margin-bottom: .9rem;
}
.ci-group[hidden], .ci-slot[hidden] { display: none; }
.ci-group-head {
  display: flex; align-items: center; gap: .6rem; min-height: 48px;
  padding: .7rem 1rem;
}
.ci-group-title {
  font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--zyra-ink);
}
.ci-group-summary { margin-left: auto; color: var(--zyra-muted); font-size: .85rem; white-space: nowrap; }
.ci-group-body { padding: 0 1rem 1rem; }

.ci-slot {
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-well);
  background: var(--zyra-paper); margin-top: .6rem;
}
.ci-slot-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem;
  min-height: 48px; padding: .6rem .9rem;
}
.ci-slot-name { flex: 1 1 8rem; min-width: 0; font-weight: 600; color: var(--zyra-ink); overflow-wrap: anywhere; }
.ci-slot-tag {
  padding: .15rem .55rem; border-radius: var(--zyra-radius-pill);
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.ci-tag--required { background: var(--zyra-brand-subtle); color: var(--zyra-brand-dark); }
[data-bs-theme="dark"] .ci-tag--required { color: #8fc1cc; }
.ci-tag--elite { background: #fef3c7; color: #92400e; }
.ci-tag--optional { background: var(--zyra-surface); color: #5b6675; }
[data-bs-theme="dark"] .ci-tag--optional { color: #c3ccd6; }
.ci-slot-body { padding: 0 .9rem .9rem; }

/* --- 40. Terms-update banner (2026-12-03) -------------------------------
   The banner is in-flow content rendered by templates/nav.php right
   after the header spacer, so at scroll-top it starts exactly below
   the fixed phone bar (spacer height = header height incl. the top
   safe-area inset, JS-synced) and scrolls away with the page — no
   jump or dead gap when the bar travels (DS §31/§35). Before this
   fix the banner rendered BEFORE the spacer and its text hid behind
   the bar. Controls are >=44px touch targets; colours are pinned
   for the banner's dark-teal ground in both themes (white text
   15.0:1 on #102a33; primary #102a33 on white 15.0:1; secondary
   white on transparent over #102a33 15.0:1, border rgba white .55
   3.6:1 as a non-text boundary). */
.zyra-terms-banner {
  position: relative; z-index: 1;
  background: #102a33; color: #fff;
  padding: 12px 16px;
}
.zyra-terms-banner-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem 1rem; justify-content: space-between;
}
.zyra-terms-banner-text {
  flex: 1 1 18rem; min-width: 0; margin: 0;
  font-size: .875rem; line-height: 1.45; overflow-wrap: break-word;
}
.zyra-terms-banner-form {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem; margin: 0;
}
.zyra-terms-banner .zyra-terms-banner-btn {
  min-height: 44px; height: auto;
  padding: .55rem 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
}
.zyra-terms-banner .zyra-btn-primary {
  background: #fff; border-color: #fff; color: #102a33;
}
.zyra-terms-banner .zyra-btn-primary:hover { background: #e8f1f4; border-color: #e8f1f4; color: #102a33; }
.zyra-terms-banner .zyra-btn-secondary {
  background: transparent; border-color: rgba(255,255,255,.55); color: #fff;
}
.zyra-terms-banner .zyra-btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.zyra-terms-banner .zyra-terms-banner-btn:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}
@media (max-width: 480px) {
  .zyra-terms-banner-form { flex: 1 1 100%; }
  .zyra-terms-banner-form .zyra-btn-primary { flex: 1 1 auto; }
}

/* Vendor nav wrap fix (2026-12-03): the full vendor menu is ~1446px wide,
   so at laptop widths (1024–1445px) it overflowed the viewport and forced
   sideways page scroll on every vendor page. Let the menu wrap onto a
   second row with slightly tighter links instead of overflowing. */
@media (max-width: 1499.98px) {
  .zyra-vendor-nav .container-fluid { flex-wrap: wrap; }
  .zyra-vendor-nav .navbar-collapse { flex-wrap: wrap; }
  .zyra-vendor-nav .navbar-nav { flex-wrap: wrap; row-gap: 4px; }
  .zyra-vendor-nav .nav-link { padding: 6px 9px; font-size: 13px; }
}

/* --- Deals rail + sale end date (Batch1 C, 2026-12-04) ------------------- */
/* Sale countdown text ("Ends 5 Dec"). The sale token #e5484d is only
   ~3.9:1 on white, so countdown text uses a darker red that holds
   4.5:1+ in both themes (light #b91c1c on #fff = 6.5:1; dark #fca5a5
   on #1f2937 = 7.4:1). Discount badges get the same darker ground so
   white badge text passes too (white on #b91c1c = 6.5:1). */
.zyra-badge-sale, .zyra-price-off { background: #b91c1c; }
.zyra-deal-ends {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  color: #b91c1c; margin-top: 4px;
}
[data-bs-theme="dark"] .zyra-deal-ends { color: #fca5a5; }
.zyra-deal-ends .fi-clock { font-size: 12px; flex-shrink: 0; }
.zyra-deal-ends--muted { color: var(--zyra-muted); }
[data-bs-theme="dark"] .zyra-deal-ends--muted { color: var(--zyra-muted); }
.zyra-deal-ends--detail { font-size: 13px; margin: 0 0 12px; }
span.zyra-deal-ends { display: inline-flex; margin-top: 0; }

/* Homepage deals rail: one swipeable row, cards sized for phones.
   The rail scrolls inside its own box — the page never scrolls
   sideways. */
.zyra-deals { margin: 4px 0 8px; }
.zyra-deals-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.zyra-deals-head .zyra-section-title {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
}
.zyra-deals-head .fi-percent { color: #b91c1c; font-size: 20px; }
[data-bs-theme="dark"] .zyra-deals-head .fi-percent { color: #fca5a5; }
.zyra-deals-all {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; padding: 8px 4px;
  font-size: 14px; font-weight: 600; color: var(--zyra-ink);
  text-decoration: none; white-space: nowrap;
}
.zyra-deals-all:hover { text-decoration: underline; color: var(--zyra-ink); }
.zyra-deals-all .fi-chevron-right { font-size: 14px; }
.zyra-deals-rail {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin;
}
.zyra-deals-item {
  flex: 0 0 62vw; max-width: 240px; min-width: 176px;
  scroll-snap-align: start;
}
.zyra-deals-item .zyra-card { height: 100%; }
@media (min-width: 576px) { .zyra-deals-item { flex-basis: 220px; } }
@media (min-width: 992px) { .zyra-deals-item { flex-basis: 240px; } }

/* Deals page sort pills */
.zyra-deals-sort {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.zyra-deals-sort .zyra-filter-pill { text-decoration: none; }

/* --- Back-in-stock alerts (Batch 1, 2026-12-04) ---------------------------
   Subscribe block on out-of-stock product page + quick view. DS tokens
   only, so light/dark flip together; phone-first stacked layout with
   full-width controls and visible (never hover-only) state text. */
.zyra-stock-alert {
  margin-top: 1rem; padding: 1rem;
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-card);
  background: var(--zyra-brand-subtle); color: var(--zyra-ink);
}
.zyra-stock-alert-title {
  font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 .375rem;
  display: flex; align-items: center; gap: .5rem;
}
.zyra-stock-alert-title .fi-bell { color: var(--zyra-brand-dark); }
[data-bs-theme="dark"] .zyra-stock-alert-title .fi-bell { color: var(--zyra-brand); }
.zyra-stock-alert-note { font-size: 13px; line-height: 1.55; color: var(--zyra-ink); margin: 0 0 .75rem; }
.zyra-stock-alert-done {
  font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 .375rem;
  display: flex; align-items: center; gap: .5rem;
}
.zyra-stock-alert-done .fi-check-circle { color: var(--zyra-success); }
.zyra-stock-alert-form { display: flex; flex-direction: column; gap: .5rem; }
.zyra-stock-alert-label { font-size: 13px; font-weight: 600; color: var(--zyra-ink); }
.zyra-stock-alert-input {
  width: 100%; min-height: 48px; padding: .625rem 1rem;
  border: 1px solid var(--zyra-border); border-radius: var(--zyra-radius-well);
  background: var(--zyra-paper); color: var(--zyra-ink);
  font-size: 16px; line-height: 1.3;
}
.zyra-stock-alert-input::placeholder { color: var(--zyra-muted); }
.zyra-stock-alert-input:focus-visible { outline: 3px solid var(--zyra-brand); outline-offset: 1px; border-color: var(--zyra-brand); }
.zyra-stock-alert-btn { width: 100%; min-height: 52px; white-space: normal; text-align: center; }
.zyra-stock-alert-msg { font-size: 13px; font-weight: 600; line-height: 1.5; margin: .5rem 0 0; }
.zyra-stock-alert-msg[hidden] { display: none; }
.zyra-stock-alert-msg.is-error { color: var(--zyra-danger); }
.zyra-stock-alert-msg.is-success { color: var(--zyra-ink); }
.zyra-qv-preview .zyra-stock-alert { margin-top: .875rem; padding: .875rem; }
