/* ============================================================
   stil.css — v3: visuell og selgende.
   Identitet: mørk skoggrønn + elektrisk lime. Endrer du
   --skog og --lime, endres hele sidens uttrykk.
   ============================================================ */

:root {
  --skog: #3B2144;        /* mørk plomme: hero, tekst-aksent */
  --smaragd: #6E3482;     /* mellomtone plomme: knapper, priser */
  --lime: #E3A72F;        /* dyp rav: GRATIS-merket, uthev */
  --blekk: #221826;
  --grå: #5F5762;
  --grå-lys: #9C94A0;
  --bakgrunn: #F8F4EE;
  --hvit: #FFFFFF;
  --strek: #EAE2D8;
  --varsel: #8A5A0B;
  --varsel-lys: #FBF3E0;
  --skygge: 0 10px 30px rgba(59, 33, 68, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bakgrunn);
  color: var(--blekk);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .pris-null, .tall-verdi {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.ramme { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero: mørk blokk med lime-uthev ---------- */
.hero {
  background: var(--skog);
  color: var(--hvit);
  padding: 26px 0 30px;
  border-radius: 0 0 28px 28px;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-punkt { color: var(--lime); }
.hero-tittel {
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1px;
  margin: 18px 0 20px;
}
.uthev {
  color: var(--skog);
  background: var(--lime);
  padding: 0 10px;
  border-radius: 10px;
  display: inline-block;
  transform: rotate(-1deg);
}
.hero-tall { display: flex; gap: 22px; flex-wrap: wrap; }
.tall { display: flex; flex-direction: column; }
.tall-verdi { font-size: 20px; font-weight: 800; color: var(--lime); font-variant-numeric: tabular-nums; }
.tall-tekst { font-size: 12px; color: rgba(255,255,255,0.65); }

/* ---------- Kategorifilter (sticky, sveipbar) ---------- */
.filtre {
  position: sticky; top: 0; z-index: 10;
  background: var(--bakgrunn);
  padding: 12px 0 10px;
}
.filtre-indre {
  display: flex; gap: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filtre-indre::-webkit-scrollbar { display: none; }
.chip {
  font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--strek); background: var(--hvit);
  color: var(--grå); cursor: pointer; min-height: 40px;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .12s ease;
}
.chip:active { transform: scale(0.95); }
.chip.aktiv { background: var(--skog); color: var(--lime); border-color: var(--skog); }

/* ---------- Seksjoner ---------- */
.seksjonstittel { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; margin: 26px 0 14px; }

/* ---------- Produktrutenett ---------- */
.rutenett {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .rutenett { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 920px) { .rutenett { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.produkt {
  background: var(--hvit); border: 1px solid var(--strek);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .produkt:hover { transform: translateY(-4px); box-shadow: var(--skygge); }
  .produkt:hover .produkt-bilde img { transform: scale(1.05); }
}
.produkt-lenke { text-decoration: none; color: inherit; flex: 1; display: block; }

.produkt-bilde {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F7ECDC, #F0DDC2);
  overflow: hidden;
}
.produkt-bilde img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}

.plass {
  position: absolute; top: 10px; right: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 13px; font-weight: 800;
  background: var(--hvit); color: var(--skog);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.gratis-pill {
  position: absolute; top: 10px; left: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
  background: var(--lime); color: var(--skog);
  padding: 5px 12px; border-radius: 999px;
}

.produkt-tekst { padding: 12px 14px 6px; }
.tilbyder { font-size: 11px; font-weight: 600; color: var(--grå-lys); text-transform: uppercase; letter-spacing: 0.5px; }
.produkt-tittel { font-size: 15.5px; font-weight: 700; margin: 3px 0 8px; line-height: 1.25; }

.prislinje { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.verdi-strek { font-size: 13px; color: var(--grå-lys); }
.pris-null { font-size: 21px; font-weight: 800; color: var(--smaragd); font-variant-numeric: tabular-nums; }
.frakt { font-size: 12px; color: var(--grå); }

.haken { font-size: 12px; color: var(--varsel); margin-top: 6px; line-height: 1.4; }

.stempel {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: #EDEFEA; color: var(--grå); margin-top: 8px;
}
.stempel.fersk { background: #E1F4EA; color: #0B5C40; }

.knapp {
  display: block; text-align: center; text-decoration: none;
  font-size: 14.5px; font-weight: 700;
  background: var(--smaragd); color: var(--hvit);
  padding: 12px 16px; border-radius: 12px;
  margin: 8px 14px 0; min-height: 46px;
  transition: transform .12s ease, background .12s ease;
}
.knapp:hover { background: var(--skog); }
.knapp:active { transform: scale(0.97); }
.stor-knapp { margin: 18px 0 0; padding: 15px; font-size: 16px; }

.annonse { font-size: 10.5px; color: var(--grå-lys); padding: 7px 14px 13px; }
.detalj .annonse { padding: 8px 0 0; }

/* ---------- Tillitsseksjon ---------- */
.tillit { margin-top: 30px; }
.tillit-rad { display: grid; gap: 10px; }
@media (min-width: 640px) { .tillit-rad { grid-template-columns: repeat(3, 1fr); } }
.tillit-punkt {
  background: var(--hvit); border: 1px solid var(--strek);
  border-radius: 16px; padding: 16px; font-size: 13px; color: var(--grå);
}
.tillit-ikon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime); color: var(--skog);
  font-weight: 800; margin-bottom: 8px;
}
.tillit-punkt strong { color: var(--blekk); display: block; margin-bottom: 2px; font-size: 14px; }

/* ---------- Detaljside ---------- */
.detalj { max-width: 580px; margin: 24px auto 0; }
.detalj-bilde {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F7ECDC, #F0DDC2);
  border-radius: 20px; overflow: hidden; margin-bottom: 18px;
}
.detalj-bilde img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detalj-bilde .gratis-pill { top: 14px; left: 14px; font-size: 13px; }
.detalj-tittel { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; margin: 3px 0 12px; }
.detalj-pris { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.detalj-pris .pris-null { font-size: 30px; }
.detalj .beskrivelse { font-size: 15.5px; color: var(--grå); }

.haken-boks {
  background: var(--varsel-lys); border-radius: 14px;
  padding: 14px 16px; margin-top: 16px;
}
.haken-tittel { font-size: 12px; font-weight: 800; color: var(--varsel); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.haken-boks .haken { margin-top: 0; font-size: 14px; }

/* ---------- Bunntekst ---------- */
.bunn { margin-top: 48px; padding: 26px 0 46px; border-top: 1px solid var(--strek); }
.bunn p { font-size: 12.5px; color: var(--grå); margin-bottom: 6px; max-width: 580px; }
.bunn a { color: var(--smaragd); font-weight: 600; }

.tomt { text-align: center; color: var(--grå); padding: 30px 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
