/* ============================================================
   UKENS TILBUD — "Kundeavisa"
   Retning: papirvarm flate, serif-tittel over en tett
   instrumentflate. Ett signal — bringebær på rabatt og
   destruktive valg, grønt bare når kiloprisen faktisk er lav.
   Prisen er signaturen: norsk annonsesats med hevet øre.
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #FAF9F6;
  --bg-footer: #F4F2EC;
  --surface: #ffffff;

  --ink: #1B1A16;
  --ink-2: #5F5C52;
  --ink-3: #6E6B61;
  --muted: #8A8779;
  --faint: #A9A597;

  --line: #E7E3D9;
  --line-2: #DFDBD0;
  --line-img: #EDEAE1;
  --track: #B9B5A6;

  --accent: #A81E52;
  --accent-tint: #F6E9EE;
  --good: #1E7A4F;
  --warn: #8A3B1E;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1380px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

input, select, button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: var(--bg); }

/* ---------- Toppstripe ----------
   Én linje, ikke et forsidebånd: navnet, uka, hva sida er, og
   hvor mye data som ligger bak. Alt over folden skal være tilbud. */

.head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 12px 10px;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.week {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
}

.lede {
  margin: 0;
  flex: 1 1 260px;
  min-width: 200px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
  text-wrap: pretty;
}

.head-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Datasettet er et ukesøyeblikksbilde. Har tilbudene gått ut, skal det stå
   øverst — ikke bare i den lille gyldighetslinja på hvert kort. */
.staleness {
  margin: 0 auto 6px;
  padding-block: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--warn);
}

/* ---------- Filterlinja ----------
   Fast høyde. Den satt fast øverst og trakk seg sammen når du blar før;
   den bevegelsen flyttet radene under seg og flimret. Nå står den stille. */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 246, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  padding-block: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ctl {
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
}

.ctl-search {
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 340px;
  padding: 0 11px;
  font-size: 13.5px;
  outline: none;
}
.ctl-search::placeholder { color: var(--muted); }
.ctl-search:focus { border-color: var(--ink); }

.ctl-cat, .ctl-sort { padding: 0 8px; }
.ctl-cat { max-width: 230px; }

.toggle {
  padding: 0 11px;
  font-weight: 600;
  cursor: pointer;
}
.toggle:hover { border-color: var(--ink); }
.toggle[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* Nullstill beholder plassen sin også når den er skjult — ellers hopper
   trefftallet sidelengs hver gang et filter slås av. */
.reset {
  padding: 0 12px;
  border-color: transparent;
  background: none;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.reset:hover { background: var(--accent-tint); }
.reset.is-idle {
  visibility: hidden;
  pointer-events: none;
}

.hits {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Kjede-skinne ---------- */

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { height: 0; display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--chip-color, var(--track));
}

.chip .n {
  font-variant-numeric: tabular-nums;
  opacity: .55;
  font-weight: 500;
}

.chip[aria-pressed="true"] {
  border-color: var(--chip-color, var(--ink));
  background: var(--chip-color, var(--ink));
  color: #fff;
}
.chip[aria-pressed="true"] .dot { background: rgba(255, 255, 255, .9); }

/* ---------- Seksjonshoder ---------- */

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.sec-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.sec-head-rule {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sec-head .legend {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  text-wrap: pretty;
}

.legend-gauge {
  width: 34px;
  height: 5px;
  flex: none;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--line) 40%, var(--good) 40%);
}

/* ---------- Ukens 10 beste kupp ---------- */

.best { padding-block: 20px 4px; }

.best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 6px;
}

.best-list li {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.best-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 11px 7px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.best-link:hover { border-color: var(--ink); color: var(--ink); }

.best-link .no {
  width: 17px;
  flex: none;
  text-align: right;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--faint);
}

.best-plate {
  width: 82px;
  height: 82px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line-img);
  background: var(--surface);
  overflow: hidden;
  display: block;
}
.best-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.best-link .meta {
  min-width: 110px;
  flex: 1 1 auto;
}

.chain-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.best-link .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}

.best-link .right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Pris ----------
   Norsk annonsesats: hele kroner får hevet «,–», ører settes hevet (29⁹⁰). */

