/*
Theme Name: Hanssons Fyrverkerier
Theme URI: https://fyrverkerier.se
Author: Hanssons Fyrverkerier
Description: Plugin-free showcase theme for Hanssons Fyrverkerier. Custom post types, native meta boxes, built-in SV/EN switch, native password-protected retailer area.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: hanssons
*/

/* ==========================================================================
   Tokens (from the design handoff). Brand red is estimated from the logo –
   confirm the exact hex with the client and change --red once.
   ========================================================================== */
:root {
	--bg: #000000;
	--panel: #121212;
	--panel-deep: #0a0a0a;
	--panel-hover: #1c1c1c;
	--red: #e5172b;
	--red-glow-1: #4a0a10;
	--red-glow-2: #5a1018;
	--text: #f5f5f5;
	--body: #d4d4d4;
	--muted: #a3a3a3;
	--muted-2: #8c8c8c;
	--silver: #d8d8de;
	--line: #ffffff1f;
	--line-2: #ffffff33;
	--line-3: #ffffff44;
	--gx: clamp(16px, 4vw, 48px);
	--max: 1280px;
	--display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
	--sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--clip: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
	--bp: 1080px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000000; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--red); color: #fff; padding: 12px 18px; font-weight: 800; }
.skip-link:focus { left: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gx); width: 100%; }
.wrap-inner { max-width: var(--max); margin-inline: auto; width: 100%; }

