/* ================================================================
   SHARED PAGE BITS (same values as cart / checkout / product list)
   ================================================================ */
:root {
  --success: #15803D;
  --success-soft: #EAF7EE;
  --warning: #A35A00;
  --warning-soft: #FFF6E5;
  --warning-line: #F6D9A8;
  --danger: #D42A2A;
  --danger-soft: #FDEEEE;
  --line-strong: #CBD5E1;
  --input-line: #8A97A8;           /* 3:1 against white, so field edges stay visible */
  --star: #E08A00;
  /* Warm accents: blue is kept for actions and selections, sand/amber for guidance and numbering */
  --warm-soft: #FFF6EC;
  --warm: #FBE6CF;
  --warm-line: #F3D6B4;
  --warm-ink: #8A400C;           /* 6:1+ on --warm-soft / --warm */
  --stick: 128px;                  /* bottom edge of the sticky header; JS keeps it in sync */
}
[hidden] { display: none !important; }
h1, h2, h3, h4, address, figure { margin: 0; font-style: normal; }
ol { margin: 0; padding: 0; list-style: none; }
select, textarea { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
:where(select, textarea, label):focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.cur { font-size: 13px; font-weight: 400; color: var(--fg-muted); }

.btn--lg { width: 100%; min-height: 56px; font-size: 17px; font-weight: 700; border-radius: 12px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--outline { background: var(--bg); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding-inline: 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--primary);
}
.link-btn:hover { background: var(--primary-soft); }

.pct {
  display: inline-flex; align-items: center; height: 20px; padding-inline: 6px;
  border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--danger);
}

.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .off { color: #CBD5E1; }

/* ---------- Breadcrumb (same as product list) ---------- */
.crumbs ol {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  margin-inline: -4px;
}
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li { display: flex; align-items: center; font-size: 14px; color: var(--fg-subtle); }
.crumbs li + li::before {
  content: ""; width: 16px; height: 16px; margin-inline: 2px; flex-shrink: 0;
  background: #94A3B8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding-inline: 4px; color: var(--fg-muted); border-radius: 6px; }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { padding-inline: 4px; font-weight: 500; color: var(--fg); }

/* ---------- Form fields (same as checkout) ---------- */
.field > label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.field > label small { font-size: 13px; font-weight: 400; color: var(--fg-subtle); }
.inp {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 16px; line-height: 1.6; /* 16px stops iOS from zooming */
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--input-line); border-radius: 12px;
  outline: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp::placeholder { color: #8391A5; }
.inp:hover { border-color: #64748B; }
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft-2); }
.inp[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFB; }
.inp[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #FAD4D4; }
.inp--ltr { direction: ltr; text-align: right; letter-spacing: .4px; }
.inp--ltr::placeholder { letter-spacing: 0; }
textarea.inp { min-height: 104px; resize: vertical; line-height: 1.9; }
.err { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.8; color: var(--danger); }
.err .i { margin-top: 3px; }

/* ---------- Quantity stepper (same as cart) ---------- */
.qty {
  display: inline-flex; align-items: center; height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg);
}
.qty:focus-within { border-color: var(--primary); }
.qty__btn {
  width: 44px; height: 100%; display: grid; place-items: center; border-radius: 10px;
  color: var(--primary);
  transition: background-color .12s, color .12s;
}
.qty__btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.qty__btn:hover { background: var(--primary-soft); }
.qty__btn:disabled { color: #A3AEBD; background: none; cursor: not-allowed; }
.qty__btn:focus-visible { outline-offset: -2px; }
.qty input {
  width: 48px; height: 100%; padding: 0; border: 0; outline: none; background: none;
  font-size: 17px; font-weight: 700; text-align: center;
  appearance: textfield; -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { appearance: none; margin: 0; }

/* ================================================================
   PRODUCT PAGE
   ================================================================ */
.page:not(body) { padding-block: 12px 72px; }

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: start; margin-top: 8px; }

/* ---------- Gallery ---------- */
.gal { position: sticky; top: calc(var(--stick) + 16px); display: flex; flex-direction: column; gap: 12px; transition: top .25s var(--ease); }
.gal__stage { position: relative; overflow: hidden; background: var(--img-bg); border-radius: 16px; }
.gal__track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; cursor: zoom-in; border-radius: 0; }
.gal__slide img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal__slide:focus-visible { outline-offset: -4px; border-radius: 16px; }
.gal__count {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; height: 28px; padding-inline: 10px; border-radius: 999px;
  font-size: 13px; color: #fff; background: rgba(15, 23, 42, .66); pointer-events: none;
}
.gal__zoom {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  color: var(--fg-muted); background: rgba(255, 255, 255, .9); pointer-events: none;
}
.gal__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--fg); background: rgba(255, 255, 255, .94); border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  transition: opacity .15s, background-color .15s;
}
.gal__nav:hover { background: #fff; color: var(--primary); }
.gal__nav:disabled { opacity: 0; pointer-events: none; }
.gal__nav--prev { inset-inline-start: 12px; }
.gal__nav--next { inset-inline-end: 12px; }

.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  display: block; width: 76px; height: 76px; flex-shrink: 0; overflow: hidden;
  background: var(--img-bg); border: 2px solid transparent; border-radius: 12px;
  transition: border-color .12s;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb:hover { border-color: var(--line-strong); }
.thumb[aria-current="true"] { border-color: var(--fg); }

/* ---------- Info column ---------- */
.pi { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pi__head h1 { font-size: 28px; font-weight: 800; line-height: 1.55; }
.pi__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--fg-subtle); }
.pi__meta .ltr { font-weight: 500; color: var(--fg); letter-spacing: .3px; }
.stock {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding-inline: 10px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--success); background: var(--success-soft);
}
.stock.is-low { color: var(--warning); background: var(--warning-soft); }
.stock.is-out { color: var(--fg-subtle); background: var(--muted); }
.rate-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--fg-muted); border-radius: 8px; }
.rate-link b { font-weight: 700; color: var(--fg); }
.rate-link:hover { color: var(--primary); }

