/* Leadrion e-handel. Kundens tema styr färger och typsnitt. Flaggskepp (.dark) inverterar temat. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --page: var(--bg); --fg: var(--ink); --fg-muted: var(--muted); --card: var(--surface);
  --line: color-mix(in oklch, var(--ink) 12%, transparent); --line-2: color-mix(in oklch, var(--ink) 22%, transparent);
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); --max: 1200px;
  --ease-out: cubic-bezier(.16,1,.3,1); --ease: cubic-bezier(.4,0,.6,1);
  --glass: linear-gradient(160deg, color-mix(in oklch, var(--surface) 82%, #fff), color-mix(in oklch, var(--surface) 70%, transparent) 60%, color-mix(in oklch, var(--surface) 86%, transparent));
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px var(--line), 0 24px 48px -34px rgba(0,0,0,.35);
}
body.dark {
  --page: var(--ink); --fg: var(--bg); --fg-muted: color-mix(in oklch, var(--bg) 66%, transparent); --card: color-mix(in oklch, var(--ink) 88%, #fff);
  --line: color-mix(in oklch, var(--bg) 14%, transparent); --line-2: color-mix(in oklch, var(--bg) 26%, transparent);
  --glass: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 60%, rgba(255,255,255,.08));
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px rgba(0,0,0,.7);
}
html { -webkit-text-size-adjust: 100%; background: var(--page); scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--fg); font-family: var(--font-text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-kerning: normal; }
h1, h2, h3, p, dl, dd, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 500; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.muted { color: var(--fg-muted); }
.fine { font-size: 13px; color: var(--fg-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 99; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--page); }
.skip:focus { top: 12px; }
.kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.glass { position: relative; isolation: isolate; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--glass-edge); border-radius: 24px; }

/* Knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 500; font-size: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .45s var(--ease-out), filter .3s var(--ease), background-color .3s var(--ease); }
.btn:active { transform: scale(.97); transition-duration: .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px -14px var(--accent); }
.btn-ghost { background: transparent; }
.btn-glass { color: #fff; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(255,255,255,.16); }
.btn.wide { width: 100%; }
.btn.done { filter: brightness(1.1); }
@media (hover: hover) { .btn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.05); } }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.text-link:hover { color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Topp */
.announce { margin: 0; padding: 9px var(--gutter); text-align: center; font-size: 13px; background: var(--fg); color: var(--page); letter-spacing: .01em; }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in oklch, var(--page) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.top-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--font-display); font-size: 25px; letter-spacing: -0.02em; min-height: 44px; display: inline-flex; align-items: center; }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 15px; color: var(--fg-muted); transition: color .3s var(--ease); }
.links a:hover { color: var(--fg); }
.cart-btn { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.cart-btn:hover { background: color-mix(in oklch, var(--fg) 6%, transparent); }
.cart-btn svg { width: 24px; height: 24px; }
.count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--ease-out); font-variant-numeric: tabular-nums; }
.count.on { transform: scale(1); }

/* Produktbild med etikett (kaffepåse) */
.pimg { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #F4EFE7; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.label { position: absolute; left: 50%; top: 53%; width: 25%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); background: var(--lab); color: var(--labt); border-radius: 3px; display: grid; align-content: center; justify-items: center; gap: .15em; text-align: center; padding: 4%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.08); container-type: inline-size; }
.label b { font-family: var(--font-display); font-weight: 400; font-size: 18cqi; letter-spacing: .02em; text-transform: uppercase; opacity: .8; }
.label i { font-family: var(--font-display); font-style: normal; font-size: 22cqi; line-height: 1; }
.label small { font-size: 9cqi; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: color-mix(in oklch, #fff 85%, transparent); color: #2a221c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pimg.tiny { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.pimg.small { width: 72px; height: 72px; border-radius: 14px; flex: none; }
.gift-thumb { display: grid; place-items: center; font-size: 24px; }

/* Hero (Grund och Företag) */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.8vw, 80px); }
.lede { margin-top: 20px; max-width: 40ch; font-size: 18px; color: var(--fg-muted); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 70% 50%; border-radius: 28px; box-shadow: 0 40px 80px -44px rgba(0,0,0,.5); }

/* Hero (Flaggskepp) */
.hero-cine { position: relative; height: 92svh; min-height: 560px; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; }
.cine-media { position: absolute; inset: 0; z-index: -1; }
.cine-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.cine-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 48%, rgba(0,0,0,.5), rgba(0,0,0,.1) 80%), linear-gradient(180deg, rgba(0,0,0,.2), transparent 30%, transparent 60%, var(--page)); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.09) translate(-1%, -1%); } }
@media (prefers-reduced-motion: no-preference) { .cine-media img { animation: drift 24s var(--ease) infinite alternate; } }
.cine-copy { text-align: center; padding: 0 var(--gutter); display: grid; justify-items: center; max-width: 1000px; text-shadow: 0 1px 18px rgba(0,0,0,.4); }
.cine-copy .kicker { color: rgba(255,255,255,.75); }
.cine-copy h1 { margin-top: 16px; font-size: clamp(46px, 7.6vw, 112px); line-height: 1; letter-spacing: -0.03em; }
.cine-copy .lede { color: rgba(255,255,255,.85); margin-inline: auto; }
.cine-copy .row { justify-content: center; }
.statement-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 180px) var(--gutter) 0; }
.statement { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -0.02em; max-width: 20em; }
.statement .w { transition: color .35s var(--ease); }
.statement.armed .w { color: color-mix(in oklch, var(--fg) 24%, transparent); }
.statement.armed .w.on { color: var(--fg); }

