@charset "UTF-8";

/* ---------- Homepage sections shared with the isolated admin live preview ---------- */
/* Numbered section heading: gold index numeral (CSS counter, so hidden sections never leave a gap),
   tracked latin kicker, Chinese title and an optional note or action. The homepage <main> (also rendered
   by the admin draft preview) starts the count, so every section below the hero reads 01, 02 … */
.ma-home {
  counter-reset: ma-section;
}

.ma-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 0.5rem clamp(1rem, 2.4vw, 1.75rem);
  margin: 0 0 clamp(2rem, 4vw, 3.25rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
}

.ma-section-head::before {
  grid-row: 1 / span 3;
  align-self: start;
  color: var(--moonarrow-color-gold);
  content: counter(ma-section, decimal-leading-zero);
  counter-increment: ma-section;
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-index-numeral);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.ma-section-kicker {
  grid-column: 2;
  margin: 0;
  color: var(--moonarrow-color-storefront-muted);
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-kicker);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--moonarrow-tracking-kicker);
  text-transform: uppercase;
}

.ma-section-head h2 {
  grid-column: 2;
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: var(--moonarrow-type-display-section);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.ma-section-note {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
}

/* Campaign and category tiles. */
.ma-home-features {
  width: 100%;
  max-width: var(--moonarrow-shell-max);
  margin: 0 auto;
  padding: var(--moonarrow-space-section) var(--moonarrow-shell-gutter);
  color: var(--moonarrow-color-brand-ink);
}

.ma-home-features + .ma-home-features {
  padding-top: 0;
}

.ma-home-features-grid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-feature-tile {
  min-width: 0;
}

.ma-feature-tile-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ma-feature-tile-link:focus-visible {
  outline: 3px solid var(--moonarrow-color-brand-blue);
  outline-offset: 5px;
}

.ma-feature-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #fff;
}

.ma-home-features--categories .ma-feature-tile-media {
  aspect-ratio: 4 / 3;
}

.ma-feature-tile-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Campaigns: editorial splits, picture and copy alternating sides. The 2:1 crop is the owner's. */
.ma-home-features--campaigns .ma-home-features-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 6rem);
}

.ma-home-features--campaigns .ma-feature-tile-link {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.ma-home-features--campaigns .ma-feature-tile:nth-child(even) .ma-feature-tile-link {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.ma-home-features--campaigns .ma-feature-tile:nth-child(even) .ma-feature-tile-media {
  order: 2;
}

.ma-home-features--campaigns .ma-feature-tile-media::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.ma-feature-tile-copy {
  overflow-wrap: anywhere;
}

.ma-feature-tile-copy > h3 {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: var(--moonarrow-type-display-section);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.ma-feature-tile-copy > p {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
  line-height: 1.85;
  letter-spacing: 0.04em;
  white-space: pre-line;
}

.ma-feature-tile-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding-bottom: 0.4rem;
  color: var(--moonarrow-color-brand-ink);
  font-size: var(--moonarrow-type-control);
  font-weight: 800;
  letter-spacing: var(--moonarrow-tracking-action);
}

.ma-feature-tile-cue::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--moonarrow-color-gold);
  transform: scaleX(0.35);
  transform-origin: left center;
}

.ma-home-features--campaigns .ma-feature-tile-link:is(:hover, :focus-visible) .ma-feature-tile-cue::after {
  transform: none;
}

/* Category tiles: picture only. On hover or keyboard focus the photo washes out to white and the
   category name appears in the centre (zoom and timing live in moonarrow-motion.css). */
.ma-feature-tile-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--moonarrow-color-brand-ink);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
  text-indent: 0.3em;
  opacity: 0;
  pointer-events: none;
}

.ma-home-features--categories .ma-feature-tile-link:is(:hover, :focus-visible) .ma-feature-tile-media > img {
  opacity: 0.2;
}

.ma-home-features--categories .ma-feature-tile-link:is(:hover, :focus-visible) .ma-feature-tile-label {
  opacity: 1;
}

/* Touch screens have no hover, so the name rests on a paper strip at the foot of the photo. */
@media (hover: none) {
  .ma-feature-tile-label {
    inset: auto 0 0;
    display: block;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    opacity: 1;
  }

  .ma-home-features--categories .ma-feature-tile-link:is(:hover, :focus-visible) .ma-feature-tile-media > img {
    opacity: 1;
  }
}

.ma-home-features-preview-note {
  background: #edf2f7;
  color: var(--moonarrow-color-brand-ink);
  margin: 0;
  padding: 1rem;
  text-align: center;
}

/* The admin phone preview mirrors the phone layout below at any editor width. */
.ma-home-features--mobile-preview.ma-home-features--campaigns .ma-feature-tile-link,
.ma-home-features--mobile-preview.ma-home-features--campaigns .ma-feature-tile:nth-child(even) .ma-feature-tile-link {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.ma-home-features--mobile-preview.ma-home-features--campaigns .ma-feature-tile:nth-child(even) .ma-feature-tile-media {
  order: 0;
}

.ma-home-features--mobile-preview.ma-home-features--categories .ma-home-features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-home-features--mobile-preview.ma-home-features--categories .ma-feature-tile:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
  .ma-home-features--campaigns .ma-feature-tile-link,
  .ma-home-features--campaigns .ma-feature-tile:nth-child(even) .ma-feature-tile-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .ma-home-features--campaigns .ma-feature-tile:nth-child(even) .ma-feature-tile-media {
    order: 0;
  }
}

/* Phone: two category columns, the first tile spans the row as a lead banner. */
@media (max-width: 767px) {
  .ma-home-features--categories .ma-home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-home-features--categories .ma-feature-tile:first-child {
    grid-column: 1 / -1;
  }

  .ma-section-head::before {
    grid-row: 1 / span 2;
  }
}

:root {
  --moonarrow-ink: var(--moonarrow-color-brand-ink);
  --moonarrow-ink-soft: var(--moonarrow-color-brand-ink-soft);
  --moonarrow-blue: var(--moonarrow-color-brand-blue);
  --moonarrow-blue-dark: var(--moonarrow-color-brand-blue-dark);
  --moonarrow-cyan: var(--moonarrow-color-cyan);
  --moonarrow-paper: var(--moonarrow-color-paper);
  --moonarrow-canvas: var(--moonarrow-color-storefront-canvas);
  --moonarrow-soft: var(--moonarrow-color-storefront-soft);
  --moonarrow-line: var(--moonarrow-color-storefront-line);
  --moonarrow-muted: var(--moonarrow-color-storefront-muted);
  --moonarrow-success: var(--moonarrow-color-success);
  --moonarrow-danger: var(--moonarrow-color-danger);
  --moonarrow-shadow: var(--moonarrow-shadow-storefront);
  --moonarrow-radius: var(--moonarrow-radius-card);
}

/* Homepage-only sections (hero, entry band, brand directory, featured rail) are owned by
   moonarrow-home-page.css, which the homepage loads after the shared modules. */

.order-shipment-attention,
.order-closed-shipment-reminder {
  border: 1px solid rgba(181, 126, 18, 0.28);
  border-left: 3px solid #b57e12;
  border-radius: 0.75rem;
  background: rgba(255, 248, 229, 0.72);
  color: #503b12;
  padding: 0.85rem 1rem;
}

.order-closed-shipment-reminder {
  margin-block: 1rem;
}

.order-closed-shipment-reminder p {
  margin: 0.35rem 0 0;
}

.order-state-attention {
  display: block;
  margin-top: 0.3rem;
  color: #8a5b00;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .order-shipment-attention,
  .order-closed-shipment-reminder {
    padding: 0.75rem 0.85rem;
  }
}

/* ---------- Storefront foundation: white sports-catalogue canvas, flat frames, navy interaction ---------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.storefront-surface {
  color: var(--moonarrow-color-brand-ink);
  background: var(--moonarrow-color-storefront-canvas);
  font-family: var(--moonarrow-font-sans);
  font-size: 16px;
  line-height: 1.65;
}

.storefront-surface a {
  color: inherit;
}

.storefront-surface img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.1rem;
  color: #fff;
  background: var(--moonarrow-color-brand-blue);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--moonarrow-color-gold);
  outline-offset: 2px;
}

.storefront-surface :is(
  .catalog-filter,
  .cart-summary-panel,
  .checkout-summary,
  .checkout-form-section,
  .account-panel,
  .legal-card,
  .product-purchase-panel,
  .product-spec-card
) {
  border-color: var(--moonarrow-color-storefront-line);
  border-radius: var(--moonarrow-radius-frame);
  box-shadow: none;
}

.storefront-surface :is(.product-detail-main-frame, .cart-product-thumb) {
  background: var(--moonarrow-color-storefront-media-surface);
}

.storefront-surface .account-story {
  background: var(--moonarrow-color-storefront-hero-surface);
  border-radius: 0;
}

.storefront-surface .data-table {
  border-color: var(--moonarrow-color-storefront-line);
}

/* Shared storefront page header: open, left aligned, a heavy title over one hairline rule. */
.storefront-surface :is(.storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header) {
  position: relative;
  min-height: 0;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  overflow: visible;
  color: var(--moonarrow-color-brand-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--moonarrow-color-storefront-line);
  border-radius: 0;
  box-shadow: none;
}

.storefront-surface :is(.storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header) h1 {
  margin: 0.35rem 0 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.storefront-surface :is(.storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header) p:not(.section-kicker) {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-support);
  line-height: 1.75;
}

.storefront-surface .storefront-page-header > p:not(.section-kicker) {
  margin-top: 0;
}

.site-main {
  min-height: 58vh;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.store-notice {
  align-items: center;
  background: #e9f7f2;
  border: 1px solid #bce4d7;
  border-radius: var(--moonarrow-radius-frame);
  color: #155f4a;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
}

.store-notice > span {
  align-items: center;
  background: #168765;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.store-notice p {
  margin: 0;
}

.store-notice-warning {
  background: #fff8e6;
  border-color: #ead08a;
  color: #76530b;
}

.store-notice-warning > span {
  background: #b7790d;
}

.store-notice-danger {
  background: #fff0f0;
  border-color: #e7aaaa;
  color: #922424;
}

.store-notice-danger > span {
  background: #bd2f36;
}

.storefront-surface .page-section {
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--moonarrow-color-gold-text);
  font-size: var(--moonarrow-type-micro);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.storefront-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}

.storefront-page-header > p {
  max-width: 32rem;
  margin: 0;
  color: var(--moonarrow-color-storefront-muted);
}

@media (max-width: 767.98px) {
  .storefront-surface .site-main,
  .storefront-surface .site-main > *,
  .storefront-surface :is(article, form, fieldset, table, details, section) {
    min-width: 0;
    max-width: 100%;
  }
}

/* ---------- Catalogue: a full-bleed banner, numbered category tiles, then a filter rail beside the results ---------- */
/* The banner and tiles break out of the content column; the page clips that bleed so it never scrolls sideways. */
body.storefront-surface.controller-product {
  overflow-x: clip;
}

