/* ---------- fonts ---------- */
/* Funnel Display (SIL Open Font License), self-hosted: no request leaves the
   site for type. One variable file per script covers weights 300 to 800. */
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/funnel-display-latin.woff2) format("woff2");
  unicode-range: U+00??, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/static/fonts/funnel-display-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
/* Palette and weights follow the linkwup design language (ui/css/cr.css):
   warm off-white, restrained dark text, lemon reserved for primary actions
   and selection, Funnel Display. Light only. */
:root {
  color-scheme: light;

  --bg:        #FAFAF9;
  --card:      #FFFFFF;
  --fg:        #243044;
  --fg-muted:  #657184;
  --rule:      #E3E4DF;
  --field-line:#8B8E84;
  --accent:    #4C4938;
  --accent-hover: #302E24;
  --highlight: #F5E69A;
  --highlight-hover: #EDDB82;
  --on-highlight: #403713;
  --accent-soft: #FAF1CE;
  --accent-tint: #FFFAE7;
  --accent-line: #E5CE80;
  --hover:     rgba(76, 73, 56, .06);
  --danger:    #8B2C2C;
  --info:      #2C5F8B;

  --sans:  "Funnel Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);

  --w-body: 400;
  --w-light: 500;
  --w-emph: 500;
  --w-strong: 600;

  --step-0: 1rem;
  --step-1: 1.0625rem;
  --step-2: 1.375rem;
  --step-3: 2rem;
  --step-4: 3.75rem;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 14px;
  --radius-sm: 9px;
  --ring: 0 0 0 3px rgba(221, 190, 76, .25);
  --shadow: 0 1px 2px rgba(46, 48, 47, .04), 0 10px 30px rgba(46, 48, 47, .04);
  --shadow-hover: 0 2px 4px rgba(46, 48, 47, .04), 0 16px 36px rgba(46, 48, 47, .09);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --measure: 64ch;
  --shell:   100rem;
  --gutter:  clamp(1rem, 2.2vw, 2.25rem);
}

/* Quiet, consistent storefront surface: clearer hierarchy with less chrome. */
:root {
  --bg: #f7f7f5;
  --card: #fff;
  --fg: #20211f;
  --fg-muted: #6d706b;
  --rule: #e5e6e2;
  --accent: #252621;
  --accent-hover: #10110f;
  --highlight: #d9e7b5;
  --highlight-hover: #cbdc9b;
  --on-highlight: #202818;
  --accent-soft: #eff2e8;
  --accent-tint: #f5f6f0;
  --accent-line: #dfe4d5;
  --hover: rgba(32, 33, 31, .055);
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(24, 25, 23, .035), 0 8px 24px rgba(24, 25, 23, .035);
  --shadow-hover: 0 2px 4px rgba(24, 25, 23, .05), 0 14px 32px rgba(24, 25, 23, .09);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }

/* ---------- base ---------- */
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: var(--w-body);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  caret-color: var(--accent);
}
::selection { background: var(--highlight); color: var(--on-highlight); }
html { scrollbar-color: #CFD0C7 transparent; scrollbar-width: thin; }
html, body { max-width: 100%; overflow-x: clip; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: var(--w-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: var(--w-strong); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
strong, b { font-weight: var(--w-strong); }

p { max-width: var(--measure); }

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .15s ease, color .15s ease; }
a:hover { border-bottom-color: var(--accent); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-3) 0; }

/* ---------- shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main {
  flex: 1;
  padding-block: var(--space-2) var(--space-5);
}

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding-block: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.25rem;
  font-weight: var(--w-strong);
  letter-spacing: -0.03em;
  border: 0;
  margin-right: var(--space-2);
}
.brand__store-name { font-size: 1.05rem; letter-spacing: 0; }
.store-announcement {
  padding: .55rem 1rem;
  background: var(--accent-tint);
  color: var(--fg);
  border-bottom: 1px solid var(--accent-line);
  text-align: center;
  font-size: .875rem;
}
.storefront-content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.storefront-content-section__copy { display: grid; gap: 1rem; justify-items: start; }
.storefront-content-section__copy h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.storefront-content-section__copy p { max-width: 60ch; color: var(--fg-muted); }
.storefront-content-section__image { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); }
.brand:hover { border: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  font-size: .875rem;
}
.header-actions { margin-left: auto; }
.nav a:not(.icon-link) {
  display: inline-block;
  border: 0;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  transition: color .15s ease, background .15s ease;
}
.nav a:not(.icon-link):hover { color: var(--fg); background: var(--hover); }

/* Icon buttons: account and cart. */
.icon-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--fg);
  transition: background .15s ease;
}
.icon-link:hover { background: var(--hover); border: 0; }
.icon-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-link__count { display: none; }
.cart-link__count:not(:empty) {
  display: block;
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.1rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--on-highlight);
  font-size: .6875rem;
  font-weight: var(--w-strong);
  line-height: 1.1rem;
  text-align: center;
}

/* ---------- header: search ---------- */
.site-search {
  display: flex;
  align-items: center;
  flex: 1 1 14rem;
  max-width: 28rem;
  margin: 0 auto;
  min-width: 0;
  position: relative;
}
.site-search input[type="search"] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  font-size: .875rem;
  color: var(--fg);
  padding: 6px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.site-search__submit {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-left: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--on-highlight);
  cursor: pointer;
  transition: background .15s ease, transform .2s var(--ease);
}
.site-search__submit:hover { background: var(--highlight-hover); transform: scale(1.04); }
.site-search__submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.site-search input[type="search"]::placeholder { color: #6B7585; }
.site-search input[type="search"]:focus,
.site-search input[type="search"]:focus-visible {
  background: var(--card);
  border-color: var(--accent-line);
  box-shadow: var(--ring);
  outline: 0;
}

/* ---------- header: dropdown menus ---------- */
/* Open on hover and on keyboard focus; the script in layout.gohtml adds tap
   support. The panel touches its trigger (padding bridge) so moving the
   pointer down never closes it. */
.menu { position: relative; }
.menu__trigger, .menu__option {
  background: none;
  border: 0;
  font: inherit;
}
.menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: .8125rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.menu__trigger:hover,
.menu:focus-within .menu__trigger,
.menu.is-open .menu__trigger { background: var(--hover); }
.menu__chevron { transition: transform .25s var(--ease); }
.menu:hover .menu__chevron,
.menu:focus-within .menu__chevron,
.menu.is-open .menu__chevron { transform: rotate(180deg); }
.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 15rem;
  margin-top: 6px;
  padding: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule), var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .25s var(--ease), visibility .15s;
}
.menu__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.menu:hover > .menu__panel,
.menu:focus-within > .menu__panel,
.menu.is-open > .menu__panel { opacity: 1; visibility: visible; transform: none; }
.menu--right > .menu__panel { left: auto; right: 0; }

.menu__panel--cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 6px 24px;
  min-width: min(36rem, 90vw);
  padding: 14px;
}
.menu__group { display: flex; flex-direction: column; gap: 2px; }
.menu__panel a { border: 0; }
.menu__head, .menu__link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .9375rem;
  transition: background .15s ease, color .15s ease;
}
.menu__head { font-weight: var(--w-strong); color: var(--fg); }
.menu__link { color: var(--fg-muted); }
.menu__head:hover, .menu__link:hover { background: var(--accent-tint); color: var(--fg); }

