/* ============================================================
   Warehouse clearance landing page
   Palette: warehouse blue + clearance red on warm paper
   ============================================================ */

:root {
  --ink: #0e1726;
  --ink-soft: #4b5566;
  --muted: #7b8595;
  --blue: #0057a8;
  --blue-deep: #00427f;
  --blue-tint: #eaf2fb;
  --red: #d21f2b;
  --red-tint: #fdecec;
  --paper: #f6f7f9;
  --card: #ffffff;
  --line: #e4e8ee;
  --green: #147a4b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, .06), 0 2px 8px rgba(14, 23, 38, .05);
  --shadow-lg: 0 18px 50px rgba(14, 23, 38, .18);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

/* ---------- promo bar ---------- */

.promo-bar {
  background: var(--blue-deep);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 9px 18px;
  text-align: center;
}

.promo-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, .18);
  vertical-align: middle;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.wm-top {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--red);
  font-stretch: condensed;
}

.wm-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--blue);
  margin-top: 3px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f4f7;
  padding: 0 6px 0 16px;
  max-width: 520px;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.search input::placeholder { color: var(--muted); }

.search button {
  border: 0;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.head-actions a:hover { color: var(--blue); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}

.cart-btn:hover { border-color: var(--blue); background: var(--blue-tint); }

.cart-count {
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
  transition: transform .18s;
}

.cart-count.pop { transform: scale(1.28); }

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

.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(0, 87, 168, .16), transparent 70%),
    linear-gradient(180deg, #fff 0%, #eef3f9 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 20px 62px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  white-space: nowrap;
  background: linear-gradient(transparent 64%, rgba(210, 31, 43, .18) 64%);
  padding: 0 2px;
}

.lede {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s, background .15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 87, 168, .26);
}

.btn-primary:hover { background: var(--blue-deep); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: .65; cursor: default; box-shadow: none; }

/* timer card */

.hero-timer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.timer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer {
  display: flex;
  gap: 10px;
  margin: 14px 0 16px;
}

.tbox {
  flex: 1;
  background: #0e1726;
  color: #fff;
  border-radius: 10px;
  padding: 12px 4px 9px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tbox span {
  display: block;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.tbox small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9aa5b6;
  margin-top: 3px;
}

.timer-bar {
  height: 5px;
  background: #eceff4;
  border-radius: 999px;
  overflow: hidden;
}

.timer-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--red), #f0674f);
  border-radius: 999px;
  transition: width 1s linear;
}

.timer-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

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

.grid-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 70px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.section-head h2 { font-size: 27px; font-weight: 800; }

.section-head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.sort { display: flex; gap: 6px; }

.sort-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.sort-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}

.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: #d3dae4;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eef2f7, #e2e8f0);
}

.card-media .glyph {
  font-size: 62px;
  filter: drop-shadow(0 8px 14px rgba(14, 23, 38, .14));
}

.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 5px 9px;
  border-radius: 6px;
}

.badge-soft {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(14, 23, 38, .82);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--ink);
}

.card-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.stars {
  font-size: 11.5px;
  color: #b8860b;
  letter-spacing: .04em;
}

