/* ============================================================
   Garneriet — garnbutik i Staffanstorp
   Palett: ullvit papper, kol, ljunglila (från logotypens nystan),
   senapsgul (från butikens stickade tröjor)
   ============================================================ */

/* Typsnitten servas lokalt (GDPR: inga anrop till Googles servrar) */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../assets/fonts/nunito-kursiv-latin.woff2") format("woff2");
}

:root {
  --paper: #F7F3EC;
  --paper-lift: #FFFDF8;
  --lila-mist: #F0EAF6;
  --ink: #2A2430;
  --ink-soft: #5A5261;
  --ljung: #6B3FA0;
  --ljung-deep: #4A2B73;
  --ljung-bright: #8A5BC4;
  --senap: #D9941E;
  --senap-deep: #B0760F;
  --gron: #6F7F4E;
  --white: #FFFFFF;
  --line: #E3DBCE;

  /* Caveat: läsbar handstil för rubriker (ekar logotypens skrivstil)
     Nunito: rundad, vänlig och professionell för allt övrigt */
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-accent: "Caveat", "Segoe Print", cursive;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(42, 36, 48, 0.18);
  --shadow-lift: 0 18px 44px -14px rgba(42, 36, 48, 0.26);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ljung); }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typografi ---------- */

h1, h2, h3 {
  font-family: var(--font-accent); /* Caveat – handstil som ekar logotypen */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
}

h1 { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.7rem; line-height: 1.15; }

.accent-i {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ljung);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ljung);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--senap);
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Knappar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--ljung);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(107, 63, 160, 0.55);
}