.price {
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.price .ore, .price .dash {
  font-size: .58em;
  font-weight: 700;
  vertical-align: .62em;
  margin-left: 1px;
}

.best-link .price { font-size: 19px; }

.card .price { font-size: 23px; letter-spacing: -.025em; }
.card .price .ore, .card .price .dash { font-size: .55em; vertical-align: .66em; }

.was {
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.off {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 6px;
  border-radius: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Legg-i-lista ----------
   Samme knapp to steder: en høy blokk i kuppradene, en liten sirkel
   oppe i hjørnet på kortene. Av: hvit. På: sort med hake. */

.add {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-3);
  line-height: 1;
}
.add:hover { border-color: var(--ink); color: var(--ink); }
.add[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.best-list .add {
  flex: none;
  width: 36px;
  border-radius: 10px;
  font-size: 17px;
}

.card .add {
  position: absolute;
  top: 37px;
  right: 17px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(27, 26, 22, .08);
}
.card .add[aria-pressed="true"] { box-shadow: none; }

/* ---------- Alle tilbud ---------- */

.main { padding-block: 18px 48px; }

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.card.is-expired { opacity: .5; }

.card-head {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.card-head .chain {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.card-head .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--chain, var(--track));
}

.card-head .chain span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-3);
}

.card-head .page {
  flex: none;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .03em;
}

.plate {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  border: 1px solid var(--line-img);
  background: var(--surface);
  overflow: hidden;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  display: block;
}

.card-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.005em;
}

.card-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.money {
  margin: auto 0 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.card .was { font-size: 12px; }
.card .off { font-size: 11px; padding: 2px 5px; }

/* ---------- Kilopris-måleren (signaturen) ---------- */

.unit {
  margin: 0;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.unit .v { font-weight: 600; }
.unit.is-low .v { color: var(--good); }

.gauge {
  flex: 1;
  max-width: 64px;
  height: 4px;
  border-radius: 3px;
  background: var(--line-img);
  overflow: hidden;
  display: block;
}
.gauge i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--track);
}
.unit.is-low .gauge i { background: var(--good); }

.card-foot {
  margin: 0;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .01em;
}

/* ---------- Tomtilstand ---------- */

.empty {
  margin: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}
.empty b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}
.empty .reset {
  display: block;
  margin: 14px auto 0;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.empty .reset:hover { border-color: var(--ink); background: var(--surface); }

.load-detail { font-size: 11.5px; color: var(--muted); }

/* ---------- Handlelista ----------
   Ligger som en pille nederst på skjermen så lenge det er noe i den.
   Panelet grupperer på kjede — sånn går man faktisk i butikken. */

.tray {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 50;
  width: min(560px, calc(100vw - 24px));
}

.tray-pill {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: none;
  border-radius: 13px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(27, 26, 22, .3);
}
.tray-pill .sum { font-variant-numeric: tabular-nums; }
.tray-pill .chev { opacity: .6; margin-left: 4px; }

.tray-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(27, 26, 22, .18);
  max-height: 56vh;
  overflow: auto;
  padding: 4px 14px 12px;
  margin-bottom: 8px;
}

.tray-group {
  margin: 10px 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.tray-group .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--chain, var(--track));
}

