/* public/style.css — räkor.se */

/* Typsnitten ligger på egen server (public/fonts/, SIL Open Font License) —
   inga anrop till Google Fonts. Variabla filer: en fil per familj täcker alla vikter. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #092442;          /* mörkblå: text, sidhuvud, sidfot */
  --ink-2: #0E3058;        /* inmatningsfält på mörk bakgrund */
  --ink-line: #1F3E63;     /* kantlinjer på mörk bakgrund */
  --ink-muted: #B9C6D3;    /* ljus text på mörk bakgrund */
  --body: #33475C;         /* brödtext */
  --muted: #5A6573;        /* sekundär text */
  --bg: #FFFFFF;
  --surface: #F3F4F6;      /* grå ytor */
  --line: #E1E4E8;
  --line-strong: #C9CED6;
  --placeholder: #E5E8EC;
  --accent: #D7141A;       /* röd: köpknappar, rea */
  --accent-dark: #B01015;
  --msc: #1F4E79;
  --msc-bg: #E3ECEF;
  --asc: #2F6B5E;
  --ok: #1E6B4F;
  --radius: 20px;
  --wrap: 1280px;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--msc); }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
:focus-visible { outline: 3px solid var(--msc); outline-offset: 2px; }

/* --- Knappar --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-msc { background: var(--msc); color: #fff; }
.btn-msc:hover { background: var(--ink); color: #fff; }

/* --- USP-list (mörk rad överst) ---
   Alla påståenden visas på en rad när de får plats. Får de inte plats sätter
   common.js klassen .is-rotating och de visas ett i taget. På mobil (≤700 px)
   gäller ett-i-taget direkt från start, så att listen inte blinkar till. */
