/*
 * Self-hosted Geist / Geist Mono (KOS-037) — SIL Open Font License 1.1,
 * see /fonts/LICENSE.txt. Variable woff2 files, so one file serves 400-700.
 * Only the subsets this Ukrainian UI renders are shipped: latin, latin-ext,
 * cyrillic and cyrillic-ext (the last one carries ₴ U+20B4).
 */

/* Geist — cyrillic-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-v5-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Geist — cyrillic */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-v5-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Geist — latin-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-v5-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Geist — latin */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-v5-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;
}

/* Geist Mono — cyrillic-ext */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-mono-v6-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Geist Mono — cyrillic */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-mono-v6-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Geist Mono — latin-ext */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-mono-v6-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Geist Mono — latin */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-mono-v6-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;
}

:root {
  color-scheme: light;
  --ink: #09090b;
  --ink-soft: #27272a;
  --muted: #71717a;
  --muted-light: #52525b;
  --line: #e4e4e7;
  --line-soft: #f4f4f5;
  --paper: #ffffff;
  --canvas: #fafafa;
  --accent: #be185d;
  --accent-soft: #fdf2f8;
  --success: #166534;
  --success-bright: #047857;
  --success-bg: #f0fdf4;
  --success-line: #bbf7d0;
  --warning: #f59e0b;
  --danger: #991b1b;
  --shadow-sm: 0 1px 2px rgb(9 9 11 / 4%);
  --shadow-md: 0 4px 16px rgb(9 9 11 / 6%);
  --shadow-lg: 0 12px 32px rgb(9 9 11 / 12%);
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

body,
button,
input,
select {
  font-family: "Geist", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: 20px;
}

.page-main {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(250 250 250 / 88%);
  backdrop-filter: blur(10px);
}

.header-shell {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--ink);
}

.brand-dot {
  color: var(--accent);
}

.global-search {
  position: relative;
  height: 38px;
  flex: 1;
  max-width: 520px;
  min-width: 220px;
  display: flex;
  align-items: center;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.search-icon {
  margin-right: 8px;
  color: var(--muted-light);
  font-size: 14px;
}

.global-search input {
  min-width: 60px;
  height: 100%;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
}

.global-search kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--line-soft);
  color: var(--muted);
  font: 10.5px "Geist Mono", monospace;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 60;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.suggestion-label {
  padding: 7px 10px 5px;
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.suggestion-item {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item[aria-selected="true"] {
  background: var(--line-soft);
}

.suggestion-empty {
  margin: 0;
  padding: 12px 10px;
  color: var(--muted);
  font-size: 13px;
}

.suggestion-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--product-tint, var(--line-soft));
}

.suggestion-copy {
  min-width: 0;
}

.suggestion-copy strong,
.suggestion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.suggestion-copy small {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 11.5px;
}

.suggestion-price {
  font: 600 12px "Geist Mono", monospace;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--line-soft);
  color: var(--ink);
}

.nav-badge {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.hero-section {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 36px;
  animation: fade-up 0.4s ease both;
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.status-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #52525b;
  font-size: 11.5px;
  font-weight: 500;
}

/* Freshness badge (KOS-033): the dot colour follows the state resolved in the
   browser, never a build-time assumption. */
.freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.freshness::before {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.freshness[data-freshness-state="current"]::before {
  background: #10b981;
}

.freshness[data-freshness-state="stale"]::before {
  background: #d97706;
}

.freshness[data-freshness-state="unknown"]::before,
.freshness[data-freshness-state="pending"]::before {
  background: #a1a1aa;
}

.freshness-label {
  font-weight: 600;
}

.freshness-time {
  color: var(--muted);
}

.status-pill.freshness {
  gap: 6px;
}

.status-pill .freshness-time::before {
  margin-right: 6px;
  content: "·";
}

.offer-freshness {
  gap: 4px;
  font-size: 11.5px;
}

.offer-freshness .freshness-label {
  font-weight: 500;
}

.offer-freshness .freshness-time::before {
  margin-right: 4px;
  content: "·";
}

.price-summary-freshness {
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
}

.price-summary-freshness .freshness-time::before {
  margin-right: 4px;
  content: "·";
}

.hero-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 500px;
  margin: 13px 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #3f3f46;
  font-size: 12.5px;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--muted-light);
  background: var(--line-soft);
  color: var(--ink);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font: 11.5px "Geist Mono", monospace;
}

.hero-stats b {
  color: var(--ink);
}

.hero-stats i {
  color: #d4d4d8;
  font-style: normal;
}