.pp { display: flex; flex-direction: column; gap: 2px; }
.pp__now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pp__now strong { font-size: 30px; font-weight: 800; letter-spacing: -.3px; line-height: 1.4; }
.pp__now .to { font-size: 17px; font-weight: 500; color: var(--fg-muted); }
.pp__now .cur { font-size: 15px; }
.pp__hint { font-size: 14px; color: var(--fg-subtle); }
/* Discount: old price + percentage, then the saving and how long it lasts */
.pp__was { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--fg-subtle); }
.pp__was del { text-decoration-thickness: 1.5px; text-decoration-color: var(--danger); }
.pp__was .pct { height: 24px; padding-inline: 8px; font-size: 13px; }
.pp__save, .pp__ends { display: flex; align-items: center; gap: 6px; width: fit-content; font-size: 14px; }
.pp__save {
  margin-top: 6px; padding: 5px 10px; border-radius: 8px;
  color: var(--success); background: var(--success-soft);
}
.pp__save b { font-weight: 800; }
.pp__ends { margin-top: 4px; color: var(--warning); }

/* "Will it fit my appliance?" — folded by default, opens in place */
.fit { background: var(--muted-2); border: 1px solid var(--border); border-radius: 16px; }
.fit__title {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 16px 10px 20px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 700; border-radius: 16px;
}
.fit__title::-webkit-details-marker { display: none; }
.fit__title:focus-visible { outline-offset: -3px; }
.fit__title:hover { background: var(--muted); }
.fit[open] .fit__title { border-radius: 16px 16px 0 0; }
.fit__icon { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--bg); color: var(--fg-muted); border: 1px solid var(--border); }
.fit .chev { margin-inline-start: auto; color: var(--fg-subtle); transition: transform .2s var(--ease); }
.fit[open] .chev { transform: rotate(180deg); }
.fit__body { padding: 0 20px 20px; }
.fit__desc { padding-top: 4px; font-size: 15px; line-height: 1.9; color: var(--fg-muted); }
.fit__desc p { margin: 0 0 6px; }
.fit__desc + .fit__list { margin-top: 6px; }
.fit__list { display: grid; gap: 4px; padding-top: 4px; }
.fit__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.9; }
.fit__list .i { margin-top: 4px; color: var(--success); stroke-width: 2.2; }
.fit__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.fit__sizes div { display: flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.fit__sizes dt { color: var(--fg-muted); }
.fit__sizes dd { margin: 0; font-weight: 700; }
.fit__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fit__actions .btn { border-color: var(--line-strong); }

/* ---------- Buy box ---------- */
.buy {
  --knob: #F7F6F2; --knob-line: #A8A69F; --knob-gloss: rgba(255, 255, 255, .9);
  display: flex; flex-direction: column; gap: 24px;
  padding: 22px 24px 24px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  scroll-margin-top: calc(var(--stick) + 16px);
}
.buy[data-color="black"] { --knob: #26282C; --knob-line: #0F1012; --knob-gloss: rgba(255, 255, 255, .22); }

.step__title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.step__pick { font-weight: 500; color: var(--fg-muted); }
.step__pick:not(:empty)::before { content: "· "; color: var(--fg-subtle); }
.step__note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--fg-subtle); }
.step__note .i { margin-top: 3px; }