/* Display type */
.h-page, .h-xl, .h-lg { font-family: var(--display); font-weight: 900; text-transform: uppercase; margin: 0; }
.h-page { font-size: clamp(52px, 14vw, 220px); line-height: .9; margin-top: 12px; }
.h-page--xl { font-size: clamp(64px, 14vw, 220px); line-height: 1.02; margin: 0; }
.h-page--lg { font-size: clamp(56px, 12vw, 190px); line-height: 1.02; margin: 16px 0 0; }
.h-page--md { font-size: clamp(52px, 10vw, 150px); line-height: 1.05; margin: 0; }
.h-xl { font-size: clamp(48px, 8vw, 112px); line-height: .9; }
.h-lg { font-size: clamp(40px, 6vw, 88px); line-height: .95; margin-bottom: 28px; }
.h-xl--outline, .h-lg--outline { color: transparent; -webkit-text-stroke: 2px var(--text); }
.h-xl--outline { margin-bottom: 40px; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--red); }
.outline--glow { text-shadow: 0 0 60px #e5172b66; }
.lead { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 560px; }
.lead--wide { max-width: 640px; line-height: 1.65; margin: 0; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 13px; letter-spacing: .3em; color: var(--silver); text-transform: uppercase; }
.eyebrow__line { width: 48px; height: 2px; background: var(--red); flex: none; }
.eyebrow--plain { margin-bottom: 20px; }
.eyebrow-red { font-weight: 800; font-size: 13px; letter-spacing: .3em; color: var(--red); text-transform: uppercase; }

/* Buttons & links */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; padding: 18px 32px; line-height: 1.2; text-align: center; transition: background .15s, color .15s; }
.btn:hover { background: #fff; color: var(--bg); }
.btn--clip { clip-path: var(--clip); }
.btn--ghost { background: transparent; border: 1px solid #ffffff77; padding: 17px 32px; }
.btn--dark { background: var(--bg); color: #fff; padding: 20px 36px; }
.btn--dark:hover { background: #fff; color: var(--bg); }
.btn--sm { font-size: 13px; padding: 14px 24px; }
.btn--ghost.btn--sm { padding: 13px 24px; }
.btn--xs { font-size: 12px; letter-spacing: .12em; padding: 12px 18px; border-color: #ffffff55; }
.btn--ghost:hover { background: #fff; color: var(--bg); }
.btn--ghost.btn--xs:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-quiet { font-weight: 800; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--silver); }
.link-quiet:hover, .link-red:hover { color: #fff; }
.link-underline { font-weight: 800; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: #fff; border-bottom: 2px solid var(--red); align-self: flex-start; padding-bottom: 4px; }
.link-red { font-weight: 800; border-bottom: 2px solid var(--red); color: #fff; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px var(--gx); border-bottom: 1px solid var(--line); }
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; }
.site-header__logo { display: flex; }
.site-header__logo img { height: 56px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav__link { color: var(--text); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--red); }
.nav__link.is-active { color: #fff; border-bottom-color: var(--red); }
.site-header__tools { display: flex; gap: 8px; align-items: center; }
.lang-btn { background: transparent; color: #fff; border: 1px solid #ffffff55; padding: 8px 16px; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lang-btn:hover { background: var(--red); border-color: var(--red); }
.burger { display: none; background: var(--red); border: 0; width: 44px; height: 38px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: #fff; display: block; }
.menu-overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; padding: 20px 20px 40px; overflow: auto; }
.menu-overlay__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.menu-overlay__top img { height: 48px; width: auto; }
.menu-overlay__close { background: transparent; color: #fff; border: 1px solid #ffffff55; width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.menu-overlay__link { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: 1.1; padding: 12px 0; border-bottom: 1px solid #ffffff2e; }
.menu-overlay__link:hover { color: var(--red); }
.menu-overlay__lang { align-self: flex-start; margin-top: 28px; padding: 14px 24px; border: 1px solid #ffffff55; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.menu-overlay__lang:hover { background: var(--red); border-color: var(--red); }
body.menu-open { overflow: hidden; }

@media (max-width: 1079.98px) {
	.nav { display: none; }
	.site-header__tools .lang-btn { display: none; }
	.burger { display: flex; }
}
@media (min-width: 1080px) {
	.menu-overlay { display: none !important; }
}

/* Footer */
.site-footer { padding: 32px var(--gx); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gx) 32px; background: radial-gradient(ellipse at 75% 10%, var(--red-glow-1) 0%, var(--panel-deep) 55%, var(--bg) 100%); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__mark { position: absolute; right: -2vw; top: 90px; font-family: var(--display); font-weight: 900; font-size: clamp(160px, 34vw, 520px); line-height: .8; color: transparent; -webkit-text-stroke: 2px #ffffff26; pointer-events: none; user-select: none; }
.hero__inner { position: relative; display: flex; flex-direction: column; gap: 28px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 13vw, 200px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.hero__row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.hero__lead { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; max-width: 480px; color: var(--body); }
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; border-top: 1px solid #ffffff2e; padding-top: 20px; }
.countdown__label { font-size: 12px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; color: var(--red); }
.countdown__units { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.countdown__unit { display: flex; align-items: baseline; gap: 6px; }
.countdown__num { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hero--sub { min-height: 0; justify-content: flex-start; padding: clamp(48px, 7vw, 96px) var(--gx) 56px; background: radial-gradient(ellipse at 85% 0%, var(--red-glow-1) 0%, var(--panel-deep) 55%, var(--bg) 100%); }
.hero__mark--18 { right: -1vw; top: -20px; font-size: clamp(200px, 32vw, 480px); -webkit-text-stroke-color: #ffffff22; }
.hero--sub .hero__inner { gap: 20px; }

.ticker-wrap { position: relative; z-index: 2; overflow: hidden; margin-top: -34px; padding: 20px 0; pointer-events: none; }
.ticker { background: var(--red); color: #fff; transform: rotate(-1.5deg); margin: 0 -20px; max-width: none; padding: 14px 0; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 3vw, 34px); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; box-shadow: 0 10px 40px #e5172b55; }
.ticker__track { display: inline-flex; animation: hf-marquee 40s linear infinite; will-change: transform; }
.ticker__item { padding-right: 1.5ch; }
@keyframes hf-marquee { to { transform: translateX(-50%); } }

.section { padding: 120px var(--gx) 40px; }
.section--tight { padding-top: 80px; padding-bottom: 80px; }
.section--list { padding-top: 40px; padding-bottom: 80px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.cats { border-top: 1px solid var(--line-2); }
.cats__row { display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); padding: 18px 12px; border-bottom: 1px solid var(--line-2); transition: padding-left .15s, background .15s; }
.cats__row:hover { background: var(--red); color: #fff; padding-left: 28px; }
.cats__n { font-weight: 800; font-size: 13px; letter-spacing: .15em; width: 32px; opacity: .7; }
.cats__name { flex: 1; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 6vw, 76px); line-height: 1; }
.cats__arrow { font-size: 28px; }

.story { margin: 80px 0; padding: 100px var(--gx); background: var(--panel); position: relative; overflow: hidden; }
.story__mark { position: absolute; left: -1vw; top: -20px; font-family: var(--display); font-weight: 900; font-size: clamp(200px, 40vw, 600px); line-height: .8; color: transparent; -webkit-text-stroke: 2px #ffffff14; pointer-events: none; }
.story__inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: end; }
.story__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: .9; text-wrap: balance; }
.story__copy { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.story__copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }

.cta-band { padding: 90px var(--gx); background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band__copy { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.cta-band__title { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 10vw, 150px); line-height: .88; }
.cta-band p { margin: 0; font-size: 18px; line-height: 1.5; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.grid-cards--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { position: relative; background: var(--panel); display: flex; flex-direction: column; border-bottom: 3px solid var(--red); transition: background .15s; }
.card:hover { background: var(--panel-hover); }
.card__tag { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; padding: 6px 12px; z-index: 1; }
.card__img { display: block; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 45%, var(--red-glow-2), var(--panel) 75%); overflow: hidden; }
.card__img img, .card__img .ph { width: 100%; height: 100%; object-fit: contain; display: block; }
.card__img img { padding: 8%; box-sizing: border-box; }
.card__img .ph { padding: 18%; object-fit: contain; }
.card__body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__name { font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1; }
.card__arrow { font-size: 22px; color: var(--red); }
.front-page .card__arrow, .home .card__arrow { display: none; }

.crumbs { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs--wide { letter-spacing: .15em; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.crumbs-row { padding-top: 32px; }
.page-head { padding-top: 64px; padding-bottom: 32px; }
.page-head--hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 40px; }
.page-head .btn-row { margin-top: 20px; align-items: center; }

/* Filter bar */
.filterbar { position: sticky; top: 0; z-index: 4; background: #000000ee; backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px var(--gx); }
.filterbar--static { position: static; backdrop-filter: none; padding-top: 16px; }
.filterbar__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.filterbar__form { display: flex; flex-wrap: wrap; gap: 12px; }
.filterbar__form--stack { flex-direction: column; }
.filterbar input[type=search], .filterbar select { background: var(--panel); border: 1px solid var(--line-2); padding: 14px 18px; color: #fff; font-size: 15px; font-weight: 500; border-radius: 0; }
.filterbar input[type=search] { flex: 1; min-width: 200px; appearance: none; }
.filterbar .suggest { position: relative; flex: 1; min-width: 200px; }
.filterbar .suggest input[type=search] { width: 100%; box-sizing: border-box; }
.suggest__list { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 0; list-style: none; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 18px 40px #000a; max-height: 360px; overflow-y: auto; }
.suggest__list[hidden] { display: none; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 14px; cursor: pointer; border-left: 3px solid transparent; }
.suggest__item[aria-selected=true], .suggest__item:hover { background: var(--panel-hover); border-left-color: var(--red); }
.suggest__img { flex: none; width: 44px; height: 44px; object-fit: contain; background: radial-gradient(circle at 50% 40%, var(--red-glow-1), var(--panel-deep) 75%); }
.suggest__name { font-weight: 700; font-size: 15px; color: #fff; }
.suggest__name mark { background: none; color: var(--red); }
.suggest__cat { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.filterbar input.input--lg { padding: 16px 20px; font-size: 16px; }
.filterbar select { font-weight: 700; font-size: 14px; }
.filterbar select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 12px 8px; }
.filterbar select:hover, .filterbar select:focus-visible { border-color: var(--red); }
.filterbar select option { background: var(--panel); }
.chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; flex-shrink: 0; white-space: nowrap; background: transparent; color: #fff; border: 1px solid var(--line-3); padding: 9px 16px; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.chip:hover { border-color: var(--red); }
.chip.is-on { background: var(--red); border-color: var(--red); }
@media (min-width: 1080px) { .chips { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 1079.98px) { .filterbar { position: static; } }

.count { font-size: 13px; color: var(--muted); margin-bottom: 24px; letter-spacing: .05em; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty--left { text-align: left; padding: 40px 0; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; font-weight: 800; }
.pager .page-numbers { border: 1px solid var(--line-2); color: #fff; padding: 12px 18px; }
.pager a.page-numbers:hover { border-color: var(--red); }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); }
.pager .page-numbers.dots { border-color: transparent; color: var(--muted); padding-inline: 6px; }

/* ==========================================================================
   Single product
   ========================================================================== */
.product { padding-top: 32px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.product__media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product__main { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 45%, var(--red-glow-2), var(--panel) 75%); border-bottom: 3px solid var(--red); overflow: hidden; }
.product__slide, .product__main > img, .product__main .ph { width: 100%; height: 100%; }
.product__slide img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; box-sizing: border-box; }
.product__main .ph { padding: 18%; display: block; }
.product__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.product__zoom img { width: 100%; height: 100%; display: block; object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: #000000ee; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: #0a0a0c99; color: #fff; border: 2px solid var(--line-2); width: 48px; height: 48px; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { border-color: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.product__thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.product__thumb { padding: 0; width: 88px; height: 88px; background: var(--panel); border: 2px solid var(--line-2); }
.product__thumb.is-on { border-color: var(--red); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__info { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.product__title { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 104px); line-height: .98; overflow-wrap: break-word; hyphens: manual; }
.product__desc { font-size: 18px; line-height: 1.65; color: var(--body); max-width: 560px; }
.product__desc > :first-child { margin-top: 0; }
.product__desc > :last-child { margin-bottom: 0; }
.specs { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.specs__item { padding: 20px 12px; text-align: center; }
.specs__item + .specs__item { border-left: 1px solid var(--line-2); }
.specs__v { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.specs__v span { font-size: .4em; margin-left: 4px; color: var(--red); }
.specs__l { font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.video-band { background: var(--panel); padding: 80px var(--gx); }
.video-band__inner { max-width: var(--max); margin: 0 auto; }
.video-band__frame { aspect-ratio: 16 / 9; background: #000; border-bottom: 3px solid var(--red); }
.video-band__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.product ~ .section { padding-top: 80px; padding-bottom: 80px; }

/* ==========================================================================
   Retailers
   ========================================================================== */
.login-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); min-height: calc(100vh - 200px); overflow: hidden; }
.login-split__art { position: relative; padding: clamp(40px, 8vw, 120px) var(--gx); background: radial-gradient(ellipse at 20% 0%, var(--red-glow-1) 0%, var(--panel-deep) 60%, var(--bg) 100%); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; overflow: hidden; }
.login-split__art .h-page { font-size: clamp(64px, 10vw, 160px); line-height: 1.08; }
.login-split__form { padding: clamp(40px, 8vw, 120px) clamp(16px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; background: var(--panel); }
.login-form { display: flex; flex-direction: column; gap: 24px; max-width: 460px; width: 100%; }
.login-form__head { display: flex; align-items: center; gap: 14px; }
.lock { width: 48px; height: 48px; background: var(--red); display: flex; align-items: center; justify-content: center; }
.login-form__title { margin: 0; font-family: var(--display); font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: 1; }
.login-form__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pw { display: flex; border: 1px solid var(--line-3); background: var(--bg); }
.pw.is-error { border-color: var(--red); }
.pw input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 16px 18px; color: #fff; font-size: 16px; font-weight: 500; border-radius: 0; }
.pw:focus-within { outline: 2px solid var(--silver); outline-offset: 2px; }
.pw__toggle { background: transparent; border: 0; color: var(--silver); padding: 0 18px; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pw__toggle:hover { color: var(--red); }
.login-form__error { background: #e5172b22; border: 1px solid var(--red); padding: 12px 16px; font-size: 14px; font-weight: 700; }
.login-form__submit { cursor: pointer; font-family: inherit; }
.login-form__foot { border-top: 1px solid #ffffff2e; padding-top: 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }

.portal-hero { position: relative; padding: clamp(48px, 7vw, 96px) var(--gx) 48px; background: radial-gradient(ellipse at 80% 0%, var(--red-glow-1) 0%, var(--panel-deep) 55%, var(--bg) 100%); overflow: hidden; }
.portal-hero__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.portal-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.portal-hero .lead { margin: 0; }
.block { padding-top: 56px; padding-bottom: 24px; }
.block--last { padding-bottom: 96px; }
.block .h-lg { margin-bottom: 28px; }
.doc-wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 48px); background: var(--panel); border-bottom: 3px solid var(--red); line-height: 1.6; font-size: 17px; transition: background .15s; }
.doc-wide > span:first-child { max-width: 560px; }
.doc-wide:hover { background: var(--red); color: #fff; }
.doc-wide__dl { font-weight: 800; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.grid-tiles--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-tiles--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 180px; padding: 24px; background: var(--panel); border-bottom: 3px solid var(--red); transition: background .15s; }
.tile--info { gap: 48px; min-height: 200px; }
.tile:hover { background: var(--red); color: #fff; }
.tile__kind { font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.tile__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tile__name { min-width: 0; overflow-wrap: break-word; hyphens: auto; font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; }
.tile__icon { font-size: 24px; }
.help-box { padding: 32px; background: var(--red); color: #fff; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 520px; }
.help-box__title { font-family: var(--display); font-weight: 900; font-size: 40px; text-transform: uppercase; line-height: 1; }
.help-box p { margin: 0; line-height: 1.6; }
.prose { color: var(--body); line-height: 1.7; font-size: 17px; max-width: 760px; }
.prose a { color: var(--red); border-bottom: 1px solid currentColor; }
.prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; color: var(--text); }

/* ==========================================================================
   Store finder
   ========================================================================== */
.stores { padding-top: 40px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.stores__list { display: flex; flex-direction: column; gap: 12px; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--red) var(--panel-deep); }
.stores__list .count { margin-bottom: 4px; position: sticky; top: 0; z-index: 1; background: var(--bg); padding-bottom: 8px; }
.stores__list .store { flex-shrink: 0; }
.store { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 22px; background: var(--panel); border-left: 3px solid var(--red); cursor: default; }
.store[data-lat] { cursor: pointer; }
.store[hidden] { display: none; }
.stores__back { color: var(--red); font-weight: 700; }
.product__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.product__cats-l { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.stores-soon { padding-top: 40px; padding-bottom: 96px; }
.stores-soon__panel { max-width: 720px; padding: 36px 32px; background: var(--panel); border-left: 3px solid var(--red); display: flex; flex-direction: column; gap: 16px; }
.stores-soon__h { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 5vw, 48px); text-transform: uppercase; line-height: 1; }
.stores-soon__p { margin: 0; color: var(--body); font-size: 17px; line-height: 1.6; }
.stores-preview { margin: 16px 0 0; padding: 10px 14px; max-width: 720px; font-size: 14px; color: var(--muted); border: 1px dashed var(--line-3); }
.stores-preview a { color: var(--red); font-weight: 700; }
.filterbar__row { display: flex; gap: 12px; align-items: stretch; }
.filterbar__row input[type=search] { min-width: 0; }
.near-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; font: inherit; font-weight: 700; font-size: 15px; white-space: nowrap; background: var(--panel); color: #fff; border: 1px solid var(--line-2); border-radius: 0; cursor: pointer; }
.near-btn:hover { border-color: var(--red); }
.near-btn.is-on { background: var(--red); border-color: var(--red); }
.near-btn:disabled { opacity: .6; cursor: progress; }
.near-btn[hidden] { display: none; }
@media (max-width: 600px) { .filterbar__row { flex-wrap: wrap; } .filterbar__row input[type=search] { flex: 1 1 100%; } .near-btn { flex: 1 1 100%; min-height: 52px; } }
.stores__msg { font-size: 14px; color: var(--muted); }
.stores__msg:empty { display: none; }
.store__dist { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.store.is-on { background: var(--panel-hover); }
.store__info { display: flex; flex-direction: column; gap: 4px; }
.store__name { font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1; }
.store__addr { font-size: 14px; color: var(--muted); }
.store__hours { font-size: 14px; color: var(--body); }
.store .btn { align-self: center; }
.stores__map { position: sticky; top: 24px; min-height: min(70vh, 560px); border: 1px solid var(--line-3); background: radial-gradient(circle at 60% 40%, var(--red-glow-1), var(--panel-deep) 70%); }
.stores__map iframe { display: block; width: 100%; height: min(70vh, 560px); border: 0; filter: grayscale(.4) contrast(1.05) brightness(.9); }
.stores__map { isolation: isolate; }
.stores__canvas { width: 100%; height: min(70vh, 560px); background: var(--panel-deep); }
.stores__map .leaflet-tile-pane { filter: grayscale(.4) contrast(1.05) brightness(.9); }
.stores__reset:has(a[hidden]), .stores__reset a[hidden] { display: none; }
.stores__reset a { width: auto; padding: 0 12px; font: 700 12px/30px var(--body-font, inherit); white-space: nowrap; }
@media (max-width: 1079.98px) { .stores__map { position: static; } }

/* ==========================================================================
   Safety & environment
   ========================================================================== */
.age { display: flex; align-items: center; gap: 16px; background: var(--red); padding: 16px 22px; align-self: flex-start; max-width: 100%; }
.age__n { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; }
.age__t { font-weight: 700; font-size: 16px; line-height: 1.4; }
.tabs { padding-top: 40px; padding-bottom: 80px; }
.tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.tabs__tab { background: transparent; color: #fff; border: 0; padding: 16px 28px; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.tabs__tab:hover { background: var(--red); }
.tabs__tab.is-on { background: var(--red); }
.tabs__panel { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.tabs.is-ready .tabs__panel { margin-bottom: 0; }
.tabs:not(.is-ready) .tabs__bar { display: none; }
.rules { padding: 72px var(--gx); background: var(--panel); }
.rules__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.rules .h-lg { margin: 0; }
.rules .lead { margin: 0; font-size: 17px; }
.authority { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--bg); border-left: 3px solid var(--red); transition: background .15s; }
.authority:hover { background: var(--panel-hover); }
.authority__name { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.authority__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.office { padding: 24px; background: var(--panel); border-bottom: 3px solid var(--red); display: flex; flex-direction: column; gap: 10px; }
.office__city { font-family: var(--display); font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: 1; }
.office__addr { font-size: 15px; line-height: 1.5; color: var(--body); }
.office__link { font-size: 15px; font-weight: 700; word-break: break-word; }
.office__link:hover, .staff__mail:hover, .sales__tel:hover, .sales__mail:hover { color: var(--red); }
.panel-band { background: var(--panel); padding: 80px var(--gx); }
.panel-band__inner { max-width: var(--max); margin: 0 auto; }
.panel-band .eyebrow-red { margin-bottom: 16px; }
.staff { padding: 16px 0; border-top: 1px solid #ffffff2e; display: flex; flex-direction: column; gap: 2px; }
.staff__role { font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.staff__name { font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1.1; }
.staff__mail { font-size: 14px; color: var(--body); }
.sales { border-top: 1px solid var(--line-2); }
.sales__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.sales__area { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1.05; }
.sales__name { font-weight: 500; color: var(--body); }
.sales__tel { font-weight: 600; }
.sales__mail { color: var(--body); font-size: 14px; word-break: break-word; }

/* Placeholder tweaks */
.ph { color: var(--red); }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html:not(.hf-motion) .ticker__track { animation: none; }
	html:not(.hf-motion) * { scroll-behavior: auto !important; transition: none !important; }
}

/* Small screens */
@media (max-width: 600px) {
	.hero { padding-top: 110px; }
	/* Home hero: start the text near the top instead of pinning it to the bottom of a tall screen */
	.hero:not(.hero--sub) { min-height: 0; justify-content: flex-start; padding-top: 150px; padding-bottom: 48px; }
	.countdown__num { font-size: 36px; }
	.section { padding-top: 80px; }
	.story { padding-block: 72px; }
	.cta-band { padding-block: 64px; }
	.specs__item { padding-inline: 4px; }
	.tabs__tab { flex: 1 1 100%; text-align: left; }
}

/* Live filtering */
[data-live="results"].is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* About page */
.hero__mark--about { right: -1vw; top: -20px; font-size: clamp(160px, 30vw, 460px); -webkit-text-stroke-color: #ffffff22; }
.about { padding-top: 72px; padding-bottom: 96px; }
.about__body { max-width: 760px; font-size: 18px; line-height: 1.75; }
.about__body > p:first-child { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; color: var(--text); font-weight: 500; }
.about__body p { margin: 0 0 1.4em; }

/* Logo: high-res source scaled down by the browser (3x of display size) */
.site-header__logo img, .menu-overlay__top img { image-rendering: auto; }

/* Photos: home hero slideshow + about gallery */
.hero__photos { position: absolute; inset: 0; background: var(--bg); }
.hero__photos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0a0a0ccc 0%, #0a0a0c99 45%, #0a0a0cee 100%); }
.hero__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hero-fade 40s infinite; }
.hero__photos img:first-child { opacity: 1; }
@keyframes hero-fade { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
.hero__canvas, .hero__mark, .hero__inner { z-index: 1; }
.about-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding-bottom: 96px; }
.about-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; grid-column: span 2; }
.about-gallery img:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 700px) { .about-gallery { grid-template-columns: 1fr 1fr; } .about-gallery img, .about-gallery img:nth-child(-n+2) { grid-column: span 1; } .about-gallery img:first-child { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { html:not(.hf-motion) .hero__photos img { animation: none; } html:not(.hf-motion) .hero__photos img:not(:first-child) { display: none; } }

/* ==========================================================================
   Force black page background (overrides gradients / tinted section bands)
   ========================================================================== */
:root { color-scheme: dark; }
html, body { background: #000 !important; background-color: #000 !important; }
.hero, .hero--sub, .portal-hero, .login-split__art { background: #000 !important; }
.story, .video-band, .panel-band, .rules, .login-split__form { background: #000 !important; }

/* Nyheter carousel: one product at a time */
.news__nav { display: flex; gap: 8px; }
.news__btn { width: 48px; height: 48px; background: transparent; color: #fff; border: 1px solid var(--line-3); font-size: 22px; line-height: 1; transition: background .15s, border-color .15s; }
.news__btn:hover { background: var(--red); border-color: var(--red); }
.news__track { display: grid; overflow: hidden; touch-action: pan-y; }
.news__slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; opacity: 0; visibility: hidden; transform: translate3d(var(--dx, -80px), 0, 0); transition: opacity .35s ease-in, transform .35s ease-in, visibility 0s .35s; will-change: opacity, transform; }
.news__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease-out .35s, transform .5s ease-out .35s, visibility 0s .35s; }
.news__slide.is-leaving { opacity: 0; visibility: visible; transform: translate3d(calc(var(--dx, -80px) * -1), 0, 0); transition: opacity .35s ease-in, transform .35s ease-in; }
.news__img { position: relative; display: block; aspect-ratio: 1 / 1; max-height: 520px; width: 100%; background: radial-gradient(circle at 50% 45%, var(--red-glow-2), var(--panel) 75%); border-bottom: 3px solid var(--red); overflow: hidden; }
.news__img img, .news__img svg { width: 100%; height: 100%; object-fit: contain; }
.news__info { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.news__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5vw, 64px); line-height: .95; margin: 0; }
.news__desc { margin: 0; color: var(--body); font-size: 17px; line-height: 1.6; max-width: 52ch; }
.news__dots { display: flex; gap: 10px; margin-top: 28px; }
.news__dot { width: 28px; height: 4px; border: 0; padding: 0; background: var(--line-3); }
.news__dot.is-on { background-color: var(--red); }
@media (max-width: 800px) { .news__slide { grid-template-columns: 1fr; } }
/* The site-wide reduced-motion rule kills all transitions; the carousel still fades (no sideways movement). */
@media (prefers-reduced-motion: reduce) {
	html:not(.hf-motion) .news__slide { transition: opacity .35s ease-in, visibility 0s .35s !important; transform: none !important; }
	html:not(.hf-motion) .news__slide.is-active { transition: opacity .5s ease-out .35s, visibility 0s .35s !important; }
	html:not(.hf-motion) .news__slide.is-leaving { transition: opacity .35s ease-in !important; }
}

/* ==========================================================================
   Entrance, scroll-reveal and page-to-page animations
   (reduced-motion visitors get fades only, no movement)
   ========================================================================== */
@keyframes hf-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes hf-fade { from { opacity: 0; } to { opacity: 1; } }

main { animation: hf-fade .6s ease-out both; }
.site-header { animation: hf-fade .7s ease-out both; }
.hero__inner > *, .portal-hero__inner > * { animation: hf-rise .85s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__inner > :nth-child(1), .portal-hero__inner > :nth-child(1) { animation-delay: .10s; }
.hero__inner > :nth-child(2), .portal-hero__inner > :nth-child(2) { animation-delay: .22s; }
.hero__inner > :nth-child(3), .portal-hero__inner > :nth-child(3) { animation-delay: .34s; }
.hero__inner > :nth-child(4), .portal-hero__inner > :nth-child(4) { animation-delay: .46s; }
.hero__inner > :nth-child(5), .portal-hero__inner > :nth-child(5) { animation-delay: .58s; }
.hero__inner > :nth-child(n+6), .portal-hero__inner > :nth-child(n+6) { animation-delay: .70s; }
.hero__mark { animation: hf-fade 1.4s ease-out .2s backwards; }
.product__media { animation: hf-rise .8s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
.product__info { animation: hf-rise .8s cubic-bezier(.2, .7, .2, 1) .25s backwards; }

/* Scroll reveal: classes are added by theme.js, so nothing is hidden without JS. */
.hf-rv { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.hf-rv.is-in { opacity: 1; transform: none; }

/* Leaving a page: fade out before navigating. */
html.hf-leaving body { opacity: 0; transition: opacity .06s linear; }

@media (prefers-reduced-motion: reduce) {
	html:not(.hf-motion) .hero__inner > *, html:not(.hf-motion) .portal-hero__inner > *,
	html:not(.hf-motion) .product__media, html:not(.hf-motion) .product__info { animation-name: hf-fade; }
	html:not(.hf-motion) .hf-rv { transform: none !important; transition: opacity .7s ease-out !important; transition-delay: var(--d, 0s) !important; }
	html:not(.hf-motion).hf-leaving body { transition: opacity .06s linear !important; }
}

/* In-page viewer for PDF and image links */
.viewer { position: fixed; inset: 0; z-index: 1001; display: flex; flex-direction: column; background: #000000f2; padding: 12px; gap: 10px; }
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; align-items: center; gap: 10px; flex: none; }
.viewer__title { flex: 1; min-width: 0; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; background: transparent; color: #fff; border: 1px solid var(--line-3); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.viewer__btn:hover, .viewer__btn:focus-visible { background: var(--red); border-color: var(--red); }
.viewer__btn--x { font-size: 24px; padding: 0; width: 44px; }
.viewer__body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer__body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer__body img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Infinite scroll on the products page (the numbered pager stays for no-JS). */
html.hf-inf .section--list .pager { display: none; }
.infinite { display: flex; justify-content: center; gap: 8px; padding: 48px 0 8px; opacity: 0; transition: opacity .2s; }
.infinite.is-loading { opacity: 1; }
.infinite__dot { width: 10px; height: 10px; background: var(--red); animation: hf-pulse 1s ease-in-out infinite; }
.infinite__dot:nth-child(2) { animation-delay: .15s; }
.infinite__dot:nth-child(3) { animation-delay: .3s; }
@keyframes hf-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.grid-cards .card.is-new { animation: hf-rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }

/* Flygblad (homepage) */
.flyer { padding-top: 80px; padding-bottom: 20px; }
.flyer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 64px); background: var(--panel); border-bottom: 3px solid var(--red); background: radial-gradient(circle at 85% 20%, var(--red-glow-2), var(--panel) 70%) !important; }
.flyer__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 640px; }
.flyer__lead { margin: 0; color: var(--body); font-size: 17px; line-height: 1.6; }

/* Smaller logo on mobile / tablet (where the burger menu is used) */
@media (max-width: 1079.98px) {
	.site-header__logo img { height: 42px; }
	.menu-overlay__top img { height: 38px; }
}
@media (max-width: 600px) {
	.site-header { padding-block: 14px; }
	.site-header__logo img { height: 34px; }
	.menu-overlay__top img { height: 32px; }
}

/* ==========================================================================
   Mobile friendliness
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, select, summary { touch-action: manipulation; }
.news__dot { height: 24px; padding: 10px 0; background-clip: content-box; }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
@supports (height: 100svh) { .hero { min-height: min(100svh, 900px); } .hero--sub { min-height: 0; } }

/* Comfortable tap targets for touch screens */
@media (pointer: coarse) {
	.crumbs a, .link-red, .link-quiet, .link-underline, .office__link, .staff__mail, .sales__tel, .sales__mail, .site-footer a { display: inline-block; padding-block: 11px; }
	.crumbs a { padding-block: 13px; }
	.chip { min-height: 38px; padding-block: 6px; }
	.lang-btn { min-height: 44px; }
}

/* Inputs at 16px so iOS does not zoom the page on focus */
@media (max-width: 800px) {
	input, select, textarea, .filterbar input[type=search], .filterbar select, .pw input { font-size: 16px; }
}

@media (max-width: 600px) {
	.countdown__units { gap: 8px 14px; }
	.countdown__num { font-size: 34px; }
	.countdown__cap, .card__tag { font-size: 12px; }

	/* Category list */
	.cats__name { font-size: clamp(26px, 8.4vw, 40px); }
	.cats__row { padding-block: 16px; }

	/* Product grids: two per row instead of one giant card per screen */
	.grid-cards, .grid-cards--fit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.card__body { padding: 12px 12px 14px; }
	.card__name { font-size: 18px; line-height: 1.05; overflow-wrap: anywhere; }
	.card__arrow { display: none; }
	.card__tag { padding: 5px 8px; letter-spacing: .1em; max-width: 100%; }

	/* Nyheter: shorter slide */
	.news__slide { gap: 20px; align-items: start; }
	.news__img { aspect-ratio: 4 / 3; max-height: 260px; }
	.news__info { gap: 14px; }
	.news__title { font-size: 32px; }
	.news__desc { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	.news__btn { width: 44px; height: 44px; }

	/* Buttons: full width, easy to tap */
	.btn-row > .btn { flex: 1 1 100%; }
	.btn { padding-inline: 20px; }

	/* Store map shorter so it does not trap scrolling */
	.stores__map { min-height: 320px; }
	.stores__map iframe, .stores__canvas { height: 320px; }
	.stores__list { max-height: 420px; overscroll-behavior: auto; }

	/* Flyer block */
	.flyer__inner { padding: 28px 20px; }

	/* Viewer: title on its own row so the buttons fit */
	.viewer { padding: 8px; }
	.viewer__bar { flex-wrap: wrap; }
	.viewer__title { flex: 1 1 100%; order: -1; }
	.viewer__btn { flex: 1; }
	.viewer__btn--x { flex: none; }
}

/* Store finder: map only, store details in a popup (loaded on click). */
.stores--map { display: block; }
.stores--map .stores__map { position: static; min-height: 0; }
.stores--map .stores__canvas, .stores--map .stores__map iframe { height: min(75vh, 640px); }
.store-pop .leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.45; color: #111; min-width: 190px; }
.store-pop__name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.store-pop__addr, .store-pop__hours { color: #444; }
.store-pop__hours { margin-top: 4px; font-size: 13px; }
.store-pop__route { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent) !important; }
@media (max-width: 640px) { .stores--map .stores__canvas, .stores--map .stores__map iframe { height: 70vh; } }
[data-regions] { margin-top: 14px; }
[data-regions] .chip { cursor: pointer; font-family: inherit; }

/* Near-me list (only shown after "Hitta butiker nära mig") */
.near-list { margin-top: 22px; }
.near-list[hidden] { display: none; }
.near-list__h { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.near-list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.near-list__item { background: var(--panel); border: 1px solid var(--line-2); padding: 16px 18px; font-size: 14px; line-height: 1.45; }
.near-list__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.near-list__name { font-weight: 800; font-size: 15px; color: #fff; }
.near-list__km { flex: none; font-weight: 700; color: var(--accent, var(--red)); }
.near-list__addr { color: var(--muted); margin-top: 4px; }
.near-list__hours { color: var(--muted); margin-top: 6px; font-size: 13px; }
.near-list__acts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.near-list__acts a, .near-list__map { font: inherit; font-weight: 700; color: var(--accent, var(--red)); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.near-list__acts a:hover, .near-list__map:hover { text-decoration: underline; }