.tray-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
}
.tray-item .thumb {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--line-img);
  overflow: hidden;
  display: block;
}
.tray-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  display: block;
}
.tray-item .name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tray-item .page {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.tray-item .kr {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tray-item .drop {
  flex: none;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tray-item .drop:hover { background: var(--accent-tint); color: var(--accent); }

.tray-foot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 9px;
}
.tray-foot .total {
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tray-foot .saved {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--good);
}
.tray-foot .clear {
  border: none;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 2px 4px;
}
.tray-foot .clear:hover { text-decoration: underline; }

/* ---------- Bunn ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-footer);
}
.footer .wrap {
  padding-block: 18px 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer p {
  margin: 0;
  max-width: 640px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.footer .footer-meta { color: var(--faint); }

/* ---------- Smale skjermer ----------
   Kontrollene er de samme, men de får ikke plass på én linje. De brytes i en
   fast rekkefølge — søk, kategori/sortering, brytere — slik at linja ser lik
   ut hver gang, og fremdeles ikke endrer seg mens du blar. */

@media (max-width: 640px) {
  .head-meta { flex-basis: 100%; }

  /* Basisbreddene bestemmer bruddene: søk + trefftall på første linje,
     de to nedtrekkene på den andre, bryterne på den tredje. */
  .ctl-search { flex: 1 1 60%; max-width: none; min-width: 0; }
  .ctl-cat, .ctl-sort { flex: 1 1 45%; min-width: 0; max-width: none; }
  .toggle { flex: 1 1 auto; padding: 0 9px; }
  .reset { flex: 0 0 auto; padding: 0 8px; }

  /* Rutenettet gir én 320 px bred kolonne på mobil, og da blir annonsebildet
     et halvt skjermbilde høyt. To smalere kort viser like mye på halve høyden. */
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* Kupp-raden er bygd sidelengs for skrivebordet: nummer, bilde, navn og
     priser på én linje. Her legges prisene under navnet i stedet, med bildet
     som spenner over begge radene. */
  .best-link {
    display: grid;
    grid-template-columns: 17px 64px minmax(0, 1fr);
    grid-template-areas: "no plate meta" "no plate right";
    column-gap: 9px;
    row-gap: 2px;
    padding: 7px 9px 7px 7px;
  }
  .best-link .no { grid-area: no; align-self: center; }
  .best-plate { grid-area: plate; width: 64px; height: 64px; align-self: center; }
  .best-link .meta { grid-area: meta; min-width: 0; }
  .best-link .right { grid-area: right; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  .best-link .name { -webkit-line-clamp: 2; line-clamp: 2; }

  /* Handlelista dekker de nederste radene når den er åpen. */
  .main { padding-bottom: 96px; }
}

/* ---------- SSR-ruter og produktside ---------- */

.invisible { visibility: hidden; pointer-events: none; }

.card-category {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-category a { color: inherit; }
.card-category a:hover { color: var(--accent); }
.result-cap { margin: 18px 0 0; text-align: center; color: var(--muted); }
.route-message { min-height: 60vh; padding: 12vh var(--gutter); text-align: center; }
.route-message h1 { font: 400 clamp(32px, 6vw, 64px)/1 var(--font-display); }
.route-message a { color: var(--accent); font-weight: 700; }

.detail-head { border-bottom: 1px solid var(--line); }
.detail-main { padding-block: 24px 64px; min-height: 75vh; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: minmax(280px, 540px) minmax(280px, 520px); gap: clamp(28px, 6vw, 90px); align-items: center; }
.detail-plate { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.detail-plate img { width: 100%; height: 100%; object-fit: contain; padding: clamp(12px, 4vw, 36px); }
.detail-copy h1 { margin: 4px 0 12px; font: 400 clamp(36px, 6vw, 76px)/.96 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.detail-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-kicker a { color: var(--accent); }
.detail-description { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 4px; }
.detail-price .price { font-size: clamp(42px, 7vw, 72px); }
.detail-price .was { font-size: 14px; }
.detail-unit, .detail-validity { margin: 5px 0; color: var(--muted); }
.primary-action, .secondary-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 9px; padding: 0 16px; font-weight: 700; }
.primary-action { margin-top: 18px; background: var(--ink); color: var(--bg); }
.primary-action:hover { color: #fff; background: var(--accent); }
.secondary-action { border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.secondary-action[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.detail-category { margin-top: 20px; font-size: 12px; }
.detail-category a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.related { margin-top: 70px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.related-card { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.related-card:hover { border-color: var(--ink); color: var(--ink); }
.related-card img { width: 62px; height: 62px; object-fit: contain; flex: none; }
.related-card span { min-width: 0; }
.related-card b, .related-card small { display: block; }
.related-card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-card small { margin-top: 4px; color: var(--muted); }

@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-plate { max-height: 60vh; }
  .detail-copy h1 { font-size: clamp(36px, 13vw, 58px); }
}

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #DDD9CE; border-radius: 8px; }
