/* EnergyLabs - site stylesheet
   Design system: warm cream surfaces, the brand brown for depth, the brand orange for action,
   the logo's yellow as a highlight. Contrast measured 9 Oct 2026 (WCAG AA):
   ink on white 17.0, ink-2 on white 7.35, muted on white 4.94, orange-ink on cream 5.06,
   ink on orange 7.63, cream on brown-deep 11.55, orange on brown-deep 6.49. White text on the
   orange fails (2.23) - buttons carry dark ink. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/BarlowSemiCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/BarlowSemiCondensed-700.woff2") format("woff2"); }

:root {
  --ink: #241A14;
  --ink-2: #5F544C;
  --muted: #7A6E66;
  --line: #EADFD3;
  --line-2: #DDCDBC;
  --white: #FFFFFF;
  --cream: #FBF4EC;
  --cream-2: #F5EADF;
  /* Behind every product photo: the same colour tools/images.py paints behind each packshot (TINT). A light neutral grey,
     not cream, so white Stiebel products read as white objects and no image edge shows. Change both together. */
  --photo-bg: #F2F0ED;
  --sand: #EBDCCB;
  --orange: #FF914D;
  --orange-hover: #F57A2F;
  --orange-ink: #B0490A;
  --orange-tint: #FFE9DB;
  --yellow: #FFC845;
  --yellow-tint: #FFF4D6;
  --brown: #7B4A2B;
  --brown-deep: #3B2416;
  --brown-deeper: #2A1A10;
  --on-dark: #F3E3D3;
  --on-dark-2: #C9B8A8;
  --green: #2E7D4F;
  --green-tint: #E5F2EA;
  --red: #B42318;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(36, 26, 20, .06), 0 1px 1px rgba(36, 26, 20, .04);
  --shadow: 0 10px 30px -12px rgba(59, 36, 22, .22), 0 2px 6px rgba(59, 36, 22, .06);
  --shadow-lg: 0 30px 60px -24px rgba(59, 36, 22, .35);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --text: 38rem;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.6; font-weight: 400;
  font-variant-numeric: lining-nums; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(176, 73, 10, .35); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .35em; }
strong { font-weight: 600; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.15rem; line-height: 1.25; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: var(--text); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--orange); border-radius: 2px; box-shadow: 12px 0 0 var(--yellow); margin-right: 12px; }
.on-dark .eyebrow { color: var(--yellow); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.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: 16px; top: -60px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-cream { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-dark { background: var(--brown-deep); color: var(--on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark a { color: var(--yellow); text-decoration-color: rgba(255, 200, 69, .4); }
.bg-dark .lede, .bg-dark p { color: var(--on-dark); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.prose { max-width: var(--text); }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h3 { margin-top: 1.8rem; }
.prose ul li::marker { color: var(--orange-ink); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--font); font-weight: 700; font-size: 1.02rem; line-height: 1.15; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; text-align: center; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(240, 106, 26, .7); }
.btn-primary:hover { background: var(--orange-hover); color: var(--ink); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.bg-dark .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .7); }
.bg-dark .btn-secondary:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 560px) { .btn-row .btn { width: 100%; } }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--orange-ink); }
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.bg-dark .link-arrow { color: var(--yellow); }

