/* =============================================================
   INDUSTRIAL SUPPLY & TOOLS LLC — STYLES
   -------------------------------------------------------------
   Theme taken from the Figma Make "E-commerce website design":
   white and light-gray surfaces, near-black ink, one bold red,
   Manrope type, square-ish 2–4px corners, thin gray borders.

   Colors are defined once at the top as "tokens" and reused
   everywhere, so changing a color here changes it site-wide.
   ============================================================= */

/* ---------- Color tokens: light mode ---------- */
:root {
  --bg: #ffffff;            /* page */
  --surface: #ffffff;       /* cards */
  --subtle: #f4f5f6;        /* light-gray sections, image wells, inputs */
  --text: #151719;          /* main text */
  --muted: #687078;         /* secondary text */
  --line: #e1e3e5;          /* hairline borders */
  --line-strong: #c4c8cc;   /* input and button borders */
  --brand: #d92128;         /* red: buttons, icons, highlights */
  --brand-hover: #b81b21;
  --brand-deep: #a3191e;    /* darker red panel */
  --brand-text: #d92128;    /* red used for text on light backgrounds */
  --brand-faint: #fdeced;   /* very light red tint */
  --brand-on-faint: #a3191e; /* red text on the light red tint */
  /* condition tags */
  --chip-new-bg: #1e6b38;   --chip-new-fg: #ffffff;
  --chip-open-bg: #e6f4ea;  --chip-open-fg: #1e6b38;
  --chip-used-bg: #fff6e0;  --chip-used-fg: #7a5200;
  --chip-parts-bg: #fcf1f1; --chip-parts-fg: #a8484c;
  --night: #151719;         /* top bar, hero, footer (stays dark in both modes) */
  --on-night: #ffffff;
  --on-night-muted: rgba(255, 255, 255, 0.72);
  --on-night-soft: rgba(255, 255, 255, 0.6);
  --accent-on-night: #ff7378; /* light red on dark backgrounds */
  --focus: #1d4ed8;
  --focus-on-night: #8ab4ff;
  color-scheme: light;
}

/* ---------- Type, spacing and shape tokens ---------- */
:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 2px;   /* buttons */
  --radius: 4px;      /* inputs, small boxes */
  --gutter: 20px;
  --max: 1440px;
  --header-h: 80px;
}
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: 800; }
h2 { font-size: clamp(32px, 1.6rem + 1.6vw, 48px); line-height: 1.08; letter-spacing: -0.04em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.utility :focus-visible, .hero :focus-visible, .banner :focus-visible,
.site-footer :focus-visible, .local :focus-visible { outline-color: var(--focus-on-night); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--brand); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 800;
}
.skip-link:focus { top: 0.75rem; }

.icon { width: 20px; height: 20px; flex: none; }
.accent { color: var(--brand-text); }

/* Small red uppercase label above headings */
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-text);
}
.eyebrow-lined { display: flex; align-items: center; gap: 14px; }
.eyebrow-lined::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.eyebrow-on-dark { color: var(--accent-on-night); }
.eyebrow-on-red { color: rgba(255, 255, 255, 0.92); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: var(--brand-text); text-decoration: none;
}
.text-link::after { content: "→"; transition: transform 150ms ease; }
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  touch-action: manipulation;
}
.btn .icon { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 14px 24px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-primary.is-added { background: #1f7a3d; border-color: #1f7a3d; }
.btn-dark { background: var(--night); color: #fff; border-color: var(--night); }
.btn-dark:hover { background: #2a2d31; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.07); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { background: #fff; color: var(--night); }
.btn-white { background: #fff; color: var(--brand); border-color: #fff; border-radius: var(--radius); font-size: 14px; }
.btn-white:hover { background: #fff5f5; }
/* Blocked buttons: "not allowed" pointer. The loading pointer is only for checkout while it opens. */
.btn[disabled], .btn[disabled]:hover { opacity: 0.5; cursor: not-allowed; background: var(--subtle); color: var(--muted); border-color: var(--line); }
.btn[aria-busy="true"], .btn[aria-busy="true"]:hover { opacity: 0.85; cursor: progress; background: var(--brand); color: #fff; border-color: var(--brand); }

.icon-btn {
  display: inline-grid; place-items: center; position: relative;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--subtle); }

/* ---------- Top bar ---------- */
.utility { background: var(--night); color: var(--on-night); }
.utility-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 36px; padding-block: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
}
.util-ship { display: inline-flex; align-items: center; gap: 8px; }
.util-ship .icon { width: 16px; height: 16px; color: var(--accent-on-night); }
.util-right { display: inline-flex; align-items: center; gap: 24px; }
.util-phone { font-weight: 800; text-decoration: none; }
.util-phone:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .util-hours { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: var(--brand); color: #fff; border-radius: var(--radius);
  font-size: 14px; font-weight: 800; letter-spacing: -0.025em;
}
.brand-mark::before { content: "IS"; } /* drawn by CSS so search engines don't read "IS" as part of the name */
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; }
.brand-text span { font-size: 12px; font-weight: 600; color: var(--muted); }
.brand-on-dark .brand-text span { color: var(--on-night-soft); }

.search { position: relative; display: flex; align-items: center; }
.search > .icon { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 104px 0 46px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 0; background: var(--surface); }
.search-btn {
  position: absolute; right: 6px; height: 36px; padding: 0 20px;
  background: var(--night); color: #fff; border: 0; border-radius: var(--radius);
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; cursor: pointer;
}
.search-btn:hover { background: var(--brand); }

.header-search { display: none; flex: 1; max-width: 760px; }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cart-btn[aria-current="page"] { background: var(--subtle); }

/* Phone menu: drops down under the header */
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter) 20px;
}
.site-nav.is-open { display: block; }
.nav-search { margin-bottom: 12px; }
.nav-link {
  display: block; padding: 14px 0; text-decoration: none;
  font-size: 15px; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--line);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand-text); }

