/* Hemmaodling — den lekfulla familjeidentiteten från hemmaodling.se
   ("Scandinavian children's book meets seed catalog"), applicerad på
   webshoppen. Visuell auktoritet: docs/visual-style.md. Nätverkskonvention:
   inga webbfonter, tokens i :root, ren CSS. Aldrig vit text på
   --green-leaf eller --sun. */

:root {
  --green-deep: #1f5130;
  --green-leaf: #58a65c;
  --green-soft: #ddefd6;
  --green-wash: #f0f7e9;
  --sky: #bfe4f2;
  --sun: #ffc53d;
  --sun-soft: #ffe9b8;
  --bark: #4a342a;
  --paper: #fff8ec;
  --ink: #26332a;
  --ink-soft: #53624f;
  --on-dark: #fff8ec;
  --on-sun: #3a2b10;
  --line: #e7ddc9;
  --error: #b3261e;
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 0 rgba(38, 51, 42, 0.1);
  --shadow-lift: 0 7px 0 rgba(38, 51, 42, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: ui-rounded, "Hiragino Maru Gothic ProN", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }

.display {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
}

p { margin: 0 0 1rem; }

a { color: var(--green-deep); }
a:hover { color: var(--green-leaf); }

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Vågavdelare (organiska bandkanter) ---------- */

.wave {
  height: clamp(26px, 4.5vw, 56px);
  margin-top: -1px;
}

.wave svg {
  display: block;
  width: 100%;
  height: calc(clamp(26px, 4.5vw, 56px) + 1.5px);
}

/* ---------- Bladmönster i färgband ---------- */

.pattern-leaves-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23fff8ec' fill-opacity='.07'%3E%3Cpath d='M24 44C36 18 62 12 74 24 70 50 46 62 24 44Z'/%3E%3Cpath d='M104 100C116 74 142 68 154 80 150 106 126 118 104 100Z'/%3E%3Cpath d='M40 128C48 110 66 106 74 114 71 132 54 140 40 128Z'/%3E%3Cpath d='M118 22C124 10 138 7 144 13 142 26 129 32 118 22Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px;
}

.pattern-leaves-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%231f5130' fill-opacity='.06'%3E%3Cpath d='M24 44C36 18 62 12 74 24 70 50 46 62 24 44Z'/%3E%3Cpath d='M104 100C116 74 142 68 154 80 150 106 126 118 104 100Z'/%3E%3Cpath d='M40 128C48 110 66 106 74 114 71 132 54 140 40 128Z'/%3E%3Cpath d='M118 22C124 10 138 7 144 13 142 26 129 32 118 22Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px;
}

/* ---------- Sidhuvud ---------- */

.site-header {
  background: var(--bark);
  color: var(--on-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.wordmark {
  font-family: var(--font-display);
  /* Krymper på mycket smala skärmar (t.ex. 280px) så hamburgaren inte trycks utanför. */
  font-size: clamp(1rem, 5.5vw, 1.35rem);
  font-weight: 800;
  color: var(--on-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark:hover { color: var(--on-dark); }

.wordmark svg { width: 34px; height: 34px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s;
}

.main-nav a:hover {
  background: rgba(255, 248, 236, 0.12);
  color: var(--on-dark);
}

.main-nav a[aria-current="page"] { color: var(--sun); }

.cart-link {
  background: rgba(255, 248, 236, 0.12);
}

.cart-link:hover { background: rgba(255, 248, 236, 0.22); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid rgba(255, 248, 236, 0.5);
  border-radius: 10px;
  color: var(--on-dark);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

/* 880px är där desktopnavet precis får plats utan att Varukorg klipps
   av (Blomlådor in + Frön ut + Hydroponik förkortad 2026-07-26 gav
   netto något smalare nav än före ändringarna). */
@media (max-width: 879px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: 0 10px 24px rgba(38, 51, 42, 0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.5rem; border-radius: 10px; border-bottom: 1px solid rgba(255, 248, 236, 0.15); }
  .cart-link { margin-top: 0.75rem; text-align: center; }
}

/* ---------- Flashmeddelanden ---------- */

.flash-list {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 1100px;
}

.flash-list li {
  background: var(--green-soft);
  border: 1.5px solid var(--green-leaf);
  color: var(--green-deep);
  border-radius: var(--radius-card);
  padding: 0.7rem 1.1rem;
  margin: 0 1.25rem 0.5rem;
}

/* ---------- Knappar (pillerform, hård skugga, hover-lyft) ---------- */

.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.7rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--sun);
  color: var(--on-sun);
  box-shadow: 0 3px 0 rgba(58, 43, 16, 0.35);
}

.btn-primary:hover { color: var(--on-sun); }

.btn-dark {
  background: var(--bark);
  color: var(--on-dark);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.btn-dark:hover { color: var(--on-dark); }

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-leaf);
}

.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); }