.stars span { color: var(--muted); margin-left: 4px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 2px;
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.price-was {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: line-through;
}

.save {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.stock {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.stock-track {
  height: 4px;
  background: #eceff4;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.stock-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f0a03a, var(--red));
  border-radius: 999px;
}

.add-btn {
  margin-top: 10px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.add-btn:hover { background: var(--blue); color: #fff; }
.add-btn.in-cart { background: var(--blue-tint); border-color: #bcd7f2; color: var(--blue-deep); }

.grid-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- trust strip ---------- */

.trust {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  max-width: none;
  padding: 0;
}

.trust-item {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-item:last-child { border-right: 0; }

.trust-ico { font-size: 24px; }

.trust-item h3 {
  margin: 10px 0 5px;
  font-size: 14.5px;
  font-weight: 700;
}

.trust-item p { font-size: 12.5px; color: var(--muted); }

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

.site-foot {
  background: #0e1726;
  color: #c7cfdb;
  padding: 46px 20px 54px;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.foot-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .22em;
  color: #fff;
}

.foot-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
}

.foot-links a:hover { color: #fff; }

.foot-fine {
  margin: 22px auto 0;
  max-width: 62ch;
  font-size: 11.5px;
  line-height: 1.65;
  color: #8d97a7;
}

/* ---------- overlay + drawer ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, .5);
  z-index: 50;
  opacity: 0;
  transition: opacity .2s;
}

.overlay.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-lg);
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 { font-size: 18px; font-weight: 700; }

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}

.icon-btn:hover { background: #f2f4f7; color: var(--ink); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-empty {
  text-align: center;
  padding: 46px 10px;
  color: var(--muted);
  font-size: 14px;
}

.cart-empty .big { font-size: 34px; display: block; margin-bottom: 10px; }

.line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2f6;
  align-items: start;
}

.li-thumb {
  width: 64px; height: 64px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(150deg, #eef2f7, #e2e8f0);
}

.li-name { font-size: 13.5px; font-weight: 650; }

.li-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.li-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.qty button {
  border: 0;
  background: #fff;
  width: 26px; height: 26px;
  font: inherit;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
}

.qty button:hover { background: #f2f4f7; }

.qty span {
  min-width: 26px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}

.li-remove {
  border: 0;
  background: none;
  font: inherit;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.li-remove:hover { color: var(--red); }

.li-price { font-size: 14px; font-weight: 750; white-space: nowrap; }

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
  background: #fafbfc;
}

.row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 5px 0;
}

.row-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.drawer-foot .btn { margin-top: 16px; }

.drawer-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 23, 38, .55);
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(920px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

/* narrower card for single-panel states */
.modal-card:has(#cartPane:not([hidden])),
.modal-card:has(#loadingPane:not([hidden])),
.modal-card:has(#donePane:not([hidden])) {
  width: min(560px, 100%);
}

.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

.modal-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
}

.co-form { padding: 34px 34px 30px; }

.co-form h2 { font-size: 23px; font-weight: 800; }

.co-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 7px 0 18px;
}

.co-sub-2 { margin-top: 24px; }

.field { display: block; margin-bottom: 14px; }

.field > span {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  border: 1px solid #d8dee7;
  border-radius: 9px;
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 168, .13);
}

.field select {
  width: 100%;
  border: 1px solid #d8dee7;
  border-radius: 9px;
  padding: 12px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 168, .13);
}

.field select.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 31, 43, .1);
}

.field input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 31, 43, .1);
}

.err {
  display: block;
  min-height: 15px;
  font-size: 11.5px;
  color: var(--red);
  margin-top: 4px;
}

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-row .field-sm { flex: 0 0 88px; }
.field-row .field-prov { flex: 0 0 168px; }
.field-row .field-postal { flex: 0 0 118px; }

.input-with-brand { position: relative; }

.card-brand {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 20px;
  cursor: pointer;
}

.check input { accent-color: var(--blue); width: 15px; height: 15px; }

.co-fine {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.co-summary {
  background: #f7f9fb;
  border-left: 1px solid var(--line);
  padding: 34px 28px;
  border-radius: 0 16px 16px 0;
}

.co-summary h3 { font-size: 14px; font-weight: 750; margin-bottom: 14px; }

.summary-items { margin-bottom: 14px; }

.si {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid #eef1f5;
}

.si em { font-style: normal; color: var(--muted); }

.co-summary .row { font-size: 13px; }

.co-promise {
  margin-top: 16px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* done state */

.done { padding: 54px 40px 44px; text-align: center; }

.done-ico {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e7f7ee;
  color: var(--green);
  font-size: 27px;
  display: grid;
  place-items: center;
}

.done h2 { font-size: 25px; font-weight: 800; }

.done-sub {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.done-meta {
  margin: 26px auto 0;
  max-width: 400px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.done-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.done-meta > div:last-child { border-bottom: 0; }

.done-meta dt { color: var(--muted); }
.done-meta dd { margin: 0; font-weight: 700; text-align: right; }

.done-note {
  margin: 20px auto 24px;
  max-width: 46ch;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 48px; }
  .hero-timer { max-width: 420px; }
  .modal-grid { grid-template-columns: 1fr; }
  .co-summary { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
  .site-foot .foot-inner { text-align: center; }
}

@media (max-width: 720px) {
  .search { display: none; }
  .head-actions a { display: none; }
  .head-inner { gap: 12px; justify-content: space-between; }
  .co-form { padding: 28px 20px 24px; }
  .co-summary { padding: 24px 20px; }
  .field-row { flex-wrap: wrap; }
  .field-row .field,
  .field-row .field-prov,
  .field-row .field-postal { flex: 1 1 140px; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-media .glyph { font-size: 44px; }
  .price { font-size: 19px; }
  .done { padding: 44px 22px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- document pages (privacy, terms, contact) ---------- */

.doc-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.doc-head .head-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.back-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}

.back-link:hover { text-decoration: underline; }

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 20px 84px;
}

.doc h1 {
  font-size: 31px;
  font-weight: 800;
  margin-bottom: 8px;
}

.doc .updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 30px;
}

.doc h2 {
  font-size: 17px;
  font-weight: 750;
  margin: 32px 0 10px;
}

.doc p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 6px;
}

.doc .callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.doc a.inline { color: var(--blue); text-decoration: underline; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 26px 0 10px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
}

.contact-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .doc { padding: 34px 18px 64px; }
  .doc h1 { font-size: 25px; }
}

/* ============================================================
   Product detail page (single-offer variant)
   ============================================================ */

.pdp {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 90px;
}

.pdp-info { min-width: 0; }

.cart-icon { font-size: 14px; }
.cart-label { font-size: 14px; font-weight: 600; }

.crumbs {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.crumbs a:hover { color: var(--blue); }

.pdp-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 48px;
  align-items: start;
}

.pdp-media { position: sticky; top: 84px; }

.pdp-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, #f3f6fa, #e5eaf1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pdp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pdp-photo .fallback { font-size: 120px; line-height: 1; }
.pdp-photo .ph-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(14, 23, 38, .78);
  color: #fff;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
}

.pdp-badge-stack {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  gap: 6px;
}

.pdp-badge-stack span {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  width: fit-content;
}

.thumb-row { display: flex; gap: 10px; margin-top: 12px; }

.thumb {
  width: 66px; height: 66px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
}

.thumb.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 87, 168, .15); }