@media (min-width: 1024px) {
  .header-search { display: block; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .nav-search { display: none; }
  .site-nav ul { display: flex; gap: 28px; }
  .nav-link { padding: 8px 0; border: 0; font-size: 13px; }
  .nav-toggle { display: none; }
  .header-tools { margin-left: 0; }
}

/* ---------- Home page layout (left category menu) ---------- */
/* Phones and tablets: hidden; the category grid covers it. */
.home-cats { display: none; }
@media (min-width: 1100px) {
  .home-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .home-cats {
    display: block; position: sticky; top: var(--header-h);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 32px 16px 32px 24px; border-right: 1px solid var(--line);
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
}
.home-cats .side-option { text-decoration: none; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; filter: saturate(0.8) contrast(1.05); opacity: 0.6;
}
/* Darker on the left where the headline sits, lighter on the right so the photo shows */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 23, 25, 0.92) 0%, rgba(21, 23, 25, 0.7) 45%, rgba(21, 23, 25, 0.25) 100%);
}
.hero-inner { z-index: 1; }
.hero-inner {
  position: relative; display: grid; gap: 48px; align-items: center;
  padding: 80px var(--gutter); max-width: var(--max); margin-inline: auto;
}
.hero-copy { max-width: 768px; }
.hero-title { margin-top: 24px; font-size: clamp(40px, 1.6rem + 4.4vw, 72px); line-height: 1; letter-spacing: -0.025em; }
.hero-title .accent { display: block; color: var(--accent-on-night); }
.hero-lede { margin-top: 28px; max-width: 672px; font-size: clamp(17px, 0.9rem + 0.5vw, 20px); line-height: 1.6; color: var(--on-night-muted); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(255, 255, 255, 0.15); align-self: end; }
.hero-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 20px; background: rgba(21, 23, 25, 0.8); backdrop-filter: blur(4px); }
.hero-stats dt { font-size: 12px; font-weight: 600; color: var(--on-night-soft); }
.hero-stats dd { margin: 0; font-size: 24px; font-weight: 800; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); padding-block: 112px; min-height: 560px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* Home hero: full-color photo with the text on it, white stats card */
.hv-b { display: grid; }
.hv-b-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Shade only where the words sit (top on phones, left on computers) so the photo stays bright */
.hv-b::after { background: linear-gradient(180deg, rgba(21,23,25,0.92) 0%, rgba(21,23,25,0.78) 45%, rgba(21,23,25,0.15) 75%, rgba(21,23,25,0) 100%); }
.hv-b-inner { position: relative; z-index: 1; display: grid; gap: 120px; padding: 48px var(--gutter) 32px; }
.hv-b .hero-title { font-size: clamp(40px, 1.3rem + 3.2vw, 66px); }
.hv-b .hero-lede { color: rgba(255,255,255,0.85); }
.hv-b-card { justify-self: start; display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: #fff; color: var(--text); border-top: 4px solid var(--brand); box-shadow: 0 16px 36px rgba(0,0,0,0.3); }
.hv-b-card div { display: flex; flex-direction: column; gap: 2px; padding: 18px 24px; }
.hv-b-card div + div { border-left: 1px solid var(--line); }
.hv-b-card dd { margin: 0; font-size: clamp(26px, 1.2rem + 1vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.hv-b-card dt { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) {
  .hv-b::after { background: linear-gradient(90deg, rgba(21,23,25,0.93) 0%, rgba(21,23,25,0.8) 40%, rgba(21,23,25,0.2) 68%, rgba(21,23,25,0) 100%); }
  .hv-b-inner { min-height: 600px; gap: 40px; align-content: center; padding: 80px var(--gutter) 56px; }
}

/* Three quick facts under the hero */
.facts { display: grid; border-bottom: 1px solid var(--line); background: var(--bg); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 20px var(--gutter); }
.facts li + li { border-top: 1px solid var(--line); }
.facts .icon { color: var(--brand-text); }
.facts strong { display: block; font-size: 14px; font-weight: 800; }
.facts li > div > span, .facts li > div > a { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; }
.facts li > div > a:hover { color: var(--brand-text); text-decoration: underline; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li + li { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-subtle { background: var(--subtle); }
.section-rule { border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding-block: 112px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head-center { justify-content: center; text-align: center; }
.section-note { font-size: 13px; color: var(--muted); }
.section-note strong { color: var(--text); font-weight: 800; }

/* Category tiles (photo cards) */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--night); color: #fff; text-decoration: none; isolation: isolate;
}
.cat-photo { position: absolute; inset: 0; z-index: -2; }
.cat-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 500ms ease, filter 300ms ease;
}
/* Same dark fade on every photo so they read as one set and the text stays readable */
.cat-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 13, 15, 0.92) 0%, rgba(12, 13, 15, 0.55) 38%, rgba(12, 13, 15, 0.05) 70%);
}
.cat-tile:hover .cat-photo img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }
.cat-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.cat-text { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 16px; }
.cat-count { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.cat-name { font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.cat-name::after { content: "\00a0\2192"; color: #FF7378; transition: margin 200ms ease; }
.cat-tile:hover .cat-name::after { margin-left: 4px; }
.cat-blurb { display: none; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.75); }
.cat-mini:hover .cat-name { color: var(--brand-text); }
@media (min-width: 640px) {
  .cat-grid { gap: 16px; }
  .cat-text { padding: 20px; }
  .cat-name { font-size: 19px; }
}
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-tile { aspect-ratio: 3 / 4; }
}
/* The other four categories: Figma-style boxes with an icon badge */
.cat-more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cat-mini {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 150ms ease;
}
.cat-mini:hover { border-color: var(--text); }
.cat-mini > .icon {
  box-sizing: content-box; width: 20px; height: 20px; padding: 12px;
  background: var(--subtle); border-radius: var(--radius); transition: background-color 150ms ease, color 150ms ease;
}
.cat-mini:hover > .icon { background: var(--brand-faint); color: var(--brand-text); }
.cat-mini .cat-text { padding: 0; }
@media (min-width: 640px) { .cat-more { gap: 16px; margin-top: 16px; } }
@media (min-width: 1100px) { .cat-more { grid-template-columns: repeat(4, 1fr); } }

/* Tabs above product grids */
.tabs { display: flex; flex-wrap: wrap; gap: 0 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 48px; padding: 8px 0; margin-bottom: -1px; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 800; color: var(--muted); border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--brand); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1280px) { .product-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); padding: 12px 12px 16px;
  transition: border-color 150ms ease;
}
.card:hover { border-color: var(--line-strong); }
.card-media {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--subtle); overflow: hidden; text-decoration: none; color: inherit;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-icon { width: 42%; height: 42%; stroke-width: 1; color: var(--muted); }
.chip {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 4px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}
.chip-new { background: var(--chip-new-bg); border-color: transparent; color: var(--chip-new-fg); }
.chip-open-box { background: var(--chip-open-bg); border-color: transparent; color: var(--chip-open-fg); }
.chip-used { background: var(--chip-used-bg); border-color: transparent; color: var(--chip-used-fg); }
.chip-for-parts { background: var(--chip-parts-bg); border-color: transparent; color: var(--chip-parts-fg); }
.sample-tag { position: absolute; bottom: 6px; right: 8px; font-size: 10px; font-weight: 700; color: var(--muted); }