.btn-light {
  background: var(--paper);
  color: var(--green-deep);
  box-shadow: 0 3px 0 rgba(38, 51, 42, 0.2);
}

.btn-light:hover { background: #fff; color: var(--green-deep); }

/* ---------- Hero (mörkgrönt band) ---------- */

.hero {
  background: var(--green-deep);
  color: var(--on-dark);
  padding: 3.5rem 0 3rem;
}

.hero .container { max-width: 820px; text-align: center; }

.hero .kicker {
  display: inline-block;
  background: rgba(255, 248, 236, 0.14);
  color: var(--on-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--on-dark);
  margin-bottom: 0.75rem;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 248, 236, 0.9);
  max-width: 34em;
  margin: 0 auto 1.75rem;
}

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.hero .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 248, 236, 0.6);
}

.hero .btn-ghost:hover { background: rgba(255, 248, 236, 0.12); color: var(--on-dark); }

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

.section { padding: 4.5rem 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.25rem; }

.section-head p { color: var(--ink-soft); }

.band {
  background: var(--green-soft);
  color: var(--ink);
  padding: 4.5rem 0;
}

.band h2 { color: var(--ink); }

.band .section-head p { color: var(--ink-soft); }

/* ---------- USP-rutnät ---------- */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.usp {
  text-align: center;
  padding: 0 0.5rem;
}

.usp svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.6rem;
  color: var(--green-deep);
}

.usp h3 { color: var(--ink); font-size: 1.02rem; }

.usp p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Produktkort ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem 1.5rem;
}

/* auto-fit i stället för auto-fill: tomma spår kollapsar så att få kort
   (t.ex. de tre kategorikorten) breddas till hela containern. */
.cards-fit {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
  position: relative;
}

.card:hover { box-shadow: var(--shadow-lift); }

.card a { text-decoration: none; color: inherit; display: block; height: 100%; }

.card-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--sun);
  color: var(--on-sun);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.8rem;
  box-shadow: 0 2px 0 rgba(58, 43, 16, 0.3);
  z-index: 1;
}

.card-badge--soon {
  background: var(--sky);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(38, 51, 42, 0.25);
}

/* Kategorikorten på startsidan: liggande foto i 3:2 ovanför texten. */
.category-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body { padding: 1.1rem 1.25rem 1.35rem; }

.card-body h3 { margin-bottom: 0.25rem; }

.card-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 0.8rem;
  min-height: 2.6em;
}

.price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }

.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--green-deep); }

