/* Storefront stylesheet.
 *
 * Every colour and face comes from the custom properties the theme emits, so
 * one stylesheet serves jewellery, fashion and electronics. Nothing here names
 * a literal colour except pure black/white overlays.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}
.wrap.narrow { max-width: 44rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand { display: flex; align-items: center; gap: 0.8rem; margin-right: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.brand-rule { width: 2rem; height: 1px; background: var(--accent); opacity: 0.7; }

.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.9rem; }
.nav a { color: var(--ink-muted); padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.bag { font-size: 0.9rem; color: var(--ink-muted); }
.bag:hover { color: var(--ink); }
.bag-count {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 46rem) {
  .nav { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: calc(5rem * var(--space)) 0 calc(3rem * var(--space)); }
.hero--compact { padding: calc(3rem * var(--space)) 0 calc(1.5rem * var(--space)); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.hero-body {
  max-width: 42ch;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  margin: 0 0 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- sections ---------- */

.section { padding: calc(3rem * var(--space)) 0; }
.section--tall { padding: calc(6rem * var(--space)) 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.empty { color: var(--ink-muted); }

.notice {
  border-left: 2px solid var(--accent);
  background: var(--surface-alt);
  padding: 0.8rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

/* ---------- collections ---------- */

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.collection {
  background: var(--surface);
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.15s ease;
}
.collection:hover { background: var(--surface-alt); }
.collection-name { font-family: var(--font-display); font-size: 1.25rem; }
.collection-count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.collections--large .collection { padding: 2.2rem 1.5rem; }

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: calc(2rem * var(--space)) 1.4rem;
}

.card-link { display: block; }

.card-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
}
.card-art .artwork { width: 100%; height: 100%; transition: transform 0.5s ease; }
.card:hover .card-art .artwork { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}

.card-body { padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; }
.card-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.card-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin: 0; line-height: 1.25; }
.card-price { margin: 0.2rem 0 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.card-price s { color: var(--ink-muted); font-size: 0.85em; margin-left: 0.4rem; }
.card-price--request { color: var(--ink-muted); font-size: 0.9rem; font-style: italic; }
.card-note { margin: 0; font-size: 0.72rem; color: var(--ink-muted); }

/* ---------- product detail ---------- */

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: calc(2.5rem * var(--space));
}
@media (max-width: 54rem) { .pdp-grid { grid-template-columns: 1fr; } }

.pdp-art {
  align-self: start;
  position: sticky;
  top: 6rem;
}
@media (max-width: 54rem) { .pdp-art { position: static; } }

.pdp-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}

.pdp-sku { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); margin: 0 0 1.4rem; letter-spacing: 0.05em; }

.pdp-price { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0; font-variant-numeric: tabular-nums; }
.pdp-price--request { font-size: 1.05rem; color: var(--ink-muted); font-style: italic; }
.pdp-price-note { font-size: 0.78rem; color: var(--ink-muted); margin: 0.25rem 0 1.2rem; }

.pdp-stock { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--success); margin: 0 0 1.6rem; }
.pdp-stock.is-out { color: var(--ink-muted); }

.pdp-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.pdp-feedback { font-size: 0.82rem; color: var(--success); }
.pdp-feedback.is-error { color: var(--danger); }

.pdp-copy { color: var(--ink-muted); margin-bottom: 2.5rem; max-width: 46ch; }

/* ---------- price breakup ---------- */

.breakup {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem 1.4rem 1.1rem;
  margin-bottom: 2.5rem;
}

.breakup-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.breakup-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.breakup-table th {
  text-align: left;
  font-weight: 400;
  padding: 0.5rem 0;
  color: var(--ink);
}
.breakup-table td {
  text-align: right;
  padding: 0.5rem 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.breakup-detail { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); margin-top: 0.1rem; }
.breakup-subtotal th, .breakup-subtotal td { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.breakup-tax th, .breakup-tax td { color: var(--ink-muted); font-size: 0.85rem; padding: 0.3rem 0; }
.breakup-total th, .breakup-total td { border-top: 1px solid var(--line); padding-top: 0.7rem; font-size: 1.05rem; }
.breakup-rate { margin: 1rem 0 0; font-size: 0.72rem; color: var(--ink-muted); font-family: var(--font-mono); }

/* ---------- specification ---------- */

.spec { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.spec-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }

.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem 1.4rem; margin: 0 0 1.5rem; }
.spec-list div { display: flex; flex-direction: column; gap: 0.15rem; }
.spec-list dt { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.spec-list dd { margin: 0; font-size: 0.95rem; }

.spec-stones { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 1.2rem; }
.spec-stones th { text-align: left; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); padding: 0.4rem 0.6rem 0.4rem 0; }
.spec-stones td { padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--line); }
.spec-note { font-size: 0.78rem; color: var(--ink-muted); margin: 0; }

/* ---------- cart ---------- */