.storefront-surface .catalog-hero {
  position: relative;
  isolation: isolate;
  margin: calc(clamp(1.25rem, 2.5vw, 2rem) * -1) calc(50% - 50vw) 0;
  padding: clamp(2.75rem, 6vw, 5rem) calc(50vw - 50%);
  background:
    url("/images/branding/moonarrow-hero-court-clean-left-20261001.png") 75% 70% / cover no-repeat,
    var(--moonarrow-color-daylight-wash);
}

/* Paper wash: firm behind the title at the left, the court opening up to the right. */
.storefront-surface .catalog-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 40%, rgba(255, 255, 255, 0.2) 78%);
}

.storefront-surface .catalog-hero-inner {
  display: grid;
  gap: 1rem;
}

.storefront-surface .catalog-hero .store-breadcrumb {
  margin: 0;
}

.storefront-surface .catalog-hero h1 {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.storefront-surface .catalog-hero-count {
  margin: 0;
  color: var(--moonarrow-color-brand-ink-soft);
  font-size: max(1rem, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Category chips: one row of pills under the banner, inside the content width.
   The first chip reads ALL, the rest are numbered 01, 02 …; the active chip inverts. ---------- */
.storefront-surface .catalog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 1.5rem 0 0;
  counter-reset: catalog-kind -1;
  background: transparent;
  border: 0;
}

.storefront-surface .catalog-category-nav a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.3rem;
  color: var(--moonarrow-color-brand-ink);
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: var(--moonarrow-radius-pill);
  counter-increment: catalog-kind;
  font-size: max(1rem, 16px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.storefront-surface .catalog-category-nav a::after {
  color: var(--moonarrow-color-gold-text);
  content: counter(catalog-kind, decimal-leading-zero);
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-kicker);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.storefront-surface .catalog-category-nav a:first-child::after {
  content: "ALL";
}

.storefront-surface .catalog-category-nav a:hover {
  border-color: var(--moonarrow-color-brand-ink);
}

.storefront-surface .catalog-category-nav a.is-active {
  color: #fff;
  background: var(--moonarrow-color-brand-ink);
  border-color: var(--moonarrow-color-brand-ink);
}

.storefront-surface .catalog-category-nav a.is-active::after {
  color: var(--moonarrow-color-gold-on-dark);
}

.storefront-surface .catalog-category-nav a:focus-visible {
  outline: 3px solid var(--moonarrow-color-brand-blue);
  outline-offset: 2px;
}

/* ---------- Results beside a sticky filter rail ---------- */
.storefront-surface .catalog-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.storefront-surface .catalog-sidebar {
  position: sticky;
  top: calc(var(--moonarrow-navigation-height, 82px) + 1.5rem);
}

/* The live-search form is the rail: search first, then brand, type and sort as stacked groups. */
.storefront-surface .catalog-filter,
.storefront-surface .catalog-filter.is-live-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.storefront-surface .catalog-filter-field {
  min-width: 0;
}

.storefront-surface .catalog-filter label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  color: var(--moonarrow-color-brand-ink);
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  font-size: var(--moonarrow-type-label);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.catalog-filter-en {
  color: var(--moonarrow-color-storefront-muted);
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-kicker);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* The search sits first in the rail as one underlined line. */
.storefront-surface .catalog-sidebar .catalog-filter-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The rail search keeps the shared framed field; the glyph sits inside it, clear of the border. */
.storefront-surface .catalog-sidebar .catalog-search-input input {
  border-radius: 0;
}

/* Choice lists drawn by catalog-filter-options.js replace the selects in the rail. */
.storefront-surface .catalog-filter.has-filter-options [data-filter-options-for] select {
  display: none;
}

.catalog-filter-options {
  display: grid;
  gap: 0.1rem;
}

.catalog-filter-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  color: var(--moonarrow-color-storefront-muted);
  background: none;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.catalog-filter-option::before {
  width: 14px;
  height: 14px;
  flex: none;
  content: "";
  border: 1px solid var(--moonarrow-color-ink-control-line);
}

.catalog-filter-option:hover {
  color: var(--moonarrow-color-brand-ink);
}

.catalog-filter-option[aria-checked="true"] {
  color: var(--moonarrow-color-brand-ink);
}

.catalog-filter-option[aria-checked="true"]::before {
  background: var(--moonarrow-color-brand-ink);
  border-color: var(--moonarrow-color-brand-ink);
  box-shadow: inset 0 0 0 3px #fff;
}

.catalog-filter-option:focus-visible {
  outline: 2px solid var(--moonarrow-color-brand-blue);
  outline-offset: 2px;
}

/* Inside the phone drawer the plain selects return; the choice lists rest. */
.moonarrow-filter-drawer .catalog-filter-options {
  display: none;
}

.moonarrow-filter-drawer .catalog-filter.has-filter-options [data-filter-options-for] select {
  display: block;
}

.moonarrow-filter-drawer .catalog-filter label {
  padding-bottom: 0;
  border-bottom: 0;
}

.catalog-search-input {
  position: relative;
}

.catalog-search-input > span {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: var(--moonarrow-color-storefront-muted);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search-input input {
  padding-left: 2.6rem !important;
}

.catalog-filter.is-loading {
  opacity: 0.7;
}

/* Results bar: the drawer trigger (phones), the active conditions and the phone view toggle. */
.storefront-surface .catalog-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.storefront-surface .catalog-results-bar:not(:has(> :not([hidden]):not(.product-grid-view-toggle))) {
  margin-bottom: 0;
}

/* Phones: the drawer trigger takes the row, the view toggle sits at its end. */
.storefront-surface .catalog-results-bar .moonarrow-filter-trigger {
  width: auto;
  flex: 1 1 auto;
  margin: 0;
}

.storefront-surface .catalog-results-bar .catalog-result-context {
  margin: 0;
  padding: 0.4rem 0.8rem;
  color: var(--moonarrow-color-brand-ink);
  border: 1px solid var(--moonarrow-color-ink-control-line);
  font-size: var(--moonarrow-type-metadata);
  font-weight: 700;
}

.storefront-surface .catalog-result-context[hidden] {
  display: none;
}

/* Phones: one column; the live-search script moves the form into the drawer, so the rail rests. */
@media (max-width: 767.98px) {
  .storefront-surface .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.5rem;
  }

  .storefront-surface .catalog-sidebar {
    position: static;
  }

  .storefront-surface .catalog-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 60%, rgba(255, 255, 255, 0.4) 100%);
  }

  /* Phones: the chips stay on one line and scroll sideways. */
  .storefront-surface .catalog-category-nav {
    flex-wrap: nowrap;
    margin-inline: calc(var(--moonarrow-page-gutter) * -1);
    padding-inline: var(--moonarrow-page-gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .storefront-surface .catalog-filter .btn {
    width: 100%;
  }
}

/* ---------- Result heading ---------- */
.storefront-surface .catalog-result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
}

.storefront-surface .catalog-result-heading h2 {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: var(--moonarrow-type-section-title);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.catalog-result-context {
  margin: 0.4rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
}

.storefront-surface .catalog-result-actions > span {
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
  font-weight: 700;
}

/* ---------- Product grid and card: a tall 4:5 photo tile, stock on its corner, details slide up on hover;
   brand line, then name and price on one row, the model number underneath ---------- */
.storefront-surface .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) clamp(0.75rem, 1.6vw, 1.5rem);
}

.storefront-surface .product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.storefront-surface .product-card-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.storefront-surface .product-card-image-link:focus-visible {
  outline: 3px solid var(--moonarrow-color-brand-blue);
  outline-offset: -3px;
}

.storefront-surface .product-card-image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--moonarrow-color-storefront-media-surface);
  border: 0;
  border-radius: 0;
}

.storefront-surface .product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.storefront-surface .product-card-image-frame .image-preview-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Stock tag on the photograph's corner: quiet navy for in stock, a paper tag for sold out. */
.storefront-surface .product-card-image-frame .product-stock-state {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
}

.product-stock-state {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.product-stock-state.is-available {
  color: #fff;
  background: var(--moonarrow-color-brand-ink);
}

.product-stock-state.is-sold-out {
  color: #822735;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(130, 39, 53, 0.35);
}

/* Details line rising from the foot of the photo on hover (motion lives in moonarrow-motion.css). */
.product-card-quick-view {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.1rem 1.1rem 1rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(29, 33, 54, 0.9) 0%, rgba(29, 33, 54, 0) 100%);
  font-size: var(--moonarrow-type-micro);
  font-weight: 800;
  letter-spacing: var(--moonarrow-tracking-action);
  opacity: 0;
  transform: translateY(100%);
}

.product-card:hover .product-card-quick-view,
.product-card-image-link:focus-visible .product-card-quick-view {
  opacity: 1;
  transform: none;
}

.storefront-surface .product-card-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 0.9rem 1.1rem;
}