/* Choice tiles (same pattern as the shape tiles on the product list) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-radius: 14px; }
/* more than four options: a dropdown instead of tiles */
.pick-select { position: relative; }
.pick-select select { padding-inline-end: 44px; font-weight: 500; cursor: pointer; }
.pick-select > .i { position: absolute; top: 50%; inset-inline-end: 16px; transform: translateY(-50%); color: var(--fg-muted); pointer-events: none; }
.is-err .pick-select select { border-color: var(--danger); }
.tiles--color { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px 10px; cursor: pointer; text-align: center;
  font-size: 15px; font-weight: 500; line-height: 1.6;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg);
  transition: border-color .12s, background-color .12s, color .12s;
}
.tile:hover { border-color: var(--line-strong); }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile__knob { width: 64px; height: 32px; margin-bottom: 4px; }
.tile small { font-size: 13px; font-weight: 400; color: var(--fg-muted); }
.tile__tick {
  position: absolute; top: 6px; inset-inline-end: 6px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; opacity: 0; transform: scale(.6);
  transition: opacity .12s, transform .12s;
}
.tile__tick .i { width: 13px; height: 13px; stroke-width: 3; }
.tile:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.tile:has(input:checked) small { color: var(--fg-muted); }
.tile:has(input:checked) .tile__tick { opacity: 1; transform: none; }
.tile:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.tile:has(input:disabled) { cursor: not-allowed; color: var(--fg-subtle); background: var(--muted-2); border-style: dashed; }

