/* Car Gear World. Made by tools/theme-site.mjs from the TGW stylesheet: change TGW, then run the tool.
   Gear World family look: dark navy page, gold headings, photo hero and photo category tiles.
   Product cards stay white so product photos (on white backgrounds) look clean. */

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

:root {
  /* dark page */
  --page: #3a4049;
  --deep: #2f343c;
  --panel: #474e58;
  --panel-2: #525a65;
  --line: #636c79;
  --text: #eceef1;
  --text-2: #d3d7dd;
  --gold: #ff5a4e;
  --gold-2: #ff8a7f;
  --link: #ff9a90;
  /* light surfaces (cards, price box) */
  --surface: #ffffff;
  --paper: #f4f5f7;
  --paper-edge: #e1e3e7;
  --ink: #16181c;
  --ink-2: #535862;
  --ink-link: #b8291f;
  --tag: #d7263d;
  --ok: #1d7a43;
  --ok-dark: #5ee08f;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --gutter: 16px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1rem/1.55 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); color: #fff; }
h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); color: var(--gold); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }
.icon { width: 20px; height: 20px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--deep); color: var(--text); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.brand-accent { color: var(--gold); }
.brand:hover { color: #fff; }
.masthead-search { flex: 1 1 340px; max-width: 560px; }
.home .masthead-search { display: none; }

.search { display: flex; }
.search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--surface); border-right: 0; border-radius: 8px 0 0 8px;
}
.search input:focus { outline: none; border-color: var(--gold); }
.search button {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
  font: 600 1rem var(--font-body); color: var(--ink); background: var(--gold);
  border: 0; border-radius: 0 8px 8px 0; cursor: pointer;
}
.search button:hover { background: var(--gold-2); }