.menu__panel--market { display: flex; flex-direction: column; gap: 2px; min-width: 18rem; margin: 6px 0 0; }
.menu__note { padding: 4px 10px 8px; font-size: .8125rem; color: var(--fg-muted); max-width: none; }
.menu__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .9375rem;
  text-align: left;
  color: var(--fg);
  cursor: pointer;
  transition: background .15s ease;
}
.menu__option span:not(.menu__meta) { flex: 1; }
.menu__option:hover { background: var(--accent-tint); }
.menu__option.is-active { background: var(--accent-soft); font-weight: var(--w-emph); }
.menu__meta { font-size: .75rem; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* The market trigger shows only the flag; its name is read out, not shown. */
.market__trigger { padding: 6px 8px; }
.flag {
  display: block;
  width: 24px;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: none;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(36, 48, 68, .14);
}

@media (max-width: 40rem) {
  .storefront-content-section { grid-template-columns: 1fr; }
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding-block: 8px; }
  .brand { min-width: 0; max-width: 48vw; margin-right: 0; font-size: 1.1rem; }
  .brand__store-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { grid-column: 2; grid-row: 1; margin-left: 0; min-width: 0; }
  .header-actions .nav { gap: 0; }
  .header-cats { grid-column: 1; grid-row: 2; }
  .header-cats .nav a:not(.icon-link) { padding: 5px 7px; }
  .site-search { grid-column: 1 / -1; grid-row: 3; width: 100%; max-width: none; margin: 0; }
  .site-search input[type="search"] { min-height: 40px; padding: 7px 13px; }
  /* Panels anchor to the header, full width, instead of to their trigger. */
  .menu { position: static; }
  .menu__panel, .menu--right > .menu__panel {
    left: var(--space-2);
    right: var(--space-2);
    min-width: 0;
  }
  .menu__panel--cats { grid-template-columns: 1fr 1fr; min-width: 0; }
  .header-actions .menu { position: relative; }
  .header-actions .menu--right > .menu__panel {
    top: calc(100% + 2px);
    left: auto;
    right: 0;
    width: min(18rem, calc(100vw - 24px));
    min-width: 0;
  }
}
@media (max-width: 40rem) and (hover: none) {
  .menu:hover:not(.is-open) > .menu__panel { opacity: 0; visibility: hidden; transform: translateY(-4px); }
}

/* ---------- stores page ---------- */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.stores-card {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stores-card__name {
  font-family: var(--serif);
  font-size: var(--step-1);
  text-transform: lowercase;
  letter-spacing: -.01em;
}
.stores-card__ccy {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stores-card__link { border: 0; }
.stores-card__link:hover { border-bottom: 1px solid var(--fg); }
.stores-card--active .stores-card__name { color: var(--fg); }
.stores-card--active .stores-card__badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-muted);
}

/* ---------- accessibility: visually-hidden ---------- */
/*
  Off-screen but still announced by screen readers. Use for labels that the
  visual design omits (e.g. the search input next to a brand mark).
*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--space-5);
  color: var(--fg);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
.footer-col { padding: 28px 32px 32px; }
.footer-col + .footer-col { border-left: 1px solid var(--rule); }
@media (max-width: 48rem) {
  .footer-col + .footer-col { border-left: 0; border-top: 1px solid var(--rule); }
}
.footer__title {
  font-size: .8125rem;
  font-weight: var(--w-strong);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { border: 0; color: var(--fg-muted); transition: color .15s ease; }
.site-footer a:hover { color: var(--fg); }
.footer__legal {
  margin-top: 14px;
  padding: 18px 32px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  font-size: .8125rem;
  color: var(--fg-muted);
  max-width: none;
}
.footer__legal a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.footer__legal { margin-bottom: var(--space-3); }

/* ---------- placeholder pages ---------- */
.stub { max-width: 40rem; padding-block: var(--space-4); }
.stub__summary { font-size: var(--step-1); margin-bottom: var(--space-2); }
.stub__heading { margin: var(--space-3) 0 var(--space-1); font-size: var(--step-1); }
.stub__body, .stub__list { margin: 0 0 var(--space-2); }
.stub__list { padding-left: 1.2em; }
.stub__list li { margin-bottom: 4px; }

/* ---------- flash ---------- */
.flash {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  font-size: .875rem;
  color: var(--on-highlight);
  margin-bottom: var(--space-3);
}
.flash--error { background: #FBF1F1; color: var(--danger); border-color: #E6BDBD; }
.flash--info  { background: #F1F6FB; color: var(--info);   border-color: #BCD3E6; }

/* ---------- page titles ---------- */
.page-title {
  font-size: var(--step-3);
  margin-bottom: var(--space-4);
}
.page-title--sm { margin-bottom: var(--space-2); font-size: 1.6rem; }
.crumbs {
  font-size: .8125rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
}
.crumbs a { border: 0; }

/* ---------- home ---------- */
.hero__title {
  max-width: 14ch;
  font-size: clamp(2rem, 4.8vw, 3.75rem);
  font-weight: var(--w-strong);
  letter-spacing: -0.035em;
}
.hero__lede {
  color: var(--fg-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 38ch;
}
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; padding-top: var(--space-1); }

/* Sliding highlights: a scroll-snap track, so it swipes on phones and works
   without JavaScript. The script adds arrows, dots and autoplay. */
.hero-carousel { position: relative; border: 0; border-radius: 12px; overflow: hidden; background: var(--accent-soft); animation: rise .7s var(--ease) both; }
.hero-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline-offset: -3px; }
.hero-carousel__track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.25rem, 4vw, 4rem); min-height: clamp(18rem, 30vw, 26rem); padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--accent-soft); }
.hero-slide--featured { background: var(--accent-tint); }
.hero-slide--categories { background: #EEF3F7; }
.hero-slide__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.hero-slide__image { height: clamp(14rem, 24vw, 20rem); border-radius: 10px; overflow: hidden; }
.hero-slide__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.hero-tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--fg); text-align: center; border: 0; }
.hero-tile img { width: 100%; max-width: 15rem; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--card); transition: transform .25s var(--ease); }
.hero-tile:hover img { transform: translateY(-3px); }
.hero-tile__name { font-weight: var(--w-strong); font-size: .95rem; }
.hero-carousel__controls { position: absolute; right: 1rem; bottom: .8rem; left: 1rem; display: flex; align-items: center; gap: .4rem; }
.hero-carousel__controls[hidden] { display: none; }
.hero-carousel__dots { display: flex; gap: .45rem; margin-right: auto; }
.hero-carousel__dot { width: .65rem; height: .65rem; padding: 0; border: 2px solid var(--fg); border-radius: 50%; background: transparent; cursor: pointer; }
.hero-carousel__dot[aria-current="true"] { background: var(--fg); }
.hero-carousel__btn { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--fg); cursor: pointer; box-shadow: 0 1px 3px #0002; }
.hero-carousel__btn:hover { background: var(--highlight); }
.hero-carousel__btn svg[hidden] { display: none; }
@media (max-width: 48rem) {
  .hero-slide { grid-template-columns: 1fr; gap: var(--space-2); min-height: 0; padding: 1.25rem 1rem 3.75rem; }
  .hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); max-width: none; }
  .hero-tiles { gap: .5rem; }
  .hero-tile__name { font-size: .8rem; }
  .hero-slide__image { height: 12rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-carousel__track { scroll-behavior: auto; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.section { margin-top: clamp(2.25rem, 4.5vw, 4rem); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: var(--w-emph);
  letter-spacing: 0;
  text-transform: none;
}
.section-head__more {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--fg);
  transition: background .15s ease, transform .25s var(--ease);
}
.section-head__more:hover { border: 0; background: var(--hover); transform: translateX(2px); }
.home-empty { margin: var(--space-5) auto; text-align: center; }

/* Featured products: a grid, so more of them show at once. */
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: var(--space-4) var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 40rem) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rail-card__image { aspect-ratio: 1 / 1; margin-bottom: 4px; }
  .rail-card__name { font-size: .875rem; }
  .rail-card__price { font-size: .8125rem; }
}
.rail-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  color: inherit;
}
.rail-card:hover { border: 0; }
.rail-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: transform .5s var(--ease), box-shadow .3s ease;
}
.rail-card:hover .rail-card__image { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rail-card__name { font-size: 1rem; font-weight: var(--w-emph); letter-spacing: 0; }
.rail-card__price { color: var(--fg-muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.rail-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rail-card__meta .rail-card__name { min-width: 0; }
.rail-card__meta .rail-card__price { white-space: nowrap; }

/* Shop by category: a card per category, the picture on one half and the
   name beside it. */
.cat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 9.5rem;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--fg);
  transition: box-shadow .25s ease, transform .3s var(--ease);
}
.cat-tile:hover { border: 0; box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-hover); transform: translateY(-2px); }
.cat-tile__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--accent-soft);
  transition: transform .5s var(--ease);
}
.cat-tile:hover .cat-tile__image { transform: scale(1.04); }
.cat-tile__media { overflow: hidden; background: var(--accent-soft); }
.cat-tile__name {
  align-self: center;
  padding: var(--space-2) var(--space-3);
  font-size: 1.125rem;
  font-weight: var(--w-emph);
  line-height: 1.2;
}
.cat-tile__name::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-top: 10px;
  background: var(--highlight-hover);
  transition: width .3s var(--ease);
}
.cat-tile:hover .cat-tile__name::after { width: 3rem; }