.tile--color { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 56px; padding: 8px 14px; text-align: start; }
.tile--color .tile__tick { top: 50%; translate: 0 -50%; inset-inline-end: 12px; }
.dot { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--c, #fff); box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, .22); }
.dot--white { background: #fff; }
.dot--black { background: #1E293B; }
.tile__why { font-size: 13px; font-weight: 400; }
.tile:has(input:disabled) .dot { opacity: .45; }

.is-err .tiles { outline: 2px solid var(--danger); outline-offset: 4px; }

.qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.qty__max { font-size: 14px; color: var(--warning); }

/* Many of one part: point to the wholesale desk, never promise a price */
.bulk-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px;
  font-size: 14px; line-height: 1.8; color: var(--fg-muted);
  background: var(--warm-soft); border: 1px solid var(--warm-line); border-radius: 12px;
}
.bulk-note .i { margin-top: 3px; color: var(--warm-ink); }
.bulk-note button { font-weight: 500; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

.buy__cta { display: flex; flex-direction: column; gap: 10px; }
.buy__err { margin-top: 0; }
.buy__price { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.buy__price-label { font-size: 14px; color: var(--fg-subtle); }
.buy__price-val { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.buy__price-val strong { font-size: 22px; font-weight: 800; }
.buy__price-val del { font-size: 14px; color: var(--fg-subtle); text-decoration-color: var(--danger); }
.buy__price-val small { font-size: 13px; color: var(--fg-subtle); }
.incart {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 12px;
  font-size: 15px; color: var(--success); background: var(--success-soft);
}
.incart span { flex: 1; font-weight: 500; }
.incart a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding-inline: 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--primary); background: var(--bg); }
.incart a:hover { background: var(--primary-soft-2); }

/* One line each: items never break inside; if the row is too narrow they move to the next row */
.assure { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.assure li { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.6; white-space: nowrap; color: var(--fg-muted); }
.assure .i { width: 16px; height: 16px; color: var(--warm-ink); }

/* Help links under the buy box */
.help { border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.help li + li { border-top: 1px solid var(--border); }
.help button, .help a {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 68px; padding: 10px 18px; text-align: start;
  transition: background-color .12s;
}
.help li:first-child > * { border-radius: 16px 16px 0 0; }
.help li:last-child > * { border-radius: 0 0 16px 16px; }
.help button:hover, .help a:hover { background: var(--muted-2); }
.help__icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; color: var(--warm-ink); background: var(--warm-soft); }
.help__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.help__txt b { font-size: 15px; font-weight: 700; }
.help__txt small { font-size: 14px; color: var(--fg-subtle); line-height: 1.7; }
.help .chev-l { color: var(--fg-subtle); }

/* ---------- In-page section nav ---------- */
.snav {
  position: sticky; top: var(--stick); z-index: 20;
  margin-top: 64px; background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  transition: top .25s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .snav { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.snav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.snav ul::-webkit-scrollbar { display: none; }
.snav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 52px; padding-inline: 14px;
  font-size: 15px; font-weight: 500; color: var(--fg-muted); white-space: nowrap;
  transition: color .15s;
}
.snav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 2px;
  background: var(--secondary); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: transform .2s var(--ease);
}
.snav a:hover, .snav a[aria-current="true"] { color: var(--fg); }
.snav a[aria-current="true"]::after, .snav a:hover::after { transform: scaleX(1); }
.snav a:focus-visible { outline-offset: -3px; }
.snav__n { font-size: 13px; color: var(--fg-subtle); }

/* ---------- Details + side summary ---------- */
.pdc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-top: 36px; }
.pdc__main { display: flex; flex-direction: column; gap: 56px; min-width: 0; max-width: 820px; }
.sec { scroll-margin-top: calc(var(--stick) + 72px); }
.sec__title { font-size: 22px; font-weight: 800; line-height: 1.6; margin-bottom: 16px; }

.spec { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.spec th, .spec td { padding: 13px 18px; text-align: start; vertical-align: top; font-size: 15px; line-height: 1.8; }
.spec th { width: 36%; font-weight: 400; color: var(--fg-muted); }
.spec td { font-weight: 500; }
.spec tr:nth-child(odd) { background: var(--muted-2); }
.spec tr + tr > * { border-top: 1px solid var(--border); }

.tax { display: grid; gap: 10px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
.tax > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tax dt { color: var(--fg-subtle); margin-inline-end: 4px; }
.tax dd { margin: 0; }
.tax a {
  display: inline-flex; align-items: center; min-height: 36px; padding-inline: 12px; border-radius: 999px;
  color: var(--fg-muted); border: 1px solid var(--border); background: var(--bg);
  transition: border-color .12s, color .12s, background-color .12s;
}
.tax a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.prose p { font-size: 16px; line-height: 2.1; color: #334155; }
.prose p + p { margin-top: 10px; }
.prose strong { font-weight: 700; color: var(--fg); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 20px; }
.shots figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--fg-subtle); }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.two h3 { font-size: 18px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; }
.box-list { display: grid; gap: 8px; }
.box-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 14px; border-radius: 12px; background: var(--muted-2); border: 1px solid var(--border); font-size: 15px; }
.box-list .i { color: var(--success); stroke-width: 2.2; }
.steps { counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; position: relative; padding: 12px 56px 12px 16px; background: var(--muted-2); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; line-height: 1.9; }
.steps li::before {
  content: counter(s, persian); position: absolute; inset-inline-start: 14px; top: 12px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: 15px; color: var(--warm-ink); background: var(--warm);
}

.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.faq details + details { margin-top: 8px; }
.faq summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 16px; cursor: pointer; list-style: none;
  font-weight: 500; line-height: 1.8;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-inline-start: auto; color: var(--fg-subtle); transition: transform .2s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 16px 16px; font-size: 15px; line-height: 2; color: #334155; }

.rv-sum {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--warm-line); border-radius: 16px; background: var(--warm-soft);
}
.rv-sum__avg { font-size: 36px; font-weight: 800; line-height: 1; }
.rv-sum__meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fg-subtle); }
.rv-sum__meta .stars .i { width: 18px; height: 18px; }
.rv-sum .btn { margin-inline-start: auto; border-color: var(--line-strong); }
.rv-list li { padding-block: 20px; }
.rv-list li + li { border-top: 1px solid var(--border); }
.rv__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.rv__name { font-weight: 700; }
.rv__buyer { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--success); }
.rv__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13.5px; color: var(--fg-subtle); }
.rv__text { margin-top: 8px; font-size: 15.5px; line-height: 2; color: #334155; }

/* Desktop side summary: keeps the purchase one click away while reading.
   The column stretches to the full height of the details (specs → reviews), so the card sticks until the reviews end. */
.pdc__side { align-self: stretch; }
.side { position: sticky; top: calc(var(--stick) + 76px); display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: top .25s var(--ease); }
.side__prod { display: flex; align-items: center; gap: 12px; }
.side__img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; background: var(--img-bg); overflow: hidden; }
.side__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.side__name { font-size: 15px; font-weight: 500; line-height: 1.75; }
.side__pick { font-size: 13.5px; color: var(--fg-subtle); }
.side__price { display: flex; align-items: baseline; gap: 4px; }
.side__price strong { font-size: 20px; font-weight: 800; }
.side__was { display: flex; align-items: center; gap: 6px; margin-top: -6px; font-size: 14px; color: var(--fg-subtle); }
.side__was del { text-decoration-color: var(--danger); }
.side__price--na { font-size: 18px; font-weight: 800; color: var(--fg-subtle); }
.side .btn--lg { min-height: 52px; font-size: 16px; }
.side__wa { justify-content: center; border-color: var(--line-strong); }
.side__wa .i { color: #128C4A; }

/* ---------- Related (same card as the product list) ---------- */
.rel { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border); }
.rel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rel__head h2 { font-size: 22px; font-weight: 800; }
.rel__head .see-all { font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.pc { position: relative; display: flex; flex-direction: column; }
.pc:has(.pc__title a:focus-visible) { outline: 3px solid var(--primary); outline-offset: 6px; border-radius: 16px; }
.pc__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--img-bg); border-radius: 14px; }
.pc__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .pc:hover .pc__media img { transform: scale(1.05); }
  .pc:hover .pc__title { color: var(--primary); }
}
.pc__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 4px 0; }
.pc__title { font-size: 15px; font-weight: 500; line-height: 1.8; transition: color .15s; }
.pc__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.8em * 2); }
.pc__title a:focus-visible { outline: none; }
.pc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc__foot { padding: 8px 4px 0; }
.price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price__now { display: flex; align-items: center; gap: 4px; }
.price__now strong { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }

/* ---------- Phone: sticky buy bar (same as cart) ---------- */
.buybar {
  position: fixed; z-index: 30; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 -10px 24px -16px rgba(15, 23, 42, .35);
  transform: translateY(110%); visibility: hidden;
  transition: transform .28s var(--ease), visibility .28s;
}
.buybar.is-on { transform: none; visibility: visible; }
/* price only: on sale, the old price and percentage sit above it */
.buybar__sum { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.buybar__was { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--fg-subtle); white-space: nowrap; }
.buybar__was .pct { height: 18px; padding-inline: 5px; font-size: 11.5px; }
.buybar__sum strong { font-size: 18px; font-weight: 800; white-space: nowrap; }
.buybar__sum strong small { font-size: 12px; font-weight: 400; color: var(--fg-muted); }
.buybar .btn { flex: 1; max-width: 260px; white-space: nowrap; min-height: 52px; margin-inline-start: auto; font-size: 16px; font-weight: 700; border-radius: 12px; }

/* ================================================================
   Dialogs (centred on desktop, bottom sheet on phone)
   ================================================================ */
.modal {
  width: min(560px, calc(100vw - 32px)); max-width: none;
  max-height: min(90dvh, 860px); margin: auto;
  border-radius: 20px; box-shadow: var(--shadow-lg);
}
.modal--wide { width: min(880px, calc(100vw - 32px)); }
.modal[open] { animation: modal-in .22s var(--ease); }
.modal[open]::backdrop { animation: fade-in .22s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
.modal__inner { display: flex; flex-direction: column; max-height: inherit; }
.modal__head {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 64px; padding-inline: 20px 8px; border-bottom: 1px solid var(--border);
}
.modal__head h2 { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; line-height: 1.6; }
.modal__head h2 .i { color: var(--warm-ink); }
.modal__head h2.is-ok, .modal__head h2.is-ok .i { color: var(--success); }
.field__legend { margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.modal__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
.modal__body > * { flex-shrink: 0; }
.modal__lead { font-size: 15px; line-height: 1.9; color: var(--fg-muted); }
.modal__lead b { color: var(--fg); font-weight: 700; }
.modal form { display: flex; flex-direction: column; gap: 16px; }
.modal .btn--lg { min-height: 52px; font-size: 16px; }
.btn-row { display: grid; gap: 8px; }
.btn-wa .i { color: #128C4A; }
.hours { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--fg-subtle); }

.done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 8px 8px; text-align: center; }
.done__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-soft); }
.done__icon .i { width: 32px; height: 32px; }
.done h3 { font-size: 19px; font-weight: 800; }
.done p { font-size: 15px; line-height: 1.9; color: var(--fg-muted); }
.done .btn { margin-top: 8px; min-width: 160px; }