.pdp-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

.pdp-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 10px 0 8px;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.pdp-rating .stars { font-size: 13px; }

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 4px;
  flex-wrap: wrap;
}

.pdp-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.pdp-was {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}

.pdp-save {
  background: var(--red-tint);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
}

.stock-line {
  font-size: 13px;
  color: var(--red);
  font-weight: 650;
  margin-top: 6px;
}

.stock-line .track {
  display: block;
  height: 5px;
  background: #eceff4;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 7px;
  max-width: 280px;
}

.stock-line .track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0a03a, var(--red));
}

.buy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
}

.buy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty-box button {
  border: 0;
  background: #fff;
  width: 38px;
  font: inherit;
  font-size: 17px;
  color: var(--ink-soft);
  cursor: pointer;
}

.qty-box button:hover { background: #f2f4f7; }

.qty-box span {
  min-width: 34px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.buy-row .btn { flex: 1; }

.buy-sub {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.usp {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}

.usp li {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.usp li b { color: var(--ink); }

.acc { margin-top: 30px; border-top: 1px solid var(--line); }

.acc details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.acc summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

.acc summary::-webkit-details-marker { display: none; }

.acc summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.acc details[open] summary::after { content: "−"; }

.acc p, .acc li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.acc p { margin-top: 10px; }
.acc ul { margin: 10px 0 0; padding-left: 20px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.spec-table td {
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f2f6;
  color: var(--ink-soft);
}

.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; color: var(--ink); }

.review {
  border-bottom: 1px solid #f0f2f6;
  padding: 14px 0;
}

.review:last-child { border-bottom: 0; }

.review-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.review-name { font-weight: 700; color: var(--ink); font-size: 13px; }
.review p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 45;
  box-shadow: 0 -6px 20px rgba(14, 23, 38, .08);
}

.sticky-buy .sb-price { font-size: 18px; font-weight: 800; }
.sticky-buy .sb-was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.sticky-buy .btn { flex: 1; padding: 12px 18px; }

/* checkout steps */

.co-steps {
  display: flex;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.co-steps span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  font-weight: 600;
}

.co-steps span.on { background: var(--blue); color: #fff; }

.loading-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 40px;
  text-align: center;
}

/* author display:flex beats the UA [hidden] rule — restore it explicitly */
.loading-pane[hidden] {
  display: none;
}

.loading-pane p {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border: 3px solid #e3e8ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pay-logos {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}

.pay-logos span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
}

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdp-media { position: static; }
  .pdp { padding: 18px 16px 110px; }
  .sticky-buy { display: flex; }
  .pdp-price { font-size: 32px; }
}

/* ============================================================
   Costco-shell product page + Shopify-style checkout
   ============================================================ */

.bf-strip {
  background: linear-gradient(90deg, #0b0b0c 0%, #1d1d1d 50%, #0b0b0c 100%);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .06em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.bf-strip b {
  color: #f0c75e;
  font-weight: 800;
}

.green-strip {
  background: #0b7d40;
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 12px;
  letter-spacing: .01em;
}

.blue-nav { background: var(--blue); }

.cat-nav {
  display: flex;
  gap: 22px;
  padding: 0 20px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}

.cat-nav a {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 0;
}

.cat-nav a:hover { opacity: .82; }

.loc-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 26px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.loc-bar b { color: var(--ink); font-weight: 600; }

.online-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
}

.shop-by {
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: underline;
  margin-top: 10px;
}

.item-line {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

.item-line span { color: var(--ink-soft); font-weight: 600; }

.pdp-price-single {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-top: 14px;
}

.qty-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.qty-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.only-online { font-size: 12px; color: var(--muted); }

.cta-stack { display: grid; gap: 9px; margin-top: 20px; max-width: 340px; }

.btn-add,
.btn-buy {
  border-radius: 4px;
  padding: 14px 20px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-add {
  background: #fff;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
}

.btn-add:hover { background: #f2f2f2; }

.btn-buy {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}

.btn-buy:hover { background: var(--blue-deep); }

.ship-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ship-note + .ship-note { margin-top: 3px; }

.how-get {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fafbfc;
}

.how-get h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }

.hg-row { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hg-dot { color: var(--blue); }
.hg-avail { color: var(--green); font-weight: 700; font-size: 12px; }
.hg-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hg-fine { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }

.also-bought { margin-top: 56px; }
.also-bought h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

.also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.also-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: border-color .15s;
}

.also-card:hover { border-color: #c9d2de; }

.also-thumb {
  display: grid;
  place-items: center;
  height: 96px;
  font-size: 34px;
  background: linear-gradient(150deg, #f2f5f9, #e6ebf2);
  border-radius: 7px;
  margin-bottom: 10px;
}

.also-card p { line-height: 1.45; margin-bottom: 8px; }
.also-price { font-weight: 700; color: var(--ink); font-size: 13px; }

/* ---- cart / loading panes ---- */

.cart-pane { padding: 44px 34px 32px; text-align: center; }

.cart-pane-title { font-size: 19px; font-weight: 700; margin-bottom: 22px; }

.cart-pane-row {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
}

.cart-pane-thumb {
  width: 62px; height: 62px;
  flex: 0 0 62px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(150deg, #f2f5f9, #e6ebf2);
}

.cart-pane-name { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.cart-pane-sub { font-size: 12.5px; margin-top: 6px; color: var(--muted); }
.cart-pane-sub b { color: var(--ink); }

.btn-checkout {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-checkout:hover { background: #b81a25; }

.link-btn {
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover { color: var(--ink); }

.loading-card {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 26px;
  text-align: center;
}

.load-logo { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--red); }
.load-title { font-size: 17px; font-weight: 700; margin-top: 16px; }
.load-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.load-bar {
  height: 6px;
  background: #e2e6ec;
  border-radius: 999px;
  margin: 22px 0 14px;
  overflow: hidden;
}

.load-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  animation: loadslide 1.1s ease-in-out infinite;
}

@keyframes loadslide {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(260%); }
}

.load-secure { font-size: 12px; color: var(--green); font-weight: 600; }

/* ---- shopify-style checkout ---- */

.shopify-style .co-form h2,
.shopify-style .co-form h3,
.shopify-style .field > span,
.shopify-style .co-crumbs,
.shopify-style .co-line,
.shopify-style .co-summary h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.co-crumbs { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.co-crumbs span { color: var(--ink); }

.co-h { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.co-h3 { font-size: 15px; font-weight: 600; margin: 20px 0 12px; }

.co-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.phone-wrap { display: flex; align-items: stretch; }

.phone-wrap .cc {
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid #d8dee7;
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: #f6f7f9;
  white-space: nowrap;
}

.phone-wrap input {
  border-radius: 0 9px 9px 0;
}

.co-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn-shopify {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 14px 22px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.btn-shopify:hover { background: var(--blue-deep); }

.ship-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

.ship-opt input { accent-color: var(--blue); }
.ship-opt span { flex: 1; color: var(--ink-soft); }
.ship-opt b { font-weight: 700; }

.card-panel {
  border: 1px solid #d8dee7;
  border-radius: 8px;
  padding: 14px;
}

.card-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.card-logos { font-size: 10px; letter-spacing: .08em; color: var(--muted); font-weight: 800; }

.coupon {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.coupon input {
  flex: 1;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  min-width: 0;
}

.co-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 0;
}

.co-line-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 720px) {
  .cat-nav { gap: 14px; }
  .cart-pane { padding: 36px 20px 26px; }
  .co-nav-row { flex-direction: column-reverse; align-items: stretch; }
  .co-nav-row .btn-shopify { width: 100%; }
  .co-nav-row .link-btn { text-align: center; }
}

/* ============================================================
   PDP detail blocks — rating, delivery line, trust row, reviews.
   Rendered by tools/pdp.html; keep selectors in sync with it.
   ============================================================ */

.pdp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.pdp-tabs a {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.pdp-tabs a:hover { color: var(--blue); }

.pdp-tabs a.is-active {
  color: var(--blue-deep);
  background: var(--card);
  border-color: var(--line);
  margin-bottom: -1px;
}

.avail-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 122, 75, .15);
}

.addlist-line {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.addlist-line span { margin: 0 6px; }

/* company line under the footer wordmark */

.foot-legal {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.foot-legal a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-legal a:hover { text-decoration: underline; }

/* optional urgency strip (tools/build.js: URGENCY) */
.urgency-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--red-tint);
  border: 1px solid #f3c9cb;
  font-size: 12.5px;
  color: #8c1a22;
  font-weight: 600;
}

.urg-flag {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}

.urgency-line b { font-variant-numeric: tabular-nums; }

.urg-stock {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink-soft);
}

.link-inline {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
}

.link-inline:hover { color: var(--blue-deep); }

.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rating-line .stars,
.rs-stars,
.rv-stars {
  color: #e8a200;
  letter-spacing: 2px;
  font-size: 14px;
}

.rating-line b { color: var(--ink); }

.rating-line a {
  color: var(--blue);
  text-decoration: none;
}

.rating-line a:hover { text-decoration: underline; }

.deliv-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 9px 12px;
  background: var(--blue-tint);
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  font-size: 13px;
  color: var(--blue-deep);
}

.deliv-line b { color: var(--blue-deep); }

.deliv-icon { font-size: 15px; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-row a {
  color: var(--blue);
  text-decoration: none;
}

.trust-row a:hover { text-decoration: underline; }

/* member reviews */

.reviews {
  margin: 34px auto 0;
  max-width: var(--max);
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.reviews h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.review-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.rs-score {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.rs-count {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfd;
}

.rv-head {
  margin: 0 0 2px;
  font-size: 13px;
}

.rv-place {
  color: var(--muted);
  font-size: 12px;
}

.rv-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}

.rv-date {
  font-size: 11.5px;
  color: var(--muted);
}

.rv-title {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 700;
}

.rv-body {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* short checkout: one screen, step buttons and crumb trail hidden */

.checkout-pane.is-short .co-crumbs { display: none; }
.checkout-pane.is-short .co-step-btn { display: none; }
.checkout-pane.is-short .co-summary {
  border-left: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}

@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .reviews { margin-top: 26px; padding: 20px 16px; }
  .review-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .review-summary { flex-wrap: wrap; gap: 6px 10px; }
}

/* rating distribution + footer columns (Costco.ca PDP furniture) */

.review-summary {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rs-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rs-bars {
  flex: 1 1 320px;
  max-width: 420px;
  display: grid;
  gap: 4px;
}

.rs-bar {
  display: grid;
  grid-template-columns: 26px 1fr 38px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.rs-bar-track {
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
}

.rs-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #e8a200;
}

.rs-bar-n {
  text-align: right;
  color: var(--muted);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.foot-cols h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
}

.foot-cols a {
  display: block;
  padding: 2px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-cols a:hover {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr; gap: 14px; }
  .review-summary { flex-direction: column; align-items: flex-start; }
}