.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.card-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.card-name a { text-decoration: none; }
.card-name a:hover { color: var(--brand-text); text-decoration: underline; }
.card-specs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.card-specs > span + span::before { content: "·"; margin-right: 8px; }
.card-note { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line-strong); font-size: 12px; line-height: 1.45; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card-ship { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-ship.is-free { color: var(--text); font-weight: 700; }
.card-actions { display: grid; gap: 8px; margin-top: 12px; }
.card-actions .btn { min-height: 44px; padding: 10px 12px; width: 100%; }
@media (max-width: 480px) {
  .card { padding: 8px 8px 12px; }
  .card-name { font-size: 14px; }
  .card-price { font-size: 18px; }
  .card-ship { font-size: 13px; }
  .card-specs { flex-direction: column; }
  .card-specs > span + span::before { content: none; }
  .chip { top: 6px; left: 6px; font-size: 10px; padding: 3px 6px; }
}

/* ---------- Pickup & shipping (red section) ---------- */
.local { display: grid; background: var(--brand); color: #fff; }
.local-main { display: grid; gap: 24px; align-content: center; padding: 64px var(--gutter); }
.local h2 { font-size: clamp(32px, 1.6rem + 1.6vw, 48px); letter-spacing: -0.025em; }
.local-list { display: grid; gap: 18px; }
.local-list li { display: flex; gap: 14px; align-items: flex-start; }
.local-list .icon { margin-top: 2px; color: #fff; }
.local-list strong { display: block; font-size: 14px; font-weight: 800; }
.local-list span { font-size: 14px; color: #fff; }
.local-main .btn { justify-self: start; }
/* Map: grayscale Google map with a red tint on top (the tint lets clicks and drags through). */
.local-map { position: relative; min-height: 320px; background: var(--brand-deep); overflow: hidden; }
.local-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(1) contrast(1.05) brightness(1.08); }
/* Whole map is one link to our address; the map underneath can't be dragged or clicked. */
.map-link { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-start; padding: 16px; text-decoration: none; color: #fff; }
.map-link-label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: rgba(120, 14, 19, 0.85); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius);
  font-size: 12px; font-weight: 800; transition: background-color 150ms ease;
}
.map-link-label .icon { width: 14px; height: 14px; }
.map-link:hover .map-link-label, .map-link:focus-visible .map-link-label { background: #fff; color: var(--brand); }
.map-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.map-tint { position: absolute; inset: 0; background: var(--brand); mix-blend-mode: multiply; opacity: 0.9; pointer-events: none; }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18); pointer-events: none;
}
.map-pin .icon { width: 24px; height: 24px; }
.map-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px;
  padding: 48px var(--gutter) 28px; font-size: 20px; font-weight: 800; line-height: 1.3;
  background: linear-gradient(to bottom, rgba(120, 14, 19, 0), rgba(120, 14, 19, 0.9) 45%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .local { grid-template-columns: 1fr 1fr; }
  .local-main { padding: 80px 56px; }
  .local-map { min-height: 520px; }
  .map-caption { padding: 64px 40px 36px; font-size: 22px; }
}

/* ---------- Why shop with us ---------- */
.why-grid { display: grid; gap: 40px; }
.why-intro { display: grid; gap: 16px; align-content: start; }
.why-intro .eyebrow { margin-bottom: -2px; }
.why-intro p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 30rem; }
.reasons { display: grid; gap: 12px; }
.reason { display: flex; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.reason-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--brand); color: #fff; border-radius: var(--radius); }
.reason-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: var(--brand-text); }
.reason h3 { margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.reason p:last-child { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .reason { padding: 28px; }
}

/* ---------- Two easy ways to buy ---------- */
.ways { display: grid; gap: 16px; max-width: 920px; margin-inline: auto; }
.way {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 32px; background: var(--subtle); border: 1px solid var(--line);
}
.way-main { background: var(--surface); border: 2px solid var(--text); }
.way-tag { position: absolute; top: 0; right: 0; padding: 8px 12px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.way-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.way-main .way-icon { background: var(--brand-faint); border-color: transparent; color: var(--brand-text); }
.way h3 { margin-top: 20px; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; }
.way p { font-size: 14px; color: var(--muted); }
.way .text-link { margin-top: 8px; }
@media (min-width: 768px) { .ways { grid-template-columns: 1fr 1fr; } .way { padding: 40px; } }

/* ---------- Full-width banner ---------- */
.banner { background: var(--night); color: #fff; padding-block: 72px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.banner h2 { margin-top: 18px; font-size: clamp(30px, 1.4rem + 1.8vw, 48px); letter-spacing: -0.03em; max-width: 760px; }
.banner .accent { color: var(--accent-on-night); }

/* ---------- Page heading + breadcrumb ---------- */
.page-top { padding-block: 32px 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--text); }
.page-title { margin-top: 16px; font-size: clamp(32px, 1.6rem + 1.6vw, 48px); line-height: 1.08; letter-spacing: -0.04em; }
.page-lede { margin-top: 12px; color: var(--muted); max-width: 44rem; }

/* ---------- Products page ---------- */
.catalog { display: grid; gap: 24px; padding-block: 32px 96px; align-items: start; }
@media (min-width: 960px) { .catalog { grid-template-columns: 240px 1fr; gap: 40px; } }

.filter-panel { border: 1px solid var(--line); background: var(--surface); }
.filter-panel > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 800; font-size: 14px;
}
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary .icon { width: 18px; height: 18px; }
.filters { padding: 0 16px 16px; }
@media (min-width: 960px) {
  /* Filters stay in view and scroll on their own, so the product list doesn't move. */
  .filter-panel {
    border: 0; background: none; position: sticky; top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px); max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto; overscroll-behavior: contain;
    padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .filter-panel::-webkit-scrollbar { width: 6px; }
  .filter-panel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .filter-panel > summary { display: none; }
  .filters { padding: 0; }
}
.side-group + .side-group { margin-top: 28px; }
.side-title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-text);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.side-option, .check {
  width: 100%; min-height: 40px; display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; background: none; border: 0; border-radius: var(--radius);
  text-align: left; cursor: pointer; font-size: 14px; font-weight: 600;
}
.side-option:hover, .check:hover { background: var(--subtle); }
.side-option[aria-pressed="true"] { background: var(--night); color: #fff; }
.side-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-option[aria-pressed="true"] .side-count { color: rgba(255, 255, 255, 0.7); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.side-help { margin-top: 12px; font-size: 13px; font-weight: 600; }
.side-help a { color: var(--brand-text); }

.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.result-count { font-size: 14px; color: var(--muted); }
.result-count strong { color: var(--text); font-weight: 800; }
.search-note { width: 100%; font-size: 14px; }
.search-note a { color: var(--brand-text); font-weight: 700; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { font-size: 12px; font-weight: 700; color: var(--muted); }
.sort select {
  min-height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23687078' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; cursor: pointer; font-size: 14px; font-weight: 600;
}
.empty-state { grid-column: 1 / -1; padding: 48px 24px; text-align: center; background: var(--subtle); border: 1px solid var(--line); }
.empty-state a { color: var(--brand-text); font-weight: 700; }
.empty-title { font-weight: 800; margin-bottom: 8px; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Product page (layout unchanged, new styling) ---------- */
.crumb-current { display: inline-block; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.detail { display: grid; gap: 32px; padding-block: 24px 80px; align-items: start; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 1fr; gap: 56px; } }
.detail-media {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 16px;
  background: var(--subtle); border: 1px solid var(--line); overflow: hidden;
}
.detail-gallery { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 900px) {
  .detail-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  /* Photo + small pictures always fit in the window, so nothing gets cut off while reading. */
  .detail-media { width: min(100%, calc(100vh - var(--header-h) - 140px)); min-width: 320px; justify-self: center; }
  .detail-thumbs { width: min(100%, calc(100vh - var(--header-h) - 140px)); min-width: 320px; justify-self: center; }
}
.detail-thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
/* Swipeable photo strip */
.detail-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.detail-track::-webkit-scrollbar { display: none; }
.detail-track img { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.detail-track:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.detail-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: #151719; border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.detail-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.detail-nav:hover { background: #fff; }
.detail-nav:disabled { opacity: 0; pointer-events: none; }
.detail-prev { left: 10px; }
.detail-next { right: 10px; }
.detail-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 9px; border-radius: 999px;
  background: rgba(21, 23, 25, 0.75); color: #fff; font-size: 12px; font-weight: 700;
}
.detail-media .chip { z-index: 2; }
.detail-thumb {
  flex: 0 0 72px; width: 72px; height: 72px; padding: 0; cursor: pointer;
  background: var(--subtle); border: 1px solid var(--line);
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumb:hover { border-color: var(--line-strong); }
.detail-thumb[aria-current="true"] { border: 2px solid var(--brand); }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-icon { width: 38%; height: 38%; stroke-width: 0.9; color: var(--muted); }
.detail-nophoto { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-inline: 16px; }
.detail-media .chip { top: 14px; left: 14px; font-size: 12px; }
.detail-info { display: grid; gap: 20px; align-content: start; }
.detail-name { font-size: clamp(26px, 1.2rem + 1.2vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.detail-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.detail-stock { margin-top: -8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.detail-condition { display: grid; gap: 4px; padding: 18px 20px; background: var(--subtle); border-left: 3px solid var(--brand); }
.detail-condition .eyebrow { font-size: 11px; }
.detail-cond-name { font-weight: 800; font-size: 17px; }
.detail-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.detail-qty-label { font-size: 13px; font-weight: 800; }
.qty-lg { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px; gap: 2px; background: var(--surface); }
.qty-lg .qty-btn { width: 44px; height: 44px; font-size: 1.4rem; }
.qty-lg .qty-input { width: 56px; height: 44px; font-size: 1.125rem; border: 0; background: transparent; }
.detail-qty-hint { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--brand-text); min-height: 1.2em; }
.detail-qty-hint:empty { display: none; }
.detail-actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .detail-actions { grid-template-columns: 1fr 1fr; } }
.detail-ask { font-size: 14px; color: var(--muted); }
.detail-ask a { color: var(--brand-text); font-weight: 700; }
.detail-perks { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 16px; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.detail-perks li::before { content: "✓ "; color: var(--text); font-weight: 800; }
.detail-perks li.perk-plain::before { content: ""; }
.detail-perks strong { color: var(--text); font-weight: 800; }
.detail-sub { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-text); }
.detail-specs { margin: 0; border-top: 1px solid var(--line); }
.detail-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-specs dt { color: var(--muted); }
.detail-specs dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.detail-desc { display: grid; gap: 12px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-desc p { margin: 0; }

.detail-condition p:last-of-type { font-size: 14px; color: var(--muted); }
.detail-cond-link { margin-top: 6px; font-size: 13px; }

/* ---------- Item conditions page ---------- */
.cond-grid { display: grid; gap: 16px; padding-block: 40px 16px; }
@media (min-width: 768px) { .cond-grid { grid-template-columns: 1fr 1fr; } }
.cond-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.cond-card:target { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.cond-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cond-card-head .chip { position: static; }
.cond-card-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cond-card-count strong { color: var(--text); font-weight: 800; }
.cond-card h2 { font-size: 26px; letter-spacing: -0.03em; }
.cond-card > p { color: var(--muted); }
.cond-card .btn { align-self: flex-start; margin-top: auto; }
.cond-points { display: grid; gap: 8px; }
.cond-points li { position: relative; padding-left: 26px; font-size: 14px; }
.cond-points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%;
  /* Neutral dark check (red reads as a warning) */
  background: var(--subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151719' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.cond-points-lg li { font-size: 15px; }
.cond-points a { color: var(--brand-text); font-weight: 700; }
.cond-notes { display: grid; gap: 24px; padding: 32px; background: var(--subtle); border: 1px solid var(--line); }
.cond-notes .eyebrow { margin-bottom: 12px; }
.cond-notes h2 { font-size: clamp(26px, 1.2rem + 1vw, 34px); }
@media (min-width: 900px) { .cond-notes { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 40px; } }

/* ---------- Order page (cart) ---------- */
.order-layout { display: grid; gap: 40px; padding-block: 32px 96px; align-items: start; }
@media (min-width: 1024px) { .order-layout { grid-template-columns: 1fr 420px; gap: 48px; } }
.order-lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 80px; height: 80px; display: grid; place-items: center; background: var(--subtle); border: 1px solid var(--line); }
.line-thumb .icon { width: 36px; height: 36px; stroke-width: 1.1; color: var(--muted); }
.line-thumb img { width: 100%; height: 100%; object-fit: contain; }
.line-name { font-weight: 700; }
.line-name a { text-decoration: none; }
.line-name a:hover { color: var(--brand-text); text-decoration: underline; }
.line-meta { margin-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.line-note { margin-top: 6px; font-size: 12px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line-strong); }
.line-limit { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.line-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.line-total { margin-left: auto; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .line { grid-template-columns: 96px 1fr auto; align-items: center; }
  .line-thumb { width: 96px; height: 96px; }
  .line-controls { grid-column: auto; }
  .line-total { min-width: 6.5rem; text-align: right; }
}
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty-btn { width: 36px; height: 36px; border: 0; border-radius: var(--radius); background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.qty-btn:hover { background: var(--subtle); }
.qty-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty-input {
  width: 44px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); text-align: center; font-weight: 700; -moz-appearance: textfield;
}
.qty-input:disabled { opacity: 0.5; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remove-btn .icon { width: 18px; height: 18px; }

.summary { display: grid; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 640px) { .summary { padding: 32px; } }
.summary h2 { font-size: 24px; letter-spacing: -0.025em; }
.summary-rows { display: grid; gap: 12px; margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-row dt { color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 700; }
.summary-total { padding-top: 12px; border-top: 1px solid var(--line); }
.summary-total dt { color: var(--text); font-weight: 800; }
.summary-total dd { font-weight: 800; font-size: 20px; }
.fine { font-size: 13px; color: var(--muted); }

.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 13px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--subtle);
  font-size: 16px; font-weight: 500;
}
.field input:focus, .field textarea:focus { background: var(--surface); border-color: var(--text); }
.field textarea { min-height: 88px; resize: vertical; }
.field-help { color: var(--muted); font-size: 12px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field-group { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.field-group > legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 16px; display: flex; justify-content: space-between; width: 100%; }
.req-note { font-size: 12px; font-weight: 600; color: var(--muted); }
.req { color: var(--brand-text); }
.name-row { display: grid; gap: 16px; align-items: start; }
@media (min-width: 480px) { .name-row { grid-template-columns: 1fr 1fr; } }
.contact-group { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.contact-label { font-weight: 700; font-size: 13px; }
.field input[aria-invalid="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.field-error { color: var(--brand-text); font-size: 13px; font-weight: 700; }
.field-error::before { content: "! "; }
.error-summary { border: 1px solid var(--brand); border-left-width: 4px; padding: 14px 16px; background: var(--brand-faint); }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.error-summary ul { display: grid; gap: 4px; list-style: disc; padding-left: 1.2rem; }
.error-summary a { color: var(--brand-on-faint); font-weight: 700; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 600;
}
.choice:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--text); }
.order-buttons { display: grid; gap: 10px; }
.order-buttons .btn { width: 100%; min-height: 56px; font-size: 15px; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.checkout-secure .icon { width: 14px; height: 14px; }
.order-status { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.order-status.is-error { padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--subtle); }
.order-status.is-error:empty { display: none; }
.order-status a { color: var(--brand-text); font-weight: 700; }
.order-preview {
  margin: 12px 0 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--subtle); font: 13px/1.55 ui-monospace, Menlo, Consolas, monospace;
}
details.preview > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.order-empty { padding-block: 32px 96px; display: grid; gap: 20px; justify-items: start; max-width: 32rem; }

/* ---------- Thank-you and "coming soon" pages ---------- */
.success { padding-block: 80px 112px; display: grid; gap: 20px; justify-items: start; max-width: 46rem; }
.success-title { font-size: clamp(36px, 1.8rem + 2.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.success-title .accent { display: block; }
.success p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.coming { padding-block: 32px 96px; display: grid; gap: 20px; justify-items: start; max-width: 40rem; }
.coming p { color: var(--muted); }

/* ---------- Privacy policy and other text pages ---------- */
.legal { max-width: 760px; padding-block: 32px 96px; }
.legal h2 { margin-top: 36px; font-size: 22px; letter-spacing: -0.02em; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal ol { list-style: decimal; padding-left: 1.3rem; }
.legal li strong { color: var(--text); }
.legal strong { color: var(--text); }
.legal a { color: var(--brand-text); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-soft); font-size: 14px; }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 48px; }
.footer-about { display: grid; gap: 16px; align-content: start; }
.footer-about .brand { color: #fff; }
.footer-about p { max-width: 24rem; font-size: 13px; line-height: 1.7; }
.footer-head { margin-bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.footer-links { display: grid; gap: 8px; }
.footer-links li { color: var(--on-night-soft); }
.footer-links a { color: var(--on-night-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: rgba(255, 255, 255, 0.45);
}
.footer-base a { color: inherit; text-decoration: none; }
.footer-base a:hover { color: #fff; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }

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

/* About page */
.about-prose { display: grid; gap: 16px; max-width: 40rem; }
.about-prose p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.about-prose p:first-child { font-size: 18px; color: var(--text); }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Pricing messages */
.page-lede { margin-top: 8px; font-size: 15px; color: var(--muted); }
.page-lede .text-link { margin-left: 4px; }
.detail-price-note { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.detail-pricebox { display: grid; gap: 4px; }
.detail-pricebox .detail-price-note { margin-top: 4px; }
.detail-shipline { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--text); }

/* Phones: smaller title, no thumbnail row (swipe + counter instead), and a buy bar fixed to the bottom. */
.buybar { display: none; }
@media (max-width: 899px) {
  .detail { gap: 20px; padding-top: 16px; }
  .detail-name { font-size: 21px; line-height: 1.2; }
  .detail-thumbs { display: none; }
  .detail-info { gap: 16px; }
  body.has-buybar { padding-bottom: 76px; }
  .buybar {
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
  }
  .buybar.is-hidden { transform: translateY(110%); }
  .buybar-text { display: grid; min-width: 0; line-height: 1.2; }
  .buybar-text strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .buybar-text span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { flex: 0 0 auto; padding-inline: 20px; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

/* Product page: red is kept for buttons only; everything else is neutral. */
.detail-condition { border-left-color: var(--line-strong); }
.detail-condition .eyebrow, .detail-sub { color: var(--muted); }
.detail-cond-link, .detail-ask a { color: var(--text); }
.detail-qty-hint { color: var(--text); }
.detail-qty.is-single { display: none; }

/* Phones: one-line "back to category" link instead of the full breadcrumb. */
@media (max-width: 899px) {
  .crumbs:has(#crumb-category) li { display: none; }
  .crumbs:has(#crumb-category) li:has(#crumb-category) { display: block; }
  .crumbs #crumb-category::before { content: "\2039\00a0"; font-size: 16px; }
  .crumbs:has(#crumb-category) { font-size: 14px; }
  .page-top:has(#crumb-category) { padding-top: 16px; }
}
.banner-note { margin-top: 12px; font-size: 16px; color: var(--on-night-muted); }

/* Contact page */
.contact-grid { display: grid; gap: 16px; }
.contact-card { display: grid; gap: 10px; align-content: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.contact-card-main { border: 2px solid var(--text); }
.contact-card-main .way-icon { background: var(--brand-faint); border-color: transparent; color: var(--brand-text); }
.contact-card h2 { margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.contact-card p { font-size: 14px; color: var(--muted); }
.contact-value { margin-top: 6px; font-size: 20px; font-weight: 800; color: var(--brand-text); text-decoration: none; overflow-wrap: anywhere; }
.contact-value:hover { text-decoration: underline; }
.contact-need { display: grid; gap: 20px; align-items: center; }
.contact-need h2 { font-size: clamp(24px, 1.2rem + 1vw, 32px); letter-spacing: -0.025em; }
.contact-need p { margin-top: 6px; color: var(--muted); }
.contact-need-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-need { grid-template-columns: auto 1fr auto; gap: 28px; }
}
.contact-section { padding-top: 32px; }

/* Quick link to the return policy under every product card */
.card-returns { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.card-returns:hover { color: var(--brand-text); }

/* Pickup appointment picker (order page) */
.pickup-when { display: grid; gap: 8px; }
.slot-label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span {
  display: block; min-width: 92px; padding: 9px 12px; text-align: center; line-height: 1.25;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
}
.slot span small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.slot:hover span { border-color: var(--text); }
.slot input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot input:checked + span small { color: rgba(255, 255, 255, 0.85); }
.slot input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.pickup-confirm { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); }
.pickup-confirm strong { display: block; font-size: 17px; }
.slot.is-past span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.slot.is-past:hover span { border-color: var(--line-strong); }


/* Return policy page */
.returns-page { max-width: 880px; padding-block: 24px 96px; color: var(--text); }
.rp-intro { font-size: 20px; font-weight: 600; line-height: 1.5; max-width: 40rem; }
.rp-policies { display: grid; gap: 16px; margin-top: 28px; }
.rp-card { padding: 24px; border: 1px solid var(--line-strong); background: var(--surface); }
.rp-card h2 { margin-top: 12px; font-size: 22px; letter-spacing: -0.02em; }
.rp-card p:last-child { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text); }
.rp-tag { display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--subtle); color: var(--text); }
.rp-tag-yes { background: #e3f4e8; color: #1e6b38; }
.rp-heading { margin-top: 48px; font-size: 26px; letter-spacing: -0.02em; }
.rp-steps { display: grid; gap: 12px; margin-top: 16px; }
.rp-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.rp-num { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--text); color: #fff; font-weight: 800; }
.rp-steps h3 { font-size: 18px; font-weight: 800; }
.rp-steps p { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--text); }
.rp-steps a, .rp-contact a { color: var(--brand-text); font-weight: 700; }
.rp-refund { margin-top: 32px; padding: 24px; background: var(--subtle); }
.rp-refund h2 { font-size: 22px; letter-spacing: -0.02em; }
.rp-refund p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text); }
.rp-contact { margin-top: 28px; font-size: 16px; }
@media (min-width: 700px) { .rp-policies { grid-template-columns: 1fr 1fr; } }

/* Category landing pages: plain list shown only until the product cards load. */
.category-static { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.category-intro { max-width: 75ch; }

/* Estimated delivery and pickup on product pages */
.detail-delivery { display: grid; gap: 10px; padding: 14px 16px; background: var(--subtle); border: 1px solid var(--line); font-size: 14px; }
.detail-delivery p { display: grid; gap: 2px; margin: 0; }
.detail-delivery strong { color: var(--text); font-weight: 800; }
.detail-delivery span { color: var(--muted); }

/* eBay track record next to "Add to order" */
.detail-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 10px 14px; list-style: none; background: var(--subtle); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.detail-trust li::before { content: "★ "; color: var(--text); }
.detail-trust strong { color: var(--text); font-weight: 800; }

/* Final-sale items: "ask us first" note inside the condition box */
.detail-sure { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.detail-sure strong { color: var(--text); }
.detail-sure a { color: var(--brand-text); font-weight: 700; }

/* Estimated delivery on product cards */
.card-eta { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