.btn-primary:hover {
  background: var(--ljung-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(107, 63, 160, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-senap {
  background: var(--senap);
  color: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(217, 148, 30, 0.6);
}

.btn-senap:hover { background: var(--senap-deep); color: var(--white); transform: translateY(-2px); }

.btn .nystan {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.4s ease;
}

.btn:hover .nystan { transform: rotate(140deg); }

/* ---------- Hoppa till innehållet (tangentbordsnavigering) ---------- */

.hoppa-lank {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ljung-deep);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.hoppa-lank:focus { left: 12px; }

/* Honeypot-fält – osynligt för människor, lockbete för spambottar */
.bot-falla {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Redigerbara fält (data-edit) som tömts i redigeraren döljs helt: en tom
   notis eller listrad ska inte lämna kvar punkter eller luft på sidan.
   Fyll i fältet igen så syns det. (:empty kräver helt tomt innehåll –
   flerradiga element med radbrytningar i källkoden påverkas aldrig.) */
[data-edit]:empty { display: none; }

/* hidden-attributet ska alltid vinna, även över klasser som sätter display
   (t.ex. sommarnotisens .hero-notis inline-flex) – utan vakten syntes en
   tom notis-pille och en tom café-rad trots hidden. */
[hidden] { display: none !important; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a:not(.btn):not(.korg-link) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:not(.btn):not(.korg-link):hover { background: var(--lila-mist); color: var(--ljung-deep); }
.nav-links a[aria-current="page"]:not(.btn):not(.korg-link) { background: var(--lila-mist); color: var(--ljung-deep); }
.nav-links .btn { padding: 10px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (garnhyllan från gamla garneriet.se) ---------- */

.hero-banner {
  position: relative;
  min-height: clamp(440px, 64vh, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 56px 24px;
  background: var(--ink); /* syns bara tills hero-bilden laddats */
}

/* Bakgrunden är en <img> (inte CSS-background) så den kan bytas i redigeraren */
.hero-banner-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 36, 48, 0.24);
  z-index: 1;
}

.hero-banner > *:not(.hero-banner-bild) { position: relative; z-index: 2; }

.hero-banner-logo {
  width: clamp(130px, 15vw, 190px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.hero-banner h1 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  max-width: 14em;
}

.hero-banner .hero-actions { margin-top: 22px; justify-content: center; }

.btn-ghost-vit {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.btn-ghost-vit:hover { background: var(--white); color: var(--ink); text-shadow: none; transform: translateY(-2px); }

/* Intro under heron */
.hero-intro {
  padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 44px);
  text-align: center;
}

.hero-intro .lead { margin-inline: auto; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-notis {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-notis .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gron);
  flex: none;
}

/* ---------- Tråden (signatur) ---------- */

.trad-wrap { position: relative; }

.trad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.trad path {
  fill: none;
  stroke: var(--ljung-bright);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}

.trad-wrap > *:not(.trad) { position: relative; z-index: 2; }

/* ---------- Sektioner ---------- */

.section { padding-block: clamp(56px, 8vw, 100px); }
.section-alt { background: var(--lila-mist); }
.section-paper { background: var(--paper-lift); border-block: 1px solid var(--line); }

/* Leverantörer */
.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  display: grid;
  place-items: center;
  min-height: 96px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.brand-card img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Galleri */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img { transform: scale(1.045); }

.gallery figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(42, 36, 48, 0.72), transparent);
}

.gallery a { display: block; }

.insta-folj { text-align: center; margin-top: 34px; }

/* Nyhetsbrev (startsidan) */
.nyhetsbrev { max-width: 560px; margin-inline: auto; text-align: center; }
.nyhetsbrev-rad { display: flex; gap: 12px; margin-top: 26px; }
.nyhetsbrev-rad input { flex: 1; min-width: 0; }
.nyhetsbrev-rad .btn { flex: none; justify-content: center; }

/* Leverantörssidan: större kort med garnlista under loggan */
.brands-sida { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.brands-sida .brand-card { padding: 28px 24px; align-content: start; }
.brands-sida .brand-card img { max-height: 64px; }
.brand-garner { margin: 14px 0 0; color: var(--ink-soft); text-align: center; }

/* Inspirationssidan: bildkort med text under */
.insp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insp-kort {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.insp-kort img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.insp-kort figcaption { padding: 14px 16px 16px; color: var(--ink-soft); }

/* Kort (detta hittar du också) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--lila-mist);
  color: var(--ljung);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* Stickcafé-teaser & split-layouter */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.2deg);
}

.split-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

.fakta {
  list-style: none;
  margin-block: 22px 28px;
  display: grid;
  gap: 12px;
}

/* Vanligt textflöde (inte flex): rubrik och text får bryta rad med <br> från
   redigeraren, och lång text radbryts under rubriken – inte i en smal spalt
   bredvid. Punkten hänger till vänster om första raden. */
.fakta li {
  position: relative;
  padding-left: 21px; /* punkten (9px) + 12px lucka */
  color: var(--ink-soft);
}

.fakta li strong { color: var(--ink); }

.fakta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.825em - 4.5px); /* mitt på första radens texthöjd (line-height 1.65) */
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--senap);
}

/* Öppettider */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }

.hours-table th, .hours-table td { text-align: left; padding: 13px 4px; }
.hours-table th { font-family: var(--font-display); font-weight: 600; }
.hours-table td { text-align: right; color: var(--ink-soft); }
.hours-table .stangt td { color: var(--senap-deep); font-weight: 600; }

.hours-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--lila-mist);
  color: var(--ljung-deep);
  font-size: 0.95rem;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Kartan laddas först efter klick (GDPR) */
.karta-laddare {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 380px;
  padding: 32px 24px;
  background: var(--lila-mist);
  color: var(--ljung-deep);
}

.karta-laddare p { color: var(--ink-soft); max-width: 34em; }
.karta-laddare p strong { color: var(--ink); }
.karta-laddare a { color: var(--ljung); font-size: 0.95rem; }

.address-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* CTA-banner */
.cta-banner {
  background: var(--ljung-deep);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.82); max-width: 42em; margin: 0 auto 30px; }
