/* personvagar.se – ny layout 2026-10 (mönster: varmepumparpriser.se). Mobil först. */
:root {
  --ink: #123c45; --ink-m: #1b5966; --ink-l: #e6f0f1; --ink-ll: #f2f7f7;
  --accent: #e2583e; --accent-m: #c4442c; --ok: #2f8a57; --warn: #b4521f;
  --text: #1d2a2e; --mut: #5d6b70; --line: #dce5e6; --bg: #f6f8f8; --vit: #fff; --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-m); }
a:hover { color: var(--accent-m); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 1.4em 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; margin-top: .3em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p { margin: .6em 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .9rem; }
.mut { color: var(--mut); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* Knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .6em 1.15em; border-radius: 8px; background: var(--ink-m); color: #fff !important;
  text-decoration: none; font-weight: 600; border: 0; cursor: pointer; line-height: 1.3; font-size: .95rem; font-family: inherit; }
.btn:hover { background: var(--ink); }
.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-m); }
.btn--ghost { background: var(--ink-l); color: var(--ink) !important; }
.btn--ghost:hover { background: #d3e4e6; }
.btn--light { background: #fff; color: var(--ink) !important; }
.btn--light:hover { background: var(--ink-l); }
.btn--small { padding: .4em .85em; font-size: .87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1em 0; }
/* Annonsmärkning av köplänkar (texten styrs i Admin → Inställningar) */
.btn-row:has(> [data-affiliate])::after, .wp-block-button:has([data-affiliate])::after { content: var(--aff-label); font-size: 12px; color: var(--mut); }
.prose :is(p, li, td) a[data-affiliate]:not(.wp-block-button__link):not(:has(img))::after { content: " (" var(--aff-label) ")"; font-size: .72em; color: var(--mut); white-space: nowrap; }

/* Sidhuvud */
.site-head { background: var(--vit); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-inner { display: flex; align-items: center; gap: 12px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; position: relative; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-weight: 500; font-size: .72rem; color: var(--mut); letter-spacing: .02em; }
.nav-toggle, .sok-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; line-height: 1; padding: .4em .6em; cursor: pointer; color: var(--ink); }
.nav-toggle { margin-left: auto; }
.sok-toggle { display: none; }
.head-sok { display: flex; flex: 1 1 100%; order: 3; }
.head-sok input { flex: 1; border: 1px solid var(--line); border-radius: 8px 0 0 8px; padding: .55em .8em; font-size: 1rem; min-width: 0; font-family: inherit; }
.head-sok button { border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; background: var(--ink-l); padding: 0 .9em; cursor: pointer; color: var(--ink); }
.site-nav { display: none; flex: 1 1 100%; order: 2; }
body.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; border-top: 1px solid var(--line); }
.site-nav > ul > li > a { display: block; padding: .65em 2.5em .65em 0; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-nav > ul > li > a.is-active { color: var(--accent-m); }
.sub-toggle { position: absolute; right: 0; top: .35em; width: 2.2em; height: 2.2em; background: none; border: 0; cursor: pointer; color: var(--ink); }
.sub-toggle::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.site-nav li.open > .sub-toggle::before { transform: rotate(-135deg); }
.site-nav ul ul { display: none; padding: 0 0 .5em 1em; }
.site-nav li.open > ul { display: block; }
.site-nav ul ul a { display: block; padding: .35em 0; color: var(--text); text-decoration: none; }
.site-nav ul ul a[aria-current] { color: var(--accent-m); font-weight: 600; }
@media (min-width: 960px) {
  .head-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; flex: 0 1 auto; order: 0; margin-left: 12px; }
  .site-nav > ul { display: flex; gap: 2px; }
  .site-nav > ul > li { border: 0; }
  .site-nav > ul > li > a { padding: .5em .75em; border-radius: 8px; white-space: nowrap; }
  .site-nav > ul > li:hover > a, .site-nav > ul > li:focus-within > a { background: var(--ink-l); }
  .sub-toggle { display: none; }
  .site-nav ul ul { position: absolute; top: 100%; left: 0; background: var(--vit); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(18, 60, 69, .14); min-width: 260px; padding: .4em 0; z-index: 60; }
  .site-nav > ul > li:hover > ul, .site-nav > ul > li:focus-within > ul { display: block; }
  .site-nav ul ul a { padding: .45em 1.1em; }
  .site-nav ul ul a:hover { background: var(--bg); }
  .sok-toggle { display: block; margin-left: auto; }
  .sok-toggle:hover, body.sok-open .sok-toggle { background: var(--ink-l); }
  .head-sok { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); width: min(380px, 40vw); z-index: 70; background: var(--vit); border-radius: 10px;
    box-shadow: 0 8px 22px rgba(18, 60, 69, .18); padding: 4px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, visibility .15s; }
  body.sok-open .head-sok { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* Sidfot */
.site-foot { background: var(--ink); color: #c9dadd; margin-top: 56px; padding: 40px 0 32px; font-size: .93rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.foot-brand p { margin: .3em 0; max-width: 42ch; }
.foot-name { display: block; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .4em; }
.foot-col { display: flex; flex-direction: column; gap: .35em; }
.foot-head { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-bottom: .3em; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Sidor */
.page-head { padding-top: 18px; }
.page-head h1 { margin-bottom: .3em; }
.lead { font-size: 1.08rem; color: var(--mut); max-width: 72ch; margin-top: 0; }
.lead strong { color: var(--text); }
/* Kategorisidor: ingress (sidans första stycke + antal och pris) → produktkort → SEO-text */
.lead--kategori { max-width: 78ch; }
.lead--kategori p { margin: 0 0 .5em; }
.lead--kategori p:first-child { color: var(--text); }
.lead__stats { font-size: .98rem; color: var(--mut); }
.page-body--seo { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 28px; }
.crumbs { font-size: .86rem; color: var(--mut); display: flex; flex-wrap: wrap; gap: .35em; }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--accent-m); text-decoration: underline; }
.page-body { display: grid; gap: 32px; padding-bottom: 24px; }
@media (min-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .page-body--single, .page-body--wide { grid-template-columns: minmax(0, 1fr); }
}
.page-body--single .prose { max-width: 780px; }
/* Kategorisidor: texten behåller läsbredden, katalogen tar hela bredden */
.page-body--wide .prose > :not(.catalog):not(.products):not(.guide-form) { max-width: 780px; }
.section { padding: 8px 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .6em; }
.band { background: var(--ink-ll); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0 28px; margin: 24px 0; }
.notice { background: #fff7ea; border: 1px solid #f0d4a8; border-radius: var(--radius); padding: 14px 16px; }

/* Brödtext, inklusive block från gamla WordPress-sajten */
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.4em 0; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .aligncenter img { margin: 0 auto; }
.prose figcaption, .prose .wp-element-caption { font-size: .86rem; color: var(--mut); text-align: center; margin-top: .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose blockquote, .prose .wp-block-quote { margin: 1.4em 0; padding: .6em 1.2em; border-left: 4px solid var(--accent); background: var(--vit); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table, .tabell-wrap table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--vit); }
.prose th, .prose td, .tabell-wrap th, .tabell-wrap td { border: 1px solid var(--line); padding: .5em .75em; text-align: left; vertical-align: top; }
.prose th, .tabell-wrap thead th { background: var(--ink-l); color: var(--ink); }
.prose .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.prose .is-style-stripes tbody tr:nth-child(odd) { background: var(--ink-ll); }
.tabell-wrap { overflow-x: auto; margin: 1em 0; -webkit-overflow-scrolling: touch; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 1.4em 0; }
.prose .wp-block-button { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prose .wp-block-button__link { display: inline-block; background: var(--accent) !important; color: #fff !important; padding: .65em 1.3em; border-radius: 8px; text-decoration: none; font-weight: 600; }
.prose .wp-block-button__link:hover { background: var(--accent-m) !important; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .wp-block-media-text { display: grid; gap: 20px; align-items: center; margin: 1.6em 0; background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (min-width: 700px) { .prose .wp-block-media-text { grid-template-columns: 40% 1fr; } }
.prose .wp-block-media-text__content > :first-child { margin-top: 0; }
.prose .has-background:not(.wp-block-button__link):not(table) { background: var(--ink-l) !important; color: var(--ink) !important; padding: 1em 1.2em; border-radius: var(--radius); }
.prose .has-medium-font-size { font-size: 1.1rem; }

/* Sidokolumn */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .sidebar { position: sticky; top: 84px; align-self: start; } }
.side-nav { background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; display: flex; flex-direction: column; }
.side-nav__head { font-weight: 700; color: var(--ink); padding: 8px 16px; text-decoration: none; }
.side-nav__link { padding: 6px 16px; text-decoration: none; color: var(--text); border-left: 3px solid transparent; }
.side-nav__link:hover { background: var(--bg); }
.side-nav__link[aria-current] { border-left-color: var(--accent); font-weight: 600; color: var(--ink); }
.side-box { background: var(--ink); color: #dbe8ea; border-radius: var(--radius); padding: 18px; }
.side-box__title { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; }
.side-box p { margin: .4em 0 .9em; }

/* Startsida */
.hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-m) 100%); color: #e3eff1; padding: 36px 0 32px; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { color: #fff; margin: 0 0 .35em; font-size: 1.9rem; }
.hero__lead { max-width: 60ch; font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: #ffb3a2; margin: 0 0 .6em; }
.hero__img { border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 860px) { .hero__grid { grid-template-columns: 1.25fr 1fr; } .hero h1 { font-size: 2.3rem; } }
.tools { display: grid; gap: 12px; margin-top: -18px; position: relative; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tool-card { display: flex; flex-direction: column; gap: 4px; background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); box-shadow: 0 6px 18px rgba(18, 60, 69, .08); }
.tool-card:hover { border-color: var(--accent); color: var(--text); }
.tool-card__title { font-weight: 700; color: var(--ink); }
.tool-card__title::after { content: " →"; color: var(--accent); }
.tool-card__text { font-size: .92rem; color: var(--mut); }
.cats { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat-card { display: flex; flex-direction: column; gap: 3px; background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); }
.cat-card:hover { border-color: var(--ink-m); background: var(--ink-ll); color: var(--text); }
.cat-card__title { font-weight: 700; color: var(--ink); }
.cat-card__meta { font-size: .88rem; color: var(--accent-m); font-weight: 600; }
.cat-card__text { font-size: .86rem; color: var(--mut); }
.guides { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .guides { grid-template-columns: repeat(5, 1fr); } }
.guide { display: flex; flex-direction: column; gap: 6px; background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); padding-bottom: 14px; }
.guide:hover { border-color: var(--ink-m); color: var(--text); }
.guide img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.guide__title { font-weight: 700; color: var(--ink); padding: 4px 14px 0; }
.guide__text { font-size: .86rem; color: var(--mut); padding: 0 14px; }
.brand-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-list a { display: inline-flex; gap: .5em; align-items: center; background: var(--vit); border: 1px solid var(--line); border-radius: 999px; padding: .4em .95em; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand-list a:hover { border-color: var(--ink-m); }
.brand-list span { color: var(--mut); font-weight: 400; font-size: .85em; }
.brand-list--big a { font-size: 1.05rem; padding: .6em 1.2em; }

/* Specchips */
.chips { list-style: none; margin: .4em 0 .6em; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.chips li { background: var(--ink-l); color: var(--ink); border-radius: 999px; padding: .12em .65em; font-size: .78rem; font-weight: 600; }
.chips--lg li { font-size: .88rem; padding: .25em .8em; }
.chip { display: inline-flex; gap: .35em; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; padding: .25em .8em; font-size: .85rem; text-decoration: none; }
.chip:hover { background: var(--accent-m); color: #fff; }
.chip--clear { background: none; color: var(--ink-m); text-decoration: underline; }
.chip--clear:hover { background: none; color: var(--accent-m); }

/* Produktkort */
.products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 1em 0; }
.products--single { grid-template-columns: minmax(0, 320px); }
.product { display: flex; flex-direction: column; background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.product:hover { border-color: #c5d6d8; box-shadow: 0 8px 22px rgba(18, 60, 69, .09); }
.product__media { position: relative; display: block; background: #fff; aspect-ratio: 1; padding: 14px; border-bottom: 1px solid var(--line); }
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__noimg { display: block; width: 100%; height: 100%; background: var(--ink-ll) url("favicon.svg") center / 30% no-repeat; border-radius: 6px; opacity: .6; }
.product__badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .15em .6em; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.product__brand { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; }
.product__name { font-size: .98rem; margin: .2em 0 .1em; line-height: 1.3; }
.product__name a { color: var(--ink); text-decoration: none; }
.product__name a:hover { color: var(--accent-m); text-decoration: underline; }
.product__price { margin: auto 0 .5em; padding-top: .4em; font-size: .86rem; color: var(--mut); }
.product__price strong { font-size: 1.2rem; color: var(--text); }
.product__price s { color: var(--mut); }
.product__stock { font-size: .82rem; margin: -.3em 0 .5em; }
.product__stock--out { color: var(--warn); }
.product__actions { display: flex; gap: 6px; }
.product__actions .btn { flex: 1; }
.product__actions:has([data-affiliate])::after { content: none; }
.product__body:has([data-affiliate])::after { content: var(--aff-label); font-size: 11px; color: var(--mut); margin-top: 6px; }
.products__more { margin: .2em 0 1.4em; font-weight: 600; }
.products__note { font-size: .84rem; color: var(--mut); margin-top: 1.2em; }

/* Katalog med filter */
.catalog { margin: 1.4em 0; }
.catalog.is-loading .catalog__main { opacity: .5; transition: opacity .15s; }
.catalog__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .catalog__grid { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
.catalog__side { background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 900px) { .catalog__side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.catalog__toggle > summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 16px; list-style: none; }
.catalog__toggle > summary::-webkit-details-marker { display: none; }
.catalog__toggle > summary::after { content: " ▾"; color: var(--mut); }
.catalog__toggle[open] > summary::after { content: " ▴"; }
.catalog__toggle > :not(summary) { padding: 0 16px; }
.catalog__search { display: flex; gap: 6px; margin: 0 0 8px; }
.catalog__search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: .5em .7em; font-size: .95rem; font-family: inherit; }
.catalog__search--big { margin-bottom: 20px; }
.catalog__search--big input { font-size: 1.05rem; padding: .7em .9em; }
.catalog__group { border-top: 1px solid var(--line); padding: 10px 0; }
.catalog__group-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); margin: 0 0 .4em; }
.facets { list-style: none; margin: 0; padding: 0; }
.facet { display: flex; justify-content: space-between; gap: 8px; padding: .28em .5em; margin: 0 -.5em; border-radius: 6px; text-decoration: none; color: var(--text); font-size: .93rem; }
.facet:hover { background: var(--ink-ll); color: var(--text); }
.facet::before { content: ""; flex: 0 0 15px; height: 15px; margin-top: .2em; border: 2px solid #b5c7ca; border-radius: 4px; }
.facet.is-active::before { background: var(--ink-m) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--ink-m); }
.facet span:first-child { flex: 1; }
.facet__n { color: var(--mut); font-size: .85em; }
.catalog__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.catalog__count { margin: 0; }
.catalog__sort { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.catalog__sort select, .guide-form select, .tool input { border: 1px solid var(--line); border-radius: 8px; padding: .45em .6em; font-size: .95rem; background: var(--vit); font-family: inherit; color: var(--text); }
.chips--filters { margin-top: 12px; }
.catalog__empty { background: var(--vit); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--mut); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 20px 0; }
.pager a { font-weight: 600; }

/* Behovsguide (/sok/) */
.guide-form { background: var(--ink-l); border-radius: var(--radius); padding: 18px 20px 20px; margin: 1em 0 1.6em; }
.guide-form__title { margin: 0 0 .6em; font-size: 1.15rem; }
.guide-form__grid { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 700px) { .guide-form__grid { grid-template-columns: repeat(4, 1fr); } }
.guide-form__field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--ink); }

/* BMI-kalkylator */
.tool { background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 1.2em 0 1.6em; display: grid; gap: 16px; }
@media (min-width: 640px) { .tool { grid-template-columns: 220px 1fr; align-items: start; } .tool > .tool__note:last-of-type { grid-column: 1 / -1; } }
.tool__form { display: flex; flex-direction: column; gap: 10px; }
.tool__field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.tool__field input { font-size: 1.05rem; }
.tool__result { background: var(--ink-ll); border-radius: var(--radius); padding: 14px 18px; }
.tool__big { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.1; }
.tool__big small { font-size: 1rem; font-weight: 600; color: var(--mut); }
.tool__class { font-weight: 700; font-size: 1.1rem; margin: .2em 0; }
.tool[data-klass="normal"] .tool__class { color: var(--ok); }
.tool[data-klass="under"] .tool__class, .tool[data-klass="over"] .tool__class { color: var(--warn); }
.tool[data-klass="fetma"] .tool__class { color: var(--accent-m); }
.tool__note { font-size: .86rem; color: var(--mut); margin: .3em 0 0; }

/* Produktsida */
.pd { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 860px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.pd__media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pd__media img { max-height: 100%; object-fit: contain; }
.pd__buy { background: var(--vit); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pd__from { margin: 0; color: var(--mut); font-size: .9rem; }
.pd__price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 0 0 .4em; }
.pd__price s { font-size: 1rem; font-weight: 400; color: var(--mut); }
.pd__h { font-size: 1rem; margin: .8em 0 .5em; }
.offers { list-style: none; margin: 0 0 .8em; padding: 0; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.offer .btn { grid-column: 1 / -1; }
@media (min-width: 480px) { .offer { grid-template-columns: 1fr auto auto; } .offer .btn { grid-column: auto; } }
.offer__shop { font-weight: 700; color: var(--ink); }
.offer__stock { display: block; font-weight: 500; font-size: .82rem; color: var(--ok); }
.offer__stock--out { color: var(--warn); }
.offer__price { font-weight: 800; font-size: 1.1rem; }
.offers:has([data-affiliate])::after { content: var(--aff-label); display: block; font-size: 11px; color: var(--mut); padding-top: 4px; }
.pd-body { display: grid; gap: 24px; }
@media (min-width: 960px) { .pd-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.spec-table th { width: 45%; background: var(--ink-ll); color: var(--ink); font-weight: 600; }
.pd-desc details summary { cursor: pointer; color: var(--ink-m); font-weight: 600; }
