/* Kompar — design tokens
   Framboise (#C42A5B) replaces the old neon pink: deeper and calmer, and far from Klarna's pastel pink.
   Ink is a warm aubergine rather than pure black; savings use a green accent. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
}

:root {
  --brand: #C42A5B;
  --brand-strong: #A11F4A;
  --brand-tint: #FBEAF0;
  --brand-tint-2: #F6D5E1;
  --ink: #1E1A29;
  --ink-2: #3A3447;
  --muted: #6E6779;
  --line: #E9E5EC;
  --surface: #F5F3F6;
  --bg: #FFFFFF;
  --save: #127A57;
  --save-tint: #E3F3EC;
  --warn: #8A5A00;
  --warn-tint: #FFF4D9;
  --night: #1E1B24;
  --night-2: #2A2632;
  --night-line: #3A3542;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 26, 41, .06), 0 8px 24px rgba(30, 26, 41, .06);
  --wrap: 1240px;
  --tabbar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--tabbar-h);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.save { color: var(--save); font-weight: 600; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); text-decoration: none; margin-bottom: .6em; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 640px; }
.ic { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-strong); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--brand-tint-2); padding-bottom: 2px; }
.link:hover { border-color: var(--brand); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brand); flex: none; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--ink); }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.mainnav a:not(.btn):hover { background: var(--surface); }
.mainnav a[aria-current] { background: var(--brand-tint); color: var(--brand-strong); }
.mainnav .btn { margin-left: 8px; }

/* Search */
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid transparent; border-radius: 999px; padding: 0 6px 0 18px; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--ink); background: var(--bg); }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); height: 44px; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-sm { flex: 1; min-width: 0; max-width: 520px; }
.search-md { max-width: 560px; margin: 24px auto 0; background: var(--bg); border-color: var(--line); }
.search-lg { max-width: 720px; margin: 28px auto 0; background: var(--bg); border-color: var(--line); box-shadow: var(--shadow); padding: 6px 6px 6px 22px; }
.search-lg input { height: 52px; font-size: 1.05rem; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; z-index: 60; text-align: left; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--surface); }
.suggest img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.suggest span { flex: 1; font-size: .925rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest strong { font-size: .9rem; white-space: nowrap; }
.suggest .suggest-all { justify-content: center; font-weight: 700; color: var(--brand-strong); border-top: 1px solid var(--line); }

/* Hero */
.hero { text-align: center; padding: 72px 0 56px; background:
  radial-gradient(1100px 380px at 50% -120px, var(--brand-tint) 0%, rgba(251, 234, 240, 0) 70%); }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin: 0 auto; }
.scan-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: .95rem; text-align: left; }
.scan-cta:hover { background: var(--ink-2); }
.scan-cta-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); flex: none; }