.cta-banner .accent-i { color: #E9C77E; }

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.06);
}

.cta-banner::before { top: -110px; left: -80px; }
.cta-banner::after { bottom: -120px; right: -70px; border-color: rgba(217, 148, 30, 0.14); }

/* ---------- Formulär ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 7px;
}

.field label span { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-lift);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ljung);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

.form-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #EDF3E4;
  border: 1px solid #C9D8B2;
  color: #44562A;
  font-size: 0.98rem;
}

.form-status.visible { display: block; }

/* Antal-väljare */
.qty {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-lift);
  width: fit-content;
}

.qty button {
  border: none;
  background: var(--lila-mist);
  color: var(--ljung-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  width: 46px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty button:hover { background: var(--ljung); color: var(--white); }

.qty input {
  width: 74px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty input:focus { outline: 2px solid var(--ljung); outline-offset: -2px; border-radius: 6px; }

/* Sidhuvud för undersidor. Bakgrunden är en riktig bild (inte CSS-background)
   så den kan bytas per sida i redigeraren; tonplattan i ::before ligger ovanpå
   och gradienterna nedan syns bara tills bilden laddats. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 84px) clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(138, 91, 196, 0.10), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(217, 148, 30, 0.08), transparent 40%),
    var(--paper);
}

.page-hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(247, 243, 236, 0.96) 35%, rgba(247, 243, 236, 0.72));
  z-index: 1;
}

.page-hero > *:not(.page-hero-bild) { position: relative; z-index: 2; }

.page-hero h1 { margin-block: 6px 16px; }
.page-hero .lead { max-width: 40em; }

/* Kontaktinfo-lista */
.contact-list { list-style: none; display: grid; gap: 18px; }

.contact-list li { display: flex; gap: 16px; align-items: flex-start; }

.contact-list .ikon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lila-mist);
  color: var(--ljung);
}

.contact-list strong { display: block; font-family: var(--font-display); }
.contact-list a { color: var(--ljung); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list p, .contact-list span { color: var(--ink-soft); }

/* Prisbrickor (stickcafé) */
.price-tags { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 20px; }

.price-tag {
  background: var(--white);
  border: 1.5px dashed var(--ljung-bright);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  position: relative;
}

.price-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ljung-deep);
}

.price-tag span { font-size: 0.9rem; color: var(--ink-soft); }

.date-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }

.date-chip {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--senap);
  color: var(--senap-deep);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.95rem;
}

/* ---------- Butik: korgikon i menyn ---------- */

.korg-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.korg-link svg { width: 24px; height: 24px; }
.korg-link:hover { background: var(--lila-mist); color: var(--ljung-deep); }
.korg-link[aria-current="page"] { background: var(--lila-mist); color: var(--ljung-deep); }

.korg-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--senap);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.korg-badge.tom { display: none; }

/* ---------- Butik: garnsidan ---------- */

.kategori-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.kategori-filter button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kategori-filter button:hover { border-color: var(--ljung); color: var(--ljung-deep); }

.kategori-filter button[aria-pressed="true"] {
  background: var(--ljung);
  border-color: var(--ljung);
  color: var(--white);
}

.produkt-rutnat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.produkt-kort {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.produkt-kort:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.pk-bild { overflow: hidden; }

.pk-bild img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.produkt-kort:hover .pk-bild img { transform: scale(1.05); }

.pk-info { padding: 18px 20px 20px; }

.pk-marke {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ljung);
  margin-bottom: 4px;
}

.pk-info h3 { font-size: 1.65rem; }

.pk-meta { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }

.pk-pris {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.pk-pris small { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Butik: produktsidan ---------- */

.brodsmula { margin-bottom: 26px; color: var(--ink-soft); font-size: 0.95rem; }
.brodsmula a { text-decoration: none; font-weight: 600; }
.brodsmula a:hover { text-decoration: underline; }
.brodsmula span { margin-inline: 8px; color: var(--line); }

.produkt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.produkt-media {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.produkt-bild {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.produkt-bild img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.18s ease;
}

.produkt-bild img.byter { opacity: 0; }

/* Bildserie – generella bilder som tumnaglar */
.produkt-galleri { display: flex; flex-wrap: wrap; gap: 10px; }
.galleri-tumme {
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(42, 36, 48, 0.12);
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.galleri-tumme img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galleri-tumme:hover { transform: scale(1.05); }
.galleri-tumme.vald {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ljung);
}

/* Färgbilder – bildbaserad färgväljare (klick väljer färg till korgen) */
.produkt-fargbilder { margin-top: 2px; }
.fargbilder-rubrik {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.fargbild-rad { display: flex; flex-wrap: wrap; gap: 12px; }
.fargbild {
  width: 84px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.fargbild img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(42, 36, 48, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fargbild:hover img { transform: scale(1.05); }
.fargbild.vald img {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ljung);
}
.fargbild-namn { font-size: 0.74rem; line-height: 1.25; color: var(--ink-soft); }
.fargbild.vald .fargbild-namn { color: var(--ljung-deep); font-weight: 600; }

.produkt-info h1 { font-size: clamp(2.7rem, 5vw, 3.8rem); margin-block: 4px 10px; }

.produkt-pris {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ljung-deep);
  margin-bottom: 18px;
}

.produkt-pris small { font-weight: 400; font-size: 1rem; color: var(--ink-soft); }

.produkt-beskrivning { color: var(--ink-soft); margin-bottom: 24px; }

.spec-tabell { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.spec-tabell tr { border-bottom: 1px solid var(--line); }
.spec-tabell th, .spec-tabell td { text-align: left; padding: 11px 4px; vertical-align: top; }
.spec-tabell th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; padding-right: 20px; }
.spec-tabell td { color: var(--ink-soft); }

.kop-rad { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.kop-rad .btn { padding-block: 12px; }

/* Färgväljare på produktsidan */
.farg-valjare { margin-bottom: 26px; }

.farg-valjare label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.farg-valjare label strong { color: var(--ljung-deep); font-weight: 700; }

.farg-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.farg-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(42, 36, 48, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.farg-swatch:hover { transform: scale(1.12); }

.farg-swatch.vald {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px var(--ljung);
  transform: scale(1.08);
}

.farg-select {
  width: 100%;
  max-width: 320px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-lift);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.farg-select:focus {
  outline: none;
  border-color: var(--ljung);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

.pk-farger { display: flex; align-items: center; gap: 5px; margin-top: 10px; }

.pk-farg-fler { font-size: 0.8rem; color: var(--ink-soft); margin-left: 2px; }

.korg-farg { display: flex; align-items: center; gap: 6px; }

.relaterade { margin-top: clamp(48px, 7vw, 80px); }
.relaterade h2 { margin-bottom: 28px; }

/* ---------- Butik: korgsidan ---------- */

.forfragan-notis {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--lila-mist);
  border: 1.5px solid var(--ljung-bright);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ljung-deep);
  max-width: 860px;
}

.forfragan-notis p { margin: 0; }
.forfragan-notis svg { margin-top: 2px; }

.korg-rad {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
  max-width: 860px;
}

.korg-bild img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.korg-rad-info { min-width: 0; }
.korg-rad-info .pk-marke { margin-bottom: 2px; }

.korg-namn {
  display: block;
  width: fit-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.korg-rad-info .pk-meta { display: block; margin-top: 2px; }

.korg-namn:hover { color: var(--ljung-deep); text-decoration: underline; }

.korg-radsumma {
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 72px;
  text-align: right;
}

.korg-ta-bort {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.korg-ta-bort:hover { background: #F6E3E3; color: #A33B3B; }

.korg-summa {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 860px;
  padding: 18px 18px 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.korg-summa strong { font-size: 1.5rem; color: var(--ljung-deep); }

.korg-tom {
  text-align: center;
  padding: 48px 20px;
  background: var(--paper-lift);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  max-width: 860px;
}

.korg-tom p { margin-bottom: 20px; color: var(--ink-soft); font-size: 1.15rem; }

.form-status.fel {
  background: #F6E3E3;
  border-color: #E0B4B4;
  color: #7A2E2E;
}

/* Leveransval i förfrågan */
.leverans-val { border: none; padding: 0; margin: 0; }

.leverans-val legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 10px;
}

.leverans-alternativ {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.leverans-kort {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper-lift);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.leverans-kort:hover { border-color: var(--ljung-bright); }

.leverans-kort:has(input:checked) {
  border-color: var(--ljung);
  background: var(--lila-mist);
  box-shadow: 0 0 0 1.5px var(--ljung);
}

.leverans-kort input {
  margin-top: 5px;
  accent-color: var(--ljung);
  width: 18px;
  height: 18px;
  flex: none;
}

.leverans-kort strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.leverans-kort small { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; display: block; margin-top: 2px; }

.adress-rad {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

.swish-notis {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--lila-mist);
  color: var(--ljung-deep);
  font-size: 1rem;
  line-height: 1.45;
}

.swish-notis svg { margin-top: 3px; }

.kvitto-leverans {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid #D5E3C4;
  color: #44562A;
}

@media (max-width: 640px) {
  .leverans-alternativ { grid-template-columns: 1fr; }
  .adress-rad { grid-template-columns: 1fr; }
  .nyhetsbrev-rad { flex-direction: column; }
}

/* Kvitto – visas när förfrågan är bekräftad skickad */
.kvitto {
  max-width: 720px;
  margin-top: 44px;
  background: #F3F8EC;
  border: 2px solid #A8C487;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.kvitto-ikon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5C8A3C;
  color: var(--white);
  margin-bottom: 18px;
}

.kvitto h2 { color: #3C5C24; margin-bottom: 12px; }
.kvitto > p { color: #44562A; }

.kvitto-lista {
  margin-block: 22px;
  background: var(--white);
  border: 1px solid #D5E3C4;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.kvitto-lista h3 { margin-bottom: 10px; color: var(--ink); }

.kvitto-lista ul { list-style: none; display: grid; gap: 8px; }

.kvitto-lista li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}

.kvitto-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--senap);
}

.kvitto-summa {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #D5E3C4;
  color: var(--ink-soft);
}

.kvitto-summa strong { color: #3C5C24; font-size: 1.25rem; }

.kvitto .btn { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 56px 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer img.footer-logo { height: 84px; width: auto; margin-bottom: 16px; }

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; display: grid; gap: 8px; }

.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.social-links { display: flex; gap: 12px; margin-top: 14px; }

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease, transform 0.15s ease;
}

.social-links a:hover { background: var(--ljung); transform: translateY(-2px); }

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivt ---------- */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .produkt-rutnat { grid-template-columns: repeat(2, 1fr); }
  .produkt-layout { grid-template-columns: 1fr; }
  .produkt-media { position: static; }
  .collage { max-width: 480px; margin-inline: auto; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .insp-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trad { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper-lift);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    gap: 8px;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a:not(.btn):not(.korg-link) { display: block; text-align: center; }
  .nav-links .btn { justify-content: center; }
  .nav-links .korg-link { margin-inline: auto; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .insp-grid { grid-template-columns: 1fr; }
  .brands-sida { grid-template-columns: 1fr; }
  .produkt-rutnat { grid-template-columns: 1fr; }

  .korg-rad { grid-template-columns: 64px 1fr auto; row-gap: 10px; }
  .korg-bild img { width: 64px; height: 64px; }
  .korg-rad .qty { grid-column: 2; justify-self: start; }
  .korg-radsumma { grid-column: 3; }
}

/* ---------- Tillgänglighet ---------- */

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

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