.cart-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cart-table th { text-align: left; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); padding: 0.6rem 0.8rem 0.6rem 0; }
.cart-table td { padding: 0.9rem 0.8rem 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.cart-piece a { display: flex; align-items: center; gap: 0.9rem; }
.cart-thumb { width: 3.2rem; height: 3.2rem; display: block; flex: none; border: 1px solid var(--line); overflow: hidden; color: var(--accent); }
.cart-expired { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent); margin-top: 0.25rem; }
.cart-table tfoot th { border-bottom: 0; text-align: right; padding-top: 1rem; }
.cart-table tfoot td { border-bottom: 0; padding-top: 1rem; }
.cart-total th, .cart-total td { font-size: 1.1rem; color: var(--ink); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: calc(4rem * var(--space)); padding: calc(3rem * var(--space)) 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 46rem) { .footer-inner { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 0.4rem; }
.footer-note { color: var(--ink-muted); margin: 0; max-width: 40ch; font-size: 0.9rem; }
.footer-meta p { margin: 0 0 0.3rem; color: var(--ink-muted); font-size: 0.88rem; }
.footer-legal { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-muted); }

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

/* ---------- photography ---------- */

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-art .photo { transform: scale(1.04); }

/* The artwork placeholder and a real photograph occupy the same box, so a
 * catalogue that is half photographed does not render as a ragged grid. */
.card-art .photo, .card-art .artwork { display: block; }

.pdp-art-main {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  color: var(--accent);
}