/* Category bar */
.catbar { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.catbar-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 10px 16px; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 84px; padding: 10px 10px; border-radius: var(--radius-sm); text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.catbar a:hover { background: var(--surface); color: var(--ink); }
.catbar a[aria-current] { background: var(--brand-tint); color: var(--brand-strong); }
/* Overflow cues: edge fades + arrows, toggled by app.js only when the bar actually scrolls */
.catbar::before, .catbar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 72px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.catbar::before { left: 0; background: linear-gradient(90deg, var(--bg) 30%, rgba(255, 255, 255, 0)); }
.catbar::after { right: 0; background: linear-gradient(270deg, var(--bg) 30%, rgba(255, 255, 255, 0)); }
.catbar.can-left::before, .catbar.can-right::after { opacity: 1; }
.catbar-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.catbar-arrow:hover { border-color: var(--ink); }
.catbar-prev { left: 12px; }
.catbar-prev .ic { transform: rotate(180deg); }
.catbar-next { right: 12px; }
.catbar.can-left .catbar-prev, .catbar.can-right .catbar-next { display: grid; }

/* Sections */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-tight { padding-top: 28px; padding-bottom: 40px; }
.section-tint { background: var(--surface); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.pagehead { padding: 48px 0 32px; text-align: center; background: radial-gradient(900px 300px at 50% -100px, var(--brand-tint) 0%, rgba(251, 234, 240, 0) 70%); }
.pagehead .lead { margin: 0 auto; }
.pagehead-shop { text-align: left; }
.shophead { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.shophead > div { flex: 1; min-width: 220px; }
.shophead h1 { margin: 0 0 .2em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-coupons { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.grid-shops { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* Product card */
.pcard { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); }
.pcard-img { position: relative; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px 4px; }
.pcard-name { font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-price { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.pcard-price strong { font-size: 1.1rem; font-weight: 800; }
.pcard-price .from { font-size: .8rem; color: var(--muted); }
.pcard-meta { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.noimg { width: 56%; aspect-ratio: 1; opacity: .5; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A93A5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.noimg-lg { width: 40%; }
.badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge-drop { background: var(--brand-tint-2); color: var(--brand-strong); }

/* Coupon card */
.ccard { display: flex; flex-direction: column; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ccard-head { display: flex; align-items: center; gap: 14px; }
.ccard-shop { font-weight: 700; text-decoration: none; }
.ccard-shop:hover { text-decoration: underline; }
.ccard-value { font-size: 1.6rem; font-weight: 800; color: var(--save); line-height: 1.1; }
.ccard-title { font-size: 1.05rem; font-weight: 700; margin: 0; flex: 1; }
.code { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border: 1.5px dashed var(--brand); border-radius: 999px; background: var(--brand-tint); }
.code-text { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; font-family: ui-monospace, 'SF Mono', Menlo, monospace; overflow: hidden; text-overflow: ellipsis; }
.code.is-copied { border-style: solid; border-color: var(--save); background: var(--save-tint); }
.ccard-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .825rem; color: var(--muted); }
.ccard-foot.is-soon { color: var(--warn); font-weight: 600; }
.terms { width: 100%; }
.terms summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.terms p { margin: 8px 0 0; }

/* Logos */
.logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; flex: none; }
.logo img { width: 78%; height: 78%; object-fit: contain; }
.logo-lg { width: 56px; height: 56px; }
.logo-xl { width: 96px; height: 96px; }
.logo-letter { background: hsl(var(--h) 45% 93%); color: hsl(var(--h) 45% 30%); border-color: transparent; font-weight: 800; font-size: 1.2rem; }
.logo-xl.logo-letter { font-size: 2.4rem; }

/* Shop card */
.scard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.scard:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.scard-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.scard-body strong { font-size: 1.05rem; }
.scard-meta { font-size: .875rem; color: var(--muted); }
.scard > .ic { color: var(--muted); }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--bg); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Results */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.results-head h1 { margin-bottom: .2em; }
.results-head p { margin: 0; }
.results-count { margin-bottom: 16px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select, .manual input, .alertform input {
  font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); height: 44px; padding: 0 12px;
}
.sort select:focus, .manual input:focus { border-color: var(--ink); outline: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); margin-bottom: 8px; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding-top: 20px; padding-bottom: 32px; align-items: start; }
.product-media { aspect-ratio: 1; background: var(--surface); border-radius: 24px; display: grid; place-items: center; padding: 40px; position: sticky; top: 88px; }
.product-media img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.bestbox { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); margin: 22px 0 16px; }
.bestbox-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 2px 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-tint); color: var(--warn); font-size: .9rem; }
.notice .ic { margin-top: 2px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.offers { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.offer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.offer.is-best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.offer-shop { display: flex; flex-direction: column; min-width: 0; }
.offer-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.offer-price strong { font-size: 1.2rem; }
.prose { max-width: 760px; color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; color: var(--ink); }

/* Price history (kept dark, as on the original site) */
.pricezone { background: var(--night); color: #F2EFF5; padding: 56px 0; margin-top: 16px; }
.pricezone h2 { font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.pricezone h2 strong { font-weight: 800; }
.pricezone-note { color: #A49DAF; }
.pricezone-note a { color: #F2EFF5; }
.pricestats { display: flex; gap: 32px; flex-wrap: wrap; margin: 8px 0 20px; }
.pricestats span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #A49DAF; }
.pricestats strong { font-size: 1.3rem; }
.chart { position: relative; height: 320px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--night-line); stroke-width: 1; }
.chart .axis { fill: #8E879A; font-size: 12px; font-family: inherit; }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: #E8547F; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--night); stroke: #E8547F; stroke-width: 2; }
.chart .cursor { stroke: #F2EFF5; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-tip { position: absolute; pointer-events: none; background: #F2EFF5; color: var(--night); padding: 6px 10px; border-radius: 10px; font-size: .85rem; font-weight: 700; transform: translate(-50%, -130%); white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.chart-tip span { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.alertbox { margin-top: 48px; }
.alertbox-solo { margin-top: 0; }
.alertform { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.alertform label:not(.hp) { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; max-width: 340px; color: #A49DAF; font-size: .95rem; }
.alertform input { background: var(--night-2); border-color: var(--night-line); color: #F2EFF5; height: 52px; border-radius: 4px; }
.alertform input:focus { border-color: #E8547F; outline: none; }
.alertform .btn { height: 52px; border-radius: 4px; }
.flash { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.flash-ok { background: rgba(18, 122, 87, .18); color: #7FE0B7; }
.flash-err { background: rgba(232, 84, 127, .16); color: #FF9DB8; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.how-item { padding: 24px; border-radius: var(--radius); background: var(--surface); }
.how-item p { color: var(--ink-2); margin: 0; }
.how-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; margin-bottom: 14px; }

/* Scanner */
.scanner { padding: 32px 0 48px; }
.scanner-in { max-width: 560px; text-align: center; }
.viewfinder { position: relative; aspect-ratio: 4 / 3; background: var(--night); border-radius: 24px; overflow: hidden; margin: 8px 0 20px; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.viewfinder.is-live .vf-frame { opacity: 1; }
.vf-frame span { width: 78%; height: 38%; border-radius: 16px; box-shadow: 0 0 0 999px rgba(20, 17, 26, .45); border: 3px solid #fff; position: relative; overflow: hidden; }
.vf-frame span::after { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #E8547F; box-shadow: 0 0 12px #E8547F; animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-36px); } 50% { transform: translateY(36px); } }
.vf-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; color: #CFC9D6; }
.vf-idle p { margin: 0; max-width: 300px; }
.vf-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--night-2); color: #fff; }
.viewfinder.is-live .vf-idle { display: none; }
.vf-stop { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.manual { text-align: left; }
.manual label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 8px; }
.manual-row { display: flex; gap: 10px; }
.manual-row input { flex: 1; min-width: 0; font-size: 1.1rem; letter-spacing: .06em; border-radius: 999px; padding: 0 18px; height: 48px; }
.manual-row .btn { height: 48px; }
.scan-result { text-align: left; margin-top: 24px; }
.scan-result:empty { display: none; }
.sr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.sr-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sr-head img { width: 72px; height: 72px; object-fit: contain; background: var(--surface); border-radius: 12px; padding: 6px; flex: none; mix-blend-mode: multiply; }
.sr-head h2 { font-size: 1.05rem; margin: 0 0 4px; }
.sr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.sr-compare label { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.sr-compare input { width: 100%; min-width: 0; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; font-weight: 700; color: var(--ink); }
.verdict { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 14px; }
.verdict-good { background: var(--save-tint); color: var(--save); }
.verdict-bad { background: var(--brand-tint); color: var(--brand-strong); }
.sr-offers { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.sr-offers a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); text-decoration: none; }
.sr-offers a:hover { background: var(--brand-tint); }
.sr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sr-actions .btn { flex: 1; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 40px 0 24px; background: var(--surface); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.footer nav a:hover { color: var(--brand); }
.brand-footer { margin-bottom: 10px; }
.disclosure { color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 28px 0 0; }

/* Mobile tab bar */
.tabbar { display: none; }

@media (max-width: 900px) {
  .mainnav a:not(.btn) { display: none; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product-media { position: static; padding: 24px; max-height: 360px; aspect-ratio: auto; height: 320px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  .topbar-in { height: 60px; gap: 12px; }
  .mainnav { display: none; }
  .brand-word { display: none; }
  .search-sm { max-width: none; }
  .hero { padding: 40px 0 32px; }
  .search-lg { padding: 4px 4px 4px 16px; }
  .search-lg .btn { padding: 0 14px; }
  .search-lg input { font-size: 1rem; height: 46px; }
  .catbar a { min-width: 78px; font-size: .8rem; }
  .catbar-arrow { display: none !important; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rail { grid-auto-columns: 44%; }
  .pcard-img { padding: 12px; }
  .offer { grid-template-columns: auto 1fr auto; gap: 10px 12px; }
  .offer .btn { grid-column: 1 / -1; }
  .chart { height: 240px; }
  .alertform label:not(.hp) { max-width: none; }
  .alertform .btn { width: 100%; }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 20px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; font-weight: 600; text-decoration: none; color: var(--muted); }
  .tabbar a[aria-current] { color: var(--brand); }
  .tab-scan-dot { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; margin-top: -26px; box-shadow: 0 6px 16px rgba(196, 42, 91, .35); border: 4px solid #fff; }
  .tab-scan[aria-current] .tab-scan-dot { background: var(--brand-strong); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Language switch */
.langswitch { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); }
.mainnav .langswitch { margin-left: 4px; }
.langswitch:hover { border-color: var(--ink); color: var(--ink); }
.langswitch-m { display: none; margin-left: auto; flex: none; }
.footer-langs { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.footer-langs a[aria-current] { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .langswitch-m { display: inline-grid; margin-left: 0; }
}