/* Size guide */
.dia-img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--muted-2); }
.dia { display: block; width: 100%; height: auto; aspect-ratio: 420 / 330; border: 1px solid var(--border); border-radius: 14px; font-family: inherit; }
.dia-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dia-table th, .dia-table td { padding: 11px 16px; text-align: start; font-size: 15px; }
.dia-table th { font-weight: 400; color: var(--fg-muted); width: 50%; }
.dia-table td { font-weight: 700; }
.dia-table tr + tr > * { border-top: 1px solid var(--border); }
.modal .steps li { font-size: 15px; }
.modal h3 { font-size: 16px; font-weight: 800; }

/* Rating input */
.rate { display: flex; gap: 4px; }
.rate label { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #CBD5E1; cursor: pointer; }
.rate label:hover { background: var(--muted); }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate .i { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.rate label.on { color: var(--star); }
.rate label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 1px; }

/* Added to cart */
.added { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; }
.added__img { width: 76px; height: 76px; flex-shrink: 0; border-radius: 10px; background: var(--img-bg); overflow: hidden; }
.added__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.added dl { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; line-height: 1.8; }
.added dd { margin: 0; }
.added__name { font-size: 15.5px; font-weight: 700; }
.added__pick { color: var(--fg-muted); }
.added__row { display: flex; gap: 4px; color: var(--fg-muted); }
.added__row dd { color: var(--fg); font-weight: 500; }
.cart-tot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--muted-2); font-size: 15px; }
.cart-tot strong { font-size: 18px; font-weight: 800; }
.free-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.8; color: var(--fg-muted); }
.free-hint .i { margin-top: 3px; color: var(--warm-ink); }
.free-hint.is-done { color: var(--success); font-weight: 500; }
.free-hint.is-done .i { color: var(--success); }

/* Lightbox */
.lb__stage { position: relative; background: var(--img-bg); border-radius: 14px; overflow: hidden; }
.lb__stage img { display: block; width: 100%; aspect-ratio: 1; max-height: 64dvh; object-fit: contain; mix-blend-mode: multiply; }
.lb__cap { font-size: 14px; color: var(--fg-muted); text-align: center; }
.modal .thumbs { justify-content: center; }