/* Fördelar */
.usp { max-width: var(--max); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-item { padding: 22px 20px 22px 0; }
.usp-item + .usp-item { padding-left: 20px; border-left: 1px solid var(--line); }
.usp-item p { font-size: 15px; margin-top: 2px; }

/* Sektioner */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter) 0; }
.section.tight { padding-top: 28px; }
.section h2 { font-size: clamp(32px, 3.8vw, 50px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 72px); }
.page-head .muted { margin-top: 12px; font-size: 18px; max-width: 46ch; }

/* Produktkort */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.card { position: relative; }
.card-link { display: grid; gap: 4px; }
.card-link .pimg { margin-bottom: 10px; }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.card .muted { font-size: 15px; }
.card-price { font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (hover: hover) { .card-link:hover .pimg img { transform: scale(1.04); } }
.rating { font-size: 14px; font-variant-numeric: tabular-nums; }
.rating .stars, .stars { color: var(--accent); }
body.dark .rating .stars, body.dark .stars { color: color-mix(in oklch, var(--accent) 50%, #fff); }
.quick { position: absolute; right: 10px; top: calc(100% - 100% + 10px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; background: color-mix(in oklch, #fff 88%, transparent); color: #2a221c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); transition: transform .45s var(--ease-out), background .3s var(--ease); }
.quick:hover { transform: scale(1.06); }
.quick.done { background: var(--accent); color: var(--on-accent); }

/* Filter */
.toolbar { max-width: var(--max); margin: 28px auto 0; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--page); box-shadow: none; }
.sort select { min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; font-size: 15px; }

/* Kampanjer */
.promo { padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.promo h2 { margin-top: 8px; font-size: clamp(30px, 3.4vw, 44px); }
.promo .muted { margin-top: 10px; max-width: 46ch; }

/* Om och frågor */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.about h2 { margin-bottom: 16px; }
.about .muted + .muted { margin-top: 12px; }
.faq-wrap { max-width: 860px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--fg-muted); max-width: 60ch; }

/* Produktsida */
.crumbs { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 0; font-size: 14px; color: var(--fg-muted); }
.crumbs a:hover { color: var(--fg); }
.pdp { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-media { position: sticky; top: 88px; }
.pdp-media .pimg { border-radius: 28px; }
.pdp-info { display: grid; gap: 14px; }
.pdp h1 { font-size: clamp(40px, 4.6vw, 64px); }
.pdp-kort { font-size: 18px; margin-top: -6px; }
.pdp-price { font-size: 26px; font-variant-numeric: tabular-nums; }
.pdp-price s { font-size: 18px; color: var(--fg-muted); margin-left: 6px; }
.notes { font-family: var(--font-display); font-size: 22px; color: var(--fg-muted); }
.opts legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; }
.opt > span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; cursor: pointer; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.opt > span small { color: var(--fg-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.opt input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); }
body.dark .opt input:checked + span { box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--accent) 50%, #fff); }
.opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.save { font-style: normal; font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: 999px; margin-left: 6px; background: color-mix(in oklch, var(--accent) 14%, transparent); color: var(--accent); }
body.dark .save { color: color-mix(in oklch, var(--accent) 45%, #fff); }
.badge { position: absolute; right: 12px; top: -9px; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.seg { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.seg legend { grid-column: 1 / -1; }
.seg .opt > span { text-align: center; padding: 12px 10px; font-size: 15px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.atc { width: 100%; min-height: 56px; font-size: 17px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 44px; height: 54px; border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.qty input, .qty output, .qty span { width: 36px; text-align: center; border: 0; background: transparent; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 36px; height: 36px; font-size: 17px; }
.ship-note, .eta { font-size: 15px; }
.eta b { color: var(--accent); }
body.dark .eta b { color: color-mix(in oklch, var(--accent) 45%, #fff); }
.trust { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-muted); }
.trust li { padding-left: 22px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.notify { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.notify p { grid-column: 1 / -1; }
.notify input { min-height: 50px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--page); box-shadow: inset 0 0 0 1px var(--line-2); }
.pdp-more { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.pdp-more .muted { margin-top: 12px; max-width: 52ch; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--fg-muted); }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-2); }
.meter i:nth-child(-n + 5) { background: var(--line-2); }
.meter[style*="--v:1"] i:nth-child(-n+1), .meter[style*="--v:2"] i:nth-child(-n+2), .meter[style*="--v:3"] i:nth-child(-n+3), .meter[style*="--v:4"] i:nth-child(-n+4), .meter[style*="--v:5"] i:nth-child(-n+5) { background: var(--accent); }

/* Köps ofta ihop */
.fbt { padding: clamp(22px, 3vw, 36px); }
.fbt-row { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fbt-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.fbt-item input { width: 18px; height: 18px; accent-color: var(--accent); }
.fbt-item span { display: grid; }
.fbt-item small { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.plus { font-size: 22px; color: var(--fg-muted); }
.fbt-foot { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fbt-foot b { font-variant-numeric: tabular-nums; }

/* Omdömen */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review { padding: 24px; display: grid; gap: 12px; align-content: start; }
.review blockquote { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.review figcaption { font-size: 14px; color: var(--fg-muted); }

/* Fast köpknapp: glider upp när huvudknappen är ur bild */
.sticky-atc { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 35; width: min(560px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 22px; background: color-mix(in oklch, var(--page) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--glass-edge), 0 20px 40px -20px rgba(0,0,0,.45); transform: translate(-50%, 160%); transition: transform .6s var(--ease-out); }
.sticky-atc.show { transform: translate(-50%, 0); }
.sticky-atc .pimg.tiny { width: 48px; height: 48px; }
.s-info { display: grid; line-height: 1.25; min-width: 0; }
.s-info b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-info span { font-size: 14px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.sticky-atc .btn { margin-left: auto; min-height: 48px; white-space: nowrap; }

/* Bygg din egen låda */
.box { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.box-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.box-item { padding: 16px; display: grid; gap: 4px; justify-items: start; transition: box-shadow .3s var(--ease); }
.box-item.picked { box-shadow: var(--glass-edge), inset 0 0 0 2px color-mix(in oklch, var(--accent) 50%, #fff); }
.box-item .pimg { width: 100%; margin-bottom: 8px; }
.box-item h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.box-item .qty { margin-top: 10px; }
.box-sum { position: sticky; top: 88px; padding: 26px; display: grid; gap: 12px; }
.box-sum h2 { font-size: 32px; }
.box-list { display: grid; gap: 4px; min-height: 24px; color: var(--fg-muted); }
.box-price { font-variant-numeric: tabular-nums; font-size: 22px; }
.box-price s { font-size: 16px; color: var(--fg-muted); }

/* Varukorgspanel */
.drawer { position: fixed; inset: 0; z-index: 100; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .45s var(--ease) both; }
.panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--page); color: var(--fg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5), 0 0 0 1px var(--line); animation: slide .6s var(--ease-out) both; overflow: hidden; }
.drawer.closing .panel { animation: slide-out .38s var(--ease) both; }
.drawer.closing .scrim { animation: fade-out .38s var(--ease) both; }
@keyframes fade { from { opacity: 0; } } @keyframes fade-out { to { opacity: 0; } }
@keyframes slide { from { transform: translateX(105%); } } @keyframes slide-out { to { transform: translateX(105%); } }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 8px 24px; }
.panel-head h2 { font-size: 30px; }
.x { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: color-mix(in oklch, var(--fg) 6%, transparent); cursor: pointer; }
.x i { position: absolute; left: 14px; right: 14px; top: 21px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.x i + i { transform: rotate(-45deg); }
.ship-bar { margin: 6px 24px 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in oklch, var(--accent) 8%, transparent); font-size: 14px; }
.bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .8s var(--ease-out); }
body.dark .bar i { background: color-mix(in oklch, var(--accent) 50%, #fff); }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.lines { padding: 8px 24px; }
.line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.line-info small { color: var(--fg-muted); font-size: 13px; }
.line-info .ok { color: var(--accent); font-weight: 500; }
.line-info .qty { margin-top: 6px; justify-self: start; }
.line-price { text-align: right; font-variant-numeric: tabular-nums; display: grid; }
.line-price s { color: var(--fg-muted); font-size: 13px; }
.empty { padding: 20px 24px; color: var(--fg-muted); }
.empty a { color: var(--fg); font-weight: 500; }
.upsell { padding: 8px 24px 12px; }
.upsell h3 { font-size: 14px; color: var(--fg-muted); margin-bottom: 8px; }
.up { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.up span { display: grid; flex: 1; }
.up small { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.panel-foot { padding: 16px 24px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sums div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; padding: 2px 0; }
.sums dt { color: var(--fg-muted); }
.sums .total { font-size: 19px; font-weight: 500; padding-top: 6px; }
.sums .total dt { color: var(--fg); }
.pay { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pay li { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-muted); }
.checkout { padding-bottom: 24px; }
.checkout p { padding: 0 24px; margin-top: 12px; }

/* Sidfot */
.foot { max-width: var(--max); margin: clamp(80px, 11vw, 132px) auto 0; padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 14px; color: var(--fg-muted); margin-bottom: 8px; }
.foot-brand { font-family: var(--font-display); font-size: 30px; }
.foot p { font-size: 15px; }
.foot a:hover { color: var(--accent); }
.foot-bottom { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Rörelse */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-copy > *, .cine-copy > *, .page-head > * { animation: rise 1.2s var(--ease-out) both; }
  .hero-copy > :nth-child(2), .cine-copy > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .15s; }
  .hero-copy > :nth-child(3), .cine-copy > :nth-child(3) { animation-delay: .3s; }
  .cine-copy > :nth-child(4) { animation-delay: .45s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } }
}
@media (prefers-reduced-motion: reduce) { .panel, .scrim, .sticky-atc, .bar i { animation: none !important; transition: none !important; } }

@media (max-width: 960px) {
  .links { display: none; }
  .cart-btn { margin-left: auto; }
  .hero, .about, .pdp, .pdp-more, .box { grid-template-columns: 1fr; }
  .pdp-media, .box-sum { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .usp { grid-template-columns: 1fr; }
  .usp-item, .usp-item + .usp-item { padding: 14px 0; border-left: 0; }
  .usp-item + .usp-item { border-top: 1px solid var(--line); }
  .grid { gap: 22px 12px; }
  .card h3 { font-size: 20px; }
  .box-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .box-item { padding: 10px; }
  .panel { top: auto; left: 6px; right: 6px; bottom: 6px; width: auto; max-height: 92svh; animation-name: slide-up; }
  .drawer.closing .panel { animation-name: slide-down; }
  @keyframes slide-up { from { transform: translateY(105%); } } @keyframes slide-down { to { transform: translateY(105%); } }
  .fbt-row .plus { display: none; }
  .fbt-item { width: 100%; }
}

/* Bevaka: e-postfältet får krympa, och på mobil hamnar knappen under */
.notify input { min-width: 0; width: 100%; }
@media (max-width: 600px) { .notify { grid-template-columns: 1fr; } }
.buy:has(.qty[hidden]) { grid-template-columns: 1fr; }

/* Tryckytor: minst 44 px */
.foot p a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { min-width: 44px; }
.chip, .sort select { min-height: 44px; }
.qty input { width: 44px; height: 44px; }

/* Företag-heron (3 december): bilden får ett köpkort för veckans kaffe, och texten ett snittbetyg och mängdrabatten */
.fo-betyg { margin: 0 0 18px; font-size: 14px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.fo-betyg .stars { letter-spacing: .08em; margin-right: 4px; }
.fo-betyg b { color: var(--fg); font-weight: 600; }
.hero-fo .row { flex-wrap: wrap; }
.fo-media { position: relative; padding-bottom: 56px; }
.fo-media > img { aspect-ratio: 4 / 3.4; }
.fo-kort { position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 0; width: min(360px, 78%); display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px 56px 14px 14px; border-radius: 22px; background: var(--glass); box-shadow: var(--glass-edge); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.fo-kort-bild .pimg { width: 96px; height: 96px; aspect-ratio: auto; border-radius: 14px; }
.fo-kort-bild .pimg .tag { display: none; }
.fo-kort-text { min-width: 0; }
.fo-kicker { margin: 0 0 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.fo-kort h2 { margin: 0; font-size: 26px; line-height: 1.05; }
.fo-kort h2 a { color: inherit; text-decoration: none; }
.fo-kort .muted { margin: 2px 0 6px; font-size: 13px; line-height: 1.35; }
.fo-pris { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.fo-pris .rating { font-size: 13px; }
.fo-lagg { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); transition: transform .45s var(--ease-out); }
.fo-lagg:hover { transform: scale(1.06); }
.fo-lagg.done { background: var(--fg); color: var(--page); }
@media (prefers-reduced-motion: no-preference) {
  .fo-kort { animation: fo-in 1.2s var(--ease-out) .45s both; }
  @keyframes fo-in { from { opacity: 0; transform: translateY(16px); } }
}
@media (max-width: 900px) {
  .fo-media { padding-bottom: 0; }
  .fo-kort { position: relative; left: auto; bottom: auto; width: auto; margin: -44px 14px 0; }
}
@media (max-width: 420px) {
  .fo-kort { grid-template-columns: 76px 1fr; gap: 12px; }
  .fo-kort-bild .pimg { width: 76px; height: 76px; }
  .fo-kort h2 { font-size: 22px; }
}