.jamforpris, .moms-note { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Platshållar-produktbild ---------- */

.ph-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(85% 90% at 50% 108%, rgba(88, 166, 92, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, var(--green-wash) 0%, var(--green-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-media svg { width: 30%; max-width: 110px; height: auto; color: var(--green-leaf); opacity: 0.85; }

.ph-media.ph-large svg { max-width: 150px; }

/* ---------- Kategorisidor (solida färgband, se visual-style.md) ---------- */

.page-head {
  background: var(--green-soft);
  padding: 2.4rem 0 2rem;
  text-align: center;
}

.page-head h1 { color: var(--ink); }

.page-head p { color: var(--ink-soft); max-width: 58ch; margin: 0 auto; }

/* ---------- Produktsida ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1.5rem;
  margin-bottom: -1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumb [aria-current] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

@media (max-width: 719px) {
  .product-layout { grid-template-columns: 1fr; }
}

.product-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-media.slideshow { position: relative; }

.product-media.slideshow > img {
  display: block;
  width: 100%;
  /* Slides mix square studio shots and 3:2 miljö photos — lock the frame
     to a square and crop, so the page doesn't jump between slides. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.9);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.slide-btn:hover { background: var(--paper); }

.slide-prev { left: 0.7rem; }

.slide-next { right: 0.7rem; }

.product-thumbs {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.product-thumbs .thumb {
  width: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.product-thumbs .thumb img { display: block; width: 100%; }

.product-thumbs .thumb.active { border-color: var(--green-leaf); }

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(38, 51, 42, 0.78); }

.lightbox-body { position: relative; }

.lightbox-body img {
  display: block;
  max-width: min(92vw, 920px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-card);
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.9);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.lightbox-close:hover { background: var(--paper); }

.stock-chip {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  margin-bottom: 0.75rem;
}

.stock-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-leaf);
  margin-right: 0.45rem;
}

.stock-chip--soon {
  background: var(--sun-soft);
  color: var(--on-sun);
}

.stock-chip--soon::before { background: var(--sun); }

/* Intresseanmälan i stället för köpknapp när orderable är false. */
.notify-box {
  background: var(--green-soft);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.notify-lead { margin: 0 0 0.85rem; }

.notify-done {
  margin: 0;
  font-weight: 600;
  color: var(--green-deep);
}

.notify-done::before {
  content: "✓";
  color: var(--green-leaf);
  font-weight: 800;
  margin-right: 0.5rem;
}

.notify-form .field { margin-bottom: 0; }

/* "X ligger nu i varukorgen"-boxen återanvänder notify-stilen;
   knappen behöver bara luft mot meddelandet. */
.notify-box .btn { margin-top: 0.85rem; }

.notify-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.notify-row input[type="email"] { flex: 1; min-width: 12rem; }

.notify-row .btn { flex-shrink: 0; white-space: nowrap; }

.product-info .price { font-size: 1.7rem; }

.manufacturer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -0.4rem 0 0.9rem;
}

.usp-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

/* "Det här ingår" above a usp-list (Product.contents). */
.contents-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  margin: 1.25rem 0 -0.75rem;
}

.usp-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}

.usp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95em;
  height: 0.5em;
  border-left: 2.5px solid var(--green-leaf);
  border-bottom: 2.5px solid var(--green-leaf);
  transform: rotate(-45deg);
}

.buy-form { margin: 1.5rem 0 0.75rem; }

.buy-row { display: flex; gap: 0.75rem; align-items: center; }

/* Selectable product options (Product.options) — same card-radio look
   as .pay-option in the checkout. */
.option-group { border: none; padding: 0; margin: 0 0 1.25rem; }

.option-group legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; padding: 0; }

.option-choices { display: grid; gap: 0.6rem; }

.option-choice {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.8rem 1.1rem;
  cursor: pointer;
}

.option-choice:has(input:checked) { border-color: var(--green-leaf); background: var(--green-wash); }

.option-choice .option-name { font-weight: 600; }

.option-choice .option-price { margin-left: auto; color: var(--ink-soft); font-size: 0.92rem; }

.custom-dims {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.9rem 1.1rem 0.2rem;
}

.custom-dims .field-row { grid-template-columns: 1fr 1fr; }

.custom-dims input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
}

.custom-dims input:focus { border-color: var(--green-leaf); outline: none; }

.dims-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.9rem; }

/* Chosen options under a line's product name (cart, checkout, order). */
.line-options { display: block; font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.15rem; }

.qty-input {
  width: 4.2rem;
  padding: 0.6rem 0.5rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  font-family: var(--font);
  background: #fff;
}

.ship-note { font-size: 0.85rem; color: var(--ink-soft); }

.product-desc { padding-bottom: 3.5rem; max-width: 720px; }

.product-desc p { max-width: 65ch; }

/* ---------- Mått och vikt (Product.specs) ---------- */

.product-specs { max-width: 560px; padding-bottom: 3.5rem; }

.specs-list { margin: 1rem 0 0; }

.specs-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1.5px solid var(--line);
  font-size: 0.95rem;
}

.specs-row dt { font-weight: 600; }

.specs-row dd { margin: 0; color: var(--ink-soft); text-align: right; }

/* ---------- Produkt-montering ("Montering", Product.assembly) ---------- */

.product-assembly {
  padding-bottom: 3.5rem;
}