/* No underline on hover (overrides the shared header/footer rules) */
.see-all:hover, a.vi:hover .vi__value { text-decoration: none; }
a, a:hover { text-decoration: none; }

/* ================================================================
   Product page breakpoints
   ================================================================ */
@media (max-width: 1199.98px) {
  .pdp { gap: 36px; }
  .pdc { grid-template-columns: minmax(0, 1fr) 296px; gap: 40px; }
  .assure { flex-direction: column; gap: 6px; } /* not enough room for one row: one line each */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid li:nth-child(4) { display: none; }
}
@media (max-width: 1023.98px) {
  :root { --stick: 120px; }
  .pdc { grid-template-columns: minmax(0, 1fr); }
  .pdc__side { display: none; }
  .page:not(body) { padding-bottom: 104px; }
}
@media (min-width: 1024px) {
  .buybar { display: none; }
}
@media (max-width: 859.98px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gal { position: static; max-width: 560px; width: 100%; margin-inline: auto; }
  .gal__nav { display: none; }
}
@media (max-width: 639.98px) {
  .page:not(body) { padding-top: 4px; }
  .pdp { margin-top: 0; gap: 20px; }
  .gal { margin-inline: -16px; width: auto; }
  .gal__stage { border-radius: 0; }
  .gal .thumbs { padding-inline: 16px; }
  .thumb { width: 64px; height: 64px; }
  .pi { gap: 18px; }
  .pi__head h1 { font-size: 22px; line-height: 1.65; }
  .pp__now strong { font-size: 26px; }
  .fit__title { padding-inline: 16px 12px; }
  .fit__body { padding: 0 16px 16px; }
  .fit__actions { display: grid; }
  /* phone: the buy box sits on the page, no card around it */
  .buy { padding: 20px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; gap: 22px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 96px; justify-content: center; }
  .tile--color { min-height: 56px; }
  .assure { padding-top: 16px; }
  .help button, .help a { padding-inline: 14px; }

  .crumbs li:last-child { display: none; } /* the name is the h1 right below */
  .snav { margin-top: 40px; margin-inline: -16px; }
  .snav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .snav a { justify-content: center; width: 100%; padding-inline: 4px; }
  .snav a::after { inset-inline: 8px; }
  .pdc { margin-top: 24px; }
  .pdc__main { gap: 44px; }
  .sec__title { font-size: 19px; }
  .spec th, .spec td { padding: 12px 14px; font-size: 14.5px; }
  .spec th { width: 42%; }
  .prose p { font-size: 15.5px; line-height: 2.05; }
  .two { gap: 24px; }
  .steps li { padding-inline: 52px 14px; }
  .rv-sum { padding: 16px; }
  .rv-sum .btn { width: 100%; margin-inline-start: 0; }

  .rel { margin-top: 48px; padding-top: 28px; }
  .rel__head h2 { font-size: 19px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid li:nth-child(4) { display: block; }
  .pc {
    display: grid; grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas: "media body" "media foot"; grid-template-rows: auto 1fr;
    column-gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px;
  }
  .pc__media { grid-area: media; align-self: start; border-radius: 10px; }
  .pc__body { grid-area: body; padding: 0; }
  .pc__title a { min-height: 0; }
  .pc__title a::after { border-radius: 14px; }
  .pc__foot { grid-area: foot; align-self: end; padding: 6px 0 0; }
  .price__now strong { font-size: 18px; }

  .buybar .btn { max-width: none; }

  .modal, .modal--wide {
    width: 100%; max-width: none; max-height: 92dvh;
    margin: auto 0 0; border-radius: 20px 20px 0 0;
  }
  .modal[open] { animation: sheet-in .28s var(--ease); }
  .modal__body { padding-inline: 16px; }
  .lb__stage { margin-inline: -16px; border-radius: 0; }
}
@media (min-width: 640px) and (max-width: 859.98px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
