/* Vevia – etusivu, versio 4
   Valmistajan luettelo: kapea isokirjaiminen otsikkotyyppi, tekniset piirrokset
   ja logon värit, eli sininen ja harmaat. Ei pyöreitä harmaita UI-kortteja. */

:root {
  --bg: #fff;
  --alt: #f3f2ee;
  --line: #d9d8d2;
  --ink: #16171b;
  --text-2: #45464d;
  --soft: #77787f;
  --accent: #5271ff;
  --blue: #4466ff; /* logon sininen hieman syvempänä, jotta valkoinen teksti sen päällä erottuu */
  --accent-ink: #2f4bd8;
  --studio: #2a292d;
  --dark: #121214;
  --on-dark: #f2f1ec;
  --on-dark-2: #a9a8a3;

  --r: 4px;
  --maxw: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --sec: clamp(64px, 8vw, 120px);
  --header: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Otsikot: kapea, raskas ja isokirjaiminen kuin tehtaan kyltissä */
h1, h2 {
  margin: 0; font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .9; text-wrap: balance;
}
h1 { font-size: clamp(3.2rem, 7.6vw, 7.6rem); }
h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
h3 { margin: 0; font-size: 1.25rem; font-weight: 700; font-stretch: 88%; letter-spacing: -.01em; line-height: 1.15; }
.h-tech { font-size: 1.5rem; font-stretch: 72%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.lead { font-size: 1.2rem; line-height: 1.5; }
.marker { font-family: "Permanent Marker", cursive; }

/* ------------------------------------------------ painikkeet ja linkit */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 3px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--accent-ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--alt); }
.link { font-weight: 700; white-space: nowrap; }
.link--light { color: #fff; }

/* Alleviivaus piirtyy hoverissa vasemmalta oikealle. Pysyvissä linkeissä vaalea
   pohjaviiva näkyy koko ajan ja sininen viiva liukuu sen päälle. */
.link, .next a, .faq-list details a, .cat-go, .shop-more span, .finder-clear, .cl-remove, .fb, .quote-toggle {
  --u-base: rgb(82 113 255 / .35);
  padding-bottom: 2px; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat, linear-gradient(var(--u-base), var(--u-base)) 0 100% / 100% 2px no-repeat;
  transition: background-size .45s var(--ease);
}
.link--light, .fb, .quote-toggle { --u-base: rgb(255 255 255 / .4); }
.link:hover, .link:focus-visible, .next a:hover, .next a:focus-visible, .faq-list details a:hover, .cat:hover .cat-go, .cat:focus-visible .cat-go,
.shop-more a:hover span, .shop-more a:focus-visible span, .finder-clear:hover, .cl-remove:hover, .fb:hover, .quote-toggle:hover { background-size: 100% 2px, 100% 2px; }

.nav a, .topbar a, .crumbs a, .site-footer nav a, .people a, .faq-phone, .person a, .topper h3 a, .mini-card strong, .cl-name {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav a { background-image: linear-gradient(var(--accent), var(--accent)); background-position: 0 calc(100% - 3px); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"], .topbar a:hover, .crumbs a:hover, .site-footer nav a:hover, .site-footer nav a:focus-visible,
.people a:hover, .faq-phone:hover, .person a:hover, .topper:hover h3 a, a.mini-card:hover strong, .cl-name:hover { background-size: 100% 2px; }

/* ------------------------------------------------ yläpalkki ja header */
.topbar { position: relative; z-index: 61; background: var(--blue); color: #fff; font-size: .8125rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar p { margin: 0; }
.topbar :focus-visible { outline-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 60; height: var(--header); background: #fff; color: var(--ink); transition: background-color .3s, color .3s, box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.over-hero { background: transparent; color: #fff; box-shadow: none; }
.header-row { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { color: var(--accent); flex: none; }
.over-hero .logo { color: #fff; }
.nav { display: flex; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.nav a { align-self: flex-start; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 3px; text-decoration: none; }
.icon-btn:hover { background: rgb(128 128 128 / .16); }
.shop-btn { min-height: 42px; margin-left: 24px; padding: 0 22px; font-size: .95rem; }
.cart-count { position: absolute; right: 3px; top: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 3px; background: none; cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; transition: transform .3s var(--ease); }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.nav-open .menu-lines { background: transparent !important; }
.nav-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------ osiot */
.section { padding: var(--sec) 0; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--foam { position: relative; isolation: isolate; background: var(--alt); }
.section--foam::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/huokoset.svg) 0 0 / 320px; opacity: .09; mix-blend-mode: multiply; }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto; align-items: end; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { margin: 0; color: var(--text-2); max-width: 52ch; }
.head > :last-child:not(p):not(h2) { justify-self: end; }
.next { margin: 36px 0 0; color: var(--text-2); }
.next a { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------ hero
   Kuva on ylhäällä oikealla, ja sen tumma studiotausta jatkuu koko heroon.
   Teksti kulkee alhaalla koko leveydeltä. Yläpadding lasketaan kuvan koosta,
   joten otsikko jää aina patjan kulman alapuolelle. */
.hero {
  --photo: min(76vw, 104vh);
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(var(--header) * -1);
  min-height: clamp(640px, 92vh, 1000px);
  display: flex; align-items: flex-end;
  padding: calc(var(--photo) * .44 + 28px) 0 clamp(40px, 5vw, 76px);
  background: var(--studio); color: #fff;
}
.hero-photo {
  position: absolute; top: calc(var(--photo) * -.1); right: 0; z-index: -2;
  width: var(--photo); aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 32%), linear-gradient(0deg, transparent 0, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 4%, #000 32%), linear-gradient(0deg, transparent 0, #000 30%);
  mask-composite: intersect;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(42 41 45 / .82) 0, rgb(42 41 45 / .5) calc(var(--header) + 16px), rgb(42 41 45 / 0) calc(var(--header) + 150px));
}
.hero-content { position: relative; }
.hero h1 { font-size: clamp(3.2rem, min(7.4vw, 11.5vh), 8.8rem); }
.hero h1 span { display: block; }
.hero-row { display: grid; justify-items: start; gap: 28px; margin-top: clamp(20px, 2vw, 28px); }
.hero .lead { max-width: 64ch; margin: 0; color: rgb(255 255 255 / .85); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero .actions { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-row { animation: hero-rise .9s var(--ease) both; }
  .hero-row { animation-delay: .12s; }
  .hero-photo img { animation: hero-settle 1.6s var(--ease) both; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.04); } }


/* ------------------------------------------------ valikoima */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--alt); }
.cat-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; border-radius: 3px; background: #fff; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.03); }
.cat-name, .cat-meta { padding-inline: 14px; }
.cat-name { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: .95; }
.cat-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .98rem; }
.cat-meta b { white-space: nowrap; }

/* ------------------------------------------------ sängyt */
.beds { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.beds-visual { padding: clamp(16px, 2.4vw, 32px); border-radius: var(--r); background: #fff; }
.explode { width: 100%; height: auto; overflow: visible; }
.explode .layer { transition: transform 1s var(--ease), opacity .3s; }
.explode.is-open .layer { transform: translateY(calc(var(--i) * -26px)); transition-delay: calc(var(--i) * 60ms); }
.explode.is-dim .layer { opacity: .3; }
.explode.is-dim .layer.is-hot { opacity: 1; }
.layer-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.layer-legend li { display: grid; grid-template-columns: 26px 1fr; gap: 0 12px; padding: 8px; border-radius: 3px; }
.layer-legend li:hover, .layer-legend li:focus-visible { background: var(--alt); }
.layer-legend .sw { grid-row: span 2; width: 26px; height: 18px; margin-top: 3px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.layer-legend strong { font-weight: 700; font-size: .95rem; }
.layer-legend span:last-child { font-size: .85rem; color: var(--text-2); }

.bed-models { display: grid; gap: 10px; }
.model {
  display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 18px;
  padding: 10px 18px 10px 10px; border: 2px solid transparent; border-radius: var(--r); background: #fff;
  text-align: left; cursor: pointer; transition: border-color .2s;
}
.model:hover { border-color: var(--line); }
.model[aria-selected="true"] { border-color: var(--ink); }
.model-img { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.model-text { display: grid; gap: 2px; }
.model-name { font-size: 1.35rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 1; }
.model-spec { font-size: .9rem; color: var(--text-2); }
.model-price { font-weight: 700; white-space: nowrap; }
.model-buy { display: grid; gap: 14px; justify-items: start; margin-top: 14px; }
.bed-guarantee { margin: 0; font-weight: 600; }

/* ------------------------------------------------ petauspatjat */
.finder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: start; margin-bottom: 40px; }
.finder-label { margin: 0 0 12px; font-size: 1.3rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.picks button {
  display: grid; justify-items: center; align-content: start; gap: 8px;
  padding: 4px 2px 8px; border: 0; border-radius: 0; background: none; color: var(--text-2);
  font-size: .9rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer;
  transition: color .2s, box-shadow .2s;
}
.picks svg { width: 64px; height: 32px; color: var(--ink); transition: color .2s; }
.picks button:hover { color: var(--ink); }
.picks button:hover svg { color: var(--accent-ink); }
.picks button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.picks button[aria-pressed="true"] svg { color: var(--accent); }
.finder-note { min-height: 1.6em; margin: 14px 0 0; color: var(--text-2); max-width: 74ch; }
.finder-note strong { color: var(--ink); }

.care-label {
  position: relative; width: 250px; margin-top: 4px; padding: 34px 20px 18px; rotate: 2.5deg;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / .022) 0 1px, transparent 1px 3px), #fdfcf8;
  border-radius: 3px 3px 9px 9px;
  box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 16px 26px -16px rgb(40 30 0 / .45);
  outline: 1.5px dashed rgb(22 23 27 / .3); outline-offset: -8px;
  font-stretch: 85%; font-size: .8rem; line-height: 1.35;
}
.cl-fold { position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 3px 3px 0 0; background: linear-gradient(#e7e4d9, #f6f4ec); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .08); }
.cl-brand { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; font-stretch: 120%; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.cl-brand span { display: block; margin-top: 4px; font-size: .66rem; font-weight: 600; letter-spacing: .04em; font-stretch: 90%; }
.care-label ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; text-transform: uppercase; font-weight: 600; }
.cl-wash { display: flex; align-items: center; gap: 8px; }

.toppers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.topper { position: relative; display: flex; flex-direction: column; transition: opacity .3s; }
.t-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--alt); }
.t-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.topper:hover .t-img img { transform: scale(1.03); }
.topper h3 { margin-top: 16px; }
.topper h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
.topper h3 a::after { content: ""; position: absolute; inset: 0; }
.t-desc { margin: 6px 0 4px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.t-spec { margin: 0; font-size: .875rem; font-weight: 600; color: var(--accent-ink); }
.t-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; padding-top: 14px; }
.t-buy .link { position: relative; z-index: 1; }
.price { font-weight: 800; font-size: 1.15rem; }
.stamp {
  position: absolute; z-index: 2; top: 14px; left: 12px; padding: 5px 10px 4px;
  border: 2.5px solid var(--accent-ink); border-radius: 3px; color: var(--accent-ink); background: rgb(255 255 255 / .9);
  font-size: .85rem; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em;
  rotate: -6deg; opacity: 0; scale: 1.4; transition: opacity .2s, scale .35s var(--ease);
}
.topper.is-fit .stamp { opacity: 1; scale: 1; }
.is-filtering .topper:not(.is-fit) { opacity: .4; }

.feel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 56px; padding: clamp(20px, 3vw, 40px); border-radius: var(--r); background: var(--alt); }
.feel-copy p { color: var(--text-2); }
.swatches, .densities { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button, .densities button {
  display: grid; justify-items: center; gap: 6px; padding: 6px 6px 8px; border: 2px solid transparent; border-radius: var(--r);
  background: none; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.swatches .sw, .densities .sw { width: 52px; height: 52px; border-radius: 3px; }
.swatches button:hover, .densities button:hover { border-color: var(--line); }
.swatches button[aria-selected="true"], .densities button[aria-pressed="true"] { border-color: var(--ink); }
.feel-spec { margin: 18px 0 0; min-height: 3.2em; }
.feel-spec span { color: var(--text-2); }
.press { width: 100%; height: auto; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }

/* ------------------------------------------------ vaahtomuovi */
.foam { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.foam-form { display: flex; flex-direction: column; gap: 24px; padding: clamp(20px, 3vw, 36px); border-radius: var(--r); background: #fff; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field > label { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 10px; font-size: 1.15rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.field output { font-size: 1.5rem; font-weight: 800; font-stretch: 72%; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sizes button { display: grid; justify-items: center; gap: 6px; padding: 4px 6px 8px; border: 0; background: none; font-weight: 700; font-size: .9rem; color: var(--text-2); cursor: pointer; transition: color .2s, box-shadow .2s; }
.sizes svg { width: 48px; height: 48px; }
.sizes rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.sizes button:hover { color: var(--ink); }
.sizes button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.sizes button[aria-pressed="true"] rect { fill: var(--accent); stroke-width: 2.5; }
.ruler { position: relative; padding-bottom: 22px; }
.ruler-ticks { position: absolute; left: 11px; right: 11px; bottom: 0; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: var(--text-2); }
.ruler-ticks span { position: relative; width: 0; display: flex; justify-content: center; }
.ruler-ticks span::before { content: ""; position: absolute; bottom: 16px; width: 1.5px; height: 9px; background: var(--ink); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .18) 0 1px, transparent 1px 8px), var(--alt); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 2px; background: var(--alt); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -10px; border-radius: 3px; background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 24px; border-radius: 3px; background: var(--ink); border: 3px solid #fff; }
.hint { margin: 8px 0 0; font-size: .875rem; color: var(--text-2); }
.buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.buy-price { display: grid; margin: 0; }
.buy-price span { font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 800; font-stretch: 72%; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-price small { margin-top: 4px; font-size: .85rem; color: var(--text-2); }
.block { width: 100%; height: auto; overflow: visible; }

/* ------------------------------------------------ mittatilaukset */
.pro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pro-card { display: flex; flex-direction: column; }
.drawing { width: 100%; height: auto; aspect-ratio: 360 / 250; border-radius: var(--r); background: var(--alt); }
.pro-card h3 { margin: 18px 0 0; font-size: 1.6rem; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
.pro-card p { margin: 8px 0 0; color: var(--text-2); font-size: .95rem; line-height: 1.5; }

/* ------------------------------------------------ meistä */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story .lead { margin-top: 22px; color: var(--on-dark-2); }
.quote { margin: 30px 0 0; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; font-weight: 700; font-style: italic; font-stretch: 78%; }
.quote-toggle { margin-top: 12px; padding: 0 0 2px; border: 0; color: var(--on-dark-2); font-size: .9rem; cursor: pointer; }
.quote-toggle:hover { color: #fff; }
.people { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; }
.people p { display: grid; margin: 0; }
.people span { color: var(--on-dark-2); font-size: .9rem; }
.people a { justify-self: start; font-weight: 700; font-size: 1.2rem; }
.story-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.story-photos img { width: 100%; height: clamp(300px, 36vw, 520px); object-fit: cover; border-radius: var(--r); }

/* ------------------------------------------------ usein kysyttyä ja paketti */
.faq { display: grid; gap: clamp(28px, 3vw, 40px); }
.faq-list { margin-top: clamp(24px, 3vw, 36px); border-bottom: 1.5px solid var(--line); }
.faq-list details { border-top: 1.5px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 2px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background: linear-gradient(currentColor, currentColor) center / 18px 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 18px no-repeat;
  color: var(--accent); transition: transform .3s var(--ease);
}
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -4px 0 22px; padding-right: 44px; max-width: 68ch; color: var(--text-2); }
.faq-list details a { color: var(--ink); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}
.faq-help { display: grid; gap: 6px; justify-items: start; justify-self: start; width: min(100%, 560px); padding: 26px; border-radius: var(--r); background: var(--alt); }
.faq-help h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 70%; text-transform: uppercase; }
.faq-help p { margin: 0 0 6px; }
.faq-phone { font-size: 2rem; font-weight: 800; font-stretch: 72%; }

/* ------------------------------------------------ yhteys ja footer */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact .lead { margin-top: 18px; color: var(--text-2); }
.people-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 32px; }
.person { display: grid; align-content: start; gap: 2px; }
.person .name { margin: 0 0 2px; font-weight: 700; }
.person a { justify-self: start; color: var(--text-2); }
.person a:hover { color: var(--ink); }
.person .phone { color: var(--ink); font-size: 1.6rem; font-weight: 800; font-stretch: 72%; }
.person .addr { margin: 4px 0 0; color: var(--text-2); }
.contact-form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: #fff; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-weight: 400; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-size: .9rem; color: var(--text-2); }

.site-footer { background: var(--dark); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand svg { color: #fff; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 12px; font-size: .95rem; }
.fb { color: var(--on-dark); font-style: italic; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer nav a { justify-self: start; font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.fh { margin: 0 0 6px; color: #fff; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 1.1rem; }
.footer-copy { margin-top: 48px; font-size: .85rem; }

/* ------------------------------------------------ responsiivisuus */
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 96px var(--gutter) 40px; background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav a { font-size: clamp(2.2rem, 8vw, 3.2rem); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 1.05; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: #fff; color: var(--ink); }
  .nav-open .site-header .logo { color: var(--accent); }
  .header-tools { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; margin-left: 12px; }
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toppers, .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { grid-template-columns: minmax(0, 1fr) auto; }
  .head p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 900px) {
  .beds, .feel, .foam, .story, .faq, .contact, .finder-row { grid-template-columns: minmax(0, 1fr); }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: calc(var(--header) + 32px) 0 0; }
  .hero::before { content: none; }
  .hero-photo { position: relative; top: auto; right: auto; order: 2; width: 100%; margin-top: 4px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%); mask-image: linear-gradient(180deg, transparent 0, #000 34%); }
  .hero-content { order: 1; }
  .hero h1 span { display: inline; }
  .hero-row { gap: 24px; }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cat { display: grid; grid-template-columns: 40% 1fr; align-items: center; gap: 4px 14px; padding: 10px 14px 10px 10px; }
  .cat-name { font-size: clamp(1.5rem, 6.4vw, 2.2rem); overflow-wrap: anywhere; }
  .cat-img { grid-row: span 2; margin: 0; }
  .cat-name, .cat-meta { padding-inline: 0; }
  .cat-meta { flex-direction: column; gap: 2px; margin-top: 0; align-self: start; }
  .cat-name { align-self: end; }
  .layer-legend { grid-template-columns: minmax(0, 1fr); }
  .care-label { margin: 0 auto; rotate: -1.5deg; }
  .toppers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
  .toppers::-webkit-scrollbar { display: none; }
  .topper { scroll-snap-align: start; }
  .story-photos img { height: clamp(220px, 56vw, 380px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  :root { --header: 64px; }
  .topbar a { display: none; }
  .topbar-row { justify-content: center; text-align: center; }
  .logo svg { width: 106px; }
  .icon-btn[aria-label="Haku"] { display: none; }
  .header-row { gap: 12px; }
  .shop-btn { min-height: 40px; margin-left: 8px; padding: 0 12px; font-size: .9rem; font-stretch: 85%; }
  .menu-btn { margin-left: 6px; }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head > :last-child:not(p):not(h2) { justify-self: start; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model { grid-template-columns: 84px 1fr; }
  .model-img { width: 84px; }
  .model-price { grid-column: 2; }
  .sizes button { font-size: .8rem; }
  .pro-grid, .people-list, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------ käyttötarkoitus ja hinnan koko näkyviin */
.cat-use { display: block; margin-top: 8px; padding-inline: 14px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.cat .cat-meta { display: block; margin-top: 10px; }
.cat-meta b { margin-right: 8px; font-size: 1.15rem; }
.model-price { text-align: right; }
.model-price small, .price small { display: block; font-size: .78rem; font-weight: 500; color: var(--text-2); }
.bed-note { margin: 0; font-size: .9rem; color: var(--text-2); }
.t-name { margin: 16px 0 2px; font-size: .9rem; font-weight: 700; color: var(--accent-ink); }
.topper h3 { margin-top: 0; }

/* ------------------------------------------------ selkeämmät toiminnot */
.cat-go { align-self: flex-start; justify-self: start; margin: 12px 14px 0; font-weight: 700; }
.visual-hint { margin: 0 0 6px; font-size: .9rem; color: var(--text-2); }
.finder-clear { margin: 10px 0 0; padding: 0 0 2px; border: 0; font-size: .9rem; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.finder-clear[hidden] { display: none; }

/* ------------------------------------------------ sängyn ostopolku (sangyt.html) */
.crumbs { margin: 0; padding-top: 20px; font-size: .875rem; color: var(--text-2); }
.page-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 16px 56px; padding: 18px 0 clamp(28px, 3.5vw, 48px); }
.page-intro .lead { margin: 0 0 10px; color: var(--text-2); }
.ship-note { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .875rem; color: var(--text-2); }
.ship-note span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--accent); }
.path { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 40px); align-items: start; padding-bottom: var(--sec); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.steps button { display: grid; gap: 2px; width: 100%; padding: 12px 4px 4px; border: 0; border-top: 5px solid var(--line); background: none; text-align: left; cursor: pointer; }
.steps .s-label { font-size: 1.15rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.steps .s-value { min-height: 1.4em; font-size: .85rem; color: var(--text-2); }
.steps button.is-done { border-top-color: var(--ink); }
.steps button[aria-current="step"] { border-top-color: var(--accent); }
.steps button:disabled { cursor: default; opacity: .5; }
.step h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin-bottom: 8px; }
.step > p { margin: 0 0 20px; color: var(--text-2); }
.step[hidden] { display: none; }
.size-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.size-opt { display: grid; justify-items: center; gap: 6px; padding: 6px 4px 10px; border: 0; background: none; color: var(--ink); cursor: pointer; transition: box-shadow .2s; }
.size-opt svg { width: 56px; height: 52px; }
.size-opt rect { fill: var(--alt); stroke: var(--ink); stroke-width: 1.5; }
.size-opt strong { font-size: 1.3rem; font-weight: 800; font-stretch: 75%; }
.size-opt span { font-size: .85rem; color: var(--text-2); }
.size-opt:hover rect { stroke: var(--accent-ink); }
.size-opt[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
.size-opt[aria-pressed="true"] rect { fill: var(--accent); stroke-width: 2.5; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s; }
.choice:hover { border-color: #9d9d98; }
.choice.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.choice-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.choice .p-name { margin: 0; font-size: .9rem; font-weight: 700; color: var(--accent-ink); }
.choice .feel-title { margin: 0; font-size: 1.5rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 1; }
.choice .p-diff { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--text-2); }
.choice .price-block { display: grid; margin-top: auto; padding-top: 10px; }
.choice .amount { font-size: 1.5rem; font-weight: 800; font-stretch: 75%; }
.choice .note { font-size: .85rem; color: var(--text-2); }
.choice-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; }
.choice-pick { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; font-weight: 700; cursor: pointer; }
.choice.is-selected .choice-pick { border-color: var(--blue); background: var(--blue); color: #fff; }
.firm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: .9rem; }
.firm button { padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 3px; background: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; }
.firm button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.choice--none .choice-body { justify-content: center; }
.step-help { margin: 18px 0 0; }
.review { display: grid; gap: 10px; }
.review-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r); background: var(--alt); }
.review-row img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.review-row .r-name { margin: 0; font-size: 1.3rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.review-row .r-meta { margin: 0; font-size: .9rem; color: var(--text-2); }
.review-row .r-price { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; }
.review-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.summary { position: sticky; top: 96px; padding: 22px; border-radius: var(--r); background: var(--alt); }
.summary h2 { font-size: 1.6rem; margin-bottom: 14px; }
.sum-rows { display: grid; gap: 10px; margin: 0; }
.sum-rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
.sum-rows dt { font-size: .85rem; color: var(--text-2); }
.sum-rows dd { margin: 0; grid-column: 1; font-weight: 650; }
.sum-rows .s-price { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-weight: 750; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; padding-top: 14px; box-shadow: 0 -2px 0 var(--ink); }
.sum-total strong { font-size: 2rem; font-weight: 800; font-stretch: 72%; }
.summary .ship-note { display: grid; gap: 2px; margin: 8px 0 16px; }
.btn--full { width: 100%; }
.btn:disabled { background: #b9b9b6; cursor: not-allowed; }
.path-status { margin: 10px 0 0; min-height: 1.4em; font-size: .9rem; color: var(--text-2); }

@media (max-width: 900px) {
  .cat-use { padding-inline: 0; margin-top: 4px; font-size: .95rem; }
  .cat-go { margin: 6px 0 0; }
  .page-intro, .path { grid-template-columns: minmax(0, 1fr); }
  .path { padding-bottom: 120px; }
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px var(--gutter); border-radius: 0; box-shadow: 0 -8px 24px rgb(0 0 0 / .14); }
  .summary h2, .summary .sum-rows, .summary .ship-note { display: none; }
  .summary .sum-total { display: grid; margin: 0; padding: 0; box-shadow: none; }
  .summary .sum-total span { font-size: .8rem; color: var(--text-2); }
  .summary .sum-total strong { font-size: 1.6rem; }
  .summary .btn { width: auto; }
  .summary .path-status { grid-column: 1 / -1; margin: 0; min-height: 0; }
  .choices, .choices--4 { grid-template-columns: minmax(0, 1fr); }
  .size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps .s-value { display: none; }
}
@media (max-width: 600px) {
  .steps { gap: 4px; }
  .steps .s-label { font-size: .95rem; }
  .review-row { grid-template-columns: 72px minmax(0, 1fr); }
  .review-row img { width: 72px; }
  .review-row .r-price { grid-column: 2; }
}

/* ------------------------------------------------ verkkokauppa: putiikki */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; padding: 18px 0 8px; }
.shop-intro { max-width: 62ch; margin: 14px 0 0; color: var(--text-2); }
.shop-intro .link { color: var(--ink); white-space: normal; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 28px 0 32px; padding: 0; list-style: none; }
.filters button { padding: 6px 0; border: 0; background: none; font-size: 1.25rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; color: var(--text-2); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.shop-count { margin: 0; color: var(--text-2); font-size: .95rem; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.shop-more { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; }
.shop-more a { flex: 1 1 280px; display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r); background: var(--alt); text-decoration: none; }
.shop-more strong { font-size: 1.5rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.shop-more span { justify-self: start; font-weight: 600; }

/* ------------------------------------------------ verkkokauppa: tuotesivu */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: 18px 0 clamp(48px, 6vw, 80px); }
.pdp-gallery { position: sticky; top: 96px; display: grid; gap: 10px; }
.pdp-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--alt); }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumbs button { width: 96px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; box-shadow: inset 0 -3px 0 transparent; transition: opacity .2s; }
.pdp-thumbs button[aria-pressed="true"] { opacity: 1; }
.pdp-thumbs img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.pdp-gallery .block { padding: 12px; border-radius: var(--r); background: var(--alt); }
.pdp-thumb-wide { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 38%; border-radius: var(--r); }
.pdp-buy h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); }
.pdp-buy .t-name { margin: 0 0 6px; }
.pdp-feel { margin: 12px 0 6px; font-size: 1.35rem; font-weight: 700; }
.pdp-diff { color: var(--text-2); }
.pdp-buy .field { margin-top: 22px; }
.pdp-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pdp-sizes .size-opt svg { width: 46px; height: 44px; }
.pdp-sizes .size-opt strong { font-size: 1.1rem; }
.firm-tabs { display: flex; gap: 22px; }
.firm-tabs button { padding: 6px 0; border: 0; background: none; font-size: 1.1rem; font-weight: 700; color: var(--text-2); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; }
.firm-tabs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.pdp-price { display: grid; margin-top: 26px; }
.pdp-price .amount { font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 800; font-stretch: 72%; line-height: 1; }
.pdp-price .note { margin-top: 4px; font-size: .9rem; color: var(--text-2); }
.pdp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 18px; }
.pdp-actions .btn { flex: 1 1 220px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 36px; height: 36px; padding: 0; border: 0; background: none; font-size: 1.5rem; font-weight: 500; line-height: 1; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--accent-ink); }
.qty output { min-width: 2ch; text-align: center; font-size: 1.15rem; font-weight: 800; }
.pdp-added { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.pdp-facts { list-style: none; display: grid; gap: 6px; margin: 20px 0 0; padding: 0; font-size: .95rem; color: var(--text-2); }
.pdp-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--accent); }
.pdp-more { max-width: 1000px; margin-bottom: clamp(40px, 5vw, 72px); }
.pdp-layers { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: center; padding-bottom: 24px; }
.pdp-more .price-table { max-width: 420px; margin: -4px 0 22px; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 22px; }
.spec-list dt { color: var(--text-2); }
.spec-list dd { margin: 0; font-weight: 600; }
.pdp-cross { padding: clamp(40px, 5vw, 64px) 0; }
.pdp-cross h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin-bottom: 20px; }
.pdp-cross > p { max-width: 60ch; color: var(--text-2); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mini-card { display: grid; gap: 2px; align-content: start; color: var(--ink); text-decoration: none; }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.mini-card strong { justify-self: start; font-size: 1.15rem; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.mini-card > span:last-of-type { color: var(--text-2); font-size: .9rem; }
.mini-card .t-name { margin: 0; }
.mini-card .choice-pick { justify-self: start; margin-top: 8px; }

/* ------------------------------------------------ verkkokauppa: ostoskori ja kassa */
.cart { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding: 18px 0 clamp(40px, 5vw, 72px); }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.cart-line:first-child { border-top: 1.5px solid var(--line); }
.cart-line img { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.cl-info p { margin: 2px 0 0; font-size: .92rem; color: var(--text-2); }
.cl-name { display: block; width: fit-content; line-height: 1.1; font-size: 1.35rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.cl-total { min-width: 90px; text-align: right; font-size: 1.2rem; font-weight: 800; font-stretch: 85%; }
.cl-remove { padding: 0 0 2px; border: 0; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.cl-remove:hover { color: var(--ink); }
.cart-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 32px 0; }
.cart-empty p { flex-basis: 100%; margin: 0; font-size: 1.2rem; }
.cart-summary[hidden] { display: none; }
.cart-summary .sum-total { margin-top: 8px; }
.cart-summary .btn { margin-top: 14px; }
.cart-continue { display: inline-block; margin-top: 14px; }
.cart-suggest { padding-top: 40px; }
.cart-suggest h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.cart-suggest > p { color: var(--text-2); margin: 8px 0 20px; }
.co { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: 18px 0 clamp(40px, 5vw, 72px); }
.co-form { display: grid; gap: 34px; }
.co-form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.co-form legend { margin-bottom: 12px; padding: 0; font-size: 1.6rem; font-weight: 800; font-stretch: 72%; text-transform: uppercase; }
.co-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.co-form input[type="text"], .co-form input[type="email"], .co-form input[type="tel"], .co-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-weight: 400; }
.co-form input:focus, .co-form textarea:focus { outline: none; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.opts { display: grid; gap: 4px; }
.opt { display: flex !important; align-items: center; gap: 14px; padding: 10px 0; font-weight: 600 !important; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.opt img { order: 2; width: 92px; height: 34px; margin-left: auto; object-fit: contain; object-position: right center; }
.opt small { display: block; font-weight: 500; color: var(--text-2); }
.co-note { margin: 0; font-size: .9rem; color: var(--text-2); }
.co-terms { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 500 !important; }
.co-terms input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.co-terms a { font-weight: 700; }
.co-summary { position: sticky; top: 96px; padding: 24px; border-radius: var(--r); background: var(--alt); }
.co-summary h2 { font-size: 1.6rem; margin-bottom: 12px; }
.co-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.co-line small { display: block; font-size: .85rem; color: var(--text-2); }
.co-line > span:last-child { font-weight: 700; white-space: nowrap; }
.co-status { min-height: 1.5em; margin: 0; font-weight: 600; }

@media (max-width: 1180px) {
  .shop-grid, .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pdp, .cart, .co, .pdp-layers { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery, .co-summary { position: static; }
  .cart-line { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 16px; }
  .cart-line img { width: 88px; grid-row: span 2; }
  .cart-line .qty { grid-column: 2; }
  .cl-total { grid-column: 3; grid-row: 1; }
  .cl-remove { grid-column: 3; justify-self: end; }
  .cart { padding-bottom: 120px; }
  .cart-summary .btn { margin-top: 0; }
  .cart-summary .cart-continue { display: none; }
  body:has(.summary:not([hidden])) .footer-copy { padding-bottom: 88px; }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-row, .form-row--zip { grid-template-columns: minmax(0, 1fr); }
  .filters { gap: 4px 18px; }
}

/* Pienimmillä puhelimilla header mahtuu yhdelle riville ja pitkät otsikkosanat ruutuun */
@media (max-width: 374px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }
  .header-row { gap: 8px; }
  .logo svg { width: 88px; }
  .icon-btn, .menu-btn { width: 38px; }
  .menu-btn { margin-left: 0; }
  .shop-btn { margin-left: 4px; padding: 0 10px; font-size: .85rem; }
  .pdp-buy h1 { font-size: 2.2rem; }
  .steps .s-label { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