.assembly-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.assembly-step {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.assembly-step img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.assembly-step p {
  margin: 0;
  padding: 0.95rem 1.1rem 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .assembly-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .assembly-steps { grid-template-columns: 1fr; }
}

/* ---------- Produkt-FAQ ("Vanliga frågor", Product.faq) ---------- */

.product-faq {
  max-width: 780px;
  padding-bottom: 3.5rem;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.6rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.85rem 2.6rem 0.85rem 1.1rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Kodritat plus som blir minus när svaret är öppet. */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.85em;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-leaf);
  transform: translateY(-50%);
}

.faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Kontakt-callout (kategori-outro och produktsidans Ställ en fråga) ---------- */

.contact-callout {
  background: var(--sun-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 2rem 1.6rem 2.2rem;
  max-width: 780px;
  margin: 1rem auto 0;
  text-align: center;
}

.contact-callout h2 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.contact-callout p {
  margin: 0 auto 1.3rem;
  max-width: 540px;
  color: var(--ink);
}

/* Produktsidans sektioner får sitt avstånd via padding-bottom: 3.5rem,
   så callouten lägger sitt avstånd nedåt i stället för uppåt. */
.product-ask {
  margin: 0 auto 3.5rem;
}

/* ---------- Produkt-miljöer ("Odla där det passar dig", Product.environments) ---------- */

.product-environments {
  padding-bottom: 3.5rem;
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.environment-card {
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.environment-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.environment-card figcaption {
  padding: 0.95rem 1.1rem 1.15rem;
}

/* ---------- Produkt-korsförsäljning ("Köps ofta tillsammans", Product.related_slugs) ---------- */

.product-related {
  padding-bottom: 3.5rem;
}

.environment-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.environment-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .environment-grid { grid-template-columns: 1fr; }
}

/* ---------- Varukorg ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

@media (max-width: 799px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
}

.cart-line .ph-media { border-radius: 12px; width: 84px; }

.cart-line img { border-radius: 12px; width: 84px; }

.cart-line h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }

.cart-line .unit-price { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

.cart-line-forms { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 719px) {
  .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-line-forms { grid-column: 1 / -1; justify-content: flex-start; }
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.45rem 0.4rem;
  font-family: var(--font);
}

.btn-text:hover { color: var(--error); }

.summary-box {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 84px;
}

.summary-box h2 { font-size: 1.2rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.97rem;
  margin-bottom: 0.4rem;
}

.summary-row.total {
  border-top: 1.5px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-deep);
}

.free-ship-note {
  background: var(--sun-soft);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--on-sun);
  padding: 0.6rem 0.8rem;
  margin: 0.75rem 0;
}

.summary-box .btn { width: 100%; text-align: center; margin-top: 0.75rem; }

.empty-state { text-align: center; padding: 4rem 0 5rem; }

.empty-state svg { width: 72px; height: 72px; color: var(--green-soft); margin-bottom: 1rem; }

/* ---------- Kassa ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

@media (max-width: 799px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.1rem; }

.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--green-leaf); outline: none; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }

.field-error { color: var(--error); font-size: 0.85rem; margin: 0.25rem 0 0; }

.field-hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0.25rem 0 0; }

.field-row { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }

.pay-options { display: grid; gap: 0.75rem; margin: 0.5rem 0 1.5rem; }

.pay-option {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
}

.pay-option:has(input:checked) { border-color: var(--green-leaf); background: var(--green-wash); }

.pay-option .pay-name { font-weight: 700; }

.pay-option .pay-demo { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Orderbekräftelse ---------- */

.confirm-head { text-align: center; padding: 3rem 0 1rem; }

.confirm-head svg { width: 64px; height: 64px; color: var(--green-leaf); margin-bottom: 0.75rem; }

.order-box {
  max-width: 640px;
  margin: 1.5rem auto 3.5rem;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 2rem;
}

.order-lines { width: 100%; border-collapse: collapse; margin: 1rem 0; }

.order-lines td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }

.order-lines td:last-child { text-align: right; white-space: nowrap; }

.order-meta { font-size: 0.92rem; color: var(--ink-soft); }

.notice {
  background: var(--sun-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--on-sun);
}

/* ---------- Statiska sidor ---------- */

.page-content { max-width: 720px; padding-top: 2.25rem; padding-bottom: 3.5rem; }

.page-content h2 { margin-top: 2rem; }

.draft-notice {
  background: var(--sun-soft);
  border: 1px dashed var(--sun);
  border-radius: 12px;
  color: var(--on-sun);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1.75rem;
}

/* ---------- Guider (artiklar) ---------- */

.article-page { padding-top: 2.25rem; padding-bottom: 1rem; }

.article-page article {
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.7;
}

.article-page h1 { text-align: center; }

.article-date {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.article-page article img { border-radius: var(--radius-card); height: auto; }

.article-page article h2 { margin-top: 2.25rem; }

.article-page article h2::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  border-radius: 50% 50% 50% 0;
  background: var(--sun);
  transform: rotate(-45deg);
}

.article-page article a { color: var(--green-deep); }

.article-page article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-page article th {
  background: var(--green-soft);
  color: var(--green-deep);
  text-align: left;
  padding: 0.7rem 1rem;
}

.article-page article td {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--green-soft);
}

