/* Instrument Sans, self-hosted (SIL Open Font License 1.1, see /assets/fonts/OFL.txt). Variable: weight 400-700,
   width 85-100%. Same axes the approved option A loaded from Google Fonts; served from this site for the CSP. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Option A, "Daylight retail" layout with the owner-approved "P1 Pine & snow" colour scheme (2026-12-01).
   White cards on a snow-grey page, deep pine brand and buttons, sunlit amber for savings and small highlights.
   Type: Instrument Sans for everything (85-100 width axis; headings at 650 with tight tracking).
   Tokens from build/design/brand/palettes.json (scheme P1); contrast checked by build/design/brand/contrast.mjs. */

:root {
  --page: #eef2f0;
  --white: #ffffff;
  --tint: #e1ebe5;
  --tint-2: #f4f7f5;
  --ink: #10251d;
  --ink-2: #33473f;
  --muted: #586a62;
  --primary: #1f4b3a;
  --primary-2: #163a2c;
  --primary-rgb: 31, 75, 58;
  --on-primary: #dbe9e1;
  --on-primary-2: #cfe0d6;
  --highlight: #f2b544;
  --focus: #2b6cb3;
  --save: #8a4c0c;
  --save-bg: #fbedd6;
  --toast-ok: #8fdcb4;
  --line: #dce4e0;
  --shadow-rgb: 16, 37, 29;
  --r: 22px;
  --r-sm: 14px;
  --gap: clamp(14px, 1.6vw, 22px);
  --pad: clamp(16px, 3vw, 40px);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sh: 0 1px 2px rgba(var(--shadow-rgb), 0.05), 0 8px 24px -12px rgba(var(--shadow-rgb), 0.14);
  --sh-2: 0 2px 4px rgba(var(--shadow-rgb), 0.05), 0 22px 48px -20px rgba(var(--shadow-rgb), 0.3);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink-2); font-family: var(--sans); font-size: 1rem; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
