/* Gemensam stil for de svenska sidorna (design E: ljus layout, varma toner, serif-rubriker).
   Typsnitt: Inter (brodtext) + Lora (rubriker), egna filer under /fonts/ - inte Google
   Fonts, sa att besokarens IP inte skickas till Google. Bada har SIL Open Font License.
   Bara latin-uppsattningen: den tacker svenska (å ä ö). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
}

:root {
  --bg: #f7f4ee;
  --surface: #ece6db;
  --card: #fffdf9;
  --ink: #23261f;
  --muted: #6d6a61;
  --line: #e3dccf;
  --accent: #3e4a3a;
  --accent-hover: #2f392c;
  --accent-soft: #e5eadc;
  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Sidhuvud och sidfot ---------- */
/* Hogerkanten lamnar plats for varukorgsknappen fran cart.js. */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; padding-right: 150px; }
.site-header a { text-decoration: none; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.lang { font-size: 13px; color: var(--muted); }
.lang a { padding: 0 4px; }
.lang a.on { color: var(--ink); font-weight: 500; }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-lang { display: none; }

/* ---------- Gemensamma element ---------- */
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }
.tag { display: inline-block; font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; }
/* Stjarnrad som fylls i procent. update-ratings.py skriver bredden pa data-fill. */
.starbar { position: relative; display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--line); line-height: 1; }
.starbar::before { content: "★★★★★"; }
.starbar i { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); font-style: normal; }
.starbar i::before { content: "★★★★★"; }

/* ---------- Startsidan ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding: 88px 0 72px; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; margin-bottom: 22px; }
.lead { font-size: 18px; color: var(--muted); max-width: 30em; margin-bottom: 28px; }
.rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 34px; }
.rating strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: 22px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { padding: 20px 22px; background: var(--card); border-radius: 18px; }
.fact strong { display: block; font-weight: 600; font-size: 15px; }
.fact span { font-size: 14px; color: var(--muted); }

section.block { padding: 96px 0 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.block-head h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.15; }
.block-head p { color: var(--muted); max-width: 26em; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: block; text-decoration: none; }
.card-img { border-radius: 18px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; margin-bottom: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.card .price { font-size: 16px; font-weight: 500; white-space: nowrap; }
.card .price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 14px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 34em; }
.card .tag { margin-top: 12px; }

.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-cols h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.info-cols p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.info-cols ul { list-style: none; font-size: 15px; }
.dots li { padding: 4px 0 4px 20px; position: relative; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .5; }

/* ---------- Produktsidor ---------- */
.back-link { display: block; max-width: 1120px; margin: 28px auto 0; padding: 0 24px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.container { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 28px 24px 0; align-items: start; }
.images { display: flex; flex-direction: column; gap: 16px; }
.images img, .placeholder-img { width: 100%; border-radius: 18px; background: var(--surface); }
.details { position: sticky; top: 24px; }
.details h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.details p { color: var(--muted); margin-bottom: 18px; }
.details > p[style*="font-weight"] { color: var(--ink); }
.product-features { list-style: none; margin: 0 0 20px; }
.product-features li { padding: 5px 0 5px 20px; position: relative; }
.product-features li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .5; }
.features { list-style: none; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.features li { font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; }
.details .price { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; margin: 8px 0 4px; }
.details .price span { font-family: var(--sans); }
.buy-button { width: 100%; height: 56px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; font: 500 16px var(--sans); cursor: pointer; margin: 14px 0 20px; transition: background .15s; }
.buy-button:hover { background: var(--accent-hover); }
.details .info { font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.9; }
.details .info a { color: var(--ink); }

.faq { max-width: 808px; margin: 96px auto 0; padding: 0 24px; }
.faq h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 15px; margin-top: 10px; }

.details .highlight { color: var(--ink); font-weight: 500; }
.details .price s { font-family: var(--sans); font-size: 16px; color: var(--muted); margin-left: 8px; }
.price-note { font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.note-box { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; margin: 14px 0 0; font-size: 14px; }
.notify-box { background: var(--card); border-radius: 18px; padding: 20px; margin-bottom: 20px; }
.notify-title { font-weight: 600; margin-bottom: 4px; }
.notify-text { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-input { flex: 1; min-width: 180px; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 15px var(--sans); background: #fff; color: var(--ink); }
.notify-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.notify-btn { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px var(--sans); cursor: pointer; }
.notify-msg { font-size: 14px; margin-top: 10px; color: var(--muted); }
.reviews-wrap { max-width: 1120px; margin: 96px auto 0; padding: 0 24px; }
.coming-soon .cs-text { color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.coming-soon form { max-width: 520px; }

/* Torkarblad: kop- och prenumerationsval */
.details .wear-note { margin: 0 0 16px; padding: 14px 16px; background: var(--card); border-radius: 14px; font-size: 14px; color: var(--muted); }
.plans { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 8px; }
.plan { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; display: block; background: var(--card); transition: border-color .15s; }
.plan:hover { border-color: #cfc6b4; }
.plan.selected { border-color: var(--accent); background: #fbfcf8; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-name { font-size: 16px; font-weight: 600; }
.plan-price { font-size: 18px; font-weight: 600; white-space: nowrap; }
.plan-note { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan-badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.plan-free { color: var(--accent); font-weight: 500; }
.sub-perks { list-style: none; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.sub-perks li { padding: 3px 0 3px 20px; position: relative; }
.sub-perks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .5; }
.manage-link { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.manage-link a { color: var(--ink); }
.coming-soon { max-width: 760px; margin: 72px auto 0; background: var(--card); border-radius: 22px; padding: 32px; }
.coming-soon h2 { font-size: 26px; margin-bottom: 8px; }
.coming-soon .cs-badge { display: inline-block; font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; }

/* Enkla sidor (tack, 404) */
.simple { max-width: 668px; margin: 96px auto 0; padding: 0 24px; text-align: center; }
.simple h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; margin-bottom: 16px; }
.simple p { color: var(--muted); margin-bottom: 16px; }
.simple .btn { margin-top: 8px; }
.simple .small { font-size: 14px; margin-top: 28px; }
.simple .small a { color: var(--ink); }
.steps { display: grid; gap: 10px; text-align: left; margin: 28px 0 24px; }
.steps div { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 14px 18px; }
.steps strong { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

@media (max-width: 860px) {
  .site-header .wrap { padding-right: 130px; }
  .nav-links { display: none; }
  .site-header .lang { display: none; }
  .footer-lang { display: inline; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 48px; }
  .hero-img { order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .block-head { flex-direction: column; align-items: start; }
  .info-cols { grid-template-columns: 1fr; gap: 32px; }
  section.block { padding-top: 64px; }
  .container { grid-template-columns: 1fr; gap: 28px; }
  .details { position: static; }
  .faq { margin-top: 64px; }
  .coming-soon { margin: 64px 24px 0; padding: 24px; }
  .site-footer { margin-top: 64px; }
}