.article-cta {
  margin: 3rem auto;
  max-width: 70ch;
  background: var(--sun-soft);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

.article-cta h2 { margin: 0 0 0.5rem 0; }

.article-cta h2::before { content: none; }

.article-cta p { margin: 0 0 1.4rem 0; color: var(--ink-soft); }

/* Produktnudge inuti artikelflödet — samma sun-soft ruta som .article-cta
   men vänsterställd med en solaccent så den läses som ett tips i texten,
   inte som det avslutande kategori-CTA:t. */
.product-cta {
  margin: 2.5rem auto;
  max-width: 70ch;
  background: var(--sun-soft);
  border-left: 5px solid var(--sun);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.75rem;
}

.product-cta h2 { margin: 0 0 0.4rem 0; font-size: 1.25rem; }

.product-cta h2::before { content: none; }

.product-cta p { margin: 0 0 1.2rem 0; color: var(--ink-soft); }

.coming-soon { text-align: center; color: var(--ink-soft); padding: 2rem 0; }

/* ---------- Underkategorier (grupper på kategorisidor) ---------- */

.subcategory-title {
  margin: 2.25rem 0 1rem;
  font-size: 1.35rem;
}

.coming-soon-group {
  text-align: left;
  padding: 0 0 1rem;
}

/* ---------- Familjeband (himmelsband med moln) ---------- */

.family-band {
  background: var(--sky);
  color: var(--ink);
  padding: 4.5rem 0;
}

.family-band .container {
  position: relative;
}

.family-band .section-head {
  position: relative;
  z-index: 1;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  pointer-events: none;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 180px;
  height: 52px;
  top: -10px;
  left: 2%;
}

.cloud-1::before {
  width: 70px;
  height: 70px;
  top: -32px;
  left: 30px;
}

.cloud-1::after {
  width: 48px;
  height: 48px;
  top: -20px;
  left: 96px;
}

.cloud-2 {
  width: 140px;
  height: 42px;
  bottom: 10px;
  right: 3%;
}

.cloud-2::before {
  width: 54px;
  height: 54px;
  top: -24px;
  left: 26px;
}

.cloud-2::after {
  width: 38px;
  height: 38px;
  top: -16px;
  left: 74px;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.family-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* Knappen ligger alltid i kortets botten, oavsett textlängd. */
.family-card .btn {
  margin-top: auto;
  align-self: center;
}

.family-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 1rem;
}

.family-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
}

.family-card p {
  color: var(--ink-soft);
  margin: 0 0 1.4rem 0;
}

@media (max-width: 700px) {
  .family-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA-band (solgult, rund fotobricka) ---------- */

.cta-band {
  background: var(--sun);
  padding: 3.5rem 0 4rem;
}

.cta-band .container {
  text-align: center;
}

.cta-photo {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.cta-band h2 {
  color: var(--on-sun);
  margin: 0.5rem 0 0.75rem 0;
  font-size: 1.9rem;
}

.cta-band p {
  color: var(--on-sun);
  max-width: 46ch;
  margin: 0 auto 1.75rem auto;
}

/* ---------- Sidfot (bark) ---------- */

.site-footer {
  background: var(--bark);
  color: #e4d5c3;
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin-bottom: 0.4rem; }

.site-footer a { color: var(--on-dark); text-decoration: none; }

.site-footer a:hover { color: var(--sun); text-decoration: none; }

.footer-legal {
  border-top: 1px solid rgba(255, 248, 236, 0.2);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #cbb9a6;
  text-align: center;
}