.catbar { border-top: 1px solid var(--line); }
.catbar-list { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.catbar-list::-webkit-scrollbar { display: none; }
.catbar a { display: block; padding: 11px 10px; color: #cfd3da; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.catbar a:hover { color: #fff; }
.catbar a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* Gear World Hub strip: the same message on every site of the network */
.hub-strip { background: linear-gradient(90deg, #2f343c, #4a2f2d 50%, #2f343c); border-top: 1px solid var(--line); }
.hub-row { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.hub-name { color: var(--gold); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.hub-tagline { color: #fff; font-weight: 600; }
.hub-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-weight: 600; font-size: .92rem; text-decoration: none; }
.hub-link:hover { background: var(--gold); color: var(--ink); }

/* ---------- Home hero: photo with text on top ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47, 52, 60, .35) 0%, rgba(47, 52, 60, .72) 45%, rgba(47, 52, 60, .9) 80%, rgba(58, 64, 73, 1) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 40px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 56ch; }
.hero .lede { color: #e2e4e8; }
.hero-search { max-width: 600px; margin: 22px 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.hero-facts { color: #c9cdd4; font-size: .92rem; margin: 0; }
@media (min-width: 900px) {
  .hero-photo::after { background: linear-gradient(90deg, rgba(47, 52, 60, .94) 0%, rgba(47, 52, 60, .78) 42%, rgba(47, 52, 60, .2) 75%, rgba(47, 52, 60, .1) 100%); }
  .hero-inner { padding-top: 88px; padding-bottom: 84px; }
}

/* Numbers bar under the hero, written in the HTML by the server (lessons L09) */
.stats { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; }
.stats-list li {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 6px; min-height: 64px; padding: 10px 12px;
  color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-list li:nth-child(2n) { border-right: 0; }
.stats-list li:nth-child(n + 3) { border-bottom: 0; }
.stats-list strong { color: #fff; font-size: 1.2rem; }
@media (min-width: 900px) {
  .stats-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-list li { border-bottom: 0; min-height: 72px; font-size: 1.1rem; }
  .stats-list li:nth-child(2n) { border-right: 1px solid var(--line); }
  .stats-list li:last-child { border-right: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; border-radius: 8px; cursor: pointer; border: 0; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-deal { margin-top: auto; width: 100%; background: var(--gold); color: var(--ink); }
.btn-deal:hover { background: var(--gold-2); color: var(--ink); }
.btn-big { min-height: 56px; font-size: 1.12rem; }
.btn-quiet { background: var(--panel-2); color: #fff; border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--line); color: #fff; }

/* ---------- Sections ---------- */
.section { padding-top: 32px; padding-bottom: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more-link { font-weight: 600; }

/* Category tiles with photos */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; height: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.cat-tile img { grid-column: 1 / -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.cat-tile .cat-icon { grid-column: 1 / -1; width: 48px; height: 48px; margin: 16px; color: var(--gold); }
.cat-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 14px 14px; min-width: 0; }
.cat-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.15; color: var(--gold); }
.cat-count { color: var(--text-2); font-size: .9rem; }
.cat-chevron { align-self: center; width: 22px; height: 22px; margin: 0 12px 0 6px; color: #fff; }
.cat-tile:hover { border-color: var(--gold); color: var(--text); }
.cat-tile-deals { border-color: var(--gold); }
.cat-tile-deals img { object-position: 70% 50%; }
@media (prefers-reduced-motion: no-preference) { .cat-tile:hover { transform: translateY(-2px); } }
@media (max-width: 420px) { .cat-name { font-size: 1.02rem; } .cat-text { padding-left: 10px; } .cat-chevron { margin-right: 8px; width: 18px; } }

/* ---------- Product card (white, like a shelf label) ---------- */
.label-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .label-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .label-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.label-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--paper-edge); border-radius: var(--radius); overflow: hidden; }
.label-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 14px; background: var(--surface); }
.label-photo img { width: 100%; height: 100%; object-fit: contain; }
.label-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 12px 14px; background: var(--paper); border-top: 1px solid var(--paper-edge); }
.label-brand { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.label-name { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.label-name a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.label-name a:hover { text-decoration: underline; }
.label-price { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.was { color: var(--ink-2); font-size: .95rem; }
.tag-save { display: inline-block; margin: 0; padding: 2px 6px; background: var(--tag); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem; border-radius: 3px; }
.label-meta { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; color: var(--ink-2); }
.retailer { font-weight: 600; color: var(--ink); }
.offers-link { color: var(--ink-link); font-weight: 600; }
.shelf-offers { margin: 0 0 10px; font-weight: 600; }
.offer-list { list-style: none; margin: 0 0 8px; padding: 0; max-width: 820px; }
.offer-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px; margin: 0 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-current { border-color: var(--gold); }
.offer-retailer { font-weight: 600; color: #fff; }
.offer-price { text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.offer-stock { font-size: .9rem; }
.offer-stock.ok { color: var(--ok-dark); }
.offer-stock.warn { color: #ff8a98; }
.offer-row .btn-deal { margin: 0; }
.offer-note { color: var(--text-2); font-size: .9rem; }
.tag-best { display: inline-block; margin-left: 6px; padding: 2px 6px; background: var(--gold); color: var(--ink); font-size: .78rem; border-radius: 3px; vertical-align: middle; }
@media (min-width: 700px) { .offer-row { grid-template-columns: 1.2fr 1fr .8fr auto; } .offer-price { text-align: left; } }
.badge { padding: 0 6px; border: 1px solid var(--ink-2); border-radius: 3px; font-size: .8rem; }
.badge-out { border-color: var(--tag); color: var(--tag); }

/* ---------- How it works ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.steps h3 { color: #fff; }
.steps p { color: var(--text-2); margin: 0; }

.retailer-list { list-style: none; padding: 0; margin: 0; max-width: 560px; }
.retailer-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.retailer-list .count { color: var(--text-2); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- Listing pages ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 16px 0 0; margin: 0; font-size: .9rem; color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--text-2); }
.page-head { padding: 16px 0 8px; }
.page-head h1 { color: var(--gold); }
.page-head .lede { margin-bottom: 0; }
.cat-banner { position: relative; overflow: hidden; margin-top: 12px; padding: 0; min-height: 180px; display: flex; align-items: flex-end; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.cat-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47, 52, 60, .92) 0%, rgba(47, 52, 60, .72) 55%, rgba(47, 52, 60, .25) 100%); }
.cat-banner-text { position: relative; z-index: 1; padding: 22px 18px; }
.cat-banner .lede { color: #e2e4e8; max-width: 60ch; }
@media (min-width: 900px) { .cat-banner { min-height: 220px; } .cat-banner-text { padding: 30px 28px; } }
.page-search { max-width: 600px; margin-top: 12px; }
.listing { display: grid; gap: 20px; padding: 16px 0 40px; }
@media (min-width: 960px) { .listing { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .listing-side { position: sticky; top: 12px; } }
.result-count { color: var(--text-2); font-weight: 600; margin-bottom: 12px; }

.filters-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.filters-box summary { padding: 12px 14px; font-weight: 600; cursor: pointer; }
.filters-fields { display: grid; gap: 14px; padding: 4px 14px 16px; }
.filters label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.filters select, .filters input[type="number"] { width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--paper-edge); border-radius: 8px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.price-range legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 4px; }
.filters .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.filters .check input { width: 18px; height: 18px; accent-color: var(--gold); }
.filters-actions { display: flex; align-items: center; gap: 14px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px 0 8px; flex-wrap: wrap; }
.pager ol { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.pager a, .pager span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.pager a { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--gold); }
.pager span[aria-current] { background: var(--gold); color: var(--ink); }
.pager .gap { align-self: center; color: var(--text-2); }
.pager-step { border: 1px solid var(--line); }

.search-note { margin: 0 0 12px; color: var(--text-2); font-style: italic; }
.empty { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chip-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--text); }
.chip-list a:hover { border-color: var(--gold); }

/* ---------- Product page ---------- */
.product { display: grid; gap: 24px; padding: 16px 0 8px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .product-photo { aspect-ratio: 1 / 1; padding: 24px; }
}
.product-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 16px; background: var(--surface); border: 1px solid var(--paper-edge); border-radius: var(--radius); }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-label h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); max-width: 28ch; }
.product-label .label-brand { color: var(--gold); font-size: .95rem; margin-bottom: 4px; }
.shelf { margin-top: 16px; padding: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--paper-edge); border-bottom: 6px solid var(--gold); border-radius: var(--radius) var(--radius) 4px 4px; }
.shelf a { color: var(--ink-link); }
.shelf a.btn-deal { color: var(--ink); }
.shelf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 8px; }
.shelf-price .price { font-size: 3rem; }
.shelf-price .was { font-size: 1.1rem; }
.shelf .tag-save { margin-bottom: 12px; }
.shelf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 18px; }
.shelf-facts dt { font-size: .85rem; color: var(--ink-2); }
.shelf-facts dd { margin: 0; font-weight: 600; }
.shelf-facts .ok { color: var(--ok); }
.shelf-facts .warn { color: var(--tag); }
.shelf-note { margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
article.prose { padding: 8px 0 48px; }
.spec-sheet { margin: 0; max-width: 760px; border-top: 2px solid var(--gold); }
.spec-sheet div { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-sheet dt { color: var(--text-2); }
.spec-sheet dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-width: 640px; }
.newsletter form { display: grid; gap: 12px; }
.newsletter input[type="email"] { min-height: 48px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--surface); border-radius: 8px; }
.newsletter .check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-status.is-error { color: #ff8a98; }
.form-status.is-ok { color: var(--ok-dark); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--deep); color: #bcc1c9; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.footer-grid section:first-child ul { columns: 2; column-gap: 24px; }
.site-footer li { margin-bottom: 6px; break-inside: avoid; }
.site-footer a { color: #cfd3da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-note p { max-width: 90ch; }

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media print { .masthead, .site-footer, .filters, .btn-deal, .hub-strip { display: none; } body { background: #fff; color: #000; } }

/* Compare (lessons L23) */
.btn-compare { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; margin-top: 6px; padding: 8px 12px; font: 600 .95rem/1.2 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--paper-edge); border-radius: 8px; cursor: pointer; }
.btn-compare:hover { border-color: var(--ink-2); }
.btn-compare[aria-pressed="true"] { background: #ffecea; border-color: var(--gold); }
.btn-compare[hidden], .compare-bar[hidden] { display: none; }
.btn-compare-big { min-height: 46px; margin-top: 10px; }
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 2px solid var(--gold); box-shadow: 0 -6px 18px rgba(0,0,0,.35); }
.compare-count { margin: 0; color: var(--text); font-weight: 600; }
.compare-bar .btn { min-height: 44px; }
.compare-go[aria-disabled="true"] { opacity: .6; cursor: default; }
.compare-clear { background: transparent; color: var(--text); border: 1px solid var(--line); }
body.has-compare-bar { padding-bottom: 76px; }
.compare-lead { color: var(--text-2); max-width: 60ch; }
.compare-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; color: var(--ink); font-size: .95rem; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--paper-edge); text-align: left; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; background: var(--paper); }
.compare-table tbody th { width: 128px; color: var(--ink-2); font-weight: 600; background: var(--paper); }
.compare-table .is-pick { background: #fff3f1; box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold); }
.compare-table a { color: var(--ink-link); }
.compare-table .btn-deal { color: var(--ink); min-width: 140px; }
.compare-photo img { display: block; width: 120px; height: 120px; object-fit: contain; background: #fff; margin-bottom: 8px; }
.compare-name { display: block; font-weight: 600; line-height: 1.3; max-width: 26ch; }
.compare-remove { display: inline-block; margin-top: 6px; font-size: .88rem; }
.compare-price { font-size: 1.15rem; }
.compare-table .ok { color: var(--ok); font-weight: 600; }
.compare-table .warn { color: var(--tag); font-weight: 600; }
.pick-badge { display: inline-block; margin-bottom: 8px; padding: 3px 8px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: var(--gold); border-radius: 999px; }
.pick-box { margin: 16px 0; padding: 14px 16px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--panel); }
.pick-box p { margin: 4px 0; }
.pick-label { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.pick-name a { color: var(--text); font-weight: 700; font-size: 1.1rem; }
.pick-note, .pick-rule { color: var(--text-2); font-size: .92rem; max-width: 70ch; }
.compare-table tbody th, .compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
@media (max-width: 600px) { .compare-table tbody th { width: 84px; padding: 10px 8px; font-size: .85rem; } .compare-photo img { width: 96px; height: 96px; } }

/* Language and currency (lessons L24, L25) */
.prefs { background: #262a31; border-bottom: 1px solid var(--line); }
.prefs[hidden] { display: none; }
.prefs-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.pref { position: relative; display: inline-flex; align-items: center; }
.pref-icon { position: absolute; left: 9px; width: 16px; height: 16px; color: var(--gold); pointer-events: none; }
.pref select { min-height: 40px; max-width: 46vw; padding: 0 28px 0 10px; font: 600 .92rem var(--font-body); color: var(--text); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ff5a4e'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line); border-radius: 8px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.pref-icon + .visually-hidden + select { padding-left: 30px; }
.pref select:hover { border-color: var(--gold); }
.fx { display: inline-block; margin-left: 6px; font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.shelf-price .fx { font-size: 1.05rem; align-self: center; }
.lang-note { padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--panel); color: var(--text-2); }
.lang-note[hidden] { display: none; }

/* Voice search button inside the search box */
.search-mic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; color: var(--ink); background: var(--surface); border: 0; border-left: 1px solid var(--paper-edge); cursor: pointer; }
.search-mic .icon { width: 22px; height: 22px; }
.search-mic:hover { color: var(--ink-link); }
.search-mic[aria-pressed="true"] { color: #fff; background: var(--tag); }
.search-mic[hidden] { display: none; }
.search { flex-wrap: wrap; position: relative; }
.search input { flex: 1 1 0; }
.voice-status { flex: 1 0 100%; margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--gold); }
.voice-status[hidden] { display: none; }
@media (max-width: 420px) { .search button[type="submit"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .search button[type="submit"] { padding: 0 14px; } }

/* Gear Cart link in the header (lessons L26) */
.cart-link { order: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; }
.cart-link:hover { color: #fff; border-color: var(--gold); }
.cart-link .icon { width: 22px; height: 22px; color: var(--gold); }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--gold); border-radius: 999px; }
.cart-count[hidden] { display: none; }
.masthead-search { order: 1; }
@media (max-width: 799px) { .masthead-search { order: 3; flex-basis: 100%; max-width: none; } }
@media (max-width: 480px) { .cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .cart-link { padding: 0 10px; } }

/* Compare and cart buttons on product cards */
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-actions .btn-compare, .card-actions .btn-cart { margin-top: 6px; }
.card-actions-big { gap: 10px; }
.btn-cart { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 8px 10px; font: 600 .95rem/1.2 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--paper-edge); border-radius: 8px; cursor: pointer; text-align: center; }
.btn-cart:hover { border-color: var(--ink-2); }
.btn-cart[aria-pressed="true"] { background: #e9f7ee; border-color: var(--ok); color: var(--ok); }
.btn-cart[hidden] { display: none; }
.btn-cart-big { min-height: 46px; margin-top: 10px; }
.compare-table .btn-cart { margin-top: 8px; min-width: 140px; }
.card-actions .btn-compare { font-size: .92rem; padding: 8px 6px; }
.card-actions .btn-cart { font-size: .92rem; padding: 8px 6px; }

/* Gear Cart page */
.cart-layout { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .cart-summary { position: sticky; top: 12px; } }
.cart-layout.is-empty { display: block; }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--paper-edge); border-radius: var(--radius); }
.cart-photo { display: flex; align-items: flex-start; justify-content: center; }
.cart-photo img { width: 88px; height: 88px; object-fit: contain; background: #fff; }
.cart-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-info p { margin: 0; }
.cart-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cart-name a:hover { text-decoration: underline; }
.cart-meta { font-size: .9rem; color: var(--ink-2); }
.cart-meta .warn { color: var(--tag); font-weight: 600; }
.cart-price .price { font-size: 1.5rem; }
.cart-each { color: var(--ink-2); font-weight: 600; }
.cart-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--paper-edge); border-radius: 8px; overflow: hidden; }
.qty-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.3rem; font-weight: 700; color: var(--ink); background: var(--paper); text-decoration: none; }
.qty-btn:hover { background: var(--paper-edge); color: var(--ink); }
.qty-btn.is-off { color: var(--paper-edge); }
.qty-n { min-width: 40px; text-align: center; font-weight: 700; }
.cart-remove { color: var(--ink-link); font-weight: 600; }
.cart-item .btn-deal { margin-top: 4px; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 120px minmax(0, 1fr); } .cart-photo img { width: 120px; height: 120px; } .cart-item .btn-deal { width: auto; align-self: flex-start; min-width: 220px; } }
.cart-summary { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-summary h2 { font-size: 1.25rem; }
.cart-total { margin: 0 0 4px; }
.cart-total .price { color: #fff; font-size: 2rem; }
.cart-total .fx { color: var(--text-2); }
.cart-units { color: var(--text-2); font-weight: 600; }
.cart-note { color: var(--text-2); font-size: .92rem; }
.cart-clear { color: var(--link); font-weight: 600; }
.search .search-mic { gap: 0; padding: 0; width: 48px; color: var(--ink); background: var(--surface); border-radius: 0; border-left: 1px solid var(--paper-edge); }
.search .search-mic:hover { background: var(--paper); }
.search .search-mic[aria-pressed="true"] { color: #fff; background: var(--tag); }
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.08rem; }
  .masthead-row { gap: 10px; }
}
/* Long words (German, Russian) must fit: the two card buttons stack when the card is narrow. */
.card-actions { grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); }
.btn-compare, .btn-cart, .btn-deal { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Offer bar and discount codes (lessons L32) */
.promo-bar { background: var(--gold); color: var(--ink); }
.promo-row { margin: 0 auto; padding-top: 7px; padding-bottom: 7px; font-size: .92rem; font-weight: 600; text-align: center; }
.promo-row a { color: var(--ink); font-weight: 700; white-space: nowrap; margin-left: 6px; }
.promo-row a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.promo-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.promo-card { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.promo-code-card { border-color: var(--gold); }
.promo-campaign { margin: 0 0 6px; color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.promo-code { margin: 0 0 6px; }
.promo-code-label { color: var(--text-2); font-size: .9rem; }
.promo-code strong { display: inline-block; padding: 4px 12px; border: 2px dashed var(--gold); border-radius: 6px; color: #fff; font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .06em; }
.promo-offer { margin: 0 0 6px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.promo-valid { margin: 0 0 12px; color: var(--text-2); font-size: .9rem; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.promo-actions .btn { margin: 0; }
.btn-copy.is-copied { background: var(--ok); border-color: var(--ok); color: #fff; }
.promo-note { color: var(--text-2); max-width: 70ch; }

/* Phone: the search box and "Shop by category" must show on the first screen, above the phone's own
   browser bars (lessons L30, checked by tools/layout-check.mjs). */
@media (max-width: 699px) {
  .prefs-row { padding-top: 4px; padding-bottom: 4px; }
  .promo-row { padding-top: 5px; padding-bottom: 5px; font-size: .84rem; }
  .masthead-row { padding-top: 8px; padding-bottom: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.15rem; }
  .catbar a { padding: 8px 10px; }
  .hub-row { flex-wrap: nowrap; justify-content: space-between; gap: 10px; padding-top: 5px; padding-bottom: 5px; text-align: left; }
  .hub-tagline { display: none; }
  .hub-name { font-size: .72rem; letter-spacing: .12em; }
  .hub-link { font-size: .88rem; padding: 0 12px; white-space: nowrap; }
  .hero-inner { display: flex; flex-direction: column; padding-top: 18px; padding-bottom: 22px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: .72rem; letter-spacing: .12em; }
  .hero h1 { font-size: 1.9rem; margin-bottom: 0; }
  .hero-search { order: 1; margin: 14px 0 12px; }
  .hero-actions { order: 2; margin-bottom: 14px; }
  .hero .lede { order: 3; margin-bottom: 8px; font-size: .98rem; }
  .hero-facts { order: 4; }
}

/* AGW only (site.config.js extraCss) */
.flag { display: inline-block; width: 18px; height: 12px; margin-left: 6px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.fx-base { display: inline-block; margin-left: 6px; font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.shelf-price .fx-base { font-size: 1.05rem; align-self: center; }
/* The small line above the hero title in white: red is hard to read on the photo. */
.hero .eyebrow { color: #fff; }
/* 10 categories: two full rows of 5 on wide screens, 2 per row on tablets (no half-empty last row). */
@media (min-width: 720px) and (max-width: 979px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