.live-offer-card {
  width: 360px;
  max-width: 100%;
  flex: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.live-offer-card:hover {
  box-shadow: 0 8px 30px rgb(9 9 11 / 10%);
  color: var(--ink);
}

.live-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.live-product-swatch {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--product-tint, var(--line-soft));
}

.live-product div:last-child {
  min-width: 0;
}

.live-product strong,
.live-product span {
  display: block;
}

.live-product strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-product span {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 11.5px;
}

.offer-stack {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.offer-stack-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.offer-stack-row:first-child {
  border-top: 0;
}

.offer-stack-row.is-best {
  background: var(--success-bg);
}

.offer-stack-row em {
  padding: 2px 6px;
  border-radius: 5px;
  background: #dcfce7;
  color: var(--success);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.store-initial {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.live-offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 11.5px;
}

.live-offer-footer b {
  color: var(--ink);
  font-size: 12px;
}

.section-block {
  padding-bottom: 36px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2,
.seo-faq-section h2,
.partner-cta h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-heading a {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.category-tile {
  min-height: 103px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.category-tile:hover {
  border-color: var(--muted-light);
  background: var(--canvas);
  color: var(--ink);
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: #e8a188;
}

.category-tile-1 .category-dot { background: #de8bb4; }
.category-tile-2 .category-dot { background: #8b9dd4; }
.category-tile-3 .category-dot { background: #b18bd4; }
.category-tile-4 .category-dot { background: #cdb273; }
.category-tile-5 .category-dot { background: #7fb894; }

.category-tile strong {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.category-tile .mono {
  color: var(--muted-light);
  font-size: 11px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.deal-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.deal-card:hover {
  border-color: var(--muted-light);
  color: var(--ink);
}

.deal-swatch {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 8px;
  background: var(--product-tint, var(--line-soft));
}

.deal-swatch span,
.discount-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 2px 5px;
  border: 1px solid var(--success-line);
  border-radius: 5px;
  background: #dcfce7;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.deal-swatch span {
  top: -5px;
  left: -5px;
}

.deal-card > div:last-child {
  min-width: 0;
}

.deal-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.deal-card b,
.deal-card s {
  font-size: 12px;
}

.deal-card s {
  margin-left: 5px;
  color: var(--muted-light);
}

.deal-card small {
  color: var(--success-bright);
  font-size: 11px;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 8px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  border-color: var(--muted-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.product-card-link {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}

.product-card-link:hover {
  color: var(--ink);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--product-tint, var(--line-soft));
}

.product-media img,
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-media img + .product-media-brand,
.product-visual img + .product-visual-brand {
  display: none;
}

.product-media img.is-broken,
.product-visual img.is-broken {
  display: none;
}

.product-media img.is-broken + .product-media-brand,
.product-visual img.is-broken + .product-visual-brand {
  display: block;
}

.product-media-brand,
.product-visual-brand {
  max-width: 80%;
  color: #52525b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 35px;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.product-price {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.product-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}

.icon-button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.favorite-button[aria-pressed="true"] {
  color: var(--accent);
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}

.compare-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.steps-grid article,
.metric-grid article,
.principle-grid article,
.process-grid article,
.contact-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.steps-grid article > span,
.process-grid article > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.steps-grid h2,
.metric-grid h2,
.principle-grid h2,
.process-grid h2,
.contact-grid h2 {
  margin: 8px 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.steps-grid p,
.metric-grid p,
.principle-grid p,
.process-grid p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.seo-faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}

.seo-copy p,
.faq-list p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.faq-list details,
.product-faq details,
.requirements-stack details {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 8px 0 0;
}

.partner-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
}

.partner-cta h2 {
  color: #fff;
}

.partner-cta p {
  max-width: 520px;
  margin: 4px 0 0;
  color: #d4d4d8;
  font-size: 13px;
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: var(--ink-soft);
  color: #fff;
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.button-light:hover {
  background: var(--line);
  color: var(--ink);
}

.button-outline {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.button-small {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 12px;
}

.button-full {
  width: 100%;
}

.button-link {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.button-link:hover {
  color: var(--ink);
}

.button-link-inverse {
  color: #ffffff;
}

.button-link-inverse:hover {
  color: #fff;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--muted-light);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-page,
.product-page,
.simple-page {
  padding-top: 22px;
  padding-bottom: 56px;
}

.catalog-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.catalog-title h1,
.page-intro h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.catalog-title span {
  color: var(--muted-light);
  font-size: 12px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.filters {
  min-width: 0;
}

.filters > summary {
  display: none;
}

.filters-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group h2,
.filter-group > label,
.eyebrow {
  display: block;
  margin: 0 0 9px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-group select,
.filter-group input,
.sort-control select,
.partner-form input,
.partner-form select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
}

.category-filter {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.category-filter a {
  min-height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  color: #52525b;
  font-size: 13px;
}

.category-filter a:hover,
.category-filter a[aria-current="page"] {
  background: var(--line-soft);
  color: var(--ink);
}

.category-filter a[aria-current="page"] {
  font-weight: 600;
}

.category-filter span {
  color: var(--muted-light);
  font-size: 11px;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.price-inputs label {
  color: var(--muted);
  font-size: 11px;
}

.price-inputs input {
  margin-top: 4px;
}

#catalog-filter-error,
.catalog-update-status,
.saved-action-status {
  margin: 0.5rem 0 0;
  color: var(--danger, #a21d2d);
  font-size: 0.875rem;
}

.catalog-update-status {
  margin: 0 0 1rem;
}

.product-card.is-unavailable,
.product-card.is-missing {
  border-color: var(--line-strong, #c9c7c2);
}

.product-card.is-unavailable .product-media,
.product-card.is-missing .product-media {
  filter: grayscale(0.35);
  opacity: 0.78;
}

.availability-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-muted, #f1f0ed);
  color: var(--ink, #171717);
  font-size: 0.75rem;
  font-weight: 600;
}

.offer-link-unavailable {
  color: var(--muted, #62605b);
  font-size: 0.875rem;
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.view-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line-soft);
}

.view-toggle button {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(9 9 11 / 8%);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.sort-control select {
  width: auto;
}

.product-grid.products-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.products-list .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.products-list .product-card:first-child {
  border-top: 0;
}

.products-list .product-card:hover {
  background: var(--canvas);
  transform: none;
}

.products-list .product-card-link {
  display: grid;
  grid-template-columns: 54px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.products-list .product-media {
  width: 52px;
  height: 52px;
}

.products-list .product-media-brand {
  display: none;
}

.products-list .product-card h3 {
  min-height: 0;
}

.products-list .product-card-meta {
  min-width: 130px;
  flex-direction: column;
  align-items: flex-end;
}

.products-list .product-card-actions {
  padding: 0;
  border: 0;
}

/* KOS-039: server-rendered catalogue pagination. */
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pagination-step,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.pagination-step:hover,
.pagination-page:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.pagination-page.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pagination-step.is-disabled {
  border-color: var(--line-soft);
  color: var(--muted);
}

.pagination-gap {
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-status {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 11px;
}

/* KOS-007: the generated 404 response. */
.not-found .empty-icon {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-seo {
  max-width: 820px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.catalog-seo h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.catalog-seo p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.empty-state,
.error-state {
  padding: 56px 20px;
  border: 1px dashed #d4d4d8;
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
}

.empty-state h1,
.empty-state h2,
.error-state h2 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.empty-state p,
.error-state p {
  margin: 6px auto 16px;
  color: var(--muted);
  font-size: 13px;
}

.empty-icon {
  color: var(--accent);
  font-size: 28px;
}

.product-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(9 9 11 / 4%);
  border-radius: var(--radius-lg);
  background: var(--product-tint, var(--line-soft));
}

.product-visual-brand {
  font-size: 15px;
  letter-spacing: 0.1em;
}

.product-visual > small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgb(255 255 255 / 88%);
  color: var(--muted);
  font: 10px "Geist Mono", monospace;
}

.price-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.price-summary-main {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
}

.price-summary dl,
.characteristics dl {
  margin: 0;
}

.price-summary dl > div,
.characteristics dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.price-summary dt,
.characteristics dt {
  color: var(--muted);
}

.price-summary dd,
.characteristics dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.price-summary > p {
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.45;
}

.product-brand {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info > h1 {
  max-width: 760px;
  margin: 6px 0 8px;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.saving-badge,
.best-badge {
  padding: 3px 8px;
  border: 1px solid var(--success-line);
  border-radius: 6px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

.compare-toggle-large {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.offers-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.offers-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--canvas);
}

.offers-card h2 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offers-card header span {
  color: var(--muted-light);
  font-size: 11px;
}

.offers-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-row {
  display: grid;
  grid-template-columns: 30px minmax(145px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
}

.offer-row:first-child {
  border-top: 0;
}

.offer-row.is-best {
  background: var(--success-bg);
}

.offer-store strong,
.offer-store small {
  display: block;
}

.offer-store strong {
  font-size: 13px;
  font-weight: 600;
}

.offer-store small {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 11.5px;
}

.offer-price {
  text-align: right;
}

.offer-price strong,
.offer-price s {
  display: block;
}

.offer-price strong {
  font-size: 14px;
}

.offer-price s {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 11px;
}

.offer-link-unavailable {
  max-width: 88px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.3;
  text-align: center;
}

.empty-inline {
  padding: 28px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.product-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.related-compact > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-compact a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}

.related-compact a:hover {
  border-color: var(--muted-light);
  color: var(--ink);
}

.related-swatch {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--product-tint, var(--line-soft));
}

.related-compact strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-compact b {
  font-size: 11.5px;
  white-space: nowrap;
}

.reviews-empty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper));
}

.reviews-empty h2,
.product-faq > h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.reviews-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.review-lock {
  flex: none;
  padding: 3px 8px;
  border: 1px solid #f9a8d4;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-faq {
  max-width: 720px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.product-faq > h2 {
  margin-bottom: 10px;
}

.product-faq details + details {
  margin-top: 6px;
}

.favorites-page .product-grid:empty {
  display: none;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 20px;
}

.page-intro p {
  margin: 9px 0 0;
  color: #3f3f46;
  font-size: 13.5px;
  line-height: 1.65;
}

.metric-grid,
.principle-grid,
.process-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.metric-grid article > strong {
  font-size: 16px;
}

.partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  align-items: start;
  gap: 20px;
}

.partner-form,
.requirements-stack > section,
.legend-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-form h2 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.partner-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.partner-form label > span {
  color: var(--accent);
}

.form-note {
  margin: 0;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.5;
}

.form-note.is-confirmed {
  padding: 9px 11px;
  border: 1px solid var(--success-line);
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}

.requirements-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #3f3f46;
  font-size: 12.5px;
  line-height: 1.5;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success-bright);
  font-weight: 700;
}

.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legend-card {
  margin-top: 16px;
}

.legend-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: #3f3f46;
  font-size: 12.5px;
}

.discount-badge-static {
  position: static;
}

.favorite-glyph {
  color: var(--accent);
  font-size: 16px;
}

.contact-grid a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

/* KOS-041: the legal pages (/terms/, /privacy/, /cookies/, /disclosure/,
   /operator/) are long-form prose, not cards. One readable measure, one
   rhythm, no decoration competing with the text. */
.legal-prose {
  max-width: 74ch;
  margin-top: 24px;
  color: #3f3f46;
  font-size: 13.5px;
  line-height: 1.65;
}

.legal-prose section + section {
  margin-top: 26px;
}

.legal-prose h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-prose p {
  margin: 0 0 10px;
}

.legal-prose ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.legal-prose li {
  margin-bottom: 6px;
}

.legal-prose a {
  color: var(--accent);
  font-weight: 600;
}

.legal-dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.legal-dl dt {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.legal-dl dd {
  margin: 0;
}

/* The unfilled operator block. Deliberately loud: it is the thing that keeps the
   site out of the search index, so it must not read as ordinary body copy. */
.legal-placeholder {
  margin: 12px 0;
  padding: 16px;
  border: 1px dashed var(--danger);
  border-radius: 12px;
  background: #fef2f2;
  color: var(--danger);
}

.legal-placeholder p:last-of-type {
  margin-bottom: 6px;
}

.legal-placeholder ul {
  margin: 0;
}

.legal-placeholder code {
  overflow-wrap: anywhere;
}

/* KOS-043: the paid-placement note sits with the outbound merchant links. */
.offer-disclosure {
  margin: 14px 0 0;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.5;
}

.offer-disclosure a {
  color: var(--accent);
  font-weight: 600;
}

.compare-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 32px rgb(9 9 11 / 35%);
  font-size: 12.5px;
  white-space: nowrap;
}

/* KOS-011: the consent gate. Ships hidden and is revealed by web/static/app.js
   only while no decision is on record, so a reader who answered never sees it
   again and a reader without JavaScript is never tracked and never nagged. */
.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.consent-banner[hidden] {
  display: none;
}

.consent-copy {
  flex: 1 1 320px;
}

.consent-copy h2 {
  margin: 0 0 6px;
  font-size: 15px;
}

.consent-copy p {
  margin: 0;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-reset-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* A demo operator fact is shown, never disguised: the reader has to be able to
   tell identification from a placeholder at a glance. */
.legal-demo-flag {
  color: var(--danger);
  font-size: 12.5px;
  white-space: nowrap;
}

.compare-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: 85vh;
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 12px 32px rgb(9 9 11 / 35%);
}

.compare-dialog::backdrop {
  background: rgb(9 9 11 / 45%);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-card-swatch {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--product-tint, var(--line-soft));
  color: #52525b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.compare-card h3 {
  min-height: 34px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.compare-card dl {
  margin: 0;
}

.compare-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.compare-card dt {
  color: var(--muted);
}

.compare-card dd {
  margin: 0;
  font-weight: 600;
}

.compare-remove {
  border: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 11.5px;
  cursor: pointer;
}

.compare-remove:hover {
  color: var(--ink);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  /* Four columns since KOS-041 added the legal block. */
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 22px;
}

.brand-footer {
  font-size: 14px;
}

.footer-about p {
  max-width: 290px;
  margin: 8px 0 0;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.55;
}

.footer-grid h2 {
  margin: 0 0 10px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  list-style: none;
}

.footer-links a {
  color: #52525b;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 20px;
  color: var(--muted-light);
  font: 11.5px "Geist Mono", monospace;
}

.footer-meta a {
  color: var(--muted-light);
  text-decoration: underline;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .header-shell {
    flex-wrap: wrap;
  }

  .global-search {
    max-width: none;
    order: 3;
    flex-basis: 100%;
  }

  .main-nav {
    margin-left: auto;
  }

  .hero-section {
    align-items: stretch;
    gap: 24px;
  }

  .live-offer-card {
    width: 330px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .filters > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
  }

  .filters > summary::after {
    content: "+";
  }

  .filters[open] > summary::after {
    content: "−";
  }

  .filters-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .filter-group:first-child {
    grid-column: 1 / -1;
  }

  .category-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-layout {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .offer-row {
    grid-template-columns: 30px minmax(130px, 1fr) auto;
  }

  .offer-row .best-badge {
    grid-column: 2;
    width: fit-content;
  }

  .offer-row .offer-price {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .offer-row .button {
    grid-column: 2 / -1;
  }

  .seo-faq-section,
  .partner-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    padding-inline: 14px;
  }

  .header-shell {
    gap: 10px;
  }

  .main-nav {
    max-width: calc(100% - 110px);
    overflow-x: auto;
  }

  .main-nav a {
    padding-inline: 9px;
  }

  .hero-section {
    flex-direction: column;
    padding-top: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(27px, 9vw, 36px);
  }

  .live-offer-card {
    width: 100%;
  }

  .offer-stack-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .offer-stack-row em {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-list .product-card {
    grid-template-columns: 1fr;
  }

  .products-list .product-card-link {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .products-list .product-card-meta {
    grid-column: 2;
    align-items: flex-start;
  }

  .products-list .product-card-actions {
    padding-left: 64px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
  }

  .product-lower-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .reviews-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .compare-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
    transform: none;
  }
}

@media (max-width: 480px) {
  .main-nav {
    width: 100%;
    max-width: none;
    order: 2;
    justify-content: space-between;
    margin-left: 0;
    overflow: visible;
  }

  .main-nav a {
    padding-inline: 6px;
    font-size: 12px;
  }

  .global-search kbd {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch;
  }

  .product-card-link {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-column: 1 / -1;
  }

  .product-card .product-media {
    grid-row: 1 / span 2;
  }

  .product-card h3 {
    min-height: 0;
  }

  .product-card-meta {
    flex-direction: column;
    justify-content: end;
    align-items: flex-start;
  }

  .product-card-actions {
    grid-column: 2;
  }

  .products-list .product-card,
  .products-list .product-card-link {
    display: grid;
  }

  .products-list .product-card {
    grid-template-columns: 1fr;
  }

  .products-list .product-card-link {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .products-list .product-media {
    width: 68px;
    height: 68px;
    grid-row: 1 / span 2;
  }

  .products-list .product-media-brand {
    display: none !important;
  }

  .products-list .product-card-meta {
    min-width: 0;
    align-items: flex-start;
  }

  .products-list .product-card-actions {
    grid-column: 1;
    justify-content: flex-end;
  }

  .filters-body {
    grid-template-columns: 1fr;
  }

  .filter-group:first-child {
    grid-column: auto;
  }

  .category-filter {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

  .offer-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .offer-row .best-badge,
  .offer-row .offer-price,
  .offer-row .button {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }

  .partner-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: auto;
  }

  .compare-bar > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