fieldset { padding: 0; border: 0; min-width: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2 * var(--pad), 1320px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ------------------------------------------------ type */
.display { color: var(--ink); font-size: clamp(2.35rem, 1.25rem + 3.6vw, 4.25rem); font-weight: 650; font-stretch: 92%; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.h1 { color: var(--ink); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 650; font-stretch: 92%; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.h2 { color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.35rem); font-weight: 650; font-stretch: 94%; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.h3 { color: var(--ink); font-size: 1.15rem; font-weight: 620; letter-spacing: -0.012em; line-height: 1.25; }
.lede { margin-top: 18px; max-width: 34em; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.btn .ico { transition: transform 200ms var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.03rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.93rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(var(--primary-rgb), 0.8); }
.btn--primary:hover { background: var(--primary-2); }
.btn--line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--tint); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 620; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ------------------------------------------------ preview notice and header */
.notice { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: var(--primary); color: var(--on-primary); font-size: 0.86rem; font-weight: 500; text-align: center; }
.notice .ico { color: var(--highlight); }
.top { position: sticky; top: 0; z-index: 50; padding: 12px var(--pad) 0; }
.pill { position: relative; display: flex; align-items: center; gap: 8px; max-width: 1320px; margin-inline: auto; padding: 7px 7px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.06), 0 12px 30px -16px rgba(var(--shadow-rgb), 0.35); }
@supports (backdrop-filter: blur(1px)) { .pill { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(16px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; border-radius: 999px; }
.brand__logo { display: block; width: auto; height: 40px; }
.brand__logo--stack { display: none; }
.nav__links a { display: block; padding: 9px 12px; border-radius: 999px; color: var(--ink-2); font-size: 0.93rem; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease); }
.nav__links a:hover { background: var(--tint); color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--tint); color: var(--primary); }
.cart { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--primary); }
.cart .ico { width: 21px; height: 21px; }
.cart__n { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--save); color: #fff; font-size: 0.72rem; font-weight: 700; }
.cart__n[hidden] { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px 8px 13px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.menu-btn .ico--x { display: none; }
.menu-btn[aria-expanded="true"] .ico--x { display: block; }
.menu-btn[aria-expanded="true"] .ico--menu { display: none; }
@media (max-width: 1199px) {
  .nav__links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); }
  .nav__links[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; }
  .nav__links a { padding: 13px 16px; font-size: 1.02rem; border-radius: 14px; }
}
@media (max-width: 479px) {
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { width: 46px; padding: 0; justify-content: center; }
  .brand__logo--line { display: none; }
  .brand__logo--stack { display: block; }
  .nav__links[data-open="true"] { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav__links { display: flex; gap: 0; margin-right: 6px; }
}

/* ------------------------------------------------ sections */
.section { margin-top: clamp(64px, 8vw, 112px); }
.sechead { max-width: 760px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sechead p { margin-top: 10px; font-size: 1.06rem; }
.sechead--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.sechead--row > div { max-width: 700px; }

/* hero: text card left, photo right with a real product callout */
.hero { display: grid; gap: var(--gap); margin-top: 18px; }
.hero__text { padding: clamp(28px, 4.4vw, 64px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.hero__uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__uses a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 0.93rem; font-weight: 560; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.hero__uses a:hover { background: var(--tint); }
.hero__uses .ico { color: var(--primary); }
.hero__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--tint); }
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.callout { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 8px 12px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: var(--ink); text-decoration: none; box-shadow: var(--sh-2); animation: rise 700ms 250ms var(--ease) both; }
.callout img { width: 60px; height: 60px; border-radius: 12px; background: #fff; object-fit: contain; flex: none; }
.callout__text { display: grid; gap: 2px; min-width: 0; }
.callout__name { font-weight: 620; font-size: 0.95rem; line-height: 1.25; }
.callout__price { color: var(--muted); font-size: 0.9rem; }
.callout__price b { color: var(--ink); }
.callout__go { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* shop by use: rows on phones, photo tiles from 640 */
.uses { display: grid; gap: 12px; }
.use a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border-radius: var(--r-sm); background: var(--white); text-decoration: none; box-shadow: var(--sh); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.use__photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: var(--tint); }
.use__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.use__text { display: grid; gap: 4px; }
.use__name { color: var(--ink); font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; }
.use__blurb { color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.use__go { display: none; }
@media (min-width: 640px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .use a { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding: 0; border-radius: var(--r); overflow: hidden; }
  .use__photo { aspect-ratio: 16 / 10; border-radius: 0; }
  .use__text { flex: 1; align-content: start; gap: 8px; padding: 20px 22px 22px; }
  .use__name { font-size: 1.25rem; }
  .use__blurb { font-size: 0.97rem; }
  .use__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--primary); font-weight: 620; }
}
@media (min-width: 1100px) { .uses { grid-template-columns: repeat(4, minmax(0, 1fr)); } .use__photo { aspect-ratio: 4 / 3.4; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .use a:hover, .card:hover, .cat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
}

/* product cards */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); box-shadow: var(--sh); overflow: hidden; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.card[hidden] { display: none; }
.card__media { position: relative; display: block; aspect-ratio: 1; margin: 8px 8px 0; border-radius: calc(var(--r) - 8px); background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.card__tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 0.76rem; font-weight: 620; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 14px 16px 16px; }
.card__use { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.card__title { color: var(--ink); font-size: 1.02rem; font-weight: 620; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__parts { display: grid; gap: 5px; font-size: 0.9rem; }
.card__parts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.card__parts .ico { margin-top: 2px; color: var(--save); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { padding: 3px 9px; border-radius: 8px; background: var(--tint-2); color: var(--ink-2); font-size: 0.8rem; font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.card__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); line-height: 1.2; }
.price b { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.02em; }
.price s { color: var(--muted); font-size: 0.88rem; }
.price__from { color: var(--muted); font-size: 0.85rem; }
.add { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; transition: background-color 150ms var(--ease); }
.add:hover { background: var(--primary-2); }
.add .ico { width: 20px; height: 20px; stroke-width: 2.3; }
@media (max-width: 639px) {
  .card__media { margin: 6px 6px 0; }
  .card__body { padding: 12px 12px 12px; gap: 8px; }
  .card__title { font-size: 0.95rem; }
  .card__parts { font-size: 0.84rem; }
  .card__parts li:nth-child(3) { display: none; }
  .card__tag { font-size: 0.7rem; padding: 3px 8px; left: 8px; top: 8px; }
  .specs li { font-size: 0.75rem; padding: 2px 7px; }
  .price b { font-size: 1.08rem; }
  .add { width: 38px; height: 38px; }
}

/* categories */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat { display: grid; gap: 4px; height: 100%; padding: 10px 10px 16px; border-radius: var(--r); background: var(--white); text-decoration: none; box-shadow: var(--sh); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.cat__img { display: block; aspect-ratio: 1; margin-bottom: 8px; border-radius: calc(var(--r) - 8px); background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cat__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cat__name { padding-inline: 6px; color: var(--ink); font-size: 1.05rem; font-weight: 640; letter-spacing: -0.012em; }
.cat__count { padding-inline: 6px; color: var(--muted); font-size: 0.88rem; }

/* why buy here */
.why { margin-top: clamp(64px, 8vw, 112px); padding-block: clamp(48px, 6vw, 80px); background: var(--primary); color: var(--on-primary-2); }
.why .h2 { color: #fff; }
.why__inner { display: grid; gap: 28px; }
.why__list { display: grid; gap: 22px; }
.why__list li { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.why__list .h3 { color: #fff; }
.why__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--highlight); color: var(--primary); }
.why__icon .ico { width: 22px; height: 22px; }
.why .btn { justify-self: start; }
@media (min-width: 900px) { .why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .why__inner { grid-template-columns: 1fr auto; align-items: end; } .why__list { grid-column: 1 / -1; grid-row: 2; } .why .btn { grid-column: 2; grid-row: 1; } }

/* footer */
.footer { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 24px; background: var(--white); border-top: 1px solid var(--line); }
.why + .footer { border-top: 0; }
.footer__inner { display: grid; gap: 36px; padding-bottom: 32px; }
.footer__name img { display: block; width: auto; height: 46px; }
.footer__brand p:not(.footer__name) { margin-block: 8px 18px; max-width: 30em; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.footer__head { margin-bottom: 10px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.footer__cols a { display: inline-block; padding-block: 5px; color: var(--ink); text-decoration: none; font-weight: 500; }
.footer__cols a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.footer__small { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__inner { grid-template-columns: 1fr 1.5fr; gap: 64px; } }

/* toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 10px; width: min(100% - 32px, 460px); padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 0.95rem; box-shadow: var(--sh-2); transform: translate(-50%, 140%); transition: transform 300ms var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
.toast[hidden] { display: none; }
.toast .ico { color: var(--toast-ok); }
.p-product .toast { bottom: 96px; }

/* ------------------------------------------------ category page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 26px; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; }
.pagehead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-top: 18px; }
.pagehead__row .lede { margin-top: 12px; max-width: 40em; }
.pagehead__count { color: var(--muted); }
.pagehead__count b { color: var(--ink); font-size: 1.1rem; }
.listing { margin-top: 28px; }
.toolbar { position: sticky; top: 76px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: var(--gap); padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--sh); }
.chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 15px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 0.92rem; font-weight: 560; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: none; }
.toolbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.toolbar__shown { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.sort { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.sort select { appearance: none; min-height: 40px; padding: 8px 36px 8px 14px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.sort .ico { position: absolute; right: 12px; pointer-events: none; color: var(--ink); }
@media (max-width: 767px) {
  .toolbar { flex-direction: column; align-items: stretch; top: 70px; }
  .chips { width: 100%; }
  .toolbar__right { margin-left: 0; justify-content: space-between; }
}
.more { display: flex; justify-content: center; margin-top: 32px; }
.more [hidden] { display: none; }
.help { margin-top: clamp(56px, 7vw, 96px); }
.help__inner { display: grid; gap: 20px; align-items: center; padding: clamp(26px, 4vw, 52px); border-radius: var(--r); background: var(--tint); }
.help__inner p { margin-top: 10px; max-width: 36em; font-size: 1.05rem; }
.help .btn { justify-self: start; }
@media (min-width: 900px) { .help__inner { grid-template-columns: 1fr auto; } }
.p-category .footer, .p-product .footer { margin-top: clamp(64px, 8vw, 112px); }

/* ------------------------------------------------ product page */
.pdp { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: 20px; }
.gallery { min-width: 0; }
.gallery__main { aspect-ratio: 1; border-radius: var(--r); background: #fff; box-shadow: var(--sh); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { display: block; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; overflow: hidden; }
.gallery__thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.buy { align-self: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.buy__brand { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--primary); font-weight: 620; font-size: 0.95rem; }
.buy__brand span { color: var(--muted); font-weight: 500; }
.buy__title { margin-top: 10px; font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem); }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 16px; }
.buy__price b { color: var(--ink); font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.buy__price s { color: var(--muted); font-size: 1.1rem; }
.save { padding: 4px 10px; border-radius: 999px; background: var(--save-bg); color: var(--save); font-weight: 650; font-size: 0.88rem; }
.save[hidden], [data-price-was][hidden] { display: none; }
.runs { display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--tint); color: var(--ink); font-weight: 520; line-height: 1.45; }
.runs .ico { margin-top: 2px; color: var(--primary); }
.keychips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.keychips li { display: grid; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.keychips b { color: var(--ink); font-size: 1.05rem; font-weight: 680; letter-spacing: -0.01em; }
.keychips span { color: var(--muted); font-size: 0.85rem; }
@media (min-width: 560px) and (max-width: 1023px), (min-width: 1280px) { .keychips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.options { display: grid; gap: 8px; margin-top: 22px; }
.options legend { margin-bottom: 10px; color: var(--ink); font-weight: 620; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); background: var(--tint-2); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.opt__text { display: grid; }
.opt__name { color: var(--ink); font-weight: 600; }
.opt__detail { color: var(--muted); font-size: 0.86rem; }
.opt__price { color: var(--ink); font-weight: 650; }
.buy__row { display: flex; gap: 10px; margin-top: 20px; }
.btn--grow { flex: 1; }
.qty { display: flex; align-items: center; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { display: grid; place-items: center; width: 42px; height: 52px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.qty input { width: 34px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .gallery { position: sticky; top: 96px; align-self: start; }
}
.pdp-more { display: grid; gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.specs-block { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.spec { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 0.98rem; }
.spec th, .spec td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 40%; padding-right: 16px; color: var(--muted); font-weight: 520; }
.spec td { color: var(--ink); font-weight: 540; }
.spec td .muted { font-weight: 450; }
.dl-block { display: grid; gap: var(--gap); align-content: start; }
.downloads { padding: 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.downloads ul { display: grid; gap: 8px; margin-top: 14px; }
.downloads a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.downloads a:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.downloads a > .ico:first-child { color: var(--primary); width: 22px; height: 22px; }
.downloads span { display: grid; }
.downloads b { color: var(--ink); font-weight: 600; }
.downloads small { color: var(--muted); font-size: 0.82rem; }
.ico--dl { color: var(--primary); }
.ask { padding: 22px; border-radius: var(--r); background: var(--tint); }
.ask p:not(.h3) { margin-block: 6px 10px; }
@media (min-width: 1024px) { .pdp-more { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* sticky buy bar */
.buybar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -10px 30px -18px rgba(var(--shadow-rgb), 0.4); transform: translateY(110%); transition: transform 280ms var(--ease); }
@supports (backdrop-filter: blur(1px)) { .buybar { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(14px); } }
.buybar.is-shown { transform: none; }
.buybar__inner { display: flex; align-items: center; gap: 14px; }
.buybar img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.buybar__name { display: grid; flex: 1; min-width: 0; color: var(--ink); font-weight: 620; line-height: 1.25; }
.buybar__name span, .buybar__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar__name small { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.buybar__price { color: var(--ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 639px) { .buybar img, .buybar__name small { display: none; } .buybar__name { font-size: 0.9rem; } .buybar .btn { padding-inline: 16px; } .buybar__price { font-size: 1.1rem; } }
@media (max-width: 419px) { .buybar__name { display: none; } .buybar__inner { justify-content: space-between; } }
.p-product { padding-bottom: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .hero__text { display: flex; flex-direction: column; justify-content: center; }
  .hero__photo { aspect-ratio: auto; min-height: 560px; }
  .callout { left: 24px; bottom: 24px; }
}

/* Store additions on top of option A (10-option-a.css is the approved stylesheet, unchanged).
   Everything here reuses option A's tokens: white panels with --r and --sh, navy actions, tint bands, Instrument Sans. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.small { font-size: 0.88rem; }
.footer--gap { margin-top: clamp(64px, 8vw, 112px); }

/* ------------------------------------------------ owner-approved photos: keep the house, van or array in frame */
.hero__photo > img.ph-hero { object-position: 30% 50%; }
.use__photo img.ph-farm, .hero__photo > img.ph-farm { object-position: 35% 60%; }
.use__photo img.ph-ranch, .hero__photo > img.ph-ranch { object-position: 45% 60%; }
.use__photo img.ph-van, .hero__photo > img.ph-van { object-position: 50% 62%; }
.use__photo img.ph-backup, .hero__photo > img.ph-backup { object-position: 58% 50%; }
.callout img { padding: 4px; }

/* ------------------------------------------------ panels and running text */
.panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.prose p { max-width: 46em; text-wrap: pretty; }
.prose .h2 + p, .prose .h2 + .prose__lead { margin-top: 16px; }
.prose p + p, .prose p + .actions { margin-top: 14px; }
.prose__lead { color: var(--ink); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem); font-weight: 520; }
.pagebody { margin-top: 28px; }
.pagehead__also { margin-top: 12px; color: var(--ink-2); }
.pagehead__also .link { margin-left: 4px; }
.eyebrow { color: var(--primary); font-size: 0.95rem; font-weight: 640; letter-spacing: 0.01em; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--primary); font-weight: 620; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.ticks { display: grid; gap: 10px; margin-top: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--ink); }
.ticks .ico { margin-top: 3px; color: var(--save); }
.ticks--box li { color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 900px) { .ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } }

/* ------------------------------------------------ FAQ rows (details / summary) */
.faq { margin-top: 14px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--ink); font-size: 1.04rem; font-weight: 620; line-height: 1.35; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { margin-top: 2px; color: var(--primary); transition: transform 200ms var(--ease); }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item summary:hover span { text-decoration: underline; text-underline-offset: 4px; }
.faq__a { padding-bottom: 18px; }
.faq__a p { max-width: 48em; text-wrap: pretty; }

.guide { display: grid; gap: var(--gap); align-items: start; }
.guide .sechead--row { margin-bottom: 4px; align-items: center; }
@media (min-width: 1024px) { .guide:has(.guide__text):has(.guide__faq) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } .guide__text { position: sticky; top: 96px; } }
.guide__text p { margin-top: 14px; }

/* ------------------------------------------------ category page additions */
.toolbar__note { padding-left: 8px; color: var(--muted); font-size: 0.9rem; }
.empty-note { margin-top: 8px; color: var(--ink-2); }
.empty-note[hidden] { display: none; }

/* ------------------------------------------------ use-case page: option A's hero with the breadcrumb inside */
.hero--use .crumbs { margin-top: 0; margin-bottom: 18px; }
.hero--use .lede { margin-top: 14px; }
.hero__more { margin-top: 12px; max-width: 34em; text-wrap: pretty; }
@media (min-width: 1024px) { .hero--use .hero__photo { min-height: 440px; } }
.lookfor { margin-top: var(--gap); }
.use__count { color: var(--muted); font-size: 0.88rem; }

/* ------------------------------------------------ product page additions */
.keychips--3 li:last-child { grid-column: 1 / -1; }
.keychips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) and (max-width: 1023px), (min-width: 1280px) {
  .keychips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keychips--3 li:last-child { grid-column: auto; }
}
.options + .options { margin-top: 18px; }
.options--grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.options--grid legend { float: left; width: 100%; }
.options--grid .opt { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
.opt--off { cursor: not-allowed; opacity: 0.6; }
.opt--off .opt__price { color: var(--muted); font-weight: 520; font-size: 0.88rem; }
.buy__unavail { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint-2); color: var(--ink); font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); }
.buy__unavail[hidden] { display: none; }
[data-add-main][disabled] { opacity: 0.5; cursor: not-allowed; }

.pdp-info { display: grid; gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.pdp-info + .pdp-more { margin-top: var(--gap); }
.side { display: grid; gap: var(--gap); align-content: start; }
@media (min-width: 1024px) { .pdp-info { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.goodfor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.goodfor span { margin-right: 2px; }
.goodfor a { padding: 6px 12px; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-weight: 560; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.goodfor a:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.parts { display: grid; gap: 0; margin-top: 12px; }
.parts li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.parts li:first-child { border-top: 0; }
.parts__qty { color: var(--primary); font-weight: 680; white-space: nowrap; }
.parts a { color: var(--ink); font-weight: 560; text-underline-offset: 3px; }
.parts span:not(.parts__qty) { color: var(--ink); }
.downloads + .downloads { margin-top: 0; }
.spec__list { display: grid; gap: 6px; }
.qa { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa__item p { margin-top: 10px; text-wrap: pretty; }

/* ------------------------------------------------ cart */
.p-cart .pagehead .lede { max-width: 44em; }
.cartwrap { margin-top: 28px; }
.cart-empty { display: grid; justify-items: start; gap: 12px; }
.cart-empty[hidden], .cart-full[hidden] { display: none; }
.cart-empty .why__icon { margin-bottom: 4px; }
.cart-empty .actions { margin-top: 10px; }
.cart-full { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 1024px) { .cart-full { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .summary { position: sticky; top: 96px; } }
.cartrows { margin-top: 10px; }
.cartrow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "img text remove" "img qty price"; align-items: center; gap: 10px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cartrow:first-child { border-top: 0; }
.cartrow__img { grid-area: img; display: block; align-self: start; width: 84px; height: 84px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cartrow__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cartrow__text { grid-area: text; display: grid; gap: 2px; min-width: 0; }
.cartrow__name { color: var(--ink); font-weight: 620; line-height: 1.3; text-decoration: none; }
.cartrow__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cartrow__variant, .cartrow__unit { color: var(--muted); font-size: 0.88rem; }
.cartrow .qty { grid-area: qty; justify-self: start; }
.cartrow .qty button { height: 44px; }
.cartrow__price { grid-area: price; justify-self: end; color: var(--ink); font-size: 1.1rem; font-weight: 680; letter-spacing: -0.02em; }
.cartrow__remove { grid-area: remove; justify-self: end; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tint-2); color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.cartrow__remove:hover { color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
@media (max-width: 479px) { .cartrow { grid-template-columns: 64px minmax(0, 1fr) auto; } .cartrow__img { width: 64px; height: 64px; } }
.summary__rows { display: grid; gap: 10px; margin: 16px 0 0; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows dt { color: var(--ink-2); }
.summary__rows dd { margin: 0; color: var(--ink); font-weight: 680; }
.summary__rows div:first-child dd { font-size: 1.35rem; letter-spacing: -0.02em; }
.summary__save dd { color: var(--save); }
.summary__save[hidden] { display: none; }
.summary__go { width: 100%; margin-top: 20px; }
.summary__note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
.summary .linkbtn { margin-top: 14px; font-size: 0.92rem; }

.dialog { width: min(100% - 32px, 480px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r); background: var(--white); color: var(--ink-2); box-shadow: var(--sh-2); }
.dialog::backdrop { background: rgba(var(--shadow-rgb), 0.5); }
.dialog p { margin-top: 10px; }
.dialog .actions { margin-top: 22px; }
.dialog__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--highlight); color: var(--primary); }

/* sizing help */
.notice-panel { display: flex; gap: 14px; align-items: flex-start; background: var(--tint); box-shadow: none; }
.notice-panel .ico { width: 24px; height: 24px; margin-top: 2px; color: var(--primary); }
.notice-panel b { color: var(--ink); }
.nw { white-space: nowrap; }

/* many chips: the chip row scrolls sideways (option A's fade) so the count and sort stay on the same line */
@media (min-width: 768px) { .toolbar .chips { flex: 1 1 0; } }
.pdp-more { align-items: start; }
.sizing { display: grid; gap: var(--gap); margin-top: var(--gap); }
.sizing .guide { display: block; }
@media (min-width: 1024px) { .sizing { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