.pdp-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.pdp-thumb {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.pdp-thumb:hover { opacity: 0.9; }
.pdp-thumb.is-active { opacity: 1; border-color: var(--accent); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-thumb .photo, .cart-thumb .artwork { width: 100%; height: 100%; }

.notice--bad { border-left-color: var(--danger); }
.changes { margin: 0 0 1.5rem; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-muted); }
.changes li { margin-bottom: 0.25rem; }
.changes strong { color: var(--ink); font-weight: 500; }
.change--up { color: var(--danger); }
.change--down { color: var(--success); }

/* ---------- checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 54rem) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.checkout-form legend {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); padding: 0; margin-bottom: 0.9rem;
}
.checkout-form label { display: flex; flex-direction: column; gap: 0.3rem; }
.checkout-form label > span { font-size: 0.78rem; color: var(--ink-muted); }
.checkout-form label > span em { font-style: normal; }
.checkout-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.checkout-form input {
  font: inherit; padding: 0.65rem 0.75rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.checkout-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.checkout-form .notes { margin-bottom: 1.5rem; }

.checkout-error {
  border-left: 2px solid var(--danger); background: var(--surface-alt);
  padding: 0.7rem 0.9rem; margin: 0 0 1.2rem; font-size: 0.9rem; color: var(--danger);
}
.price-moved { margin-bottom: 1.4rem; }
.price-moved .confirm { flex-direction: row; align-items: center; gap: 0.55rem; font-size: 0.88rem; }
.checkout-secure { font-size: 0.75rem; color: var(--ink-muted); margin: 0.9rem 0 0; }

.checkout-summary {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.3rem;
  position: sticky; top: 6rem;
}
@media (max-width: 54rem) { .checkout-summary { position: static; } }
.checkout-summary h2 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.summary-table th { text-align: left; font-weight: 400; padding: 0.45rem 0; }
.summary-table td { text-align: right; font-variant-numeric: tabular-nums; padding: 0.45rem 0; white-space: nowrap; }
.summary-total th, .summary-total td { border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 1.05rem; }
.summary-note { font-size: 0.74rem; color: var(--ink-muted); margin: 1rem 0 0; }
.qty { color: var(--ink-muted); font-size: 0.85em; }
.order-summary { margin: 2rem 0; }

.cart-actions { margin-top: 1.8rem; }

/* ---------- tax invoice ---------- */

.invoice { padding: 2rem 0 4rem; }
.invoice-actions {
  max-width: 52rem; margin: 0 auto 1.2rem;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.2rem;
}
.invoice-back { font-size: 0.88rem; color: var(--ink-muted); }

/* The sheet is deliberately plain and light whatever the storefront theme is:
 * an invoice is printed, and a dark theme wastes a cartridge and reads badly. */
.invoice-sheet {
  max-width: 52rem;
  margin: 0 auto;
  background: #ffffff;
  color: #14181d;
  border: 1px solid #d8dde3;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
}
.invoice-sheet .mono { font-family: var(--font-mono); font-size: 0.92em; }
.invoice-sheet .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.invoice-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-bottom: 2px solid #14181d; padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.invoice-kind { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.4rem; color: #5a6069; }
.invoice-supplier { font-size: 1.35rem; margin: 0 0 0.35rem; font-family: var(--font-body); font-weight: 600; }
.invoice-addr { margin: 0 0 0.2rem; color: #4a525c; max-width: 34ch; }
.invoice-gstin { margin: 0.35rem 0 0.2rem; }
.invoice-meta { margin: 0; display: grid; gap: 0.35rem; }
.invoice-meta div { display: grid; grid-template-columns: 8rem auto; gap: 0.6rem; }
.invoice-meta dt { color: #5a6069; font-size: 0.8rem; }
.invoice-meta dd { margin: 0; font-weight: 500; }

.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.4rem; }
@media (max-width: 34rem) { .invoice-parties { grid-template-columns: 1fr; } }
.invoice-parties h2 { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5a6069; margin: 0 0 0.5rem; }
.invoice-parties p { margin: 0 0 0.2rem; color: #4a525c; }
.party-name { color: #14181d !important; font-weight: 600; }

.invoice-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.invoice-table th { text-align: left; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5a6069; border-bottom: 1px solid #14181d; padding: 0.5rem 0.5rem 0.5rem 0; }
.invoice-table td { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid #e4e8ec; vertical-align: top; }

.invoice-totals { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.invoice-totals dl { margin: 0; min-width: 16rem; }
.invoice-totals div { display: flex; justify-content: space-between; gap: 2rem; padding: 0.3rem 0; }
.invoice-totals dt { color: #4a525c; }
.invoice-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.invoice-totals .grand { border-top: 2px solid #14181d; margin-top: 0.4rem; padding-top: 0.6rem; font-size: 1.05rem; font-weight: 600; }

.invoice-words { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid #e4e8ec; }
.invoice-foot { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #e4e8ec; color: #5a6069; font-size: 0.78rem; }
.invoice-foot p { margin: 0 0 0.25rem; }

@media print {
  body { background: #ffffff; }
  .site-header, .site-footer, .no-print { display: none !important; }
  .invoice { padding: 0; }
  .invoice-sheet { border: 0; max-width: none; padding: 0; }
  @page { margin: 14mm; }
}

.order-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }

.delivery-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.delivery-option:last-child { border-bottom: 0; }
.delivery-option small { display: block; color: var(--ink-muted); font-size: 0.76rem; margin-top: 0.15rem; }
.delivery-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delivery-note { font-size: 0.82rem; color: var(--ink-muted); margin: 0.6rem 0 0; }

/* Order tracking.
   Shown on the order page, which a customer comes back to a week later wanting
   to know where their ring is rather than to re-read the receipt. */
.tracking {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface-alt);
}

.tracking--attention { border-color: var(--danger); }

.tracking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.tracking-status {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.tracking-carrier {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tracking-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.tracking-eta {
  margin: 0.9rem 0 0;
  color: var(--ink-muted);
}

.tracking-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tracking-step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 0 0 1.25rem 0;
}

/* The rail joins the scans. The last step has no one below it to join to. */
.tracking-step::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.tracking-step:last-child { padding-bottom: 0; }
.tracking-step:last-child::before { display: none; }

.tracking-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.45rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tracking-step.is-done .tracking-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.tracking-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tracking-label { font-weight: 500; }

.tracking-detail {
  font-size: 0.9rem;
  color: var(--ink);
}

.tracking-meta {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.notice--warn { border-left: 2px solid var(--danger); }

/* ---------- platform marketing site ----------
   The pages at commerce.edesy.in. They share the storefront's tokens and type
   scale deliberately: one stylesheet means a change to the button or the
   heading rhythm lands on both sites, and there is no second design to keep
   in step. */

.site-header--platform .nav { margin-left: auto; }

.bag--cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.mk-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.mk-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0.4rem 0 0;
  max-width: 20ch;
}

.mk-lede {
  margin: 1.2rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.mk-body {
  max-width: 68ch;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 1.6rem;
}

.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.button--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.mk-section { border-bottom: 1px solid var(--line); }
.mk-section:last-of-type { border-bottom: 0; }

/* Cards, demos and plans are all one object repeated, so they share their
   edges, padding and inner rhythm rather than each inventing their own. */
.mk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mk-card {
  background: var(--surface);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mk-card--link { text-decoration: none; color: inherit; }
.mk-card--link:hover { background: var(--surface-alt); }

.mk-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.mk-card-body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.mk-card-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-list { margin: 0; }

.mk-list-row {
  display: grid;
  grid-template-columns: minmax(10rem, 18rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.mk-list-row:last-child { border-bottom: 1px solid var(--line); }

.mk-list dt {
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mk-list dd {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* A status chip. "In progress" has to read differently from "Live" at a
   glance, or the roadmap reads as a feature list. */
.mk-tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  white-space: nowrap;
}
.mk-tag--live { background: var(--success); color: var(--surface); }
.mk-tag--wip  { background: var(--surface-alt); color: var(--ink-muted); border: 1px solid var(--line); }

.mk-demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mk-demo {
  background: var(--surface);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.mk-demo:hover { background: var(--surface-alt); }

.mk-demo-vertical {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-demo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.mk-demo-blurb {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.mk-demo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.mk-point {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-muted);
}

.mk-demo-go {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.mk-plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface);
}

.mk-plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.mk-plan-flag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.mk-plan-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0;
}

.mk-plan-price {
  font-size: 1.9rem;
  font-family: var(--font-display);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.mk-plan-period {
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--ink-muted);
}

.mk-plan-blurb {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mk-plan-features {
  list-style: none;
  margin: 0.4rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.mk-plan-features li {
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.mk-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

.mk-plan .button { margin-top: auto; text-align: center; }

.mk-note {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.mk-faqs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mk-faq { border-bottom: 1px solid var(--line); }

.mk-faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; color: var(--accent); }
.mk-faq[open] summary::after { content: "\2013"; }

.mk-faq p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 68ch;
}

.mk-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  background: var(--surface);
}

.mk-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.mk-field { display: flex; flex-direction: column; gap: 0.35rem; }
.mk-field--wide { grid-column: 1 / -1; }

.mk-field label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mk-optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }

.mk-field input,
.mk-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.mk-field input:focus-visible,
.mk-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* The honeypot. Off-screen rather than display:none — some bots skip fields
   that are not rendered at all, and the point is that they fill it in. */
.mk-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mk-cta { text-align: left; }

@media (max-width: 640px) {
  .mk-list-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .mk-list-row:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- store content pages ----------
   Merchant-authored HTML, so the styling has to cope with whatever tags the
   allowlist admits rather than with a known structure. */

.page-title { max-width: 20ch; }

.page-updated {
  margin: 0.6rem 0 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page-body {
  max-width: 68ch;
  line-height: 1.7;
}

.page-body > * + * { margin-top: 1.1rem; }

.page-body h2,
.page-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 2.4rem;
  text-wrap: balance;
}
.page-body h2 { font-size: 1.5rem; }
.page-body h3 { font-size: 1.2rem; }

.page-body a {
  border-bottom: 1px solid var(--accent);
}

.page-body ul,
.page-body ol { padding-left: 1.3rem; }
.page-body li + li { margin-top: 0.4rem; }

.page-body blockquote {
  margin-left: 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-muted);
}

.page-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* A merchant's table can be any width, so it scrolls inside its own box
   rather than pushing the page sideways. */
.page-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}
.page-body th,
.page-body td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.page-body th { background: var(--surface-alt); font-weight: 500; }

.page-body pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.page-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.footer-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.4rem;
}

.footer-pages a {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.footer-pages a:hover { color: var(--ink); }

/* ---------- faceted browsing ----------
   Filters are links, not a form: every filtered view has its own address, works
   without JavaScript, and can be shared or indexed. */

.browse {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2.5rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 1.2rem 0.4rem;
}

.filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.filters-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.filters-clear {
  font-size: 0.78rem;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
}
.chip:hover { background: var(--accent); color: var(--accent-ink); }
.chip-x { font-size: 0.9rem; line-height: 1; }

.filter { border-bottom: 1px solid var(--line); }
.filter:last-of-type { border-bottom: 0; }

.filter summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: "+"; color: var(--ink-muted); }
.filter[open] summary::after { content: "\2013"; }

.filter-values {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.filter-value {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--ink);
}

/* The tick box is drawn rather than an input, because these are links — a
   checkbox that is not a checkbox would lie to a screen reader. */
.filter-box {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.filter-value.is-on .filter-box {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-value.is-on { color: var(--ink); font-weight: 500; }

.filter-label { flex: 1; }

.filter-count {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.filter-more {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.browse-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.browse-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.browse-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

.browse-sort-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.browse-sort a { color: var(--ink-muted); }
.browse-sort a.is-on { color: var(--accent); border-bottom: 1px solid currentColor; }

.browse-empty { padding: 2rem 0; }

@media (max-width: 60rem) {
  .browse { grid-template-columns: 1fr; gap: 1.5rem; }
  .filters { position: static; }
}

/* ---------- store navigation ----------
   Dropdowns open on hover and on keyboard focus. CSS only: a menu that needs
   JavaScript to open is a menu that does not open while the page is still
   loading, which is when people reach for it. */

.nav--store {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  margin-right: 1.2rem;
}

.nav-item { position: relative; }

.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--ink);
}

.nav-top.is-active { color: var(--accent); }

.nav-caret {
  width: 0.3rem;
  height: 0.3rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
}

.nav-badge {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  vertical-align: middle;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 13rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.6rem;
  /* Hidden with visibility rather than display:none so the links stay
     focusable in sequence and a keyboard user can tab into the menu. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.3rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown--mega { min-width: 44rem; padding: 1.1rem 1.2rem; }

.dropdown-inner { display: flex; flex-direction: column; gap: 0.1rem; }
.dropdown--mega .dropdown-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.4rem 1.8rem;
}

.dropdown-col ul { list-style: none; margin: 0; padding: 0; }
.dropdown-col li + li { margin-top: 0.1rem; }

.dropdown-heading {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.dropdown-link,
.dropdown-col a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.88rem;
  color: var(--ink);
  border-radius: 2px;
}

.dropdown-link:hover,
.dropdown-col a:hover { background: var(--surface-alt); color: var(--accent); }
.dropdown-link.is-active { color: var(--accent); }

.dropdown-thumb {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
}

/* On a phone a hover dropdown is unusable, so the menu flattens into a scrolling
   row of top-level links and the dropdowns are left closed. */
@media (max-width: 60rem) {
  .nav--store {
    margin-right: 0.6rem;
    overflow-x: auto;
    max-width: 58vw;
  }
  .dropdown { display: none; }
}

/* ---------- merchandising badges ---------- */

/* Badges stack rather than overlap: a product can be a Gurus' Pick, planar and
   sold at the same time, and the stock badge must stay readable under them. */
.card-badges {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  max-width: calc(100% - 1.4rem);
}
.card-badges .card-badge { position: static; }

.card-badge--accent  { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card-badge--success { background: var(--success); color: var(--ground); border-color: var(--success); }
.card-badge--warn    { background: var(--danger); color: var(--ground); border-color: var(--danger); }
.card-badge--info    { background: var(--surface-alt); color: var(--ink-muted); }

.pdp-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.pdp-badges .card-badge { position: static; }

/* ---------- stars ---------- */

.stars { display: inline-flex; gap: 0.05em; line-height: 1; letter-spacing: 0; }
.star { color: var(--line); font-size: 0.95em; }
.star--full { color: var(--accent); }

/* A half star is the accent colour over the empty colour, split down the
   middle. Behind @supports so a browser without background-clip:text shows an
   empty star rather than an invisible one. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .star--half {
    background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.rating-value { font-variant-numeric: tabular-nums; color: var(--ink); }

.pdp-rating { margin: 0 0 0.8rem; }
.pdp-rating-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-muted); text-decoration: none; font-size: 0.85rem; }
.pdp-rating-link:hover .rating-count { text-decoration: underline; }
.stars--lg { font-size: 1.35rem; }

/* ---------- reviews ---------- */

.reviews-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.reviews-score { text-align: center; }
.reviews-average {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 0.4rem;
  font-variant-numeric: tabular-nums;
}
.reviews-count { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--ink-muted); }
.reviews-verified { margin: 0.2rem 0 0; font-size: 0.72rem; color: var(--ink-muted); }

.reviews-histogram { width: 100%; border-collapse: collapse; }
.reviews-histogram th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-align: left;
  color: var(--ink-muted);
  white-space: nowrap;
  padding: 0.18rem 0.7rem 0.18rem 0;
}
.histogram-track { width: 100%; padding: 0.18rem 0; }
.histogram-rail {
  display: block;
  height: 0.45rem;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.histogram-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.histogram-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: right;
  padding-left: 0.7rem;
  white-space: nowrap;
}

.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; padding-top: 1.8rem; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.45rem; }
.review-verified {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
}
.review-title { margin: 0 0 0.3rem; font-weight: 600; font-size: 0.95rem; }
.review-comment { margin: 0 0 0.5rem; max-width: 62ch; line-height: 1.6; }
.review-by { margin: 0; font-size: 0.73rem; color: var(--ink-muted); }
.reviews-more { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--ink-muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 46rem) {
  .reviews-summary { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- plugin blocks ---------- */

/* Rendered by us, from data a plugin returned. It never supplies markup, so
   these are the only styles that can ever apply to it. */
.app-block {
  margin: 1.6rem 0 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.app-block-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}
.app-block-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.app-block-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.app-block-item:last-child .app-block-link { border-bottom: 0; }
.app-block-link:hover .app-block-label { text-decoration: underline; }
.app-block-label { font-size: 0.92rem; min-width: 0; }
.app-block-sub {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  white-space: nowrap;
}
.app-block-badge {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.app-block-by {
  margin: 0.9rem 0 0;
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- quote (a payment link) ---------- */

.wrap--narrow { max-width: 42rem; }
.quote { padding: 2rem 0 4rem; }
.quote-head { margin-bottom: 1.6rem; }
.quote-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0.3rem 0 0.6rem; }
.quote-state { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }
.quote-state--ok { color: var(--success); }
.quote-state--bad { color: var(--danger); }

.quote-lines { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.quote-lines th, .quote-lines td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; }
.quote-lines thead th { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 400; }
.quote-lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-lines tfoot th, .quote-lines tfoot td { border-bottom: 0; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.quote-total th, .quote-total td { border-top: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; padding-top: 0.7rem; }
.quote-sku { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); }

.quote-ship { margin: 1.5rem 0; }
.quote-ship h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 500; margin: 0 0 0.4rem; }
.quote-ship address { font-style: normal; line-height: 1.6; }

.quote-pay { margin: 1.8rem 0 0.6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.button--large { font-size: 1rem; padding: 0.8rem 1.8rem; }
.quote-feedback { font-size: 0.85rem; color: var(--ink-muted); }
.quote-note { font-size: 0.8rem; color: var(--ink-muted); margin: 0.4rem 0 0; }

/* Brands ------------------------------------------------------------------ */

.pdp-brand { margin: 0 0 0.3rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pdp-brand a { color: var(--ink-muted); }
.pdp-brand a:hover { color: var(--ink); }

/* The A–Z strip is sticky because a wall of three hundred logos is long, and a
   jump list you have to scroll back up to reach is a jump list nobody uses. */
.alpha { position: sticky; top: 0; z-index: 5; background: var(--ground); border-bottom: 1px solid var(--line); }
.alpha .wrap { display: flex; flex-wrap: wrap; gap: 0.15rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.alpha-link {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1;
  padding: 0.4rem 0.5rem; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--ink-muted);
}
.alpha-link:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }

.brand-group { margin-bottom: 2.5rem; scroll-margin-top: 3.5rem; }
.brand-letter {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--ink-muted); margin: 0 0 0.6rem; padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.brand-tile {
  background: var(--surface); padding: 1.1rem 0.9rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  text-align: center; transition: background 0.15s ease;
}
.brand-tile:hover { background: var(--surface-alt); }

/* A fixed box rather than an intrinsic one: logos arrive at every aspect ratio
   a supplier's art department felt like, and a wall that jumps by row height is
   the first thing that makes a brand page look unfinished. */
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 3.2rem; overflow: hidden;
}
.brand-mark img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-mark .artwork { width: 3.2rem; height: 3.2rem; border-radius: var(--radius); }
.brand-mark--hero { width: 6rem; height: 4rem; margin: 0 auto 0.6rem; }

.brand-name { font-size: 0.9rem; line-height: 1.25; }
.brand-count { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

.hero--brand { text-align: center; }

/* Pagination -------------------------------------------------------------- */

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.pager-step {
  font-size: 0.85rem; padding: 0.55rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.pager-step:hover { background: var(--surface-alt); }
/* The disabled end of a pager stays in place rather than disappearing, so the
   other link does not jump across the row between page one and page two. */
.pager-step.is-off { opacity: 0.35; pointer-events: none; }
.pager-where { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* Search ------------------------------------------------------------------ */

.header-search { position: relative; display: flex; align-items: center; gap: 0.35rem; flex: 0 1 18rem; }
.header-search-input {
  width: 100%; font: inherit; font-size: 0.85rem; padding: 0.45rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.header-search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.header-search-go { background: none; border: 0; color: var(--ink-muted); cursor: pointer; font-size: 1rem; padding: 0.2rem; }
.header-search-go:hover { color: var(--ink); }

.suggestions {
  position: absolute; top: calc(100% + 0.3rem); left: 0; right: 0; z-index: 20;
  margin: 0; padding: 0.25rem; list-style: none; max-height: 22rem; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgb(0 0 0 / 12%);
}
.suggestion {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem;
  padding: 0.5rem 0.6rem; border-radius: var(--radius); font-size: 0.85rem;
}
.suggestion:hover { background: var(--surface-alt); }
.suggestion-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-note {
  flex: none; font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}

.search-form { display: flex; gap: 0.5rem; max-width: 34rem; margin-top: 1.1rem; }
.search-input {
  flex: 1; font: inherit; padding: 0.6rem 0.8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}

@media (max-width: 52rem) {
  .header-search { flex-basis: 100%; order: 10; margin-top: 0.5rem; }
}

/* Composed sections ------------------------------------------------------- */

.section-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-head .section-title { margin: 0; }
.section-sub { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }
.section-more { margin-left: auto; font-size: 0.85rem; white-space: nowrap; }
.section-foot { margin-top: 1.4rem; text-align: center; }

/* Hero slider. Scroll-snap rather than a transform carousel: the browser does
   the physics, it is swipeable on a phone for free, and with the script absent
   it degrades to a horizontally scrollable row rather than to one frozen
   frame. */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; }
.slide-link { display: block; color: inherit; }
.slide-art { display: block; width: 100%; height: auto; }
.slide-copy {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.6rem;
  background: linear-gradient(to top, rgb(0 0 0 / 62%), transparent);
  color: #fff;
}

/* A slide with words and no picture.
   The copy above is laid over the photograph, which means a slide without one
   has nothing in its flow and collapses to no height at all — taking the whole
   carousel with it. The renderer has always allowed a copy-only slide, so the
   stylesheet has to as well. */
.slide--copy-only .slide-copy {
  position: static;
  background: var(--surface-alt);
  color: var(--ink);
  min-height: 14rem;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem 1.6rem;
}
.slide--copy-only .slide-copy .eyebrow { color: var(--ink-muted); }
.slide--copy-only .button { align-self: flex-start; }
.slide-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2.4rem); margin: 0 0 0.3rem; }
.slide-body { margin: 0 0 0.7rem; font-size: 0.95rem; max-width: 40ch; }
.slide-copy .eyebrow { color: rgb(255 255 255 / 78%); }

.slider-step {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.slider-step--prev { left: 0.6rem; }
.slider-step--next { right: 0.6rem; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 0.6rem; display: flex; justify-content: center; gap: 0.35rem; }
.slider-dot { width: 0.5rem; height: 0.5rem; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: rgb(255 255 255 / 45%); }
.slider-dot.is-on { background: #fff; }

/* Banner walls. */
.banners { display: grid; gap: 0.8rem; }
.banners--one   { grid-template-columns: 1fr; }
.banners--two   { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.banners--three { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.banners--four  { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.banner { display: block; overflow: hidden; border-radius: var(--radius); }
.banner img { display: block; width: 100%; height: auto; }

/* Product rails. A row that scrolls rather than a grid that wraps: eight
   products across three rows reads as a catalogue, eight in a rail reads as a
   selection, which is what a merchandised row is for. */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 0.5rem; scrollbar-width: thin;
}
.rail-item { scroll-snap-align: start; }
@media (min-width: 60rem) { .rail { grid-auto-columns: minmax(13rem, 1fr); } }

.section--deal { background: var(--surface-alt); padding-top: 2rem; padding-bottom: 2rem; }
.section-head--deal { justify-content: space-between; align-items: center; }
.countdown { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.countdown-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.countdown-clock { font-family: var(--font-mono); font-size: 1rem; font-variant-numeric: tabular-nums; }

.price-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price-tile { background: var(--surface); padding: 1.2rem 1rem; text-align: center; transition: background 0.15s ease; }
.price-tile:hover { background: var(--surface-alt); }
.price-tile-label { display: block; font-size: 0.95rem; }
.price-tile-note { display: block; font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; color: var(--ink-muted); }

.section--usp { background: var(--surface-alt); padding-top: 1.6rem; padding-bottom: 1.6rem; }
.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.2rem; }
.usp { display: flex; gap: 0.7rem; align-items: flex-start; }
.usp-icon { font-size: 1.3rem; line-height: 1.2; }
.usp-title { margin: 0; font-size: 0.92rem; }
.usp-body { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--ink-muted); }

.faqs { display: grid; gap: 0.4rem; }
.faq { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.faq summary { cursor: pointer; font-size: 0.98rem; }
.faq p { margin: 0.6rem 0 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.6; }

/* Product page furniture ------------------------------------------------- */

.crumbs { border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0.7rem 0; font-size: 0.78rem; }
.crumbs li { display: flex; gap: 0.35rem; align-items: center; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); }
.crumb-sep { color: var(--line); }

.pdp-was { color: var(--ink-muted); font-size: 0.8em; margin-left: 0.5rem; }
.pdp-off { color: var(--success); font-size: 0.65em; letter-spacing: 0.04em; text-transform: uppercase; margin-left: 0.5rem; }

.picker { margin: 1.2rem 0; display: grid; gap: 1rem; }
.picker-axis { border: 0; padding: 0; margin: 0; }
.picker-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding: 0; }
.picker-values { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.swatch span {
  display: inline-block; padding: 0.45rem 0.8rem; font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.swatch:hover span { border-color: var(--ink-muted); }
.swatch.is-on span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A combination nobody can buy is struck through rather than hidden: a shopper
   looking for the colour that is sold out should find out, not wonder whether
   the shop ever had it. */
.swatch.is-gone { cursor: not-allowed; }
.swatch.is-gone span { color: var(--ink-muted); text-decoration: line-through; opacity: 0.6; }

.delivery { margin: 1.4rem 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.delivery-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.delivery-row { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.delivery-input {
  flex: 0 1 9rem; font: inherit; font-size: 0.9rem; padding: 0.45rem 0.6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.delivery-answer { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--ink-muted); min-height: 1.2em; }
.delivery-answer.is-bad { color: var(--danger); }

.promises { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.7rem; }
.promise { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.5; }
.promise-icon { font-size: 1.05rem; line-height: 1.3; }
.promise strong { font-weight: 600; }

.spec-group { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 1.2rem 0 0.4rem; }

/* The sticky buy bar appears only once the real button has scrolled away. */
.sticky-buy {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(0 0 0 / 8%);
}
.sticky-buy-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.sticky-buy-what { display: flex; flex-direction: column; min-width: 0; }
.sticky-buy-name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy-price { font-size: 1rem; font-variant-numeric: tabular-nums; }
.card-off { color: var(--success); font-size: 0.72rem; letter-spacing: 0.03em; white-space: nowrap; }

/* Account ----------------------------------------------------------------- */

.account-nav { border-bottom: 1px solid var(--line); }
.account-nav .wrap { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; font-size: 0.88rem; }
.account-nav a { color: var(--ink-muted); }
.account-nav a:hover, .account-nav a.is-on { color: var(--ink); }
.account-signout { margin-left: auto; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 0.88rem; color: var(--ink-muted); cursor: pointer; }
.linklike:hover { color: var(--ink); }

.account-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 2rem; }
.account-tile { background: var(--surface); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.account-tile:hover { background: var(--surface-alt); }
.account-tile-count { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.account-tile-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

.account-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.account-table th, .account-table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); }
.account-table thead th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 400; }
.account-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.address-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.address-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.address-label { margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.address-card address { font-style: normal; line-height: 1.6; font-size: 0.9rem; }

.stack-form { display: grid; gap: 1rem; max-width: 24rem; margin: 1.4rem 0; }
.stack-form .field { display: grid; gap: 0.3rem; }
.stack-form label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.stack-form input {
  font: inherit; padding: 0.55rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.form-error { color: var(--danger); font-size: 0.9rem; }

/* The wishlist heart sits on the card's artwork, and is a form so it works
   with JavaScript switched off. */
.card-save { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; margin: 0; }
.card-save button {
  border: 0; background: rgb(255 255 255 / 86%); cursor: pointer;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; line-height: 1;
  font-size: 0.95rem; color: var(--ink-muted); padding: 0;
}
.card-save button:hover { color: var(--danger); }
.card-save button.is-on { color: var(--danger); }
.card-art { position: relative; }

/* Reviews ----------------------------------------------------------------- */

.review-notice { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); font-size: 0.9rem; }
.review-sort { display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; margin: 1rem 0; font-size: 0.85rem; }
.review-sort-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.review-sort a { color: var(--ink-muted); }
.review-sort a:hover, .review-sort a.is-on { color: var(--ink); }

.review-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.review-photos img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: var(--radius); }

.review-vote { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.review-vote-label { font-size: 0.78rem; color: var(--ink-muted); }
.review-vote button {
  font: inherit; font-size: 0.78rem; padding: 0.25rem 0.6rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-muted);
}
.review-vote button:hover { color: var(--ink); border-color: var(--ink-muted); }

.review-form { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.review-form summary { cursor: pointer; font-size: 0.95rem; }
.review-form textarea {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.stack-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.stack-form legend { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding: 0; }

/* Five radio buttons that look like stars, and still behave like radios. */
.rating-input { display: flex; gap: 0.15rem; }
.rating-star input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-star span { font-size: 1.5rem; line-height: 1; color: var(--line); cursor: pointer; }
.rating-star:hover span,
.rating-star:has(input:checked) span { color: var(--accent); }
.rating-star input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Rewards ----------------------------------------------------------------- */

.rewards-banner {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; margin-bottom: 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt);
}
.rewards-points { font-family: var(--font-display); font-size: 1.3rem; }
.rewards-worth { color: var(--ink-muted); font-size: 0.9rem; }
.rewards-more { margin-left: auto; font-size: 0.85rem; }

.rewards-head { margin-bottom: 2rem; }
.rewards-balance { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin: 0; }
.rewards-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0.3rem 0 0.8rem; }

.refer { margin: 2rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.refer-code { font-size: 1.6rem; letter-spacing: 0.12em; margin: 0.6rem 0; }
.refer-link input {
  width: 100%; font: inherit; font-size: 0.85rem; padding: 0.5rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-alt); color: var(--ink-muted);
}

/* Compare and waitlist ---------------------------------------------------- */

.waitlist { margin: 1.2rem 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.delivery-input--wide { flex: 1 1 12rem; }

.pdp-aside { margin: 0.8rem 0; font-size: 0.85rem; }
.inline-form { display: inline; }

/* A comparison is wide by nature, so it scrolls inside its own box rather than
   making the whole page scroll sideways. */
.compare-scroll { overflow-x: auto; }
.compare { border-collapse: collapse; min-width: 100%; font-size: 0.88rem; }
.compare th, .compare td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { vertical-align: bottom; min-width: 10rem; }
.compare tbody th { font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.compare-art { display: block; width: 8rem; margin-bottom: 0.5rem; }
.compare-art img, .compare-art .artwork { width: 100%; height: auto; border-radius: var(--radius); }
.compare-brand { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); }
.compare-name { display: block; margin: 0.15rem 0; line-height: 1.3; }
.compare-price { display: block; font-variant-numeric: tabular-nums; }

/* Product page: highlights, the standing offer, quantity and buy now -------- */

/* The discount the basket is already going to apply. It was being given and
   never said, which is a discount the merchant pays for and gets no credit for. */
.offer-strip {
  margin: 0.8rem 0; padding: 0.55rem 0.8rem;
  border: 1px dashed var(--success); border-radius: var(--radius);
  color: var(--success); font-size: 0.85rem;
}

.highlights { margin: 1rem 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.highlights li { font-size: 0.9rem; line-height: 1.5; }

.pdp-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.qty input {
  width: 4rem; font: inherit; padding: 0.55rem 0.5rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
}
.button--buy { background: var(--surface); color: var(--ink); border: 1px solid var(--ink); }
.button--buy:hover { background: var(--surface-alt); }

.brand-block { margin: 2rem 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.brand-mark--inline { width: 5rem; height: 2.6rem; margin-bottom: 0.6rem; }

.tags { margin: 1.6rem 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0; }
.tag {
  font-size: 0.75rem; padding: 0.25rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted);
}
.tag:hover { color: var(--ink); border-color: var(--ink-muted); }