.storefront-surface .product-card-meta {
  min-width: 0;
  margin: 0;
  color: var(--moonarrow-color-gold-text);
  font-family: var(--moonarrow-font-latin);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.storefront-surface .product-card-meta a {
  color: var(--moonarrow-color-gold-text);
  text-decoration: none;
}

/* Brand and series wrap as whole units in narrow two-column cards instead of splitting mid-name. */
.storefront-surface .product-card-meta > :is(a, .product-card-series) {
  display: inline-block;
  max-width: 100%;
}

.storefront-surface .product-card-meta a:hover,
.storefront-surface .product-card-meta a:focus-visible {
  color: var(--moonarrow-color-brand-ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Name and price share the tile's main row; a long name wraps beside a fixed price. */
.storefront-surface .product-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.storefront-surface .product-card h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storefront-surface .product-card h2 a {
  color: var(--moonarrow-color-brand-ink);
  text-decoration: none;
}

.storefront-surface .product-card h2 a:hover,
.storefront-surface .product-card h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--moonarrow-color-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.storefront-surface .product-card-price {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-latin);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.storefront-surface .product-card-code {
  margin: 0;
  color: var(--moonarrow-color-storefront-muted);
  font-family: var(--moonarrow-font-latin);
  letter-spacing: 0.14em;
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .storefront-surface .product-grid {
    gap: 1.75rem 0.75rem;
  }

  .storefront-surface .product-card-content {
    padding: 0.8rem 0.25rem 0.5rem;
  }

  /* Narrow two-column tiles stack the price under the name. */
  .storefront-surface .product-card-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .storefront-surface .product-card-image-frame .product-stock-state {
    top: 0.5rem;
    left: 0.5rem;
  }

  .product-card-quick-view {
    display: none;
  }
}

/* ---------- Empty states ---------- */
.store-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  text-align: center;
  background: var(--moonarrow-color-ice-page);
  border: 0;
  border-top: 3px solid var(--moonarrow-color-brand-blue);
  border-radius: 0;
}

.store-empty-state > span {
  margin-bottom: 0.75rem;
  color: var(--moonarrow-color-brand-ink);
  font-size: 2rem;
  line-height: 1;
}

/* Empty states use the same 24px line-icon family as the header and member shortcuts, never text glyphs. */
.store-empty-state > .store-empty-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
}

.store-empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.store-empty-state :is(h2, h3) {
  margin: 0 0 0.5rem;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: var(--moonarrow-type-section-title);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.store-empty-state p {
  max-width: 32rem;
  margin: 0 0 1.25rem;
  color: var(--moonarrow-color-storefront-muted);
}

.store-empty-state p:last-child {
  margin-bottom: 0;
}

.store-breadcrumb {
  align-items: center;
  color: var(--moonarrow-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--moonarrow-type-micro);
  gap: 0.65rem;
  letter-spacing: 0.08em;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.store-breadcrumb > span[aria-hidden="true"] {
  color: var(--moonarrow-color-gold);
}

.store-breadcrumb a {
  color: var(--moonarrow-color-storefront-muted);
  text-decoration: none;
}

.store-breadcrumb a:hover,
.store-breadcrumb a:focus-visible {
  color: var(--moonarrow-color-brand-ink);
}

/* ---------- Product detail: a large paper stage at the left, a sticky buying column at the right ---------- */
.product-detail-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 1fr);
}

/* Gallery: one large square that the image fills, the thumbnail rail at its left (below it on phones). */
.product-detail-media {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.product-detail-media:has(> .product-gallery-section) {
  grid-template-columns: 84px minmax(0, 1fr);
}

.product-detail-media > .product-detail-main-frame {
  grid-column: -2 / -1;
  grid-row: 1;
}

.product-detail-main-frame {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: var(--moonarrow-color-storefront-media-surface);
  border: 0;
  border-radius: 0;
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-detail-main-frame > img {
  height: 100%;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.product-detail-badge {
  background: var(--moonarrow-ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  left: 1.25rem;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.65rem;
  position: absolute;
  top: 1.25rem;
}

/* The rail spans the square's height and scrolls when there are more thumbnails than fit. */
.product-gallery-section {
  align-self: stretch;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  position: relative;
}

.product-gallery-title {
  color: var(--moonarrow-muted);
  font-size: var(--moonarrow-type-kicker);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 0.65rem;
}

.product-gallery-grid {
  align-content: start;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr);
  inset: 0;
  overflow-y: auto;
  position: absolute;
  scrollbar-width: thin;
}

.product-detail-gallery-thumb {
  appearance: none;
  aspect-ratio: 1 / 1;
  background: var(--moonarrow-color-storefront-media-surface);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
}

/* The image on the square is framed in ink with a gold bar at its left edge. */
.product-detail-gallery-thumb.is-active {
  border-color: var(--moonarrow-color-brand-ink);
}

.product-detail-gallery-thumb.is-active::after {
  background: var(--moonarrow-color-gold);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 3px;
}

.product-detail-gallery-thumb:focus-visible {
  outline: 3px solid var(--moonarrow-color-brand-blue);
  outline-offset: -3px;
}

.product-detail-gallery-thumb img {
  height: 100%;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.product-detail-info {
  min-width: 0;
  padding-top: 0.25rem;
}

/* Desktop: whichever column is shorter (gallery or buying column) stays in view while the other scrolls. */
@media (min-width: 992px) {
  .storefront-surface :is(.product-detail-media, .product-detail-info) {
    position: sticky;
    top: calc(var(--moonarrow-navigation-height, 82px) + 1.5rem);
  }
}

.storefront-surface .product-detail-info .section-kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.9rem;
  color: var(--moonarrow-color-gold-text);
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-kicker);
  letter-spacing: var(--moonarrow-tracking-kicker);
}

.storefront-surface .product-detail-info .section-kicker::before {
  width: 2.25rem;
  height: 1px;
  flex: none;
  content: "";
  background: var(--moonarrow-color-gold);
}

.storefront-surface .product-detail-info h1 {
  margin: 0 0 0.85rem;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: var(--moonarrow-type-display-section);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.product-title-meta {
  color: var(--moonarrow-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 0.5rem 1rem;
  margin-bottom: 1.55rem;
}

.product-title-meta span + span {
  border-left: 1px solid var(--moonarrow-line);
  padding-left: 1rem;
}

.product-detail-description {
  color: #536278;
  line-height: 1.9;
  margin-bottom: 0;
}

.product-description {
  margin-bottom: 1.4rem;
}

.product-detail-description.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.product-description-toggle {
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  color: var(--moonarrow-blue);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-align: left;
}

.product-description-toggle:hover,
.product-description-toggle:focus-visible {
  color: var(--moonarrow-ink);
  text-decoration: underline;
}

.audio-product-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.6rem;
}

.audio-product-facts > div {
  border-bottom: 1px solid var(--moonarrow-line);
  padding: 0.7rem 0;
}

.audio-product-facts > div:nth-child(odd) {
  padding-right: 1rem;
}

.audio-product-facts > div:nth-child(even) {
  border-left: 1px solid var(--moonarrow-line);
  padding-left: 1rem;
}

.audio-product-facts dt {
  color: var(--moonarrow-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.audio-product-facts dd {
  font-size: var(--moonarrow-type-small);
  font-weight: 700;
  margin: 0.15rem 0 0;
}

/* The buying form reads as part of the column: specification cards, then quantity beside the add button. */
.product-purchase-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding: 0;
}

.product-spec-field > label {
  display: block;
  font-size: var(--moonarrow-type-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}

/* Choice cards drawn by product-spec-options.js replace the select; the select stays the submitted field. */
.product-spec-field.has-spec-options select {
  display: none;
}

.product-spec-options {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-spec-option {
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 0;
  color: var(--moonarrow-color-brand-ink);
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  text-align: left;
}

.product-spec-option strong {
  font-weight: 800;
}

.product-spec-option small {
  color: var(--moonarrow-color-storefront-muted);
  font-family: var(--moonarrow-font-latin);
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}

.product-spec-option:hover:not(:disabled) {
  border-color: var(--moonarrow-color-brand-ink);
}

.product-spec-option[aria-checked="true"] {
  border-color: var(--moonarrow-color-brand-ink);
  box-shadow: inset 0 0 0 1px var(--moonarrow-color-brand-ink), inset 0 -3px 0 var(--moonarrow-color-gold);
}

.product-spec-option:disabled {
  background: var(--moonarrow-color-daylight-soft);
  color: var(--moonarrow-color-storefront-muted);
  cursor: not-allowed;
}

.product-spec-option:disabled strong {
  text-decoration: line-through;
}

.product-spec-option:focus-visible {
  outline: 3px solid var(--moonarrow-color-brand-blue);
  outline-offset: 2px;
}

.product-buy-row {
  align-items: stretch;
  display: flex;
  gap: 0.75rem;
}

.product-buy-row .product-quantity-row {
  flex: 0 0 auto;
}

.product-buy-row .product-add-button {
  flex: 1 1 auto;
  margin-top: 0;
}

.product-price-row {
  align-items: end;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  padding-bottom: 1.1rem;
}

.product-price-row > div {
  display: flex;
  flex-direction: column;
}

.product-price-row > div > span {
  color: var(--moonarrow-muted);
  font-size: var(--moonarrow-type-kicker);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.product-price-row > div > strong {
  font-family: var(--moonarrow-font-latin);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.product-availability {
  align-items: center;
  color: var(--moonarrow-success);
  display: flex;
  font-size: 0.7rem;
  gap: 0.35rem;
  margin: 0 0 0.3rem;
}

.product-availability > span {
  background: var(--moonarrow-success);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.audio-selected-variant {
  align-items: center;
  background: #fff;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--moonarrow-color-hairline);
  color: var(--moonarrow-color-brand-ink-soft);
  display: flex;
  font-size: 0.72rem;
  gap: 0.55rem;
  min-height: 38px;
  padding: 0.5rem 0.7rem;
}

.audio-color-swatch {
  border: 1px solid rgba(7, 16, 31, 0.18);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

#SelectedCableLengthText:not(:empty)::before {
  color: #a4afbd;
  content: "·";
  margin-right: 0.55rem;
}

.product-quantity-row {
  max-width: 168px;
}

.product-quantity-stepper {
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-radius: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 44px minmax(56px, 1fr) 44px;
  overflow: hidden;
  width: 100%;
}

.product-quantity-stepper input[type="number"] {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: var(--moonarrow-ink);
  font: inherit;
  border-left: 1px solid var(--moonarrow-line);
  border-radius: 0;
  border-right: 1px solid var(--moonarrow-line);
  min-width: 0;
  -moz-appearance: textfield;
  padding: 0.65rem 0.25rem;
  text-align: center;
  width: 100%;
}

.product-quantity-stepper input[type="number"]::-webkit-inner-spin-button,
.product-quantity-stepper input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.product-quantity-stepper input[type="number"]:focus {
  box-shadow: inset 0 0 0 2px rgba(29, 33, 54, 0.2);
  outline: 0;
}

.product-quantity-button {
  align-items: center;
  appearance: none;
  background: var(--moonarrow-color-daylight-soft);
  border: 0;
  color: var(--moonarrow-ink);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0;
}

.product-quantity-button:hover:not(:disabled),
.product-quantity-button:focus-visible {
  background: var(--moonarrow-color-daylight-soft);
  color: var(--moonarrow-blue);
}

.product-quantity-button:focus-visible {
  outline: 3px solid rgba(29, 33, 54, 0.3);
  outline-offset: -3px;
}

.product-quantity-button:disabled {
  color: #a7b1bf;
  cursor: not-allowed;
}

.product-add-button {
  justify-content: space-between !important;
  margin-top: 0.35rem;
  min-height: 58px;
  width: 100%;
}

.product-cart-message {
  font-size: 0.75rem;
  min-height: 1.1rem;
}

.moonarrow-toast-region {
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid;
  gap: 0.65rem;
  justify-items: end;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 1120;
}

.moonarrow-toast {
  align-items: center;
  background: #07101f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  box-shadow: 0 18px 42px rgba(7, 16, 31, 0.28);
  color: #fff;
  display: flex;
  gap: 0.75rem;
  max-width: 100%;
  min-width: min(310px, calc(100vw - 2rem));
  opacity: 0;
  padding: 0.9rem 1rem;
  pointer-events: auto;
  transform: translate3d(0, 14px, 0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.moonarrow-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.moonarrow-toast.is-leaving {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.moonarrow-toast__icon {
  align-items: center;
  background: var(--moonarrow-blue);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.moonarrow-toast__message {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.moonarrow-toast--error .moonarrow-toast__icon {
  background: #c73a4a;
}

@media (max-width: 575.98px) {
  .moonarrow-toast-region {
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    left: 0.9rem;
    max-width: none;
    right: 0.9rem;
  }

  .moonarrow-toast {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moonarrow-toast {
    transition-duration: 1ms;
  }
}

.product-feature {
  background: var(--moonarrow-color-paper-warm);
  border-block: 1px solid var(--moonarrow-color-hairline);
  margin: clamp(4rem, 9vw, 7rem) calc(50% - 50vw) 0;
  padding: clamp(3rem, 6vw, 5rem) calc(50vw - 50%);
}

.product-feature-mark {
  align-items: flex-end;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.product-feature-mark .outline-display {
  font-size: clamp(3.5rem, 9vw, 8rem);
  min-width: 0;
  overflow: hidden;
}

.product-feature-mark.is-long .outline-display {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.product-feature-mark p {
  color: var(--moonarrow-color-storefront-muted);
  flex: none;
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-kicker);
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.6;
  margin: 0;
  text-align: right;
  text-transform: uppercase;
}

.product-story-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Without a separate story, the specifications span a readable measure on their own. */
.product-story-grid.is-spec-only {
  grid-template-columns: minmax(0, 48rem);
}

.product-story-copy {
  padding: 0;
}

.product-story-copy h2 {
  font-family: var(--moonarrow-font-display);
  font-size: var(--moonarrow-type-display-section);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  max-width: 48rem;
}

.product-story-copy > p:not(.section-kicker) {
  color: var(--moonarrow-muted);
  line-height: 1.9;
  max-width: 32rem;
  white-space: pre-line;
}

/* Specifications: an ink rule over hairline rows, no card. */
.product-spec-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 2px solid var(--moonarrow-color-brand-ink);
  color: var(--moonarrow-color-brand-ink);
  overflow: hidden;
  padding: 0;
}

.product-spec-heading {
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  margin: 0;
  padding: 0.9rem 0;
}

.product-spec-heading h2 {
  color: var(--moonarrow-color-storefront-muted);
  font-family: inherit;
  font-size: var(--moonarrow-type-label);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0;
}

.product-spec-table {
  margin: 0;
}

.product-spec-table > div {
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  display: grid;
  gap: 1rem;
  grid-template-columns: 9rem minmax(0, 1fr);
  padding: 1rem 0;
}

.product-spec-table dt {
  color: var(--moonarrow-color-storefront-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.product-spec-table dd {
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.product-specification-text {
  color: var(--moonarrow-color-brand-ink-soft);
  line-height: 1.9;
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.product-information-list {
  border-top: 1px solid var(--moonarrow-color-hairline);
  margin-top: 1.75rem;
}

@media (max-width: 767.98px) {
  .product-gallery-grid {
    grid-auto-columns: 72px;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow: auto hidden;
    position: static;
  }

  .product-detail-gallery-thumb.is-active::after {
    height: 3px;
    inset: auto 0 0;
    width: auto;
  }

  .product-story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-spec-table > div {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .product-feature-mark .outline-display {
    font-size: clamp(2rem, 8.5vw, 3.5rem);
  }

  .product-feature-mark.is-long .outline-display {
    font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  }
}

.product-information-list details {
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  padding: 0;
}

.product-information-list summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: max(1.0625rem, 17px);
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.06em;
  list-style: none;
  padding: 1.4rem 0;
}

.product-information-list summary::-webkit-details-marker {
  display: none;
}

.product-information-list summary span {
  color: var(--moonarrow-color-gold);
  font-size: 1.4rem;
}

.product-information-list details[open] summary span {
  transform: rotate(45deg);
}

.product-information-list details p {
  color: var(--moonarrow-muted);
  margin: -0.3rem 0 1.4rem;
  max-width: 52rem;
}

.preview-data-notice {
  align-items: center;
  background: var(--moonarrow-color-daylight-soft);
  border: 1px solid var(--moonarrow-color-daylight-soft);
  border-radius: var(--moonarrow-radius-frame);
  color: var(--moonarrow-color-brand-ink);
  display: flex;
  font-size: 0.78rem;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  padding: 0.75rem 0.9rem;
}

.preview-data-notice > span {
  align-items: center;
  background: var(--moonarrow-blue);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: inherit;
  font-style: italic;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.preview-data-notice p {
  margin: 0;
}

.preview-data-notice code {
  color: inherit;
  font-weight: 800;
}

/* ---------- Purchase flow header (cart and checkout): the title and count at the left,
   the three purchase steps as one tracked line at the right; the current step is underlined in gold. ---------- */
.storefront-surface .purchase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1rem, 3vw, 2rem) 0 1.5rem;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
}

.storefront-surface .purchase-head h1 {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.storefront-surface .purchase-head h1 small {
  margin-left: 0.75rem;
  color: var(--moonarrow-color-storefront-muted);
  font-size: max(1rem, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.purchase-steps {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.purchase-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
}

.purchase-steps li > span {
  color: var(--moonarrow-color-gold-text);
  font-family: var(--moonarrow-font-latin);
  font-weight: 600;
}

.purchase-steps li.is-complete {
  color: var(--moonarrow-color-brand-ink-soft);
}

.purchase-steps li[aria-current="step"] {
  color: var(--moonarrow-color-brand-ink);
  box-shadow: inset 0 -2px 0 var(--moonarrow-color-gold);
}

/* Phones: the bottom purchase bar carries the running total and the next action. */
.purchase-bar {
  display: none;
}

/* sticky-action-bar.js hides the bar while the in-page action is on screen. */
.storefront-surface .purchase-bar[hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  .purchase-steps {
    display: none;
  }

  .storefront-surface .purchase-bar {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem calc(var(--moonarrow-page-gutter) * -1) calc(clamp(2rem, 3vw, 3rem) * -1);
    padding: 0.75rem var(--moonarrow-page-gutter) calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--moonarrow-color-hairline);
    box-shadow: 0 -10px 24px -18px rgba(29, 33, 54, 0.5);
  }

  .storefront-surface .purchase-bar > div {
    display: grid;
    line-height: 1.2;
  }

  .storefront-surface .purchase-bar small {
    color: var(--moonarrow-color-storefront-muted);
  }

  .storefront-surface .purchase-bar strong {
    font-family: var(--moonarrow-font-latin);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
  }

  .storefront-surface .purchase-bar .btn {
    flex: 1 1 auto;
    justify-content: space-between;
    min-height: 48px;
  }
}

/* ---------- Cart: a list of lines at the left, a sticky summary at the right ---------- */
.cart-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 24rem);
}

.cart-items-panel {
  min-width: 0;
}

/* Free-shipping progress: one line of copy over a thin gold bar. */
.cart-free-shipping {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
}

.cart-free-shipping p {
  margin: 0 0 0.7rem;
  color: var(--moonarrow-color-brand-ink);
  font-weight: 700;
}

.cart-free-shipping-bar {
  display: block;
  height: 4px;
  overflow: hidden;
  background: var(--moonarrow-color-ink-track);
}

.cart-free-shipping-bar > i {
  display: block;
  height: 100%;
  background: var(--moonarrow-color-gold);
  transform: scaleX(var(--cart-free-shipping-progress, 0));
  transform-origin: left center;
}

.cart-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
}

.cart-line-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--moonarrow-color-storefront-media-surface);
}

.cart-line-media > a {
  display: block;
  height: 100%;
}

.cart-line-media .cart-product-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.cart-line-name {
  margin: 0;
  font-size: max(1.0625rem, 17px);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.cart-line-name a {
  color: var(--moonarrow-color-brand-ink);
  text-decoration: none;
}

.cart-line-name a:hover,
.cart-line-name a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--moonarrow-color-gold);
  text-underline-offset: 0.25em;
}

.cart-line-spec,
.cart-line-unit {
  margin: 0.25rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
}

.cart-line-unit {
  font-family: var(--moonarrow-font-latin);
  letter-spacing: 0.06em;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.1rem;
}

.cart-line-total {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-latin);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .cart-line {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem;
  }

  .cart-line-total {
    grid-column: 2;
    text-align: left;
  }
}

.cart-product-summary {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 78px minmax(0, 1fr);
}

.cart-product-summary > a {
  background: #f1f4f8;
  border-radius: var(--moonarrow-radius-frame);
  display: block;
}

.cart-product-thumb {
  aspect-ratio: 1;
  display: block;
  height: 78px;
  object-fit: contain;
  padding: 0.25rem;
  width: 78px;
}

.cart-product-summary > div {
  min-width: 0;
}

.cart-product-brand {
  color: var(--moonarrow-blue);
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cart-product-summary strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 0.15rem 0;
}

.cart-product-summary strong a {
  text-decoration: none;
}

.cart-product-summary small {
  color: var(--moonarrow-muted);
  display: block;
  font-size: 0.64rem;
}

.storefront-money-cell {
  text-align: right;
}

.cart-quantity-stepper {
  display: grid;
  grid-template-columns: 40px 48px 40px;
  align-items: stretch;
  width: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 0;
}

.cart-quantity-stepper .cart-quantity-button {
  min-height: 42px;
  color: var(--moonarrow-color-brand-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cart-quantity-stepper .cart-quantity-button:hover:not(:disabled) {
  background: var(--moonarrow-color-daylight-soft);
}

.cart-quantity-stepper input[type="number"]::-webkit-inner-spin-button,
.cart-quantity-stepper input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cart-quantity-stepper input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 0;
  appearance: textfield;
  color: var(--moonarrow-color-brand-ink);
  background: transparent;
  border: 0;
  border-inline: 1px solid var(--moonarrow-color-hairline);
  border-radius: 0;
  font-family: var(--moonarrow-font-latin);
  font-weight: 700;
  text-align: center;
}

/* Remove reads as a quiet text action beside the stepper. */
.cart-remove-button {
  min-height: 44px;
  padding: 0;
  color: var(--moonarrow-color-storefront-muted);
  background: none;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--moonarrow-color-ink-control-line);
  text-underline-offset: 0.35em;
}

.cart-remove-button:hover:not(:disabled),
.cart-remove-button:focus-visible:not(:disabled) {
  color: var(--moonarrow-color-brand-ink);
  text-decoration-color: var(--moonarrow-color-gold);
}

.cart-remove-button:disabled {
  opacity: 0.45;
}

.cart-continue-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: var(--moonarrow-color-brand-ink);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.cart-continue-link:hover,
.cart-continue-link:focus-visible {
  color: var(--moonarrow-color-gold-text);
}

.cart-save-status {
  margin: 0.75rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
}

/* Summary: white with one hairline frame, sticky beside the list; the total leads in large figures. */
.cart-summary-panel {
  position: sticky;
  top: calc(var(--moonarrow-navigation-height, 82px) + 1.5rem);
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem;
  color: var(--moonarrow-color-brand-ink);
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 0;
  box-shadow: none;
}

.cart-summary-panel h2 {
  margin: 0;
  font-size: var(--moonarrow-type-label);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cart-summary-panel dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.cart-summary-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--moonarrow-color-brand-ink-soft);
}

.cart-summary-panel dd {
  margin: 0;
  font-family: var(--moonarrow-font-latin);
  font-weight: 700;
  text-align: right;
}

.cart-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 2px solid var(--moonarrow-color-brand-ink);
}

.cart-summary-total span {
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cart-summary-total strong {
  font-family: var(--moonarrow-font-latin);
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.cart-summary-panel .btn {
  justify-content: space-between;
  width: 100%;
}

.cart-summary-note {
  margin: 0;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .cart-summary-panel {
    position: static;
  }
}

.cart-secure-note {
  color: #94a4bb;
  font-size: 0.65rem;
  margin-top: 0.9rem;
  text-align: center;
}

/* ---------- Checkout: a timeline of steps at the left, a sticky order summary at the right ---------- */
.checkout-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 24rem);
}

.checkout-page [hidden] {
  display: none !important;
}

.checkout-form {
  --checkout-step-marker: 3.25rem;
  display: grid;
  gap: 0;
  min-width: 0;
}

/* Each step hangs from one vertical line; its number sits in a circle on that line. */
.checkout-form-section {
  position: relative;
  min-width: 0;
  padding: 0 0 2.25rem calc(var(--checkout-step-marker) + 1.25rem);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.checkout-form-section::before {
  position: absolute;
  top: var(--checkout-step-marker);
  bottom: 0;
  left: calc(var(--checkout-step-marker) / 2 - 0.5px);
  width: 1px;
  content: "";
  background: var(--moonarrow-color-ink-control-line);
}

.checkout-submit-section::before {
  display: none;
}

.checkout-section-heading {
  display: block;
  min-height: var(--checkout-step-marker);
  margin-bottom: 1.25rem;
  padding: 0.55rem 0 0;
  border: 0;
}

.checkout-section-heading > span {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: var(--checkout-step-marker);
  height: var(--checkout-step-marker);
  place-items: center;
  color: var(--moonarrow-color-storefront-muted);
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 50%;
  font-family: var(--moonarrow-font-latin);
  font-size: 1rem;
  font-weight: 600;
}

.checkout-form-section.is-current .checkout-section-heading > span {
  color: var(--moonarrow-color-brand-ink);
  border: 2px solid var(--moonarrow-color-gold);
}

/* A folded (finished) step shows a filled check and only the chosen option. */
.checkout-form-section.is-folded .checkout-section-heading > span {
  font-size: 0;
  color: #fff;
  background: var(--moonarrow-color-brand-ink);
  border-color: var(--moonarrow-color-brand-ink);
}

.checkout-form-section.is-folded .checkout-section-heading > span::after {
  content: "✓";
  font-size: 1.05rem;
}

.checkout-form-section.is-folded .checkout-section-heading p,
.checkout-form-section.is-folded > :not(.checkout-section-heading):not(.checkout-step-choice) {
  display: none;
}

.checkout-form-section.is-folded .checkout-section-heading {
  margin-bottom: 0.6rem;
}

.checkout-step-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  color: var(--moonarrow-color-brand-ink);
  background: var(--moonarrow-color-paper-warm-soft);
  border: 1px solid var(--moonarrow-color-hairline);
  font-weight: 700;
}

.checkout-step-choice button {
  flex: none;
  min-height: 36px;
  padding: 0;
  color: var(--moonarrow-color-gold-text);
  background: none;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.checkout-section-heading h2 {
  margin: 0;
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.checkout-section-heading p {
  margin: 0.3rem 0 0;
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
}

.checkout-choice-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Option cards: square edges; the chosen one is framed in ink with a gold bar along its foot. */
.checkout-choice {
  align-items: center;
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  min-height: 72px;
  padding: 1rem 1.15rem;
}

.checkout-choice:hover {
  border-color: var(--moonarrow-color-brand-ink);
}

.checkout-choice:has(input:checked) {
  border-color: var(--moonarrow-color-brand-ink);
  box-shadow: inset 0 0 0 1px var(--moonarrow-color-brand-ink), inset 0 -3px 0 var(--moonarrow-color-gold);
}

.checkout-choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.checkout-choice input {
  accent-color: var(--moonarrow-color-brand-ink);
  flex: 0 0 auto;
}

.checkout-choice > span {
  display: grid;
  gap: 0.15rem;
}

.checkout-choice strong {
  font-size: var(--moonarrow-type-control);
}

.checkout-choice small {
  color: var(--moonarrow-color-storefront-muted);
  font-size: var(--moonarrow-type-metadata);
  line-height: 1.4;
}

.checkout-progressive-field,
.checkout-different-receiver {
  margin-top: 1rem;
}

/* The optional note hangs on the timeline under the contact step, as a gold text toggle. */
.checkout-optional-section {
  margin: -1.25rem 0 2.25rem calc(var(--checkout-step-marker) + 1.25rem);
  padding: 0;
  background: none;
  border: 0;
}

.checkout-optional-section > summary {
  color: var(--moonarrow-color-gold-text);
  list-style: none;
}

.checkout-optional-section > summary::-webkit-details-marker {
  display: none;
}

.checkout-optional-section > summary::before {
  margin-right: 0.4rem;
  content: "＋";
}

.checkout-optional-section[open] > summary::before {
  content: "－";
}

.checkout-optional-section summary,
.checkout-summary-products summary {
  cursor: pointer;
  font-size: var(--moonarrow-type-control);
  font-weight: 700;
}

.checkout-optional-section textarea {
  margin-top: 0.85rem;
  width: 100%;
}

.checkout-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-copy-toggle {
  align-items: center;
  background: none;
  border-radius: 0;
  display: inline-flex;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0;
  font-weight: 700;
}

.checkout-copy-toggle input {
  accent-color: var(--moonarrow-color-brand-ink);
}

.checkout-payment-card {
  align-items: center;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 0;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
}

.checkout-selected-store {
  background: var(--moonarrow-soft);
  border: 1px solid var(--moonarrow-line);
  border-radius: var(--moonarrow-radius-frame);
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  padding: 0.9rem 1rem;
}

.checkout-selected-store strong {
  color: var(--moonarrow-ink);
}

.checkout-selected-store span {
  color: var(--moonarrow-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.checkout-store-map-recovery {
  background: #fff1f2;
  border: 1px solid rgba(180, 35, 45, 0.28);
  border-left: 3px solid var(--moonarrow-danger);
  border-radius: var(--moonarrow-radius-frame);
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
}

.checkout-store-map-recovery strong {
  color: var(--moonarrow-danger);
}

.checkout-store-map-recovery p {
  margin: 0.35rem 0 0;
}

.checkout-store-map-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.newebpay-transfer-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
}

.newebpay-transfer-page .store-empty-state {
  width: min(100%, 680px);
}

.store-map-return-fallback-message {
  color: var(--moonarrow-muted);
}

.store-map-return-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.checkout-payment-card > span {
  align-items: center;
  background: var(--moonarrow-color-daylight-soft);
  border-radius: 50%;
  color: var(--moonarrow-blue);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.checkout-payment-card > div {
  display: flex;
  flex-direction: column;
}

.checkout-payment-card strong {
  font-size: var(--moonarrow-type-control);
}

.checkout-payment-card small {
  color: var(--moonarrow-muted);
  font-size: 0.67rem;
}

.checkout-payment-card > b {
  align-items: center;
  background: var(--moonarrow-color-brand-ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.65rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.checkout-submit-button {
  justify-content: space-between !important;
  width: 100%;
}

/* Order summary: white with one hairline frame, sticky beside the timeline; the total leads. */
.checkout-summary {
  background: #fff;
  border: 1px solid var(--moonarrow-color-ink-control-line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--moonarrow-navigation-height, 82px) + 1.5rem);
}

.checkout-summary-heading {
  align-items: baseline;
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.checkout-summary-heading h2 {
  font-family: inherit;
  font-size: var(--moonarrow-type-label);
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0;
}

.checkout-summary-heading a {
  color: var(--moonarrow-color-gold-text);
  font-size: var(--moonarrow-type-metadata);
  font-weight: 700;
  text-underline-offset: 0.3em;
}

.checkout-summary-products {
  border-bottom: 1px solid var(--moonarrow-line);
}

.checkout-summary-products > summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0.85rem 0;
}

.checkout-summary-products > summary::-webkit-details-marker {
  display: none;
}

.checkout-summary-products > summary::after {
  color: var(--moonarrow-muted);
  content: "+";
  margin-left: 0.55rem;
}

.checkout-summary-products[open] > summary::after {
  content: "−";
}

.checkout-summary-products > summary strong {
  color: var(--moonarrow-muted);
  font-size: 0.68rem;
  margin-left: auto;
}

.checkout-product-list article {
  align-items: center;
  border-bottom: 1px solid var(--moonarrow-line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 1rem 0;
}

.checkout-product-image {
  background: #f1f4f8;
  border-radius: 8px;
  height: 58px;
  position: relative;
  width: 58px;
}

.checkout-product-image img {
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
  width: 100%;
}

.checkout-product-image > b {
  align-items: center;
  background: var(--moonarrow-ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  position: absolute;
  right: -6px;
  top: -6px;
  width: 19px;
  min-width: 20px;
}

.checkout-product-list h3 {
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0 0 0.15rem;
}

.checkout-product-list p {
  color: var(--moonarrow-muted);
  font-size: 0.64rem;
  line-height: 1.4;
  margin: 0;
}

.checkout-product-list article > strong {
  font-size: 0.75rem;
}

.checkout-price-list {
  border-bottom: 1px solid var(--moonarrow-line);
  margin: 0;
  padding: 0.8rem 0;
}

.checkout-price-list > div {
  display: flex;
  font-size: 0.72rem;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.checkout-price-list dt {
  color: var(--moonarrow-muted);
  flex-shrink: 0;
  font-weight: 500;
}

.checkout-price-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.checkout-total-row {
  align-items: baseline;
  border-top: 2px solid var(--moonarrow-color-brand-ink);
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 1rem 0 0;
}

.checkout-total-row span {
  font-size: var(--moonarrow-type-small);
  font-weight: 700;
}

.checkout-total-row strong {
  color: var(--moonarrow-color-brand-ink);
  font-family: var(--moonarrow-font-latin);
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  font-variant-numeric: tabular-nums;
}

.checkout-trust-list {
  background: var(--moonarrow-color-daylight-soft);
  border-radius: 8px;
  color: var(--moonarrow-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.62rem;
  gap: 0.6rem 1rem;
  padding: 0.65rem 0.75rem;
}

.checkout-trust-list b {
  color: var(--moonarrow-blue);
}

.checkout-validation-summary:empty {
  display: none;
}

.storefront-surface .checkout-validation-summary.validation-summary-valid {
  display: none;
}

.account-shell {
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-radius: var(--moonarrow-radius);
  box-shadow: var(--moonarrow-shadow);
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(360px, 1.15fr);
  margin: 0 auto;
  max-width: 1050px;
  min-height: 520px;
  overflow: hidden;
}

.account-story {
  background:
    radial-gradient(circle at 20% 20%, rgba(189, 145, 87, 0.14), transparent 35%),
    linear-gradient(145deg, var(--moonarrow-color-daylight-wash-top), var(--moonarrow-color-daylight-wash));
  color: var(--moonarrow-color-brand-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.account-story::before,
.account-story::after {
  border: 1px solid rgba(189, 145, 87, 0.2);
  border-radius: 50%;
  content: "";
  height: 300px;
  position: absolute;
  right: -160px;
  top: 20%;
  width: 300px;
}

.account-story::after {
  height: 180px;
  right: -80px;
  top: 32%;
  width: 180px;
}

.account-story-brand {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0.14em;
}

.account-story-brand .moonarrow-store-logo {
  height: 88px;
  max-width: 150px;
}

.account-story-copy {
  position: relative;
  z-index: 1;
}

.account-story h2 {
  font-family: inherit;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.account-story p {
  color: var(--moonarrow-color-storefront-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.account-story-features {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.account-story-features li {
  align-items: center;
  color: var(--moonarrow-color-brand-ink-soft);
  display: flex;
  font-size: 0.74rem;
  gap: 0.55rem;
}

.account-story-features li > span {
  align-items: center;
  background: rgba(189, 145, 87, 0.12);
  border: 1px solid rgba(189, 145, 87, 0.35);
  border-radius: 50%;
  color: var(--moonarrow-color-gold-text);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.account-panel {
  align-self: center;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.account-panel-header {
  margin-bottom: 1.2rem;
}

.account-panel-header h1 {
  font-family: inherit;
  font-size: var(--moonarrow-type-page-title);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}

.account-panel-header p {
  color: var(--moonarrow-muted);
  font-size: 0.8rem;
  margin: 0;
}

.account-form {
  display: grid;
  gap: 0.75rem;
  max-width: none;
}

.account-external-login-form {
  margin-bottom: 1rem;
}

.account-google-login-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  color: var(--moonarrow-ink);
  display: flex;
  font-weight: 700;
  gap: 0.7rem;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.account-google-login-button:hover,
.account-google-login-button:focus-visible {
  background: var(--moonarrow-soft);
  border-color: #c5d1df;
  color: var(--moonarrow-ink);
}

.account-google-mark {
  flex: 0 0 1.2rem;
  height: 1.2rem;
  width: 1.2rem;
}

.account-login-divider {
  align-items: center;
  color: var(--moonarrow-muted);
  display: flex;
  font-size: 0.72rem;
  gap: 0.8rem;
  margin: 0.9rem 0;
  text-align: center;
}

.account-login-divider::before,
.account-login-divider::after {
  background: var(--moonarrow-line);
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.account-form .btn-primary {
  margin-top: 0.5rem;
  width: 100%;
}

.account-form-footer {
  color: var(--moonarrow-muted);
  font-size: 0.75rem;
  margin: 1.25rem 0 0;
  text-align: center;
}

.account-form-footer a,
.account-help-links a {
  color: var(--moonarrow-blue);
  font-weight: 700;
}

.account-help-links {
  align-items: center;
  display: flex;
  font-size: 0.72rem;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.auth-verification-warning {
  background: #fff6df;
  border: 1px solid #f0d99b;
  border-radius: var(--moonarrow-radius-frame);
  color: #745915;
  margin-bottom: 0.8rem;
  padding: 0.9rem;
}

.auth-verification-warning p {
  font-size: 0.72rem;
  margin: 0.3rem 0 0.65rem;
}

.auth-verification-actions,
.auth-form-actions {
  display: flex;
  gap: 0.6rem;
}

.auth-verification-actions .btn,
.auth-form-actions .btn {
  flex: 1 1 0;
}

.member-dashboard-header,
.order-page-header,
.legal-page-header {
  background:
    radial-gradient(circle at 85% 10%, rgba(29, 33, 54, 0.2), transparent 30%),
    var(--moonarrow-ink);
  border-radius: var(--moonarrow-radius);
  color: #fff;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.member-dashboard-header h1,
.order-page-header h1,
.legal-page-header h1 {
  font-family: inherit;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0;
}

.member-dashboard-header p,
.order-page-header p,
.legal-page-header p {
  color: #aebdd0;
  margin: 0.75rem 0 0;
  max-width: 42rem;
}

.member-dashboard-header > .btn,
.order-page-header > .btn,
.legal-page-header > .btn {
  margin-top: 1.25rem;
}

.storefront-surface .member-dashboard-header > .btn-secondary,
.storefront-surface .order-page-header > .btn-secondary,
.storefront-surface .legal-page-header > .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
}

.storefront-surface .member-dashboard-header > .btn-secondary:hover,
.storefront-surface .member-dashboard-header > .btn-secondary:focus-visible,
.storefront-surface .order-page-header > .btn-secondary:hover,
.storefront-surface .order-page-header > .btn-secondary:focus-visible,
.storefront-surface .legal-page-header > .btn-secondary:hover,
.storefront-surface .legal-page-header > .btn-secondary:focus-visible {
  background: var(--moonarrow-blue);
  border-color: var(--moonarrow-blue);
  color: #fff;
}

.member-dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.member-profile-card,
.member-action-card,
.order-card,
.legal-card {
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-radius: var(--moonarrow-radius-frame);
  padding: var(--moonarrow-panel-padding);
}

.member-profile-card h2,
.member-action-card h2,
.order-card h2 {
  font-size: var(--moonarrow-type-section-title);
  margin-bottom: 1rem;
  font-weight: 700;
}

.order-payment-reversal-notice {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--moonarrow-line);
  border-left: 3px solid #6b7a8c;
  border-radius: var(--moonarrow-radius-frame);
  background: #f7f9fb;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4a5666;
}

.member-profile-list {
  margin: 0;
}

.member-profile-list > div {
  border-bottom: 1px solid var(--moonarrow-line);
  padding: 0.75rem 0;
}

.member-profile-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.member-profile-empty {
  color: var(--moonarrow-muted);
  font-weight: 500;
}

.member-profile-list dt {
  color: var(--moonarrow-muted);
  font-size: 0.65rem;
}

.member-profile-list dd {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.member-action-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-action-link {
  border: 1px solid var(--moonarrow-line);
  border-radius: var(--moonarrow-radius-frame);
  display: flex;
  flex-direction: column;
  min-height: 130px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.member-action-link:hover,
.member-action-link:focus-visible {
  border-color: var(--moonarrow-blue);
  transform: translateY(-2px);
}

.member-action-icon {
  align-items: center;
  color: var(--moonarrow-blue);
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.member-action-icon-svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 24px;
}

.member-action-link > strong {
  font-size: var(--moonarrow-type-control);
  font-weight: 700;
  margin-top: auto;
}

.member-action-link > small {
  color: var(--moonarrow-muted);
  font-size: var(--moonarrow-type-small);
}

.storefront-surface .data-table {
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-collapse: separate;
  border-radius: var(--moonarrow-radius-frame);
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.storefront-surface .data-table th {
  background: var(--moonarrow-color-daylight-soft);
  border-bottom: 1px solid var(--moonarrow-line);
  color: var(--moonarrow-muted);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 0.8rem;
}

.storefront-surface .data-table td {
  border-bottom: 1px solid var(--moonarrow-line);
  font-size: 0.75rem;
  padding: 0.9rem 0.8rem;
  vertical-align: middle;
}

.storefront-surface .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-thumb,
.order-thumb-placeholder {
  align-items: center;
  background: #eff3f8;
  border-radius: 8px;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  object-fit: contain;
  padding: 0.2rem;
  width: 58px;
}

.order-state {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.order-state-light {
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.order-state-light-complete {
  background: var(--moonarrow-success);
}

.order-state-light-pending {
  background: #d49b27;
}

.order-state-critical {
  color: #b4232d;
  font-weight: 800;
}

.order-state-light-critical {
  background: #d32735;
  box-shadow: 0 0 0 3px rgba(211, 39, 53, 0.14);
}

.order-store-reselection-alert {
  align-items: center;
  background: #fff3f3;
  border: 2px solid #d83b46;
  border-radius: var(--moonarrow-radius-frame);
  color: #6f1f26;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.65rem);
}

.order-store-reselection-alert .section-kicker {
  color: #b4232d;
  margin-bottom: 0.45rem;
}

.order-store-reselection-alert h2 {
  color: #8f1f28;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin: 0 0 0.5rem;
}

.order-store-reselection-alert p {
  margin: 0;
}

.order-store-reselection-actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-store-reselection-actions [data-store-reselection-status] {
  color: #8f1f28;
  font-size: 0.75rem;
  max-width: 24rem;
}

.order-next-action {
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-left: 4px solid #73849b;
  border-radius: var(--moonarrow-radius-frame);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  margin-bottom: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.65rem);
}

.order-next-action-success {
  background: #f1f9f5;
  border-left-color: var(--moonarrow-success);
}

.order-next-action-warning,
.order-next-action-attention {
  background: #fff9ea;
  border-left-color: #c48720;
}

.order-next-action-danger {
  background: #fff1f2;
  border-left-color: var(--moonarrow-danger);
}

.order-next-action-copy h2 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  margin: 0 0 0.45rem;
}

.order-next-action-copy > p:last-child,
.order-next-action-body > p:last-child {
  margin-bottom: 0;
}

.order-next-action-body {
  display: grid;
  gap: 1rem;
}

.order-next-action-primary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.order-bank-details {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.order-bank-details > div {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.order-bank-details dt {
  color: var(--moonarrow-muted);
  font-size: 0.62rem;
}

.order-bank-details dd {
  font-size: 0.8rem;
  font-weight: 750;
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.order-next-action-form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-next-action-form .btn {
  min-height: 46px;
}

.order-history-disclosure {
  border-top: 1px solid var(--moonarrow-line);
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.order-history-disclosure > summary {
  color: var(--moonarrow-blue);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
}

.order-detail-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.34fr);
}

.order-meta-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-meta-grid > div {
  background: var(--moonarrow-color-daylight-soft);
  border-radius: 8px;
  padding: 0.8rem;
}

.order-meta-grid span {
  color: var(--moonarrow-muted);
  display: block;
  font-size: 0.64rem;
}

.order-meta-grid strong {
  font-size: 0.8rem;
}

.order-cancellation-area {
  border-top: 1px solid var(--moonarrow-line);
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.order-cancellation-area h3 {
  font-size: 0.92rem;
  margin: 0;
}

.order-cancellation-status {
  background: var(--moonarrow-color-daylight-soft);
  border-left: 3px solid #73849b;
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
}

.order-cancellation-status p,
.order-cancellation-status time {
  font-size: 0.72rem;
  margin: 0;
}

.order-cancellation-status time {
  color: var(--moonarrow-muted);
}

.order-cancellation-status-pending {
  background: #fff8e8;
  border-left-color: #c48720;
}

.order-cancellation-status-completed {
  background: #edf8f2;
  border-left-color: #25805a;
}

.order-cancellation-status-rejected {
  background: #fff1f2;
  border-left-color: var(--moonarrow-danger);
}

.order-cancellation-resolution {
  border-top: 1px solid rgba(9, 33, 63, 0.12);
  margin-top: 0.25rem !important;
  padding-top: 0.5rem;
}

.order-cancellation-request > summary {
  cursor: pointer;
  list-style: none;
  width: 100%;
}

.order-detail-back-link {
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
}

.order-cancellation-request > summary::-webkit-details-marker {
  display: none;
}

.order-cancellation-form {
  background: var(--moonarrow-color-daylight-soft);
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.8rem;
}

.order-cancellation-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.order-cancellation-other {
  display: grid;
  gap: 0.45rem;
}

.order-cancellation-other[hidden] {
  display: none;
}

.order-cancellation-other .form-text {
  margin: 0;
}

.remittance-panel {
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-left: 3px solid var(--moonarrow-blue);
  border-radius: var(--moonarrow-radius-frame);
  margin-top: 1rem;
  padding: 1.15rem;
}

.legal-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 240px minmax(0, 1fr);
}

.legal-navigation-shell {
  min-width: 0;
  align-self: start;
}

.legal-nav {
  align-self: start;
  background: #fff;
  border: 1px solid var(--moonarrow-line);
  border-radius: var(--moonarrow-radius-frame);
  display: grid;
  padding: 0.7rem;
  position: sticky;
  top: 100px;
}

.legal-nav a {
  border-radius: 8px;
  color: #536278;
  font-size: 0.75rem;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: var(--moonarrow-color-daylight-soft);
  color: var(--moonarrow-blue);
}

.legal-card {
  padding: var(--moonarrow-panel-padding);
}

.legal-card section {
  scroll-margin-top: 120px;
  border-bottom: 1px solid var(--moonarrow-line);
  padding: 0 0 1.1rem;
}

.legal-card section + section {
  padding-top: 1.1rem;
}

.legal-card section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.legal-card p,
.legal-card li {
  color: var(--moonarrow-muted);
  font-size: 0.8rem;
  line-height: 1.85;
}

.friendly-error-page {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 50vh;
  padding: 4rem 1rem;
  text-align: center;
}

.friendly-error-label {
  color: var(--moonarrow-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.friendly-error-page h1 {
  font-family: inherit;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

/* ---------- Site footer: white editorial ending — logo, tracked column kickers, an outlined wordmark and a paper bar ---------- */
.site-footer {
  padding: 0;
  overflow: hidden;
  color: var(--moonarrow-color-footer-text);
  background: var(--moonarrow-color-footer-surface);
  border-top: 1px solid var(--moonarrow-color-footer-line);
  box-shadow: none;
}

.site-footer-grid {
  display: grid;
  width: 100%;
  max-width: var(--moonarrow-shell-max);
  grid-template-columns: minmax(15rem, 1.4fr) repeat(3, minmax(9rem, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--moonarrow-shell-gutter);
}

.site-footer-brand > a {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
}

.site-footer-brand > a:focus-visible {
  outline: 3px solid var(--moonarrow-color-brand-blue);
  outline-offset: 4px;
}

/* The footer shows the untouched square lockup, so the cropped emblem frame and the
   duplicated HTML wordmark used in the header are switched off here. */
.site-footer-brand .store-logo-mark {
  --store-logo-height: 9.25rem;
  width: var(--store-logo-height);
}

.site-footer-brand .store-logo-mark .moonarrow-store-logo {
  position: static;
  width: 100%;
  height: auto;
}

.site-footer-brand .store-logo-wordmark {
  display: none;
}

.site-footer-brand p {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: var(--moonarrow-color-footer-muted);
  font-size: var(--moonarrow-type-metadata);
  line-height: 1.8;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.15rem;
}

.site-footer nav h2 {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  color: var(--moonarrow-color-footer-text);
  border-bottom: 1px solid var(--moonarrow-color-hairline);
  font-size: max(0.9375rem, 15px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-footer-kicker {
  color: var(--moonarrow-color-gold-text);
  font-family: var(--moonarrow-font-latin);
  font-size: var(--moonarrow-type-kicker);
  font-weight: 700;
  letter-spacing: var(--moonarrow-tracking-kicker);
  text-transform: uppercase;
}

/* One outlined wordmark closes the page (shared .outline-display); this block only sizes and places it. */
.site-footer-wordmark {
  overflow: hidden;
  padding-inline: var(--moonarrow-shell-gutter);
  font-size: clamp(3rem, 12.5vw, 12.5rem);
  text-align: center;
}

.site-footer nav a,
.footer-logout {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  padding: 0;
  color: var(--moonarrow-color-footer-muted);
  background: transparent;
  border: 0;
  font-size: max(0.875rem, 14px);
  line-height: 1.45;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--moonarrow-color-brand-blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.site-footer nav a:focus-visible {
  outline: 2px solid var(--moonarrow-color-brand-blue);
  outline-offset: 2px;
}

/* A full-bleed paper bar behind the centered container, without an extra wrapper element. */
.site-footer-bottom {
  display: flex;
  width: 100%;
  max-width: var(--moonarrow-shell-max);
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
  padding: 0.75rem var(--moonarrow-shell-gutter);
  color: var(--moonarrow-color-storefront-muted);
  background: var(--moonarrow-color-daylight-soft);
  border: 0;
  box-shadow: 0 0 0 100vmax var(--moonarrow-color-daylight-soft);
  clip-path: inset(0 -100vmax);
  font-size: var(--moonarrow-type-micro);
  letter-spacing: 0.04em;
}

.site-footer-bottom .footer-logout {
  color: var(--moonarrow-color-brand-ink);
  font-size: var(--moonarrow-type-micro);
  text-decoration: underline;
  text-decoration-color: var(--moonarrow-color-gold);
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.site-footer-bottom .footer-logout:hover,
.site-footer-bottom .footer-logout:focus-visible {
  color: var(--moonarrow-color-gold-text);
}

.site-footer-bottom .footer-logout:focus-visible {
  outline: 2px solid var(--moonarrow-color-brand-ink);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .site-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-brand {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 1.5rem;
  }

  .site-footer-brand p {
    margin: 0;
  }

  .site-footer-brand .store-logo-mark {
    --store-logo-height: 7.5rem;
  }
}

@media (max-width: 575.98px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .site-footer-brand {
    display: block;
  }

  .site-footer-brand p {
    margin-top: 0.75rem;
  }

  .site-footer-brand .store-logo-mark {
    --store-logo-height: 7rem;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    padding-block: 1rem;
  }
}

@media (max-width: 1199.98px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .cart-column-specification {
    width: 17%;
  }
}

@media (max-width: 991.98px) {
  .product-detail-layout,
  .product-story-grid,
  .cart-layout,
  .checkout-layout,
  .order-detail-layout {
    grid-template-columns: 1fr;
  }

  .order-store-reselection-alert {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .order-store-reselection-actions,
  .order-store-reselection-actions form,
  .order-store-reselection-actions .btn {
    width: 100%;
  }

  .order-next-action {
    grid-template-columns: 1fr;
  }

  .order-next-action-primary {
    justify-content: stretch;
  }

  .order-next-action-primary .btn {
    width: 100%;
  }

  .storefront-surface .member-order-table td > .order-handling-badge {
    justify-self: start;
  }

  .product-detail-media,
  .product-detail-info {
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
  }


  .cart-summary-panel,
  .checkout-summary {
    position: static;
  }

  .checkout-summary {
    order: -1;
  }

  .account-shell {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .site-main {
    padding-top: 1.6rem;
  }

  .storefront-page-header {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .cart-page .table-scroll {
    overflow: visible;
  }

  .cart-table,
  .cart-table tbody {
    background: transparent;
    border: 0;
    display: block;
    width: 100%;
  }

  .cart-table colgroup {
    display: none;
  }

  .cart-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .cart-table tbody {
    display: grid;
    gap: 0;
  }

  .cart-table tbody tr {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    overflow: hidden;
    padding: 1rem var(--moonarrow-panel-padding);
    border-bottom: 1px solid var(--moonarrow-color-storefront-line);
    position: relative;
  }

  .cart-table td {
    align-items: center;
    border-bottom: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    padding: 0.5rem 0;
    text-align: left;
  }

  .cart-table td::before {
    color: var(--moonarrow-muted);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 700;
  }

  .cart-table .cart-product-cell {
    display: block;
    padding-top: 0;
  }

  .cart-table :is(.cart-product-cell, .cart-remove-cell)::before {
    display: none;
  }

  .cart-table .cart-product-cell {
    padding-right: 44px;
  }

  .cart-table .cart-remove-cell {
    border: 0;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: block;
    padding: 0;
  }

  .cart-product-summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-product-thumb {
    height: 72px;
    width: 72px;
  }

  .checkout-field-grid {
    grid-template-columns: 1fr;
  }

  .checkout-choice-grid {
    grid-template-columns: 1fr;
  }

  .checkout-choice {
    min-height: 60px;
    padding: 0.75rem 0.85rem;
  }

  .checkout-summary {
    padding: 1rem;
  }


  .order-bank-details,
  .order-next-action-form {
    grid-template-columns: 1fr;
  }

  .order-next-action-form .btn {
    width: 100%;
  }

  .checkout-field-wide {
    grid-column: auto;
  }

  .account-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .account-shell .account-story {
    display: none;
  }

  .controller-member.action-register .account-panel {
    padding: clamp(1.35rem, 6vw, 2rem);
  }

  .controller-member.action-register .account-panel-header {
    margin-bottom: 1.25rem;
  }

  .account-shell-login .account-panel,
  .account-shell-recovery .account-panel {
    padding: clamp(1.35rem, 6vw, 2rem);
  }

  .account-shell-login .account-panel-header,
  .account-shell-recovery .account-panel-header {
    margin-bottom: 1.25rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 0.2rem;
    overscroll-behavior-inline: contain;
    overflow-x: auto;
    position: static;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--moonarrow-line);
    border-radius: 0;
    padding: 0 0 0.25rem;
  }

  .legal-nav::-webkit-scrollbar {
    display: none;
  }

  .legal-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }


}

/* Customer-facing delivery progress intentionally excludes provider diagnostic data. */
.order-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.order-card-heading .section-kicker {
  margin: 0 0 0.4rem;
}

.order-card-heading h2 {
  margin: 0;
}

.order-status-pill {
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
}

.order-status-pill.order-state-light-complete {
  background: #e5f7ef;
  color: #15724a;
}

.order-status-pill.order-state-light-review {
  background: #eaf1ff;
  color: #215fc8;
}

.order-status-pill.order-state-light-pending {
  background: #fff3dd;
  color: #9a6009;
}

.order-shipment-card {
  border-left: 3px solid var(--moonarrow-blue);
  margin-top: 1rem;
}

.order-shipment-intro {
  color: #33445e;
  line-height: 1.75;
  margin: 1rem 0;
}

.order-shipment-info {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.order-shipment-info > div {
  border-top: 1px solid var(--moonarrow-line);
  min-width: 0;
  padding: 0.7rem 0.75rem 0.7rem 0;
}

.order-shipment-info > div:nth-child(even) {
  padding-left: 0.75rem;
}

.order-shipment-info .order-shipment-info-wide {
  grid-column: 1 / -1;
  padding-left: 0;
}

.order-shipment-info dt {
  color: var(--moonarrow-muted);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.order-shipment-info dd {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0.24rem 0 0;
  overflow-wrap: anywhere;
}

.shipment-timeline {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.shipment-timeline-item {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 14px minmax(0, 1fr);
  min-height: 74px;
  position: relative;
}

.shipment-timeline-item::before {
  background: var(--moonarrow-line);
  bottom: 0;
  content: "";
  left: 6px;
  position: absolute;
  top: 13px;
  width: 2px;
}

.shipment-timeline-item:last-child::before {
  display: none;
}

.shipment-timeline-marker {
  background: #fff;
  border: 3px solid #b9c5d4;
  border-radius: 50%;
  height: 14px;
  margin-top: 2px;
  position: relative;
  width: 14px;
  z-index: 1;
}

.shipment-timeline-item-complete .shipment-timeline-marker {
  background: var(--moonarrow-blue);
  border-color: var(--moonarrow-blue);
}

.shipment-timeline-item strong {
  font-size: 0.84rem;
}

.shipment-timeline-item p {
  color: var(--moonarrow-muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 0.25rem 0;
}

.shipment-timeline-item time {
  color: var(--moonarrow-muted);
  display: block;
  font-size: 0.68rem;
}

@media (max-width: 767.98px) {
  .order-card-heading {
    flex-direction: column;
  }

  .order-shipment-info {
    grid-template-columns: 1fr;
  }

  .order-shipment-info > div:nth-child(even) {
    padding-left: 0;
  }
}

@media (max-width: 479.98px) {
  .audio-product-facts {
    grid-template-columns: 1fr;
  }

  .audio-product-facts > div:nth-child(odd),
  .audio-product-facts > div:nth-child(even) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .product-price-row {
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Phones: a smaller step marker keeps the timeline narrow. */
  .checkout-form {
    --checkout-step-marker: 2.5rem;
  }

  .checkout-form-section {
    padding-left: calc(var(--checkout-step-marker) + 0.9rem);
  }

  .checkout-product-list article {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .checkout-product-list article > strong {
    grid-column: 2;
  }

  .member-action-grid,
  .order-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .storefront-surface .page-section {
    padding-inline: 1rem;
  }

  .cart-continue-link {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
  }

  .storefront-surface .cart-quantity-stepper .cart-quantity-button,
  .storefront-surface .cart-quantity-stepper input[type="number"],
  .storefront-surface .cart-remove-button {
    min-height: 44px;
    min-width: 44px;
  }

  .storefront-surface .cart-quantity-stepper input[type="number"] {
    height: 44px;
  }
}

/* Issue #77: shared storefront hierarchy and narrow-screen discovery cues. */
.storefront-surface .site-main {
  width: 100%;
  max-width: var(--moonarrow-content-max);
  padding-inline: var(--moonarrow-page-gutter);
}

.storefront-surface :is(
  .brand-content-hero h1,
  .storefront-page-header h1,
  .account-panel-header h1,
  .member-dashboard-header h1,
  .order-page-header h1,
  .legal-page-header h1
) {
  font-size: var(--moonarrow-type-page-title);
  line-height: 1.12;
  text-wrap: balance;
}

@media (max-width: 767.98px) {
  .storefront-surface :is(.catalog-category-nav, .legal-nav) {
    scroll-padding-inline: 0.25rem 2rem;
  }

  .storefront-surface .legal-nav {
    padding-right: 2rem;
  }
}

/* Compact density refinement: reduce containers and media frames, never text/control floors. */
.site-main {
  min-height: 0;
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.storefront-surface .page-section {
  margin-bottom: var(--moonarrow-section-gap);
}



.cart-table th {
  padding: 0.65rem 0.75rem;
}

.cart-table td {
  padding: 0.7rem 0.75rem;
}

.cart-product-summary {
  gap: 0.6rem;
  grid-template-columns: 64px minmax(0, 1fr);
}

.cart-product-thumb {
  width: 64px;
  height: 64px;
}

.checkout-summary-products > summary,
.checkout-product-list article {
  padding-block: 0.65rem;
}

.account-shell {
  min-height: 28.75rem;
}

.account-story,
.account-panel {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.account-story h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.account-story-features {
  gap: 0.5rem;
  margin-top: 1rem;
}

.member-action-link {
  min-height: 6rem;
  padding: 1rem;
}

.legal-layout {
  gap: clamp(1rem, 2vw, 1.25rem);
}

.legal-card section {
  padding-bottom: 0.85rem;
}

.legal-card section + section {
  padding-top: 0.85rem;
}

.friendly-error-page {
  min-height: auto;
  padding: 2rem 1rem;
}

.friendly-error-page h1 {
  font-size: var(--moonarrow-type-page-title);
}

@media (max-width: 767.98px) {
  .site-main {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .cart-product-summary {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* Issue #82: cart-only tablet cards prevent the 768px table overflow without
   changing other tablet layouts. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .cart-page .table-scroll {
    overflow: visible;
  }

  .cart-table,
  .cart-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
  }

  .cart-table colgroup,
  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: grid;
    gap: 0;
  }

  .cart-table tbody tr {
    display: block;
    min-width: 0;
    padding: 1rem var(--moonarrow-panel-padding);
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--moonarrow-color-storefront-line);
    position: relative;
  }

  .cart-table td {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    padding: 0.5rem 0;
    border-bottom: 0;
    text-align: left;
  }

  .cart-table td::before {
    color: var(--moonarrow-color-storefront-muted);
    content: attr(data-label);
    font-size: var(--moonarrow-type-micro);
    font-weight: 700;
  }

  .cart-table .cart-product-cell {
    display: block;
    padding-top: 0;
  }

  .cart-table :is(.cart-product-cell, .cart-remove-cell)::before {
    display: none;
  }

  .cart-table .cart-product-cell {
    padding-right: 44px;
  }

  .cart-table .cart-remove-cell {
    border: 0;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: block;
    padding: 0;
  }
}

/* Issue #82: narrow-surface touch targets retain content width. */
@media (max-width: 767.98px) {
  .account-help-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

/* Mobile catalog: the live-search script moves the filter form into the drawer. With JavaScript the page
   paints in that final layout from the start (inline form hidden, drawer trigger shown), so the move never
   shifts the product grid. Without JavaScript the inline form stays and the trigger is never shown. */
html:not(.moonarrow-js) body.storefront-surface .moonarrow-filter-trigger {
  display: none;
}

@media (max-width: 767.98px) {
  html.moonarrow-js .storefront-surface .catalog-filter[data-product-live-search]:not(.is-moonarrow-inline-filter):not(.moonarrow-filter-drawer .catalog-filter) {
    display: none;
  }
}

/* Back-to-top control (motion states live in system/moonarrow-motion.css). */
.storefront-surface .moonarrow-back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1040;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: var(--moonarrow-color-brand-ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(7, 16, 31, 0.22);
  cursor: pointer;
}

.storefront-surface .moonarrow-back-to-top:hover,
.storefront-surface .moonarrow-back-to-top:focus-visible {
  background: var(--moonarrow-color-brand-blue-dark);
}

.storefront-surface .moonarrow-back-to-top:focus-visible {
  outline: 3px solid rgba(29, 33, 54, 0.45);
  outline-offset: 3px;
}

.storefront-surface .moonarrow-back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Storefront shared components =====
   Structure only. Every transition / animation for these lives in system/moonarrow-motion.css,
   and docs/agents/motion-system.md lists which module owns each behaviour. */

/* Specification price: inline-block so the price-change rise can move it. */
.storefront-surface #SelectedSpecificationPrice {
  display: inline-block;
}

/* Product main image: enlarge trigger and hover magnifier pane. */
.storefront-surface .product-detail-main-frame:has(.is-moonarrow-enlargeable) {
  cursor: zoom-in;
}

.storefront-surface .product-zoom-trigger {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--moonarrow-color-brand-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--moonarrow-color-storefront-line);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(7, 16, 31, 0.12);
  cursor: pointer;
}

html:not(.moonarrow-js) .storefront-surface .product-zoom-trigger {
  display: none;
}

.storefront-surface .product-zoom-trigger:hover,
.storefront-surface .product-zoom-trigger:focus-visible {
  color: #fff;
  background: var(--moonarrow-color-brand-ink);
}

.storefront-surface .product-zoom-trigger:focus-visible {
  outline: 3px solid rgba(29, 33, 54, 0.45);
  outline-offset: 2px;
}

.storefront-surface :is(.product-zoom-trigger, .moonarrow-lightbox) svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-surface .moonarrow-magnifier {
  position: absolute;
  z-index: 2;
  background-color: var(--moonarrow-color-media-surface);
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}

.storefront-surface .moonarrow-magnifier.is-active {
  opacity: 1;
}

/* Content images that open in the shared viewer. */
.storefront-surface img.is-moonarrow-enlargeable {
  cursor: zoom-in;
}

.storefront-surface img.is-moonarrow-enlargeable[role="button"]:focus-visible {
  outline: 3px solid rgba(29, 33, 54, 0.55);
  outline-offset: 3px;
}

/* Shared image viewer (one <dialog> in the layout). */
html.is-moonarrow-lightbox-open {
  overflow: hidden;
  padding-right: var(--moonarrow-scrollbar-compensation, 0px);
}

.moonarrow-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: #fff;
  background: rgba(5, 12, 22, 0.95);
  border: 0;
  overscroll-behavior: contain;
}

.moonarrow-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.moonarrow-lightbox::backdrop {
  background: transparent;
}

.moonarrow-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}

.moonarrow-lightbox-counter {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.moonarrow-lightbox-tools {
  display: flex;
  gap: 0.5rem;
}

.moonarrow-lightbox-button,
.moonarrow-lightbox-nav {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
}

.moonarrow-lightbox-button:hover,
.moonarrow-lightbox-nav:hover,
.moonarrow-lightbox-button:focus-visible,
.moonarrow-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.moonarrow-lightbox-button:focus-visible,
.moonarrow-lightbox-nav:focus-visible {
  outline: 3px solid rgba(29, 33, 54, 0.85);
  outline-offset: 2px;
}

.moonarrow-lightbox-button[aria-pressed="true"] .moonarrow-lightbox-zoom-plus {
  display: none;
}

.moonarrow-lightbox-stage {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 7vw, 104px) max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.moonarrow-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.moonarrow-lightbox-stage.is-zoomed {
  display: block;
  padding: 0;
  overflow: auto;
  touch-action: auto;
  cursor: grab;
}

.moonarrow-lightbox-stage.is-zoomed .moonarrow-lightbox-image {
  max-width: none;
  max-height: none;
  margin: auto;
  cursor: zoom-out;
}

.moonarrow-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  margin-top: -24px;
}

.moonarrow-lightbox-nav.is-prev {
  left: max(12px, env(safe-area-inset-left));
}

.moonarrow-lightbox-nav.is-next {
  right: max(12px, env(safe-area-inset-right));
}

.moonarrow-lightbox-nav[hidden] {
  display: none;
}

@media (max-width: 575.98px) {
  .moonarrow-lightbox-stage {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .moonarrow-lightbox-nav {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    margin-top: 0;
  }
}