/* Shop by need: a list of links beside a picture. */
.needs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-2);
  align-items: stretch;
}
.needs:not(:has(.needs__media)) { grid-template-columns: 1fr; }
.needs__list {
  list-style: none;
  margin: 0;
  padding: clamp(1rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule);
}
.needs__link {
  display: block;
  padding: 14px 8px;
  border: 0;
  border-radius: 10px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: var(--w-emph);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .15s ease, padding-left .25s var(--ease);
}
.needs__link:hover, .needs__link:focus-visible { border: 0; background: var(--accent-tint); padding-left: 18px; }
.needs__media {
  position: relative;
  height: clamp(18rem, 30vw, 30rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.needs__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
@media (max-width: 48rem) {
  .needs { grid-template-columns: 1fr; }
  .needs__media { height: 14rem; }
}

/* ---------- product list ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
@media (max-width: 40rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { gap: 4px; padding: 7px 7px 10px; border-radius: 10px; }
  .product-card__image { margin-bottom: 3px; border-radius: 7px; }
  .product-card__name { padding-inline: 2px; font-size: .82rem; line-height: 1.3; }
  .product-card__price { padding-inline: 2px; font-size: .78rem; }
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}
.product-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.product-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 8px;
}
.product-card__name {
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: var(--w-emph);
  letter-spacing: 0;
  padding-inline: 6px;
}
.product-card__price {
  color: var(--fg-muted);
  font-size: .875rem;
  padding-inline: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- catalog (compact controls and full-width listing) ---------- */
.catalog, .catalog__grid { width: 100%; min-width: 0; }
.catalog-title { margin-bottom: clamp(12px, 2vw, 22px); font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
.catalog-toolbar { display: flex; align-items: end; gap: 10px; width: 100%; min-width: 0; margin-bottom: 18px; padding: 10px 0 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.catalog-control { display: grid; gap: 3px; min-width: 0; color: var(--fg-muted); font-size: .72rem; }
.catalog-control > span { padding-left: 2px; }
.catalog-control select { width: 100%; min-width: 0; min-height: 38px; padding: 6px 28px 6px 10px; border: 1px solid var(--rule); border-radius: 7px; background-color: var(--card); font-size: .84rem; }
.catalog-control--category { flex: 1 1 13rem; max-width: 20rem; }
.catalog-control--sort { flex: 0 1 12rem; }
.catalog-control--view { display: flex; flex: 0 0 auto; align-self: end; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 8px; }
.catalog-view-button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--fg-muted); cursor: pointer; }
.catalog-view-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.catalog-view-button.is-active, .catalog-view-button:hover { background: var(--accent-soft); color: var(--fg); }
.catalog-filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 7px; background: var(--card); font-size: .84rem; cursor: pointer; }
.catalog-filter-button:hover { border-color: var(--accent-line); background: var(--accent-tint); }
.catalog-filter-dialog { width: min(100% - 28px, 520px); max-height: min(82vh, 760px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); color: var(--fg); box-shadow: var(--shadow-hover); }
.catalog-filter-dialog::backdrop { background: rgba(24, 30, 39, .44); backdrop-filter: blur(2px); }
.catalog-filter-dialog__head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--rule); }
.catalog-filter-dialog__head h2 { font-size: 1.35rem; }
.catalog-filter-dialog__head p { margin-top: 4px; font-size: .83rem; }
.catalog-filter-dialog__close { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: var(--bg); font-size: 1.35rem; cursor: pointer; }
.catalog-filter-dialog .filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-height: calc(82vh - 90px); overflow-y: auto; padding: 18px 22px 22px; }
.catalog-filter-dialog .filter-form__actions { grid-column: 1 / -1; justify-content: space-between; }
.catalog-filter-dialog .facet { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.catalog-filter-dialog .facet__title { font-size: .9rem; text-transform: none; color: var(--fg); }
.catalog-filter-dialog .facet__values { max-height: 170px; overflow: auto; }
.catalog__grid { min-height: 4rem; }
.product-grid--list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.product-grid--list .product-card { display: grid; grid-template-columns: minmax(92px, 150px) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px; align-items: center; padding: 8px; }
.product-grid--list .product-card__image { grid-column: 1; grid-row: 1 / 3; width: 100%; aspect-ratio: 1; margin: 0; }
.product-grid--list .product-card__name { grid-column: 2; align-self: end; padding: 0; font-size: .98rem; }
.product-grid--list .product-card__price { grid-column: 2; align-self: start; padding: 0; }

.filter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
}
.facet {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.facet__title {
  font-family: var(--serif);
  font-size: var(--step-0);
  text-transform: lowercase;
  letter-spacing: -.01em;
  color: var(--fg-muted);
}
.facet__range {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.facet__num {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: var(--space-1) 0;
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color .15s ease;
}
.facet__num:focus { border-bottom-color: var(--fg); }
.facet__sep { color: var(--fg-muted); }
.facet__values {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.facet__check {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-size: 0.9rem;
  cursor: pointer;
}
.facet__check input { accent-color: var(--fg); }
.filter-form__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-1);
}
.filter-form__clear {
  border: 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: lowercase;
}
.filter-form__clear:hover { color: var(--fg); border-bottom: 1px solid var(--fg); }

@media (max-width: 40rem) {
  .catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8px; margin-bottom: 12px; padding: 9px 0; }
  .catalog-control--category, .catalog-control--sort { max-width: none; }
  .catalog-control--view { justify-self: start; }
  .catalog-filter-button { justify-self: end; }
  .catalog-title { margin-bottom: 12px; }
  .catalog-filter-dialog .filter-form { grid-template-columns: 1fr; gap: 14px; padding: 14px 16px 18px; }
  .catalog-filter-dialog__head { padding: 16px 16px 12px; }
  .product-grid--list .product-card { grid-template-columns: 82px minmax(0, 1fr); column-gap: 11px; padding: 7px; }
  .product-grid--list .product-card__name { font-size: .88rem; }
  .product-grid--list .product-card__price { font-size: .78rem; }
}