.usp-bar { background: var(--ink); color: #D6DEE7; font-size: 14px; }
.usp-items { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; min-height: 40px; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
.usp-item { display: inline-flex; align-items: center; white-space: nowrap; color: inherit; text-decoration: none; }
.usp-item strong { color: #fff; font-weight: 600; }
a.usp-item:hover { color: #fff; text-decoration: underline; }
.usp-item + .usp-item::before { content: ""; width: 1px; height: 16px; background: var(--ink-line); margin: 0 20px; }
.usp-item[hidden] + .usp-item::before { display: none; }
.usp-dots { display: none; }

.usp-bar.is-rotating { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 0 16px; cursor: pointer; }
.usp-bar.is-rotating .usp-items { display: block; min-height: 0; padding: 0; margin: 0; overflow: visible; }
.usp-bar.is-rotating .usp-item { display: none; }
.usp-bar.is-rotating .usp-item.is-active { display: inline-flex; }
.usp-bar.is-rotating .usp-item + .usp-item::before { display: none; }
.usp-bar.is-rotating .usp-dots { display: flex; gap: 5px; }
.usp-dots span { width: 6px; height: 6px; border-radius: 999px; background: #3F5E82; }
.usp-dots span.on { background: #fff; }

@media (max-width: 700px) {
  .usp-bar { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 0 16px; cursor: pointer; }
  .usp-items { display: block; min-height: 0; padding: 0; margin: 0; overflow: visible; }
  .usp-item { display: none; }
  .usp-item.is-active { display: inline-flex; }
  .usp-item + .usp-item::before { display: none; }
  .usp-dots { display: flex; gap: 5px; }
}

/* --- Sidhuvud --- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 49px; height: 49px; }
.logo span { font-family: var(--display); font-size: 35px; font-weight: 800; letter-spacing: -0.02em; }
.search { flex: 1; position: relative; display: flex; z-index: 41; }
.search input { width: 100%; height: 48px; padding: 0 20px 0 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; }
.search input:focus { background: #fff; }
.search svg { position: absolute; left: 18px; top: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 500; flex-shrink: 0; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.main-nav .nav-rea { color: var(--accent); font-weight: 600; }
.menu-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; }

/* --- Hero --- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 56px; align-items: center; }
.hero-kicker { font-size: 15px; font-weight: 600; color: var(--msc); margin: 0 0 18px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; }
.hero p { font-size: 20px; color: var(--body); max-width: 34em; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.deal-card { position: relative; background: var(--ink); color: #fff; border-radius: 28px; overflow: hidden; display: grid; grid-template-rows: 280px auto; text-decoration: none; min-height: 460px; }
.deal-card:hover { color: #fff; }
.deal-card .deal-img { background: #fff; display: flex; align-items: center; justify-content: center; }
.deal-card .deal-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-card .deal-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 8px; }
.deal-badge { position: absolute; top: 18px; left: 18px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.deal-title { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.deal-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.deal-price strong { font-family: var(--display); font-size: 34px; font-weight: 600; }
.deal-price span { color: var(--ink-muted); }

/* --- Kategorikort --- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 220px 220px; gap: 18px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; display: flex; align-items: flex-end; padding: 18px; min-height: 160px; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.img-failed { visibility: hidden; }
.cat-card .cat-label { position: relative; background: #fff; border-radius: 14px; padding: 12px 18px; display: flex; flex-direction: column; }
.cat-card .cat-label strong { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.cat-card .cat-label span { font-size: 15px; color: var(--muted); }
.cat-card.big { grid-column: span 2; grid-row: span 2; padding: 28px; }
.cat-card.big .cat-label strong { font-size: 36px; font-weight: 800; }
.cat-card.rea { background: var(--accent); color: #fff; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 24px; }
.cat-card.rea:hover { background: var(--accent-dark); color: #fff; }
.cat-card.rea strong { font-family: var(--display); font-size: 40px; font-weight: 800; }

/* --- Löften --- */
.promises { margin-top: 56px; background: var(--ink); color: #fff; border-radius: 24px; padding: 36px 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.promises h2 { font-family: var(--display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.promises p { margin: 0; color: var(--ink-muted); font-size: 16px; }

/* --- Produktlista --- */
.listing { margin-top: 88px; padding: 72px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.listing h2 { font-size: clamp(36px, 4vw, 52px); font-weight: 800; }
.listing-count { color: var(--muted); font-size: 15px; margin-top: 6px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sort select { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-size: 15px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--ink); }
.product-card .img { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: #fff; line-height: 1.2; }
.badge-msc { background: var(--msc); }
.badge-asc { background: var(--asc); }
.badge-rea { background: var(--accent); }
.badge-plain { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .title { font-size: 17px; font-weight: 600; line-height: 1.3; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 24px; font-weight: 600; }
.price.is-rea { color: var(--accent); }
.old-price { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.unit-price { font-size: 14px; color: var(--muted); }
.state-msg { color: var(--muted); padding: 24px 0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination a { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.pagination .gap { align-self: center; color: var(--muted); padding: 0 4px; }
.disclaimer { font-size: 14px; color: var(--muted); margin: 24px 0 0; }

/* --- MSC-sektion --- */
.msc-block { margin-top: 88px; background: var(--msc-bg); border-radius: 32px; padding: 60px 64px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.msc-block .kicker { color: var(--msc); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.msc-block h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; }
.msc-block p { color: var(--body); font-size: 19px; line-height: 1.6; margin: 20px 0 26px; max-width: 36em; }
.msc-block .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.msc-block .actions a.link { font-weight: 600; color: var(--msc); padding: 12px 8px; }
.msc-list { background: #fff; border-radius: var(--radius); padding: 8px 24px; }
.msc-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.msc-list a:last-child { border-bottom: none; }
.msc-list a strong { white-space: nowrap; }

/* --- Sidfot --- */
.site-footer { margin-top: 104px; background: var(--ink); color: #fff; padding: 72px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-top h2 { font-size: 36px; font-weight: 800; }
.footer-top p { color: var(--ink-muted); margin: 10px 0 0; }
.subscribe { width: 100%; max-width: 480px; }
.subscribe label { display: block; color: var(--ink-muted); font-size: 15px; margin-bottom: 8px; }
.subscribe .row { display: flex; gap: 10px; }
.subscribe input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink-line); background: var(--ink-2); color: #fff; font-size: 17px; }
.subscribe input::placeholder { color: #8FA3B8; }
.subscribe .msg { min-height: 1.5em; margin: 8px 0 0; font-size: 15px; color: var(--ink-muted); }
.footer-links { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 36px; }
.footer-links h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ink-muted); }
.footer-links a:hover { color: #fff; }
.footer-links p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink-line); color: var(--ink-muted); font-size: 14px; }

/* --- Produktsida --- */
.product-page { padding-top: 28px; }
.product-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 24px; }
.product-image { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.product-info .badges { position: static; }
.product-info .badge { font-size: 14px; padding: 7px 12px; }
.product-info h1 { font-size: clamp(34px, 3.8vw, 52px); font-weight: 800; }
.product-info .price { font-size: 44px; }
.stock { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.stock.ok { color: var(--ok); }
.stock.out { color: var(--muted); }
.stock-lines { display: flex; flex-direction: column; gap: 6px; }
.buy { min-height: 64px; font-size: 20px; width: 100%; }
.buy-note { margin: 0; font-size: 15px; color: var(--muted); }
.info-box { background: var(--msc-bg); border-radius: 18px; padding: 20px 24px; }
.info-box strong { color: var(--msc); display: block; margin-bottom: 4px; }
.info-box p { margin: 0; font-size: 15px; color: var(--body); }
.product-details { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 72px; }
.product-details h2 { font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.description p { color: var(--body); font-size: 18px; line-height: 1.7; margin: 0 0 16px; max-width: 38em; }
.description ul { padding-left: 20px; color: var(--body); line-height: 1.7; font-size: 18px; margin: 0 0 16px; max-width: 38em; }
.description ol { padding-left: 22px; color: var(--body); line-height: 1.7; font-size: 18px; margin: 0 0 16px; max-width: 38em; }
.description li { margin-bottom: 4px; }
.description h3 { font-size: 22px; font-weight: 600; line-height: 1.2; margin: 28px 0 10px; color: var(--ink); max-width: 38em; }
.description h4 { font-family: inherit; font-size: 18px; font-weight: 600; margin: 20px 0 6px; color: var(--ink); }
.description > :first-child { margin-top: 0; }
.description h4 + p, .description h4 + ul { margin-top: 0; }
.description strong { color: var(--ink); font-weight: 600; }
.description blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-strong); color: var(--body); }
.description table { border-collapse: collapse; margin: 0 0 16px; font-size: 16px; color: var(--body); width: 100%; max-width: 30em; }
.description th, .description td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.description th { color: var(--ink); font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; }
.related { margin-top: 80px; }
.related h2 { font-size: 36px; font-weight: 800; margin-bottom: 24px; }

/* --- Om oss --- */
.about-page { max-width: 820px; padding-top: 28px; }
.about-page h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 800; margin: 8px 0 28px; }
.about-text { color: var(--body); font-size: 18px; line-height: 1.7; }
.about-text p { margin: 0 0 18px; }
.about-text a { color: var(--msc); font-weight: 600; }
.about-text h2, .about-text h3 { font-size: 26px; font-weight: 600; margin: 32px 0 12px; }
.about-links { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-links h2, .about-links h3, .about-links h4 { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 0 0 16px; }
.about-links ul { list-style: none; margin: 0; padding: 0; columns: 3 180px; column-gap: 32px; }
.about-links li { padding: 6px 0; break-inside: avoid; }
.about-links a { color: var(--body); text-decoration: none; }
.about-links a:hover { color: var(--msc); text-decoration: underline; }
.about-page + .site-footer .footer-links { margin-top: 0; }

/* --- Storleksväljare på produktsidan --- */
.variants { display: flex; flex-direction: column; gap: 10px; }
.variants-label { font-size: 15px; font-weight: 600; }
.variant-list { display: flex; flex-wrap: wrap; gap: 10px; }
.variant { min-width: 96px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.variant small { font-weight: 500; font-size: 14px; color: var(--muted); }
.variant small.is-rea { color: var(--accent); }
a.variant:hover { border-color: var(--ink); color: var(--ink); }
.variant.is-current { border: 2px solid var(--ink); padding: 7px 13px; background: var(--surface); }
.variant.is-out { opacity: .55; }

/* --- Kategoritexter --- */
.listing #listTitle { font-size: clamp(36px, 4vw, 52px); font-weight: 800; }
.listing-intro { max-width: 46em; margin: -8px 0 28px; font-size: 18px; line-height: 1.6; color: var(--body); }
.listing-guide { margin-top: 72px; }
.listing-guide > div { max-width: 760px; }
.listing-guide h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; margin-bottom: 8px; }
.listing-guide h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 8px; }
.listing-guide p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--body); }

/* --- Startsidans text längst ner --- */
.home-about { margin-top: 88px; }
.home-about h2 { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; max-width: 18em; margin-bottom: 8px; }
.home-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
.home-about h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }
.home-about p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--body); }

/* --- Sökförslag (search.js) --- */
.search-panel { position: absolute; top: calc(100% + 8px); left: 0; width: max(100%, 680px); max-width: calc(100vw - 48px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 48px rgba(9, 36, 66, .18); overflow: hidden; display: flex; flex-direction: column; }
.search-panel.is-loading .sp-list, .search-panel.is-loading .sp-chips { opacity: .55; transition: opacity .15s; }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 0; min-height: 0; overflow-y: auto; max-height: min(64vh, 560px); }
.sp-products { padding: 16px 12px 12px 16px; min-width: 0; }
.sp-suggest { padding: 16px 16px 12px; border-left: 1px solid var(--line); }
.sp-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 4px 8px; }
.sp-close { display: none; position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px; border: none; background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; }
.sp-list, .sp-chips { list-style: none; margin: 0; padding: 0; }
.sp-item { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sp-item img, .sp-noimg { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--surface); }
.sp-item:hover, .sp-item.sp-active { background: var(--surface); color: var(--ink); }
.sp-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-title { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-title mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sp-price { font-size: 14px; color: var(--body); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-price.is-rea { color: var(--accent); font-weight: 600; }
.sp-price s { color: var(--muted); font-weight: 400; }
.sp-badge { font-size: 12px; font-weight: 600; color: var(--accent); }
.sp-chips { display: flex; flex-direction: column; gap: 4px; }
.sp-chip { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.sp-chip:hover, .sp-chip.sp-active { background: var(--surface); color: var(--ink); }
.sp-empty { margin: 8px 4px; color: var(--body); font-size: 15px; line-height: 1.5; }
.sp-all { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0 16px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; text-align: center; padding: 0 16px; flex-shrink: 0; }
.sp-all:hover, .sp-all.sp-active { background: var(--msc); color: #fff; }
.sp-all span { margin-left: .3em; }
/* Sökfältets ikonregel (.search svg) gäller inte ikonerna i rutan. */
.search-panel svg { position: static; width: 18px; height: 18px; color: inherit; pointer-events: none; }
.search-panel .sp-hist-del svg { width: 14px; height: 14px; }
.search-panel .sp-hist-icon { color: var(--muted); }
.sp-history { padding: 16px 16px 12px; }
.sp-history .sp-head { margin-bottom: 4px; }
.sp-clear { border: none; background: none; padding: 6px 8px; margin: -6px -8px -6px 0; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); cursor: pointer; border-radius: 8px; text-decoration: underline; text-underline-offset: 3px; }
.sp-clear:hover { background: var(--surface); }
.sp-recent:not([hidden]) + .sp-popular { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-pills { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.sp-pill:hover, .sp-pill.sp-active { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.sp-hist-row { display: flex; align-items: center; gap: 4px; }
.sp-hist { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; gap: 12px; }
.sp-hist-icon { flex-shrink: 0; color: var(--muted); }
.sp-hist-text { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-hist-del { flex-shrink: 0; width: 44px; height: 44px; border: none; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sp-hist-del:hover { background: var(--surface); color: var(--ink); }
.search-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(9, 36, 66, .35); }
html.search-open .site-header { z-index: 50; }

/* --- Integritetspolicy (hämtad text) --- */
.privacy .about-text h3 { font-size: 24px; font-weight: 600; margin: 32px 0 10px; }
.privacy .about-text h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.privacy .about-text ul, .privacy .about-text ol { margin: 0 0 18px; padding-left: 22px; }
.privacy .about-text li { margin-bottom: 6px; }
.privacy .about-text a { word-break: break-word; }

/* --- Recept --- */
.recipe-page { padding-top: 28px; }
.recipe-index-head { max-width: 860px; margin: 8px 0 48px; }
.recipe-index-head h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; margin-bottom: 18px; }
.recipe-index-head p { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0 0 24px; }
.recipe-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.recipe-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 15px; font-weight: 500; background: #fff; }
.recipe-jump a:hover { border-color: var(--ink); }
.recipe-section { margin-top: 56px; scroll-margin-top: 24px; }
.recipe-section .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.recipe-section h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.recipe-section .section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recipe-card picture, .recipe-hero picture, .search-recipe picture { display: contents; }
.recipe-section .recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.recipe-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.recipe-card:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--ink); }
.recipe-card .img { aspect-ratio: 3 / 2; background: var(--surface); overflow: hidden; }
.recipe-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.recipe-card .title { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.recipe-card .meta { color: var(--muted); font-size: 15px; }
.recipe-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--accent); background: linear-gradient(135deg, #F3F4F6 0%, #E3ECEF 100%); }
.recipe-placeholder svg { width: 34%; max-width: 160px; height: auto; opacity: .85; }

.recipe-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin: 8px 0 56px; }
.recipe-head .eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.recipe-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; margin-bottom: 18px; }
.recipe-intro p { font-size: 19px; line-height: 1.65; color: var(--body); margin: 0 0 14px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 22px 0 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.recipe-facts div { flex: 1 1 120px; padding: 14px 18px; border-right: 1px solid var(--line); }
.recipe-facts div:last-child { border-right: none; }
.recipe-facts dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.recipe-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; }
.recipe-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.recipe-hero { border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ingredienser { display: block; scroll-margin-top: 16px; }

.recipe-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.recipe-body h2, .recipe-text h2, .recipe-tips h2, .recipe-products h2, .recipe-faq h2, .recipe-related h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; margin-bottom: 18px; }
.recipe-body.only-steps { grid-template-columns: 1fr; max-width: 820px; }
.recipe-ingredients { background: var(--surface); border-radius: 24px; padding: 28px 30px 30px; position: sticky; top: 20px; }
.recipe-ingredients h3, .recipe-steps h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
.ingredients-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ingredients-head h2 { margin-bottom: 0; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: 11px 0; border-bottom: 1px solid var(--line-strong); font-size: 17px; line-height: 1.45; }
.ingredients li:last-child { border-bottom: none; }
.ingredients .qty { font-weight: 700; }
.servings { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; }
.servings-label { font-size: 14px; color: var(--muted); padding: 0 6px 0 12px; }
.servings-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--surface); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.servings-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.servings-btn:disabled { opacity: .4; cursor: default; }
.servings-value { min-width: 22px; text-align: center; font-weight: 700; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 26px 58px; font-size: 18px; line-height: 1.65; color: var(--body); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.steps li strong { color: var(--ink); }
.recipe-text, .recipe-tips, .recipe-faq, .recipe-products { margin-top: 64px; max-width: 820px; }
.recipe-products { max-width: none; }
.recipe-products > p { margin: -8px 0 20px; color: var(--muted); }
.recipe-text h2 { margin-top: 40px; }
.recipe-text h2:first-child { margin-top: 0; }
.recipe-text h3, .recipe-tips h3 { font-size: 22px; font-weight: 600; line-height: 1.2; margin: 26px 0 8px; }
.recipe-text p, .recipe-tips p, .recipe-text li, .recipe-tips li { font-size: 18px; line-height: 1.7; color: var(--body); }
.recipe-text p, .recipe-tips p { margin: 0 0 16px; }
.recipe-text ul, .recipe-tips ul { padding-left: 22px; margin: 0 0 16px; }
.recipe-text a, .recipe-tips a, .recipe-intro a, .steps a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.recipe-tips { background: var(--msc-bg); border-radius: 24px; padding: 32px 36px 20px; }
.recipe-faq details { border-bottom: 1px solid var(--line); }
.recipe-faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.recipe-faq summary::-webkit-details-marker { display: none; }
.recipe-faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--muted); }
.recipe-faq details[open] summary::after { content: '−'; }
.recipe-faq details p { margin: 0 0 20px; font-size: 17px; line-height: 1.7; color: var(--body); }
.recipe-related { margin-top: 80px; }
.product-recipes { margin-top: 72px; }

@media print {
  .usp-bar, .site-header, .site-footer, .recipe-actions, .recipe-products, .recipe-related, .crumbs, .servings-btn, .recipe-hero { display: none !important; }
  .recipe-head, .recipe-body { display: block; margin: 0; }
  .recipe-ingredients { position: static; background: none; padding: 0; margin-bottom: 24px; }
  .recipe-tips { background: none; padding: 0; }
  .steps li::before { background: none; color: #000; border: 1px solid #000; }
  body { font-size: 12pt; }
}

.sp-recipes { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sp-meta { font-size: 13px; color: var(--muted); }
.sp-recipe-icon { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23D7141A' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 40 C30 20 70 14 88 32 C104 48 100 78 78 90 C66 96 54 94 48 86'/%3E%3Cpath d='M60 22 L56 40 M80 30 L70 46 M94 52 L78 58 M92 74 L76 70'/%3E%3Cpath d='M48 86 L34 100 M48 86 L50 106'/%3E%3Cpath d='M30 40 C18 46 12 58 10 74'/%3E%3C/svg%3E") center / 60% no-repeat; }
.search-recipes { margin: 0 0 32px; }
.search-recipes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.search-recipes-head h2 { font-size: 24px; font-weight: 800; }
.search-recipes-head a { font-size: 15px; font-weight: 600; }
.search-recipes-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.search-recipe { display: flex; align-items: center; gap: 14px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s ease; }
.search-recipe:hover { border-color: var(--line-strong); color: var(--ink); }
.search-recipe .img { width: 84px; aspect-ratio: 3 / 2; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--surface); }
.search-recipe .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-recipe .recipe-placeholder svg { width: 45%; }
.search-recipe .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-recipe .title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.search-recipe .meta { font-size: 13px; color: var(--muted); }

.home-recipes { margin-top: 88px; }
.home-recipes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.home-recipes-head h2 { font-size: clamp(36px, 4vw, 52px); font-weight: 800; }
.home-recipes-head .kicker { margin: 0 0 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.home-recipes-all { font-weight: 600; white-space: nowrap; }
.home-recipes .recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* --- Mobil / surfplatta --- */
@media (max-width: 1100px) {
  .main-nav { gap: 14px; font-size: 16px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-recipes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-section .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-recipes .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: auto; min-height: 64px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  .logo svg { width: 39px; height: 39px; }
  .logo span { font-size: 29px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .main-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-top: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .hero p { font-size: 17px; margin: 16px 0 22px; }
  .deal-card { grid-template-rows: 220px auto; min-height: 0; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 170px; grid-auto-rows: 130px; gap: 12px; }
  .cat-card { min-height: 0; padding: 12px; }
  .cat-card.big { grid-column: span 2; grid-row: span 1; padding: 16px; }
  .cat-card.big .cat-label strong { font-size: 26px; }
  .cat-card .cat-label { padding: 8px 14px; }
  .cat-card .cat-label strong { font-size: 19px; }
  .promises { grid-template-columns: 1fr; gap: 18px; padding: 24px; margin-top: 32px; }
  .promises h2 { font-size: 19px; margin-bottom: 2px; }
  .listing { margin-top: 48px; padding: 40px 0; }
  .listing-intro { font-size: 16px; margin: -4px 0 20px; }
  .listing-guide { margin-top: 48px; }
  .home-about { margin-top: 56px; }
  .home-about-grid { grid-template-columns: 1fr; gap: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card .body { padding: 12px; }
  .product-card .title { font-size: 15px; }
  .price { font-size: 19px; }
  .badge { font-size: 11px; padding: 4px 8px; }
  .msc-block { grid-template-columns: 1fr; padding: 32px 22px; gap: 24px; margin-top: 48px; }
  .msc-block p { font-size: 16px; }
  .site-footer { margin-top: 56px; padding: 40px 0 28px; }
  .footer-top h2 { font-size: 28px; }
  .subscribe .row { flex-direction: column; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-links > div:last-child { grid-column: span 2; }
  .product-main, .product-details { grid-template-columns: 1fr; gap: 28px; }
  .product-details { margin-top: 40px; }
  .product-info .price { font-size: 36px; }
  .search-panel { position: fixed; left: 10px; right: 10px; width: auto; max-width: none; border-radius: 18px; }
  .sp-cols { display: flex; flex-direction: column; max-height: none; flex: 1; }
  .sp-suggest { order: -1; border-left: none; border-bottom: 1px solid var(--line); padding: 12px 60px 12px 14px; }
  .sp-products .sp-head { min-height: 28px; padding-right: 48px; }
  .sp-suggest .sp-head { display: none; }
  .sp-history { padding: 12px 10px 10px 14px; }
  .sp-history > div:first-child:not([hidden]) .sp-head, .sp-recent[hidden] + .sp-popular .sp-head { margin-right: 52px; min-height: 32px; }
  .sp-chips { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; }
  .sp-chip { white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; min-height: 44px; display: flex; align-items: center; }
  .sp-products { padding: 12px 8px 8px 12px; }
  .sp-close { display: inline-flex; }
  .sp-item { padding: 8px 6px; }
  .sp-all { margin: 0 12px 12px; }
  html.search-open, html.search-open body { overflow: hidden; }
  .search-recipes-list { grid-template-columns: 1fr; gap: 10px; }
  .home-recipes { margin-top: 48px; }
  .recipe-grid, .recipe-section .recipe-grid, .home-recipes .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .recipe-card .body { padding: 12px 14px 16px; }
  .recipe-card .title { font-size: 18px; }
  .recipe-card .meta { font-size: 13px; }
  .recipe-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .recipe-hero { order: -1; border-radius: 18px; }
  .recipe-intro p, .recipe-index-head p { font-size: 17px; }
  .recipe-body { grid-template-columns: 1fr; gap: 40px; }
  .recipe-ingredients { position: static; padding: 22px 20px; border-radius: 18px; }
  .steps li { font-size: 17px; padding-left: 50px; }
  .steps li::before { width: 34px; height: 34px; font-size: 15px; }
  .recipe-tips { padding: 24px 20px 10px; border-radius: 18px; }
  .recipe-text, .recipe-tips, .recipe-faq, .recipe-products { margin-top: 48px; }
  .recipe-section { margin-top: 40px; }
}