/* Utility bar + header */
.utility { background: var(--brown-deep); color: var(--on-dark); font-size: .88rem; }
.utility .wrap { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.utility span { display: inline-flex; align-items: center; gap: .45rem; }
.utility svg { width: 16px; height: 16px; color: var(--yellow); }
@media (max-width: 760px) { .utility span:nth-child(n+2) { display: none; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #4D4D4F; flex: none; }
.logo svg { width: 46px; height: 46px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; line-height: .86; letter-spacing: .02em; text-transform: uppercase; color: #4D4D4F; }
.logo-text span { display: block; text-align: right; }
.logo-by { display: block; font-family: var(--font); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a, .nav button.nav-top { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.nav-top:hover, .nav a[aria-current="page"] { background: var(--cream); }
.nav-item { position: relative; }
.nav-top svg { width: 14px; height: 14px; transition: transform .15s ease; }
.nav-item[data-open="true"] .nav-top svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(680px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-item[data-open="true"] .mega { display: grid; }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; font-weight: 400; }
.mega a strong { display: block; font-weight: 700; font-size: 1rem; }
.mega a span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.mega .mega-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--orange-ink); }
.mega .mega-ico svg { width: 22px; height: 22px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.cart-link:hover { background: var(--cream); }
.cart-link svg { width: 26px; height: 26px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: .74rem; font-weight: 700; display: none; place-items: center; line-height: 20px; text-align: center; }
.cart-count.has-items { display: inline-block; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 1080px) {
  .site-header .wrap { min-height: 66px; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .site-header[data-menu="open"] .nav { display: flex; position: fixed; inset: 66px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 40px; overflow-y: auto; gap: 0; border-top: 1px solid var(--line); }
  .site-header[data-menu="open"] .nav a, .site-header[data-menu="open"] .nav .nav-top { font-size: 1.15rem; padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .site-header[data-menu="open"] .mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 4px 0 10px; grid-template-columns: 1fr; }
  .site-header[data-menu="open"] .mega a { border-bottom: 0; padding: 10px 6px; font-size: 1rem; }
  .site-header[data-menu="open"] .nav .btn { margin-top: 18px; border: 0; justify-content: center; }
}
@media (min-width: 1081px) { .nav .btn { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.hero .split { align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .6rem; }
.hero-points li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; font-weight: 500; }
.hero-points svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; width: 100%; }
.hero-visual .stage { position: absolute; inset: 6% 4% 4% 8%; border-radius: 40% 40% 32px 32px; background: var(--photo-bg); box-shadow: 0 0 0 1px rgba(59, 36, 22, .05); }
.hero-visual img.product { position: absolute; left: 8%; top: 6%; width: 88%; height: 90%; object-fit: contain; object-position: center bottom; border-radius: 40% 40% 32px 32px; }
.hero-visual .squares { position: absolute; right: -2%; top: 2%; width: 30%; opacity: .95; }
.chip-float { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.2; color: var(--ink-2); }
.chip-float strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.chip-float.a { left: 0; top: 30%; }
.chip-float.b { right: 0; top: 52%; }
.chip-float.c { left: 6%; bottom: 8%; }
@media (max-width: 900px) { .hero-visual { max-width: 420px; margin: 8px auto 0; } }
@media (max-width: 480px) { .chip-float { font-size: .78rem; padding: 8px 10px; } .chip-float strong { font-size: 1.1rem; } }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { flex: none; width: 30px; height: 30px; color: var(--orange-ink); }
.trust-item strong { display: block; font-size: 1rem; line-height: 1.25; }
.trust-item span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; margin-top: 2px; }
@media (max-width: 980px) { .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .trust .wrap { grid-template-columns: 1fr; } .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); } }

/* Category tiles */
.cat-tile { position: relative; display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius-lg); padding: 26px 26px 0; text-decoration: none; color: var(--ink); overflow: hidden; min-height: 330px; border: 1px solid transparent; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cat-tile:hover { border-color: var(--sand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile h3 { margin-bottom: .3rem; }
.cat-tile p { color: var(--ink-2); font-size: .98rem; margin-bottom: .6rem; }
.cat-tile .from { font-weight: 600; font-size: .95rem; color: var(--ink); }
.cat-tile .from b { font-family: var(--font-head); font-size: 1.15rem; }
.cat-tile .tile-img { margin: auto -26px 0; display: flex; justify-content: center; align-items: center; height: 190px; background: var(--photo-bg); }
.cat-tile .tile-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.cat-tile .tile-arrow { position: absolute; right: 22px; top: 22px; font-size: 1.4rem; line-height: 1; color: var(--orange-ink); transition: transform .15s ease; }
.cat-tile:hover .tile-arrow { transform: translateX(3px); }
.cat-tile.feature { background: var(--brown-deep); color: #fff; }
.cat-tile.feature h3 { color: #fff; }
.cat-tile.feature p, .cat-tile.feature .from { color: var(--on-dark); }
.cat-tile.feature .tile-arrow { color: var(--yellow); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.p-card:hover { box-shadow: var(--shadow); border-color: var(--sand); transform: translateY(-2px); }
.p-card .p-img { display: grid; place-items: center; aspect-ratio: 4 / 3.4; background: var(--photo-bg); overflow: hidden; }
.p-card .p-img img { width: 100%; height: 100%; object-fit: contain; }
.p-card .p-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; gap: 6px; }
.p-card .p-model { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.p-card h3 { font-family: var(--font); font-weight: 700; font-size: 1.08rem; line-height: 1.3; margin: 0; }
.p-card h3 a { color: var(--ink); text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; }
.p-card .p-fit { font-size: .92rem; color: var(--ink-2); }
.p-card .p-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.p-card .p-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.p-card .p-foot .chip { white-space: nowrap; }
.p-card .rrp { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--ink-2); font-size: .8rem; font-weight: 600; line-height: 1.5; }
.chip.green { background: var(--green-tint); color: #23683F; }
.chip.orange { background: var(--orange-tint); color: var(--orange-ink); }
.chip.yellow { background: var(--yellow-tint); color: #7A5A00; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 8px; background: var(--brown-deep); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font); font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 3px; }
.rrp { font-size: .82rem; color: var(--muted); }
.rrp s { text-decoration-thickness: 1px; }
.price-ask { font-weight: 700; font-size: 1rem; color: var(--ink-2); }

/* Category hero + filters */
.page-hero { background: var(--cream); padding: clamp(28px, 4vw, 56px) 0 clamp(32px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-bottom: 0; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-2); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 9px 0; }
.breadcrumbs a:hover { color: var(--orange-ink); text-decoration: underline; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; padding: 0; list-style: none; }
.facts li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .97rem; }
.facts svg { width: 20px; height: 20px; color: var(--orange-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter-btn { min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn:hover { border-color: var(--ink); }

/* Choose cards (how to choose) */
.choose { counter-reset: step; }
.choose-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.choose-card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange-tint); color: var(--orange-ink); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.choose-card h3 { font-size: 1.25rem; }
.choose-card p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--cream); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink-2); width: 42%; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare td, .compare th { white-space: nowrap; }
.compare tbody th { width: auto; }
.compare a { font-weight: 700; display: inline-block; padding: 10px 0; }

/* Product page */
.pdp { padding: clamp(20px, 3vw, 36px) 0 var(--section); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 920px) { .pdp-grid { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 100px; }
@media (max-width: 920px) { .gallery { position: static; } .gallery .gallery-main { max-width: 440px; margin: 0 auto; } .gallery .thumbs button { width: 60px; height: 60px; } }
.gallery-main { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--photo-bg); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; border-radius: 12px; border: 2px solid var(--line); background: var(--photo-bg); padding: 0; overflow: hidden; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .25em; }
.buybox .p-model { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); font-size: .9rem; margin-bottom: .5rem; }
.buybox .sub { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 1.2rem; }
.buy-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px); background: #fff; box-shadow: var(--shadow-sm); }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.buy-price .price { font-size: clamp(2.2rem, 4vw, 2.8rem); }
.buy-price .save { font-weight: 700; color: var(--green); font-size: .95rem; }
.buy-meta { font-size: .9rem; color: var(--muted); margin: .4rem 0 1rem; }
.stock { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; color: var(--green); }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--green-tint); }
.stock.order-in { color: #8A5A00; }
.stock.order-in::before { box-shadow: 0 0 0 4px var(--yellow-tint); }
.qty-row { display: flex; gap: 10px; margin: 16px 0 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 999px; }
.qty input { width: 40px; text-align: center; border: 0; font: inherit; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-row .btn { flex: 1; }
.buy-note { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.rebate-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--green-tint); font-size: .9rem; line-height: 1.45; color: var(--ink); }
.rebate-note svg { flex: none; width: 22px; height: 22px; color: #23683F; margin-top: 1px; }
.rebate-note a { color: #23683F; font-weight: 700; }
.buy-trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.buy-trust li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .95rem; line-height: 1.4; }
.buy-trust svg { flex: none; width: 22px; height: 22px; color: var(--orange-ink); margin-top: 1px; }
.buy-trust strong { display: block; }
.buy-trust span { color: var(--muted); font-size: .88rem; }
.fit { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--yellow-tint); font-size: .95rem; }
.fit strong { display: block; }
.keyspecs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.keyspec { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.keyspec b { display: block; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; }
.keyspec span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 3px; }
@media (max-width: 420px) { .keyspecs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pdp-section { padding-top: clamp(40px, 6vw, 72px); }
.pdp-section h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.feature-list li { margin: 0; display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.docs { list-style: none; padding: 0; display: grid; gap: 8px; }
.docs li { margin: 0; }
.docs a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.docs a:hover { border-color: var(--orange); }
.docs svg { width: 22px; height: 22px; color: var(--orange-ink); flex: none; }
.docs .ext { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .85rem; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(36, 26, 20, .25); padding: 10px var(--gutter); display: none; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .2s ease; }
.sticky-buy.show { transform: none; }
.sticky-buy .price { font-size: 1.35rem; }
.sticky-buy .btn { margin-left: auto; min-height: 48px; }
@media (max-width: 920px) { .sticky-buy { display: flex; } body.has-sticky { padding-bottom: 76px; } }

/* Callouts and cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-tint); color: var(--orange-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }
.callout { border-radius: var(--radius); padding: 18px 20px; background: var(--cream); border-left: 4px solid var(--orange); margin: 1.6rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.note { background: var(--yellow-tint); border-left-color: var(--yellow); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin: 0 0 .6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 6px; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232E7D4F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.x-list { list-style: none; padding: 0; }
.x-list li { position: relative; padding-left: 32px; margin: 0 0 .6rem; }
.x-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 6px; background: #FBE9E7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23B42318' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l8 8M14 6l-8 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 18px 18px 18px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 10px; background: var(--orange); color: var(--ink); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23241A14' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 10h10M10 5v10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 20px; color: var(--ink-2); max-width: var(--text); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Selector / calculator tool */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.tool fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.tool legend { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 4px; padding: 0; }
.tool .hint { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; background: #fff; transition: border-color .12s ease, background-color .12s ease; }
.opt label span { font-weight: 500; font-size: .86rem; color: var(--muted); }
.opt input:checked + label { border-color: var(--orange); background: var(--orange-tint); }
.opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.opt label:hover { border-color: var(--line-2); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; }
.field input, .field select { min-height: 50px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font: inherit; background: #fff; color: var(--ink); max-width: 260px; }
.field input:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.result { margin-top: 10px; border-radius: var(--radius); background: var(--cream); padding: clamp(18px, 2.4vw, 28px); display: none; }
.result.show { display: block; }
.result-grid { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; }
.result-grid img { width: 100%; height: auto; }
img[src*="/assets/img/p/"] { border-radius: 12px; }
.p-card .p-img img, .gallery-main img, .thumbs img, .cat-tile .tile-img img { border-radius: 0; }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } .result-grid img { max-width: 160px; } }
.result h3 { margin-bottom: .3rem; }
.result .why { margin: .6rem 0 1rem; color: var(--ink-2); }

/* Rebate cards */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.state-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.state-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.state-card h3 span { font-family: var(--font); font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--cream); color: var(--ink-2); letter-spacing: .04em; }
.state-card p { font-size: .96rem; color: var(--ink-2); }
.state-card .amount { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }

/* Dark CTA band */
.cta-band { background: var(--brown-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: var(--on-dark); margin: 0; max-width: 36rem; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .75); }
.cta-band .btn-secondary:hover { background: #fff; color: var(--ink); }
.cta-band .squares-bg { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .12; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Guides */
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .15s ease, transform .15s ease; }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card .kicker { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.guide-card h3 { font-size: 1.3rem; margin: 0; }
.guide-card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.guide-card .link-arrow { margin-top: auto; padding-top: 8px; }
.article-head { background: var(--cream); padding: clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 22ch; }
.article-meta { color: var(--muted); font-size: .9rem; }
.article-body { padding: clamp(32px, 5vw, 64px) 0 var(--section); }
.article-body .prose { margin: 0 auto; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2rem; background: #fff; }
.toc strong { display: block; margin-bottom: .4rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--orange-ink); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--brown-deeper); color: var(--on-dark-2); font-size: .95rem; padding: 56px 0 28px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer .logo-text, .site-footer .logo-text span { color: #fff; }
.site-footer .logo-by { color: var(--on-dark-2); }
.footer-about { max-width: 22rem; margin-top: 14px; color: var(--on-dark-2); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: var(--on-dark-2); }
.pay-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-icons span { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 5px; background: rgba(255, 255, 255, .08); color: var(--on-dark); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }

/* Notice for unapproved preview prices */
.preview-banner { background: var(--yellow); color: var(--ink); font-size: .85rem; font-weight: 600; text-align: center; padding: 6px 12px; }

/* Cart page */
.cart-shell { min-height: 60vh; }
.cart-loading { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 30px 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast (added to cart) */
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; display: none; gap: 12px; }
.toast.show { display: grid; }
.toast strong { display: block; }
.toast .btn-row { margin-top: 6px; }
@media (max-width: 560px) { .toast { left: 12px; right: 12px; bottom: 88px; max-width: none; } }

/* Search */
.search-box { display: flex; gap: 8px; max-width: 520px; margin: 18px 0 0; }
.search-box input { flex: 1; min-height: 52px; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 20px; font: inherit; background: #fff; }
.search-box input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); display: none; }

/* Motion: one gentle reveal, content visible without JS */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

@media print {
  .utility, .site-header, .site-footer, .sticky-buy, .toast, .cta-band, .btn, .thumbs { display: none !important; }
  body { font-size: 12pt; }
  a { color: var(--ink); text-decoration: none; }
}