/* ---------- product detail ---------- */
.product {
  display: grid;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
@media (max-width: 48rem) {
  .product { grid-template-columns: 1fr; gap: var(--space-3); }
  .product__gallery { grid-template-columns: 1fr; }
  .product__gallery > .product__image { grid-column: 1; grid-row: 1; }
  .product__thumbnails { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
}
.product__gallery {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-2);
}
.product__gallery > .product__image { grid-column: 2; grid-row: 1; }
.product__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: min(48vw, 610px);
  height: auto;
  object-fit: cover;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition: box-shadow .22s ease, transform .35s var(--ease);
}
.product__image:hover { transform: scale(1.008); box-shadow: 0 16px 38px rgba(20, 24, 18, .11); }
.product__thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(42vw, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  margin: 0 -4px;
  grid-column: 1;
  grid-row: 1;
}
.product__thumb-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  aspect-ratio: 1 / 1;
  outline: 2px solid transparent;
  outline-offset: 2px;
  opacity: .72;
  transition: outline-color .15s ease, opacity .15s ease;
}
.product__thumb-btn:hover { opacity: 1; }
.product__thumb-btn.is-active { outline-color: var(--accent); opacity: 1; }
.product__thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 48rem) {
  .product__gallery { grid-template-columns: 1fr; }
  .product__gallery > .product__image { grid-column: 1; grid-row: 1; }
  .product__thumbnails { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
}
.product__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product__name {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -.025em;
}
.product__price {
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
}
.product__cat {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--fg-muted);
  background: var(--card);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.product__cat:hover { color: var(--fg); background: var(--accent-tint); border-color: var(--accent-line); }

/* ---------- variant selector ---------- */
.variant-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.variant-form > .field { min-width: 0; margin: 0; }
.variant-form label {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.variant-box { display: flex; flex-direction: column; gap: var(--space-2); }
.buybox { border: 0; margin: 0; padding: 0; min-width: 0; }
.buybox:disabled { opacity: .5; cursor: not-allowed; }
.buybox:disabled * { cursor: not-allowed; }
.stock { font-size: .8125rem; }
.stock--in { color: var(--fg-muted); }
.stock--low { color: #8A5A00; }
.stock--out { color: var(--danger); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: .875rem;
  font-weight: var(--w-emph);
  letter-spacing: 0;
  background: var(--highlight);
  color: var(--on-highlight);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
/* Links draw a rule on hover (a:hover); a button changes its fill instead. */
.btn:hover {
  background: var(--highlight-hover);
  color: var(--on-highlight);
  border-color: transparent;
  box-shadow: none;
}
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--highlight); color: var(--on-highlight); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn--ghost:hover { background: var(--accent-tint); border-color: var(--field-line); color: var(--fg); box-shadow: none; transform: none; }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--danger:hover { background: #6F2222; color: #fff; }
.btn--block { display: flex; width: 100%; padding-block: 13px; }

/* ---------- cart ---------- */
/* A quieter, wider review page modeled on the reference storefront: grouped
   item cards, visible delivery location, and a compact summary rail. */
.cart-page { max-width: 1120px; margin: 0 auto; padding: 12px 0 64px; }
.cart-page__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 24px; }
.cart-page__eyebrow { color: var(--fg-muted); font-size: .72rem; font-weight: var(--w-strong); letter-spacing: .09em; text-transform: uppercase; margin: 0 0 5px; }
.cart-page__title { font-size: clamp(1.8rem, 3.3vw, 2.5rem); line-height: 1.15; letter-spacing: -.03em; }
.cart-page__count { color: var(--fg-muted); font-size: .9rem; padding-bottom: 4px; }
.cart-page__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .8fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.cart-page__items { min-width: 0; }
.cart-location { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 15px 18px; margin-bottom: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.cart-location__copy { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.cart-location__icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; color: var(--on-highlight); background: var(--accent-soft); font-size: 1.35rem; }
.cart-location__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-location__label { display: block; color: var(--fg-muted); font-size: .75rem; }
.cart-location__copy strong { display: block; font-size: .95rem; font-weight: var(--w-strong); }
.cart-location__copy > div { flex: 1 1 auto; min-width: 0; }
.cart-location__copy strong { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-location__details { display: block; max-width: min(56ch, 58vw); margin-top: 3px; overflow: hidden; color: var(--fg-muted); font-size: .73rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.cart-location__change { padding: 8px 13px; font-size: .82rem; white-space: nowrap; }
.cart-items-list { display: grid; gap: 12px; }
.cart-item { display: flex; gap: 15px; padding: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); min-width: 0; }
.cart-item { transition: border-color .18s ease, box-shadow .2s ease, transform .2s var(--ease); }
.cart-item:hover { border-color: var(--accent-line); box-shadow: 0 8px 22px rgba(20, 24, 18, .07); transform: translateY(-1px); }
.cart-item__select { display: grid; flex: 0 0 22px; place-items: start center; padding-top: 9px; cursor: pointer; }
.cart-item__select input { width: 17px; height: 17px; accent-color: var(--accent); }
.cart-item__select input { transition: transform .16s ease; }
.cart-item__select input:checked { transform: scale(1.12); }
.cart-item__image { display: grid; flex: 0 0 96px; width: 96px; height: 112px; place-items: center; overflow: hidden; background: var(--bg); border: 0; border-radius: 6px; color: var(--fg-muted); font-size: 2rem; }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__main { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; padding: 3px 1px; }
.cart-item__top { display: flex; justify-content: space-between; gap: 12px; }
.cart-item__name { display: block; max-width: 34ch; border: 0; font-size: .98rem; font-weight: var(--w-strong); line-height: 1.35; }
.cart-item__total { white-space: nowrap; font-size: .94rem; }
.cart-item__cod, .cart-item__meta { display: inline-flex; margin-top: 8px; padding: 3px 8px; border-radius: 999px; font-size: .7rem; line-height: 1.35; }
.cart-item__cod { color: #315d42; background: #edf6ee; }
.cart-item__meta { color: var(--fg-muted); background: #f1f2ef; }
.cart-item__bottom { display: flex; gap: 14px; color: var(--fg-muted); font-size: .78rem; }
.cart-quantity { display: inline-flex; align-items: center; gap: 5px; }
.cart-quantity__label { margin-right: 4px; }
.cart-quantity button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); font-size: 1rem; cursor: pointer; }
.cart-quantity button { transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease; }
.cart-quantity button:hover:not(:disabled) { background: var(--accent-tint); border-color: var(--accent-line); transform: scale(1.06); }
.cart-quantity button:active:not(:disabled) { transform: scale(.94); }
.cart-quantity button:disabled { cursor: not-allowed; opacity: .45; }
.cart-quantity input { width: 48px; height: 28px; padding: 2px; text-align: center; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); }
.cart-quantity input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.cart-quantity input[type="number"]::-webkit-inner-spin-button, .cart-quantity input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-quantity .htmx-indicator { font-size: .7rem; }
.quantity-control { display: grid; gap: 4px; width: auto; color: var(--fg-muted); font-size: .74rem; }
.quantity-control input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.quantity-control input[type="number"]::-webkit-inner-spin-button, .quantity-control input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buybox__actions { display: flex; align-items: end; gap: 12px; margin-top: 10px; }
.buybox__actions .btn { flex: 1; }
.cart-continue { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--fg-muted); border: 0; font-size: .86rem; }
.cart-continue:hover { color: var(--fg); }
.cart-summary { position: sticky; top: 24px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); }
.cart-summary h2 { margin-bottom: 18px; font-size: 1.18rem; font-weight: var(--w-strong); }
.cart-payment-choice { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.cart-payment-choice legend { padding: 0 5px; font-size: .83rem; font-weight: var(--w-strong); }
.cart-payment-choice label { display: flex; align-items: center; gap: 9px; font-size: .85rem; cursor: pointer; }
.cart-payment-choice input { accent-color: var(--accent); }
.cart-payment-choice .is-unavailable { color: var(--fg-muted); }
.cart-payment-choice label:has(input[value="cod"]:checked) { padding: 9px 10px; border: 1px solid #477257; border-radius: 7px; color: #244c31; background: #eef7f0; font-weight: var(--w-strong); }
.cart-payment-choice label:has(input[value="online"]:checked) { padding: 9px 10px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent-soft); font-weight: var(--w-strong); }
.cart-summary__row, .cart-summary__total { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: .87rem; }
.cart-summary__muted { color: var(--fg-muted); font-size: .78rem; }
.cart-summary__total { margin-top: 7px; padding-top: 15px; border-top: 1px solid var(--rule); font-size: .94rem; }
.cart-summary__total strong { font-size: 1.15rem; }
.cart-summary__note { margin: 7px 0 17px; color: var(--fg-muted); font-size: .76rem; line-height: 1.5; }
.cart-summary__checkout { justify-content: center; width: 100%; padding: 13px 16px; border: 0; border-radius: 6px; font-size: .92rem; font-weight: var(--w-strong); }
.cart-empty-state { display: grid; justify-items: center; max-width: 440px; margin: 10vh auto 14vh; padding: 35px 20px; text-align: center; }
.cart-empty-state__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 2rem; }
.cart-empty-state h2 { font-size: 1.45rem; font-weight: var(--w-strong); }
.cart-empty-state p { margin: 8px 0 20px; color: var(--fg-muted); font-size: .9rem; }
.cart-location-dialog { width: min(540px, calc(100% - 28px)); max-height: min(85vh, 680px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--rule); border-radius: 12px; color: var(--fg); background: var(--card); box-shadow: 0 18px 60px rgba(0,0,0,.2); }
.cart-location-dialog[open], .address-dialog[open] { position: fixed; inset: 0; margin: auto; animation: dialog-in .18s ease-out both; }
.cart-location-dialog:not([open]), .address-dialog:not([open]) { display: none; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cart-location-dialog::backdrop { background: rgba(24, 30, 39, .42); backdrop-filter: blur(2px); }
.cart-location-dialog__head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 22px 24px 12px; }
.cart-location-dialog__head h2 { font-size: 1.3rem; font-weight: var(--w-strong); }
.cart-location-dialog__close { width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.cart-location-dialog__form { display: grid; gap: 14px; padding: 8px 24px 24px; }
.cart-location-dialog__form > .muted { font-size: .86rem; }
.cart-address-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.cart-address-option { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--rule); border-radius: 7px; cursor: pointer; }
.cart-address-option:has(input:checked) { border-color: var(--accent-line); background: var(--accent-tint); }
.cart-address-option input { margin-top: 3px; accent-color: var(--accent); }
.cart-address-option span { display: grid; gap: 3px; min-width: 0; }
.cart-address-option strong { font-size: .87rem; font-weight: var(--w-strong); }
.cart-address-option small { color: var(--fg-muted); font-size: .76rem; }
.cart-address-option strong small { display: inline; margin-left: 5px; color: var(--accent); }
.cart-location-dialog__add { justify-self: stretch; min-height: 44px; padding: 10px 14px; border: 1px solid var(--accent-line); border-radius: 8px; background: var(--card); color: var(--accent); font-size: .88rem; font-weight: var(--w-strong); cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.cart-location-dialog__add:hover { border-color: var(--accent); background: var(--accent-tint); }
.cart-location-dialog__add:active { transform: scale(.985); }
@media (max-width: 720px) {
  .cart-page { padding-top: 4px; }
  .cart-page__grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { gap: 11px; padding: 9px; }
  .cart-item__image { flex-basis: 78px; width: 78px; height: 96px; }
  .cart-item__top { flex-direction: column; gap: 5px; }
  .cart-item__bottom { margin-top: 12px; }
  .cart-location-dialog__head { padding-inline: 18px; }
  .cart-location-dialog__form { padding-inline: 18px; }
}

/* The table is the card: separate borders let the radius clip the rows. */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: var(--space-3);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.cart-table th, .cart-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.cart-table thead th {
  background: var(--bg);
  font-size: .6875rem;
  font-weight: var(--w-emph);
  color: var(--fg-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cart-table tbody tr:last-child td { border-bottom: 0; }
.cart-table tbody tr:last-child td,
.cart-table tfoot td { border-bottom: 0; }
.cart-table tfoot td {
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
  font-weight: var(--w-emph);
  padding-block: 18px;
}
.cart-table .col-qty, .cart-table .col-price, .cart-table .col-total { text-align: right; }
.cart-table .col-qty, .cart-table .col-price, .cart-table .col-total { white-space: nowrap; }
@media (max-width: 40rem) {
  .cart-table th, .cart-table td { padding: 12px 12px; }
  /* The line total already says what the row costs; drop the unit price. */
  .cart-table .col-price { display: none; }
}
/* Prices carry a currency code and grouped thousands, so keep them on one
   line but give the row less padding on the narrowest screens. */
@media (max-width: 30rem) {
  .cart-table th, .cart-table td { padding: 10px 8px; }
  .cart-table .col-total { font-size: 0.9rem; }
}
.cart-empty {
  color: var(--fg-muted);
  padding: var(--space-5) 0;
  text-align: center;
  max-width: none;
}

/* ---------- checkout ---------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .78fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.checkout__payment { grid-column: 1; grid-row: 1; min-width: 0; }
.checkout__summary { grid-column: 2; grid-row: 1; padding: clamp(16px, 2.4vw, 26px); border: 1px solid var(--rule); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.checkout__summary .cart-table { font-size: .87rem; }
.checkout__summary .cart-table td, .checkout__summary .cart-table th { padding-inline: 11px; }
@media (max-width: 48rem) {
  .checkout { grid-template-columns: 1fr; gap: var(--space-3); }
  .checkout__payment, .checkout__summary { grid-column: 1; grid-row: auto; }
}
@media (min-width: 48.01rem) {
  .checkout__summary { position: sticky; top: 5.5rem; }
}
.checkout__heading {
  font-size: var(--step-2);
  margin-bottom: var(--space-2);
}
.checkout__note {
  font-size: .8125rem;
  margin-bottom: var(--space-1);
}
.checkout .form { max-width: none; padding: 0; background: none; box-shadow: none; }
.checkout__payment { padding: clamp(16px, 2.4vw, 26px); border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.checkout__payment > .checkout__heading { font-size: 1.45rem; }
.checkout__form { display: grid; gap: 15px; }
.checkout__form .fieldset { display: grid; gap: 10px; margin: 0; padding: 15px; border: 1px solid var(--rule); border-radius: 9px; background: var(--bg); }
.checkout__form .fieldset__legend { padding-inline: 6px; font-size: .92rem; font-weight: var(--w-strong); }
.checkout-address { display: grid; gap: 4px; font-style: normal; color: var(--fg-muted); font-size: .88rem; line-height: 1.45; }
.checkout-address strong { color: var(--fg); }
.checkout-address__edit { justify-self: start; margin-top: 6px; font-size: .83rem; }
.checkout__form .radio { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); cursor: pointer; }
.checkout__form .radio:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #fff; }
.checkout__form .radio:has(input[value="cod"]:checked) { border-color: #477257; box-shadow: 0 0 0 1px #477257; background: #f0f7f1; }
.payment-option__icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); font-weight: var(--w-strong); }
.radio__label { display: grid; gap: 3px; }
.radio__label small { color: var(--fg-muted); font-size: .76rem; font-weight: 400; }
[data-card-fields][hidden] { display: none; }

/* ---------- order list ---------- */
.orders-list .order-row__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  border: 0;
  color: var(--fg);
}
.orders-list .order-row__id:hover { border-bottom: 1px solid var(--fg); }
.orders-list .order-row__count { font-size: 0.85rem; }

.order-status {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0.15em 0.5em;
  border: 1px solid currentColor;
  color: var(--fg-muted);
}
.order-status--paid      { color: var(--fg); }
.order-status--failed    { color: var(--danger); }
.order-status--pending   { color: var(--info); }
.order-status--cancelled { color: var(--danger); }
.order-status--shipped   { color: #1f7a44; }
.order-status--delivered { color: var(--fg-muted); }
.order-status--refunded  { color: #a26200; }
.order__actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }

/* ---------- order confirmation ---------- */
.order {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 88rem;
  width: 100%;
}
.order__header { margin-bottom: var(--space-2); }
.order__title {
  font-family: var(--serif);
  font-size: var(--step-3);
  text-transform: lowercase;
  letter-spacing: -.01em;
}
.order__subtitle {
  margin-top: var(--space-1);
  font-size: 0.9rem;
}
.order__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--fg);
}
.order__hint {
  font-size: 0.85rem;
}
.order .btn { align-self: flex-start; margin-top: var(--space-2); }

/* ---------- fieldsets ---------- */
/* Each fieldset is a card; legend is its title. */
.fieldset {
  border: 0;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule);
  min-width: 0;
}
.fieldset__legend {
  float: left;
  width: 100%;
  font-size: .9375rem;
  font-weight: var(--w-emph);
  letter-spacing: 0;
  padding: 0;
  margin-bottom: 2px;
  color: var(--fg);
}
.fieldset__legend + * { clear: both; }

/* ---------- radio options ---------- */
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.radio:hover { border-color: var(--field-line); }
.radio:has(input:checked) { background: var(--accent-tint); border-color: var(--accent-line); }
.radio:has(input:focus-visible) { box-shadow: var(--ring); }
.radio input { accent-color: var(--accent); margin: 0; }
.radio__label { flex: 1; }
.radio__cost { font-size: .875rem; font-variant-numeric: tabular-nums; }
.radio--disabled { opacity: .52; cursor: not-allowed; }

/* ---------- order shipping block ---------- */
.order__ship-heading {
  font-family: var(--serif);
  font-size: var(--step-1);
  text-transform: lowercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-1);
}
.order__address {
  font-style: normal;
  line-height: 1.7;
}
.order__dispute { border-top: 1px solid var(--rule); padding: 14px 0; }
.order__dispute h3 { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.order__dispute-message { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.order__dispute-reply { display: grid; gap: 10px; margin-top: 14px; }
.order__dispute-reply label { display: grid; gap: 5px; font-size: .88rem; font-weight: var(--w-emph); }
.order__dispute-reply textarea { min-height: 72px; width: 100%; }
@media (max-width: 48rem) {
  .order__seller { padding: 14px; }
  .order__seller .cart-table th, .order__seller .cart-table td { padding: 9px 6px; }
  .order__seller .cart-table td:first-child { min-width: 135px; }
  .order__actions { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
}

/* ---------- account area ---------- */
/* Same structure as WeeCommerce: a bordered nav card beside the content,
   uppercase nav items with the active one underlined. */
.account { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.account-nav { display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.account-nav__link { display: block; padding: 11px 12px; border: 0; border-radius: 6px; color: var(--fg-muted); font-size: .78rem; font-weight: var(--w-strong); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.account-nav__link:hover { color: var(--fg); background: var(--hover); border: 0; }
.account-nav__link.is-active { color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.account-nav__link--muted { color: var(--fg-muted); }
.account-nav__rule { display: block; margin: 6px 0; border-top: 1px solid var(--rule); }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--space-2); }
.account-section-head p { margin: 0; }
.account__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--space-2); }
.account-card { display: flex; flex-direction: column; gap: 10px; padding: var(--space-2) var(--space-3); border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.account-card__title { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: var(--w-strong); text-transform: none; letter-spacing: 0; }
@media (max-width: 48rem) {
  .account { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .account-nav { flex-direction: row; align-items: center; gap: 2px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav__rule { display: none; }
}

/* ---------- sign in, register, password reset ---------- */
.auth { display: grid; gap: var(--space-2); width: 100%; max-width: 36rem; margin: var(--space-2) auto var(--space-4); }
.auth-box { padding: var(--space-3); border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.auth-box__title { margin: 0 0 var(--space-3); font-family: var(--sans); font-size: 1.3rem; font-weight: var(--w-strong); letter-spacing: .01em; text-transform: uppercase; }
.auth-box__hint { margin: calc(-1 * var(--space-2)) 0 var(--space-3); color: var(--fg-muted); font-size: .92rem; }
.auth-form { display: flex; flex-direction: column; gap: var(--space-2); }
.auth-form .field label { font-size: .92rem; font-weight: var(--w-emph); letter-spacing: 0; text-transform: none; color: var(--fg); }
.auth-link { align-self: flex-end; border: 0; color: var(--fg-muted); font-size: .78rem; font-weight: var(--w-strong); letter-spacing: .07em; text-transform: uppercase; }
.auth-link:hover { color: var(--fg); }
.auth-box .btn--block { margin-top: var(--space-1); text-transform: uppercase; letter-spacing: .05em; }
.auth .demo-credentials-box { margin: 0; }
@media (max-width: 560px) {
  .variant-form { grid-template-columns: 1fr; }
  .product__image { max-height: none; }
}
.account-order-filters { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0 14px; margin-bottom: 10px; }
.account-order-filter { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--fg-muted); font-size: .82rem; cursor: pointer; }
.account-order-filter.is-active { border-color: var(--accent); background: var(--accent); color: white; }
.order-item__image { display: inline-block; width: 54px; height: 58px; margin: 0 10px 6px 0; vertical-align: middle; object-fit: cover; border-radius: 5px; background: var(--accent-soft); }
.order-item__readd { display: inline-block; margin: 6px 0 0; }
.order-item__readd .linkbtn { color: var(--fg); font-size: .8rem; }
.addr-card { position: relative; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.addr-card--default { border-color: var(--accent); }
.addr-card__badge { display: inline-block; margin-bottom: 10px; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); font-size: .7rem; font-weight: var(--w-strong); }
.addr-card__actions { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: var(--space-1); border-top: 1px solid var(--rule); font-size: .85rem; }
.addr-card__actions a, .addr-card__actions .linkbtn { border: 0; text-decoration: underline; text-underline-offset: 3px; }
.addr-card__actions form { display: inline; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
@media print {
  @page { margin: 16mm; }
  body * { visibility: hidden !important; }
  .order-receipt, .order-receipt * { visibility: visible !important; }
  .order > * { display: none !important; }
  .order > .order-receipt { display: block !important; }
  .site-header, .site-footer, .no-print, .order__disputes, .order__actions { display: none !important; }
  main { padding: 0 !important; }
  .shell { max-width: none; padding: 0; }
  .order { max-width: none; display: block; }
}

.order-receipt { display: none; }
.order-receipt__head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid #213d36; }
.order-receipt__head p { margin: 0 0 4px; color: #52605a; }
.order-receipt__head h1 { margin: 0; font-size: 1.8rem; }
.order-receipt__head > div:last-child { text-align: right; font-size: .88rem; }
.order-receipt__meta { display: flex; gap: 24px; padding: 14px 0; color: #39463f; font-size: .9rem; }
.order-receipt__address { margin: 8px 0 22px; font-style: normal; line-height: 1.5; }
.order-receipt table { width: 100%; border-collapse: collapse; }
.order-receipt th, .order-receipt td { padding: 9px 8px; border-bottom: 1px solid #d9dedb; text-align: left; }
.order-receipt th:nth-child(2), .order-receipt td:nth-child(2) { width: 64px; text-align: center; }
.order-receipt th:last-child, .order-receipt td:last-child { text-align: right; }
.order-receipt__total { display: flex; justify-content: space-between; margin: 16px 0; padding: 12px 8px; border-top: 2px solid #213d36; font-size: 1.1rem; }
.order-receipt footer { margin-top: 64px; padding-top: 18px; border-top: 1px solid #d9dedb; color: #52605a; text-align: center; font-size: .85rem; }

.flash--toast { position: fixed; z-index: 1000; top: 18px; left: 50%; width: min(460px, calc(100vw - 28px)); transform: translateX(-50%); box-shadow: 0 12px 38px #0002; animation: toast-in .22s ease-out both; }
.flash--toast-out { opacity: 0; transform: translate(-50%, -8px); transition: opacity .22s ease, transform .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.cart-address-option-row { display: flex; align-items: center; gap: 10px; }
.cart-address-option-row .cart-address-option { flex: 1; min-width: 0; }
.cart-address-edit { flex: 0 0 auto; padding: 8px; color: var(--fg-muted); font-size: .82rem; }
.cart-location-empty { margin: 0; padding: 12px 0; color: var(--fg-muted); text-align: center; font-size: .88rem; }
.city-suggestion-field { position: relative; }
.city-suggestions:not([hidden]) { position: absolute; z-index: 40; top: calc(100% - 1px); left: 0; width: 100%; max-height: 250px; overflow: auto; border: 1px solid var(--rule); border-radius: 0 0 9px 9px; background: #fff; box-shadow: 0 12px 28px #0002; }
.city-suggestions__option { display: block; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--rule); background: #fff; color: var(--fg); text-align: left; font: inherit; font-size: .88rem; cursor: pointer; }
.city-suggestions__option:last-child { border-bottom: 0; }
.city-suggestions__option:hover, .city-suggestions__option[aria-selected="true"] { background: var(--accent-tint); color: var(--accent); }
.buybox__actions .btn.is-added { background: #236548; color: #fff; animation: cart-added .34s ease-out; }
@keyframes cart-added { 0% { transform: scale(1); } 45% { transform: scale(1.045); } 100% { transform: scale(1); } }
.checkout__form .fieldset { gap: 8px; }
.checkout__form .radio { align-items: center; }
.checkout__form .radio > input[type="radio"] { flex: 0 0 auto; align-self: center; margin: 0; }
.checkout__form .radio__label { line-height: 1.3; }
.checkout__summary .cart-table tfoot td { font-weight: var(--w-strong); }
.order__seller { display: grid; gap: 10px; padding: clamp(16px, 2.5vw, 24px); border: 1px solid var(--rule); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.order__seller h2 { margin: 0; font-family: var(--sans); font-size: 1rem; font-weight: var(--w-strong); letter-spacing: 0; text-transform: none; }
.order__seller > p { margin: 0; color: var(--fg-muted); font-size: .86rem; line-height: 1.5; }
.order__seller .cart-table { margin-top: 5px; font-size: .86rem; }
.order__seller .cart-table th, .order__seller .cart-table td { padding: 10px 8px; }
.order__purchase-total { padding: 14px 16px; border-radius: 9px; background: var(--accent-tint); font-size: 1rem; }
.order__marketplace-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .72fr); align-items: start; gap: clamp(20px, 3vw, 36px); width: 100%; }
.order__seller-list { display: grid; gap: 16px; min-width: 0; }
.order__seller { min-width: 0; }
.order__summary { position: sticky; top: 20px; display: grid; gap: 12px; min-width: 0; }
.order__purchase-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-variant-numeric: tabular-nums; }
.order__summary-card { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.order__summary-card h2 { margin: 0 0 6px; font-family: var(--sans); font-size: .78rem; font-weight: var(--w-strong); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.order__summary-card p { margin: 4px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.order__summary-card address { font-style: normal; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- admin panel ---------- */
.admin {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 48rem) {
  .admin { grid-template-columns: 1fr; gap: var(--space-3); }
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.field--check input[type="checkbox"] { width: auto; }

/* address book */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }

.linkbtn { background: 0; border: 0; padding: 0; cursor: pointer; font-size: 0.85rem; color: var(--fg-muted); text-transform: lowercase; }
.linkbtn:hover { color: var(--fg); }
.linkbtn--danger:hover { color: var(--danger); }

/* ---------- forms ---------- */
/* Standalone forms (sign in, register, account) are one card. */
.form {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule), var(--shadow);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: .75rem;
  font-weight: var(--w-emph);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.variant-form select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .9375rem;
  color: var(--fg);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7585; }
.field input:focus, .field select:focus, .field textarea:focus, .variant-form select:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.form__aside {
  font-size: .875rem;
  color: var(--fg-muted);
}

/* ---------- password strength meter ---------- */
.pw-meter {
  margin-top: var(--space-1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pw-meter__bars {
  display: flex;
  gap: 4px;
}
.pw-meter__bars span {
  height: 3px;
  flex: 1;
  background: var(--rule);
  transition: background .15s ease;
}
/* filled segments tint by score: muted red -> amber -> green */
.pw-meter[data-score="1"] .pw-meter__bars span[data-on="1"] { background: #8B2C2C; }
.pw-meter[data-score="2"] .pw-meter__bars span[data-on="1"] { background: #B8860B; }
.pw-meter[data-score="3"] .pw-meter__bars span[data-on="1"] { background: #4A7C59; }
.pw-meter[data-score="4"] .pw-meter__bars span[data-on="1"] { background: #2E5E3A; }
.pw-meter__label { font-size: 0.8rem; }

/* ---------- htmx loading indicator ---------- */
.htmx-indicator {
  opacity: 0;
  transition: opacity .2s ease;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

.loading {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1.5px solid var(--rule);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.15em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- utility ---------- */
.muted { color: var(--fg-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- accessibility: skip link ---------- */
/*
  Hidden off-screen by default; revealed when it receives keyboard focus so
  keyboard-only / screen-reader users can bypass the header nav and jump
  straight to the page content (#main).
*/
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--bg);
  border: 0;
  z-index: 1000;
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- accessibility: focus-visible ---------- */
/*
  Consistent, high-contrast focus ring on all interactive elements. We hide
  the default outline only when the element is NOT keyboard-focused so mouse
  clicks don't leave a lingering ring.
*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.linkbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--accent-tint);
  color: var(--on-highlight);
  border-bottom: 1px solid var(--accent-line);
  padding: .45rem 1rem;
  font-size: .8125rem;
  text-align: center;
}
.demo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.demo-banner__badge {
  background: var(--highlight);
  color: var(--on-highlight);
  padding: .1rem .55rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: var(--w-emph);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-banner__text { color: var(--on-highlight); }

/* ---------- demo credentials box ---------- */
.demo-credentials-box {
  background: var(--accent-tint);
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .875rem;
}
.demo-credentials-box__header { margin-bottom: 8px; }
.demo-credentials-box__badge {
  background: var(--highlight);
  color: var(--on-highlight);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: var(--w-emph);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-credentials-box__content { display: flex; flex-direction: column; gap: 4px; }
.demo-credentials-box__row { display: flex; align-items: center; gap: 8px; }
.demo-credentials-box__label { color: var(--fg-muted); min-width: 70px; }
.demo-credentials-box__row code {
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .8125rem;
}

.demo-checkout-notice,
.demo-order-notice {
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--on-highlight);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  margin: 1rem 0;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- address forms ---------- */
/* A grid so the form uses the width of the account page. */
.account__content .form--grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2) var(--space-3);
  align-items: end;
}
.form--grid .field--wide { grid-column: span 2; }
.form--grid .form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-3); }
@media (max-width: 64rem) {
  .account__content .form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .account__content .form--grid { grid-template-columns: 1fr; }
  .form--grid .field--wide { grid-column: auto; }
}

/* ---------- checkout: one card per column, steps separated by rules ---------- */
.checkout__summary, .checkout__payment { border-radius: 8px; box-shadow: none; }
.checkout__form { gap: var(--space-3); }
.checkout__form .fieldset { gap: 10px; padding: var(--space-3) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; }
.checkout__form .fieldset:first-of-type { padding-top: 0; border-top: 0; }
.checkout__form .fieldset__legend { float: left; width: 100%; margin: 0 0 var(--space-1); padding: 0; font-size: 1rem; font-weight: var(--w-strong); }
.checkout__form .fieldset__legend + * { clear: both; }
.checkout__summary .cart-table { box-shadow: none; border: 0; border-radius: 0; background: none; font-size: .9rem; }
.checkout__summary .cart-table th { font-size: .72rem; letter-spacing: .06em; }
.checkout__summary .cart-table th, .checkout__summary .cart-table td { padding: 10px 0; }
.checkout__summary .cart-table tfoot td { font-weight: var(--w-body); background: none; border-top: 0; color: var(--fg-muted); }
.checkout__summary .cart-table tfoot tr:first-child td { border-top: 1px solid var(--rule); }
.checkout__summary .cart-table tfoot .checkout__total td { padding-top: 14px; border-top: 1px solid var(--rule); color: var(--fg); font-size: 1.1rem; font-weight: var(--w-strong); }

/* ---------- order confirmation ---------- */
/* Phone layout lives after the desktop grid so it is not overridden. */
@media (max-width: 48rem) {
  .order__marketplace-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .order__summary { position: static; grid-row: 1; }
  .order__seller-list { grid-row: 2; gap: 12px; }
}
.order__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--space-2); margin-bottom: 0; }
.order__header > .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.order__header > .order__title, .order__header > .order__subtitle { grid-column: 1; }
.order__title { text-transform: none; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.order__title::first-letter { text-transform: uppercase; }
.order__summary-card, .order__seller, .order__purchase-total { border-radius: 8px; box-shadow: none; }
.order__seller .cart-table { box-shadow: none; border: 0; border-radius: 0; background: none; }
.order__seller .cart-table thead th { font-size: .72rem; }
.order__seller .cart-table tfoot td { background: none; font-weight: var(--w-body); color: var(--fg-muted); border-top: 0; }
.order__seller .cart-table tfoot tr:last-child td { border-top: 1px solid var(--rule); color: var(--fg); font-weight: var(--w-strong); }
@media (max-width: 48rem) { .order__header { grid-template-columns: minmax(0, 1fr); } .order__header > .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--space-1); } }

@media (max-width: 48rem) {
  .order__header > .btn { order: 3; }
  .order__lines .col-price, .order__lines thead .col-price { display: none; }
  .order__lines th, .order__lines td { padding: 10px 6px; }
  .order__lines tfoot tr { display: flex; justify-content: space-between; gap: 12px; padding: 8px 6px; }
  .order__lines tfoot td { display: block; padding: 0; border: 0; }
  .order-item__image { width: 44px; height: 48px; margin-right: 8px; }
}
.order__disputes { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.order__disputes h2, .order__disputes h3 { margin: 0; font-family: var(--sans); font-size: 1.1rem; font-weight: var(--w-strong); text-transform: none; color: var(--fg); }
.order__disputes label { display: grid; gap: 6px; font-size: .9rem; font-weight: var(--w-emph); }
.order__disputes select, .order__disputes textarea, .order__disputes input:not([type="hidden"]):not([type="checkbox"]) { width: 100%; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--card); color: var(--fg); font: inherit; }
.order__disputes textarea { min-height: 96px; resize: vertical; }
.order__disputes form { display: grid; gap: var(--space-2); }
.order__disputes .order__ship-heading { margin: 0; font-size: 1.1rem; font-weight: var(--w-strong); letter-spacing: 0; text-transform: none; color: var(--fg); }
.order-item__readd { display: block; margin: 4px 0 0; }

/* ---------- product page: meta, seller, about, reviews ---------- */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: .08em; white-space: nowrap; vertical-align: -.1em; }
.stars__bg { color: #D9D6C8; }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #C9971A; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; }
.product__rating { display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--fg-muted); font-size: .9rem; }
.cond-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--on-highlight); font-size: .75rem; font-weight: var(--w-strong); letter-spacing: .02em; }
.cond-badge--new { background: #E8F1EA; color: #2F5D3E; }
.cond-badge--card { position: absolute; top: 8px; left: 8px; z-index: 1; background: #fff; box-shadow: 0 1px 3px #0002; }
.rail-card { position: relative; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-block: 1px solid var(--rule); }
.seller-card__avatar { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--on-highlight); font-weight: var(--w-strong); text-transform: uppercase; }
.seller-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9rem; }
.seller-card__name { border: 0; font-weight: var(--w-strong); font-size: 1rem; }
.product__share { display: flex; }
.product__share .btn { display: inline-flex; align-items: center; gap: 8px; }
.product-about, .product-rail, .reviews { width: 100%; max-width: var(--shell); margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; padding-top: clamp(1.25rem, 2.5vw, 2rem); border-top: 1px solid var(--rule); }
.product-section__title { margin: 0 0 var(--space-2); font-size: 1.25rem; font-weight: var(--w-strong); }
.product-about__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.product-about__text { max-height: 9.5rem; overflow: hidden; color: var(--fg-muted); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; position: relative; }
.product-about__text.is-open { max-height: none; }
.product-about__more { margin-top: var(--space-1); font-size: .9rem; text-decoration: underline; }
.product-about__facts { display: grid; margin: 0; }
.product-about__facts > div { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); gap: var(--space-2); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.product-about__facts > div:first-child { padding-top: 0; }
.product-about__facts dt { color: var(--fg-muted); font-size: .9rem; }
.product-about__facts dd { margin: 0; overflow-wrap: anywhere; }
.product__cat { display: inline-block; margin-right: 8px; border: 0; text-decoration: underline; }
.reviews__summary { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.reviews__avg { font-size: 2rem; font-weight: var(--w-strong); line-height: 1; }
.reviews__list { margin: 0; padding: 0; list-style: none; }
.review { padding: var(--space-2) 0; border-top: 1px solid var(--rule); }
.review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.review__who { font-weight: var(--w-strong); font-size: .9rem; }
.review__body { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.review-form { display: grid; gap: var(--space-2); max-width: 36rem; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
@media (max-width: 48rem) { .product-about__grid { grid-template-columns: minmax(0, 1fr); } }
.product-card { position: relative; }
.seller-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.seller-head__avatar { flex: 0 0 4rem; width: 4rem; height: 4rem; font-size: 1.5rem; }
.seller-head__name { margin: 0; font-size: 1.8rem; }
.seller-head p { margin: 4px 0 0; }

/* ---------- account subpages ---------- */
.orders-list { border: 1px solid var(--rule); border-radius: 8px; background: var(--card); box-shadow: none; overflow: hidden; }
.orders-list td { padding-block: 14px; vertical-align: middle; }
.orders-list td:nth-child(2) { white-space: nowrap; }
.orders-list .order-row__count { display: block; margin-top: 2px; }
.orders-list .order-status { display: inline-block; padding: 2px 10px; border: 0; border-radius: 999px; background: var(--accent-soft); font-size: .72rem; font-weight: var(--w-strong); letter-spacing: .04em; text-transform: uppercase; }
.orders-list .order-status--paid, .orders-list .order-status--delivered { background: #E8F1EA; color: #2F5D3E; }
.orders-list .order-status--failed, .orders-list .order-status--cancelled { background: #F7E8E8; }
.account-order-filters { padding-bottom: var(--space-2); }
.account-order-filter { border-radius: 999px; }
.account__content .form { max-width: none; padding: 0; background: none; box-shadow: none; }
@media (max-width: 48rem) {
  .order__lines, .orders-list { display: block; max-width: 100%; overflow-x: auto; }
  .account__side { min-width: 0; }
}

/* ---------- account settings and dialogs ---------- */
/* Settings follow WeeCommerce: a section bar with its action, a read-only
   card of label/value rows, and every edit in a modal. */
.settings { display: grid; gap: var(--space-3); }
.settings-section { display: grid; gap: 0; }
.settings-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 12px var(--space-3); border: 1px solid var(--rule); border-radius: 8px 8px 0 0; background: var(--accent-tint); }
.settings-bar h2 { margin: 0; font-family: var(--sans); font-size: .9rem; font-weight: var(--w-strong); letter-spacing: .06em; text-transform: uppercase; }
.settings-bar .btn { padding-block: 8px; }
.settings-card { margin: 0; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 8px 8px; background: var(--card); }
.settings-row { display: grid; gap: 2px; padding: 14px var(--space-3); }
.settings-row + .settings-row { border-top: 1px solid var(--rule); }
.settings-row dt { color: var(--fg-muted); font-size: .85rem; }
.settings-row dd { margin: 0; font-size: 1rem; font-weight: var(--w-strong); overflow-wrap: anywhere; }
.settings-row dd.is-empty { color: var(--fg-muted); font-weight: var(--w-body); }
.settings-note { margin: 0; padding: 14px var(--space-3); color: var(--fg-muted); font-size: .92rem; }

.address-dialog { width: min(36rem, calc(100vw - 2rem)); max-height: min(90vh, 52rem); padding: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--fg); box-shadow: 0 24px 80px #0003; overflow: hidden; }
.address-dialog::backdrop { background: #15151099; backdrop-filter: blur(2px); }
.address-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 16px var(--space-3); border-bottom: 1px solid var(--rule); }
.address-dialog__head h2 { margin: 0; font-family: var(--sans); font-size: 1.1rem; font-weight: var(--w-strong); }
.address-dialog__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-2); max-height: calc(min(90vh, 52rem) - 4.5rem); overflow-y: auto; padding: var(--space-3); margin: 0; background: none; box-shadow: none; max-width: none; }
.address-dialog__form .field { display: grid; gap: 6px; min-width: 0; }
.address-dialog__form .field--wide, .address-dialog__form .dialog-actions, .address-dialog__form .dialog-check { grid-column: 1 / -1; }
.address-dialog__form label { color: var(--fg); font-size: .9rem; font-weight: var(--w-emph); letter-spacing: 0; text-transform: none; }
.address-dialog__form input:not([type="checkbox"]), .address-dialog__form select { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--card); color: var(--fg); font: inherit; }
.address-dialog__form input:focus, .address-dialog__form select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.dialog-check { display: flex; align-items: center; gap: 10px; font-weight: var(--w-body) !important; }
.dialog-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; padding-top: var(--space-2); border-top: 1px solid var(--rule); }
@media (max-width: 36rem) {
  .address-dialog__form { grid-template-columns: minmax(0, 1fr); padding: var(--space-2); }
  .address-dialog__form .field--wide, .address-dialog__form .dialog-actions, .address-dialog__form .dialog-check { grid-column: auto; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
}
.panel { padding: var(--space-3); border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.edit-address-form { max-height: none; overflow: visible; margin-top: var(--space-2); }
.account-section-head .btn { flex: 0 0 auto; white-space: nowrap; }
.account-empty { display: grid; justify-items: center; gap: 4px; padding: var(--space-4) var(--space-3); border: 1px dashed var(--field-line); border-radius: 8px; background: var(--card); text-align: center; }
.account-empty__title { margin: 0; font-weight: var(--w-strong); }
.account-empty p { margin-inline: auto; }
.account-empty p:last-child { margin-block: 0; }

/* order page: dispute disclosure and cancel button */
.order__dispute-open > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.order__dispute-open > summary::-webkit-details-marker { display: none; }
.order__dispute-open[open] > summary { margin-bottom: var(--space-3); }
.order__actions .btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.order__actions form { margin: 0; display: flex; }
.btn--cancel { border: 1px solid var(--danger); color: var(--danger); background: transparent; }
.btn--cancel:hover { background: var(--danger); color: #fff; }

/* sell with us */
.sell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; max-width: 62rem; margin: var(--space-3) auto 0; }
.sell__intro .page-title { margin-bottom: var(--space-2); }
.sell__lead { font-size: var(--step-1); color: var(--fg-muted); margin: 0 0 var(--space-3); }
.sell__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); counter-reset: sell; }
.sell__points li { display: grid; grid-template-columns: 2rem 1fr; column-gap: var(--space-2); counter-increment: sell; }
.sell__points li::before { content: counter(sell); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent-soft); color: var(--on-highlight); display: flex; align-items: center; justify-content: center; font-weight: var(--w-strong); }
.sell__points span { color: var(--fg-muted); }
.sell__form { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(1.25rem, 4vw, 2rem); display: flex; flex-direction: column; gap: var(--space-2); }
.sell__form-title { margin: 0; font-size: var(--step-2); }
.sell__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.sell__form .field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.sell__form .field input, .sell__form .field select, .sell__form .field textarea { width: 100%; }
.sell__submit { align-self: stretch; justify-content: center; }
.sell__done { grid-column: 1 / -1; max-width: 32rem; display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
@media (max-width: 52rem) { .sell { grid-template-columns: 1fr; } .sell__row { grid-template-columns: 1fr; } }
.reviews__more { list-style: none; padding-top: var(--space-2); }

/* Platform logo in the storefront header, in place of the name. */
.brand__logo { display: block; max-height: 36px; max-width: 200px; object-fit: contain; }
