/* Woohead — bold brand-contrast demo design.
   Tokens: ink black × electric amber, sharp corners, hard borders.
   Responsive: mobile-first scaling with clamp(); breakpoints at 640/900/1120. */

:root {
	--ink: #0b0b0c;
	--ink-soft: #17181a;
	--amber: #ffd60a;
	--amber-dim: #e6c200;
	--bg: #ffffff;
	--paper: #f7f7f5;
	--text: #101112;
	--muted: #6b7280;
	--border: #101112;
	--border-soft: #d9d9d4;
	--radius: 0px;
	--font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow-hover: 6px 6px 0 0 var(--amber);
	--wrap: 1140px;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}
/* footer always bottom — main expands even on short pages */
main.wrap { flex: 1 1 auto; min-width: 0; width: 100%; }
.site-footer { margin-top: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
.muted { color: var(--muted); }

/* ---------- header (two-tone band, sharp) ---------- */
.site-header { background: var(--ink); color: #fff; border-bottom: 4px solid var(--amber); position: sticky; top: 0; z-index: 40; }
.header-inner {
	display: flex; align-items: center; gap: 12px 18px;
	padding: 10px 16px; flex-wrap: wrap;
}
.brand { font-weight: 900; font-size: clamp(1.15rem, 4vw, 1.35rem); letter-spacing: -0.5px; text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: ""; display: inline-block; width: 13px; height: 13px; background: var(--amber); }
.brand:has(.brand-logo)::before { display: none; }

.cat-nav {
	display: flex; gap: 2px; flex-wrap: wrap; align-items: center;
	flex: 1 1 auto; min-width: 0;
}
.cat-nav a {
	color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600;
	padding: 7px 10px; border: 1px solid transparent; white-space: nowrap;
}
.cat-nav a:hover { background: var(--amber); color: var(--ink); }
.cart-badge { background: var(--ink); color: var(--amber); min-width: 24px; text-align: center; padding: 1px 8px; font-weight: 800; }

/* ---------- hamburger + mobile menu ---------- */
.hamburger {
	display: none; flex-direction: column; gap: 5px; justify-content: center;
	width: 46px; height: 46px; padding: 10px;
	background: transparent; border: 2px solid transparent; cursor: pointer; flex: none;
}
.hamburger span { display: block; height: 3px; background: #fff; width: 100%; transition: transform 0.15s ease, opacity 0.15s ease; }
.hamburger:hover span { background: var(--amber); }
.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* tablet/mobile: swap inline nav for hamburger */
@media (max-width: 899px) {
	.hamburger { display: flex; }
	.cat-nav { display: none; }
	.cart-trigger { padding: 8px 10px; }

	/* brand left, hamburger + cart grouped top-right; wrap tillatt (søkefelt får egen rad) */
	.header-inner {
		flex-wrap: wrap;
		justify-content: flex-start;
		min-height: 58px;
		gap: 10px;
		padding: 8px 14px 8px 16px;
	}
	.brand {
		margin-right: auto;
		margin-left: 2px;
	}
	.cart-trigger {
		order: 2;
		padding: 9px 12px;
		gap: 0;
	}
	.cart-trigger__text { display: none; }   /* icon-style trigger: badge only */
	.cart-trigger .cart-badge { min-width: 22px; padding: 2px 7px; }
	.hamburger { order: 3; width: 44px; height: 44px; padding: 9px; }
}
body.mm-lock { overflow: hidden; }

/* ---------- drawer (sidecart, right) ---------- */
.wc-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
	width: min(420px, 100vw);
	background: #fff; border-left: 2px solid var(--ink);
	transform: translateX(105%);
	transition: transform 0.22s ease;
	display: flex; flex-direction: column;
	box-shadow: -12px 0 0 0 rgba(11, 11, 12, 0.08);
}
.wc-drawer.open { transform: translateX(0); }
.wc-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--ink); color: #fff;
	border-bottom: 4px solid var(--amber);
	padding: 14px 18px;
}
.wc-drawer__title { font-weight: 900; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 10px; }
.wc-drawer__title .cart-badge { background: var(--amber); color: var(--ink); }
.wc-drawer__close {
	background: none; border: 2px solid var(--amber); color: var(--amber);
	width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; font-weight: 900;
}
.wc-drawer__close:hover { background: var(--amber); color: var(--ink); }
.wc-drawer__body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.wc-drawer__foot { border-top: 2px solid var(--ink); padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
.wc-drawer__foot .cart-actions { flex-direction: column; align-items: stretch; text-align: center; padding-bottom: 4px; }
.wc-drawer__foot .cart-total-row--drawer { border-top: 0; font-size: 1.05rem; padding: 2px 0 10px; }
.wc-drawer .cart-line--drawer { grid-template-columns: 60px 1fr auto; grid-auto-rows: auto; }
.wc-drawer .cart-line--drawer .cart-line-img { width: 60px; height: 60px; }
.wc-drawer .cart-line--drawer .cart-line-total { display: none; }
.wc-drawer .cart-line--drawer .cart-line-x { grid-row: 1; grid-column: 3; }
.wc-backdrop {
	position: fixed; inset: 0; z-index: 75;
	background: rgba(11, 11, 12, 0.45);
}
body.ui-lock { overflow: hidden; }

/* ---------- mobile menu overlay ---------- */
.mm-overlay {
	position: fixed; inset: 0; z-index: 70;
	background: rgba(246, 249, 251, 0.98);
	display: flex; flex-direction: column;
}
.mm-overlay[hidden] { display: none !important; }
.mm-topbar {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--ink); color: #fff; padding: 12px 16px; border-bottom: 4px solid var(--amber);
}
.mm-topbar .brand { font-size: 1.1rem; color: #fff; }
.mm-close {
	background: none; border: 2px solid var(--amber); color: var(--amber);
	width: 42px; height: 42px; font-size: 1.05rem; cursor: pointer; font-weight: 900;
}
.mm-close:hover { background: var(--amber); color: var(--ink); }
.mm-inner { flex: 1; overflow-y: auto; padding: 8px 0 20px; -webkit-overflow-scrolling: touch; }
.mm-item { border-bottom: 2px solid var(--border-soft); }
.mm-row { display: flex; align-items: center; }
.mm-link {
	flex: 1; display: block; padding: 14px 20px 14px 24px;
	font-weight: 800; font-size: 1.02rem; text-decoration: none; color: var(--ink);
	text-transform: uppercase; letter-spacing: -0.2px;
}
.mm-link:hover { background: var(--amber); }
.mm-acc {
	background: none; border: 0; border-left: 2px solid var(--border-soft);
	width: 54px; height: 52px; cursor: pointer; color: var(--ink);
}
.mm-acc-x { font-size: 1.3rem; font-weight: 300; }
.mm-acc[aria-expanded="true"] .mm-acc-x { transform: rotate(45deg); display: inline-block; }
.mm-acc-panel { padding: 4px 0 12px; background: var(--paper); }
.mm-sublink { display: flex; justify-content: space-between; padding: 9px 20px 9px 42px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.mm-sublink:hover { color: var(--ink); background: var(--amber); }
.mm-count { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.mm-foot { padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--border-soft); }
.mm-foot .checkout-btn { display: inline-block; width: 100%; text-align: center; }

/* header alignment: cart at the right always */
.cart-trigger {
	margin-left: auto;
	text-decoration: none; font-weight: 900; font-size: 0.9rem;
	background: var(--amber); color: var(--ink); border: 2px solid var(--ink);
	padding: 9px 14px; display: inline-flex; gap: 8px; align-items: center;
	cursor: pointer; white-space: nowrap; flex: none;
}
.cart-trigger:hover { background: #fff; color: var(--ink); }
.cart-trigger--has .cart-badge { background: var(--ink); color: var(--amber); }

/* desktop: single-row header — nav never wraps, cart on the logo's line */
@media (min-width: 900px) {
	/* widen the header band so all category items fit */
	.site-header .wrap { max-width: 1440px; }
	.header-inner { flex-wrap: nowrap; gap: 10px 14px; }
	.cat-nav {
		flex: 1 1 auto;
		min-width: 0;
		flex-wrap: nowrap;          /* never two rows */
		justify-content: flex-end;  /* hug the cart when slack */
		overflow-x: auto;           /* last-resort slide only */
		scrollbar-width: none;
		gap: 4px;
	}
	.cat-nav::-webkit-scrollbar { display: none; }
	.cat-nav a {
		white-space: nowrap;
		font-size: 0.78rem;         /* smaller items → all fit */
		padding: 6px 7px;
		letter-spacing: -0.2px;
		text-transform: uppercase;
	}
	.cart-trigger { flex: none; margin-left: auto; padding: 9px 14px; font-size: 0.9rem; }
	.brand { flex: none; font-size: 1.3rem; }
}

/* ---------- demo strip ---------- */
.demo-strip {
	background: var(--paper); border-bottom: 1px solid var(--border-soft);
	font-size: clamp(0.68rem, 2vw, 0.78rem); color: var(--muted);
	padding: 5px 0; letter-spacing: 0.02em; text-align: center;
}

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 5vw, 40px) 0 8px; }
.hero .demo-kicker {
	display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
	font-size: clamp(0.66rem, 2vw, 0.78rem); font-weight: 800; color: var(--ink);
	background: var(--amber); padding: 4px 10px; margin-bottom: 12px;
}
.hero h1 {
	font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.05; letter-spacing: -1px;
	margin: 0 0 6px; font-weight: 900; text-transform: uppercase;
}

/* ---------- chips ---------- */
.chips {
	display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0 24px;
}
.chip {
	border: 2px solid var(--ink); background: #fff; padding: 9px 14px; font-weight: 700;
	font-size: 0.86rem; text-decoration: none; white-space: nowrap; transition: all 0.12s ease;
}
.chip span { color: var(--muted); font-weight: 600; margin-left: 4px; }
/* chip-hover: offset-skygge kun i brutale stiler (skygge-valget styrer)
   soft/ingen skygge: bare fargebytte */
.chip:hover { background: var(--amber); box-shadow: var(--chip-hover-shadow, none); transform: var(--chip-hover-lift, none); }

/* mobile-only chips: slide strip */
@media (max-width: 640px) {
	.chips {
		flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
		padding: 12px 16px 18px; margin: 0 -16px; -webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.chips::-webkit-scrollbar { display: none; }
	.chip { scroll-snap-align: start; flex: 0 0 auto; }
}

/* ---------- section heading ---------- */
.section-head {
	display: flex; align-items: baseline; gap: 14px; margin: 6px 0 16px;
	border-bottom: 4px solid var(--ink); padding-bottom: 8px;
}
.section-head h2 { margin: 0; font-size: clamp(1rem, 3.6vw, 1.25rem); text-transform: uppercase; font-weight: 900; letter-spacing: -0.3px; }

/* ---------- grid + cards ----------
   mobile: 2 columns · tablet: 3–4 · desktop: auto-fill */
.grid {
	display: grid; gap: 16px; padding-bottom: 40px;
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 32px; } }

.card {
	border: 2px solid var(--ink); background: #fff; padding: 0 0 12px;
	display: flex; flex-direction: column; transition: all 0.12s ease; min-width: 0;
}
@media (hover: hover) and (min-width: 900px) {
	.card:hover { box-shadow: var(--shadow-hover); transform: translate(-3px, -3px); }
}
.card-link { text-decoration: none; display: block; }
.card-media {
	width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--paper);
	border-bottom: 2px solid var(--ink); display: block; padding: 10px;
}
.card-media--ph {
	display: grid; place-items: center; position: relative; overflow: hidden; text-align: center;
	background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, #efefeb 12px, #efefeb 24px);
	font-size: 0.8rem; font-weight: 900; color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
	padding: 12px; line-height: 1.25;
}
.card-name {
	font-size: 0.92rem; font-weight: 700; margin: clamp(8px, 2.4vw, 12px) 12px 8px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;
	min-height: 2.6em;
}
.card-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 0 12px; }
.card-price { font-weight: 900; font-size: 1rem; white-space: nowrap; }
.price--regular { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 0.8rem; margin-right: 6px; }
.badge { font-size: 0.66rem; font-weight: 800; padding: 2px 7px; text-transform: uppercase; letter-spacing: 0.06em; background: #eef6ff; color: #0369a1; border: 1px solid #b9dcff; }
.badge--out { background: #fff0f0; color: #b91c1c; border-color: #f5c2c2; }
.buy {
	margin: 10px 12px 0; border: 2px solid var(--ink); background: var(--amber); color: var(--ink);
	font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(0.76rem, 2.6vw, 0.88rem);
	padding: 11px 10px; cursor: pointer; width: calc(100% - 24px); min-height: 44px; /* tap target */
	transition: box-shadow 0.12s ease;
}
@media (max-width: 380px) { .buy { letter-spacing: 0; padding: 11px 8px; } }
.buy:hover:not([disabled]) { background: #fff; }
.buy[disabled] { background: var(--paper); color: var(--muted); cursor: pointer; }
.buy--big { font-size: 1rem; padding: 15px; width: 100%; }

/* ---------- out-of-stock state strip (replaces fake disabled buttons) ---------- */
.oos-strip {
	display: inline-block; border: 2px dashed #b91c1c; color: #b91c1c; background: #fff0f0;
	font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
	padding: 10px 16px; margin: 10px 12px 0;
}
.oos-strip--big { margin: 4px 0; padding: 14px 20px; font-size: 0.95rem; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
	padding: 0; margin: clamp(12px, 3vw, 18px) 0 2px; font-size: 0.8rem;
	display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs span { color: var(--muted); }

/* ---------- checkout island (our page, Store API engine) ---------- */
.co-grid { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(280px, 0.95fr); gap: 26px; padding: 18px 0 48px; }
@media (max-width: 899px) { .co-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; } }
.co-pane { border: 2px solid var(--ink); background: #fff; padding: 18px 18px 20px; margin-bottom: 16px; }
.co-pane h2 { margin: 0 0 14px; font-size: 1.05rem; text-transform: uppercase; font-weight: 900; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.co-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-field label { font-weight: 700; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.co-field input, .co-field select {
	border: 2px solid var(--ink); border-radius: 0; padding: 11px 12px;
	font-size: max(16px, 1em); font-family: var(--font); background: #fff; color: var(--text); width: 100%;
}
.co-field input:focus, .co-field select:focus { outline: 3px solid var(--amber); outline-offset: 0; }
.co-same { margin: 14px 0 10px; font-weight: 700; font-size: 0.92rem; }
.co-same input { accent-color: var(--ink); width: 17px; height: 17px; }
.co-coupon-row { display: flex; gap: 10px; }
.co-coupon-row input { flex: 1; border: 2px solid var(--ink); padding: 11px 12px; font-size: max(16px, 1em); }
.co-radio { border: 2px solid var(--ink); margin-bottom: 10px; }
.co-radio label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.co-radio input { accent-color: var(--ink); width: 17px; height: 17px; }
.co-radio:hover { background: var(--paper); }
.co-summary h2 { border-bottom: 4px solid var(--ink); padding-bottom: 6px; }
.co-lines { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.co-line-img { width: 52px; height: 52px; object-fit: contain; background: var(--paper); border: 1px solid var(--border-soft); padding: 3px; }
.co-line-img--ph { display: grid; place-items: center; color: var(--muted); font-weight: 900; }
.co-line-name { font-weight: 600; }
@media (max-width: 420px) { .co-line { grid-template-columns: 44px 1fr auto; } .co-line .muted { display: none; } }
.co-tot-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.95rem; color: var(--ink-soft, #17181a); }
.co-tot-final { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 12px; font-size: 1.15rem; font-weight: 900; }
.co-fine { font-size: 0.75rem; margin: 10px 0 0; }
#co-place { margin-top: 14px; background: var(--ink); color: var(--amber); border: 2px solid var(--ink); font-weight: 900; padding: 14px; width: 100%; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
#co-place:hover:not(:disabled) { background: var(--amber); color: var(--ink); }
#co-place:disabled { opacity: 0.55; cursor: wait; }
.co-err { border: 2px dashed #b91c1c; background: #fff0f0; color: #b91c1c; font-weight: 700; padding: 12px 16px; margin-bottom: 14px; }

/* ---------- product page ---------- */
.product-page { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 18px 0 44px; }
@media (min-width: 900px) {
	.product-page { grid-template-columns: minmax(280px, 500px) minmax(300px, 1fr); gap: 34px; padding: 20px 0 52px; }
}
.p-media { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; align-items: flex-start; }
.p-media img {
	flex: none;
	height: clamp(230px, 58vw, 420px);           /* natural shape: fixed height, auto width */
	width: auto; max-width: 86vw; object-fit: contain;
	background: var(--paper); padding: 12px; scroll-snap-align: start;
}
@media (min-width: 900px) {
	.p-media { flex-direction: column; margin: 0; padding: 0; }
	.p-media img {
		width: auto; max-width: 100%; height: auto;   /* natural shape, no tall letterbox box */
		max-height: 660px;                            /* cap so a landscape hero never towers */
		flex: none; margin-inline: auto;
	}
}
.p-info h1 { font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.15; margin: 4px 0 12px; font-weight: 900; letter-spacing: -0.4px; }
.p-buy { margin: 16px 0; }
.p-attrs { margin-top: 22px; border: 1px solid var(--border-soft, #e5e7eb); border-radius: var(--radius); overflow: hidden; background: #fff; }
.p-attrs .attr-head { display: block; background: var(--paper); padding: 11px 14px; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); border-bottom: 1px solid var(--border-soft); border-radius: 0 !important; }
.attr { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; font-size: 0.9rem; border-bottom: 1px solid #f1f1f3; }
.attr:nth-child(even) { background: var(--paper, #fafafa); }
.attr:last-child { border-bottom: 0; }
.attr-label { color: var(--muted); font-weight: 600; flex: none; }
.attr span:not(.attr-label) { text-align: right; font-weight: 600; }
.p-desc { margin-top: 4px; font-size: 0.97rem; line-height: 1.65; overflow-wrap: anywhere; }
.p-desc img { max-width: 100%; height: auto; border: 2px solid var(--border-soft); }
.p-desc h2, .p-desc h3 { text-transform: uppercase; }

/* mobile sticky buy bar */
@media (max-width: 899px) {
	.buy-sticky {
		position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
		background: #fff; border-top: 3px solid var(--ink);
		display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	}
	.buy-sticky .sb-price { font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
	.buy-sticky .buy { margin: 0; flex: 1; }
	body { padding-bottom: 86px; } /* room for the sticky bar + toast */
}
@media (min-width: 900px) { .buy-sticky { display: none; } }

/* forms (iOS zoom guard) */
input, select, textarea { font-size: max(16px, 1em); }

/* ---------- cart ---------- */
.cart-lines { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.cart-line {
	display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; align-items: center;
	border: 2px solid var(--ink); padding: 12px; background: #fff;
}
.cart-line-img { grid-row: 1 / span 2; width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border-soft); background: var(--paper); padding: 4px; }
.cart-line-name { text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.cart-line-qty { display: flex; align-items: center; gap: 10px; font-weight: 800; justify-self: start; }
.cart-line-total { font-weight: 900; justify-self: start; }
.cart-line-x { justify-self: end; grid-row: 1; grid-column: 2; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.cart-line-price { display: none; }
@media (min-width: 720px) {
	.cart-line { grid-template-columns: 72px 1fr 105px auto 105px auto; }
	.cart-line-img { grid-row: 1; width: 72px; height: 72px; }
	.cart-line-price { display: block; font-weight: 600; color: var(--muted); }
}
.qty-btn { border: 2px solid var(--ink); background: #fff; width: 34px; height: 34px; font-weight: 900; cursor: pointer; }
.qty-btn:hover { background: var(--amber); }
.cart-total-row {
	display: flex; justify-content: space-between; align-items: baseline;
	border-top: 4px solid var(--ink); margin-top: 18px; padding: 14px 4px 16px;
	font-size: 1.2rem; font-weight: 800;
}
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; padding-bottom: 40px; }
.cart-actions .ghost, .cart-actions .checkout-btn { flex: 1 1 auto; min-height: 48px; }
.checkout-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ink); color: var(--amber); padding: 14px 26px; text-align: center;
	text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; border: 2px solid var(--ink);
}
.checkout-btn:hover { background: var(--amber); color: var(--ink); }
.ghost { background: #fff; border: 2px solid var(--ink); padding: 12px 18px; cursor: pointer; font-weight: 700; color: var(--ink); }
.ghost:hover { background: var(--paper); }

/* ---------- cart island extras ---------- */
.cart-toast {
	position: fixed; left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); max-width: 480px; margin: 0 auto;
	background: var(--ink); color: var(--amber); font-weight: 800; text-align: center;
	padding: 12px 18px; z-index: 50; border: 2px solid var(--amber);
}

/* ---------- footer ---------- */
.site-footer {
	background: var(--ink); color: #c9c9c9; margin-top: 40px; border-top: 4px solid var(--amber);
}
.site-footer .wrap {
	display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 22px; font-size: 0.8rem; text-align: center;
}
@media (min-width: 720px) {
	.site-footer .wrap { flex-direction: row; justify-content: space-between; padding: 22px 20px 26px; text-align: left; }
}
.site-footer strong { color: #fff; }
.site-footer a { color: var(--amber); text-decoration: none; }

/* ---------- checkout shim parity (mobile-safe paddings) ---------- */
@media (max-width: 640px) {
	.wp-block-woocommerce-checkout { padding: 16px 12px 40px !important; }
}
/* ---------- account ---------- */
.co-fields--single { grid-template-columns: 1fr; }
.co-order { display: block; border: 2px solid var(--border-soft, #d9d9d4); padding: 12px 14px; text-decoration: none; color: inherit; margin-bottom: 12px; }
.co-order:hover { border-color: var(--ink); }
.co-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.co-line-list { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
/* ---------- lightbox (click-to-zoom) ---------- */
#wh-lightbox {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(11, 11, 12, 0.92);
	display: flex; align-items: center; gap: 10px;
}
#wh-lightbox[hidden] { display: none !important; }
.lb-stage { margin: 0; padding: 0; flex: 1; height: 100%; overflow: auto; display: grid; place-items: center; cursor: zoom-in; }
.lb-stage img { max-width: calc(100vw - 140px); max-height: calc(100svh - 80px); width: auto; height: auto; border: 2px solid var(--amber); background: var(--paper); padding: 10px; }
.lb-stage img.zoomed { max-width: none; max-height: none; width: max-content; cursor: zoom-out; }
.lb-close, .lb-prev, .lb-next {
	flex: none; width: 48px; height: 48px; border: 2px solid var(--amber);
	background: var(--ink); color: var(--amber); font-size: 1.1rem; font-weight: 900; cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--amber); color: var(--ink); }
.lb-count { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }
.p-media img { cursor: zoom-in; }
.p-gallery-hint { font-size: 0.8rem; margin: 6px 0; }

/* ---------- category attribute filter ---------- */
.cat-filter { margin-bottom: 4px; position: relative; }
.co-pane--toolbar.compact { padding: 0 0 10px; border: 0; background: transparent; }
.co-filter-btn {
	background: #fff; color: var(--ink); border: 2px solid var(--ink);
	font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem;
	padding: 10px 14px; cursor: pointer;
}
.co-filter-btn:hover { background: var(--amber); }

.attr-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
	width: min(380px, 92vw);
	background: #fff; border-right: 2px solid var(--ink);
	transform: translateX(-105%);
	transition: transform 0.22s ease;
	display: flex; flex-direction: column;
}
.attr-drawer.open { transform: translateX(0); }
.attr-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--ink); color: #fff;
	border-bottom: 4px solid var(--amber);
	padding: 14px 18px;
}
.attr-drawer__title { font-weight: 900; letter-spacing: 0.02em; }
.attr-drawer__body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
.attr-drawer__foot { border-top: 2px solid var(--ink); padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attr-drawer__body .attr-group { margin: 0; border-bottom: 1px solid var(--border-soft); padding-bottom: 10px; }
.attr-drawer__body .attr-chips { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
/* ---------- category head row (breadcrumbs left, FILTRER right) ---------- */
.cat-headrow {
	display: flex; flex-wrap: wrap; gap: 10px 16px;
	align-items: center; justify-content: space-between;
	margin-top: clamp(12px, 3vw, 18px);
}
.cat-headrow .breadcrumbs { margin: 0; padding: 0; }
.cat-headrow .cat-filter-bar { margin-bottom: 0; }

.co-filter-btn {
	background: #fff; color: var(--ink); border: 2px solid var(--ink);
	font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem;
	padding: 10px 14px; cursor: pointer;
}
.co-filter-btn:hover { background: var(--amber); }
.attr-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; cursor: pointer; font-weight: 600; padding: 2px 2px; }
.attr-chip input { accent-color: var(--ink); width: 14px; height: 14px; }
.attr-chip-label { min-width: 0; }
.attr-more { background: none; border: 0; color: var(--muted); font-size: 0.75rem; cursor: pointer; padding: 1px 2px 3px; text-align: left; }
.attr-more:hover { color: var(--ink); }
.attr-group.compact { display: flex; flex-direction: column; gap: 2px; }
.attr-group-name { font-weight: 900; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
.attr-foot { padding: 6px 0 4px; }
.card-slot--hidden { display: none; }
.attr-head { font-weight: 900; text-transform: uppercase; color: var(--text); }
/* ---------- child-category chips: ALWAYS 4/3/2 columns ---------- */
.cat-children-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 10px 0 18px;
}
@media (max-width: 899px) { .cat-children-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat-children-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.cat-children-grid .chip {
	display: flex; align-items: center; justify-content: space-between;
	gap: 6px; margin: 0; white-space: normal; text-align: left;
}


/* Dintero embedded checkout (in-page) */
.co-dintero-shell { border: 2px solid var(--ink); padding: 14px; margin-top: 12px; background: #fff; }
.co-dintero-note { margin: 0 0 10px; font-weight: 700; }
#co-dintero-host { min-height: 480px; }
#co-dintero-host iframe { width: 100%; border: 0; min-height: 480px; }
.co-hint { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }

/* checkout steps (idiot-sikker trinn-flow) */
.co-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co-step-head h2 { margin: 0; }
.co-step-num { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; flex: none; background: var(--amber); color: var(--ink); }
.co-step-locked .co-step-num { background: #fff; color: var(--muted); border-color: var(--muted); }
.co-step-locked .co-step-head h2 { color: var(--muted); }
.co-step-done .co-step-num { background: var(--ink); color: #fff; }
.co-step-locked-hint { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.co-edit { margin-left: auto; font-size: 0.78rem; padding: 6px 10px; background: #fff; border: 2px solid var(--ink); cursor: pointer; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.co-edit:hover { background: var(--amber); }
.co-next { margin-top: 14px; }

/* rabatt i sidekassen (drawer) */
/* rabattkode i side-cart (drawer) og handlekurv-side */
.cart-coupon { display: flex; gap: 0; margin: 12px 0 2px; border: 2px solid var(--ink); background: #fff; position: relative; align-items: stretch; }
.cart-coupon::before { content: 'RABATTKODE'; position: absolute; top: -9px; left: 10px; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; background: #fff; padding: 0 5px; color: var(--ink); }
.cart-coupon .wh-coupon-code { flex: 1; border: 0; padding: 12px 12px; font-size: max(16px, 1em); font-family: var(--font); background: #fff; color: var(--text); min-width: 0; border-right: 2px solid var(--ink); }
.cart-coupon .wh-coupon-code:focus { outline: 3px solid var(--amber); outline-offset: -3px; }
.cart-coupon .wh-coupon-btn { flex: none; border: 0; background: var(--paper); color: var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; padding: 12px 16px; cursor: pointer; }
.cart-coupon .wh-coupon-btn:hover:not([disabled]) { background: var(--amber); }
.cart-coupon .wh-coupon-btn[disabled] { opacity: 0.6; cursor: wait; }
.wc-drawer__foot .cart-coupon { margin: 12px 0 8px; }


/* footer på anlegget */
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }


/* tema-kjede: logo + side-lenker i footer + enkel side */
.brand-logo { height: 24px; width: auto; display: block; }
.brand { display: inline-flex; align-items: center; }
.foot-pages { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 0.9rem; }
.foot-pages a { color: var(--muted); }
.foot-pages a:hover { color: var(--ink); }
.static-page { max-width: 760px; }
.static-page h1 { font-size: clamp(1.2rem, 4vw, 1.6rem); text-transform: uppercase; letter-spacing: -0.3px; margin: 18px 0 14px; }
.static-body { line-height: 1.65; color: var(--text); }
.static-body img { max-width: 100%; height: auto; }
.static-body a { color: var(--ink); text-decoration: underline; }

/* mobil: kategori-chips som horisontal scroller (tar ikke halve skjermen) */
@media (max-width: 640px) {
	.chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.chip { flex: none; font-size: 0.78rem; padding: 8px 11px; white-space: nowrap; }
	.hero h1 { font-size: clamp(1.45rem, 7vw, 2.5rem); }
	.grid { gap: 10px; }
	.card-name { font-size: 0.82rem; }
	.card-price { font-size: 0.92rem; }
}

/* kampanjebannere (hjem) */
.campaign { display: block; position: relative; overflow: hidden; border: 2px solid var(--ink); background: var(--paper); margin: 0 0 16px; text-decoration: none; color: var(--text); }
.campaign-img { display: block; width: 100%; height: clamp(160px, 30vw, 340px); object-fit: cover; }
.campaign-img--ph { background: var(--ink); }
.campaign-body { position: absolute; inset: auto 0 0 0; padding: 14px 18px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%); color: #fff; }
.campaign-title { margin: 0 0 2px; font-size: clamp(1.05rem, 3.4vw, 1.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.3px; }
.campaign-sub { margin: 0 0 8px; font-size: 0.9rem; opacity: 0.92; }
.campaign-btn { display: inline-flex; background: var(--amber); color: var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; padding: 9px 14px; }
.campaign:hover .campaign-btn { background: #fff; }

/* handlekurv-ikon i headeren */
.cart-trigger { display: inline-flex; align-items: center; gap: 8px; }
.cart-icon { display: block; flex: none; }
@media (max-width: 640px) { .cart-trigger__text { display: none; } }

/* PDP galleri: hovedbilde + thumbs (desktop) · swipe + dots (mobil) */
.p-gallery { min-width: 0; }
@media (min-width: 900px) {
	.p-media { overflow: visible; margin: 0; padding: 0; }
	.p-media img.is-active { min-width: 400px; }
	.p-media img { display: none; }
	.p-media img.is-active { display: block; }
	.p-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
	.p-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--border-soft, #e5e7eb); background: #fff; cursor: pointer; overflow: hidden; }
	.p-thumb.is-active { border-color: var(--ink); }
	.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.p-dots { display: none; }
}
@media (max-width: 899px) {
	.p-thumbs { display: none; }
	.p-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 0; }
	.p-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--border-soft, #d1d5db); padding: 0; cursor: pointer; }
	.p-dot.active { background: var(--ink); }
}

/* komponent-bygger: deler */
.cmp-announce { background: var(--ink); color: #fff; text-align: center; padding: 8px 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.cmp-announce a { color: inherit; text-decoration: none; }
.cmp-announce a:hover { text-decoration: underline; }
.cmp-hero { padding: clamp(26px, 6vw, 56px) 22px; border-radius: var(--radius); }
.cmp-hero-sub { margin: 8px 0 0; font-size: 1rem; opacity: 0.9; }
.cmp-hero .cmp-hero-sub { color: inherit; }
.cmp-hero-btn { display: inline-block; margin-top: 14px; width: auto; padding: 12px 22px; text-decoration: none; }
.cmp-usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cmp-usp-item { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--border-soft, #e5e7eb); border-radius: var(--radius); padding: 12px 14px; font-weight: 700; font-size: 0.9rem; }
.cmp-usp-icon { font-size: 1.3rem; }
.cmp-text { max-width: 760px; margin-bottom: 16px; }
.cmp-text h2 { margin: 0 0 8px; }
.cmp-divider { border: 0; border-top: 2px solid var(--border-soft, #e5e7eb); margin: 24px 0; }

/* søk-overlay */
.search-trigger { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.search-trigger:hover { opacity: 0.8; }
.wh-search { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,12,0.55); display: flex; flex-direction: column; align-items: center; padding: 9vh 16px 16px; }
.wh-search-close { position: absolute; top: 18px; right: 18px; background: #fff; border: 2px solid var(--ink); width: 38px; height: 38px; font-size: 1rem; cursor: pointer; }
.wh-search-box { display: flex; align-items: center; gap: 10px; width: min(680px, 100%); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 16px; }
.wh-search-box input { flex: 1; border: 0; outline: 0; font-size: max(16px, 1em); font-family: var(--font); }
.wh-search-results { width: min(680px, 100%); background: #fff; border: 1px solid var(--border-soft, #e5e7eb); border-radius: var(--radius); margin-top: 8px; max-height: 62vh; overflow-y: auto; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.wh-search-hit { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; text-decoration: none; color: var(--text); border-bottom: 1px solid #f1f1f3; }
.wh-search-hit:hover { background: var(--paper); }
.wh-search-hit img { width: 48px; height: 48px; object-fit: contain; }
.wh-search-hit-ph { width: 48px; height: 48px; background: var(--paper); display: inline-block; }
.wh-search-hit-name { font-weight: 700; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-search-hit-price { color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.wh-search-all { display: block; padding: 10px 12px; font-weight: 800; text-align: center; color: var(--ink); text-decoration: none; }
.wh-search-status { padding: 18px 12px; text-align: center; color: var(--muted); }

/* samtykke-banner (ePrivacy) */
.wh-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 14px 44px rgba(0,0,0,.22); max-width: 640px; margin: 0 auto; }
.wh-consent-body { padding: 14px 16px; }
.wh-consent-body p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.5; }
.wh-consent-body a { color: var(--ink); }
.wh-consent-actions { display: flex; gap: 10px; }
.wh-consent-actions .buy { width: auto; padding: 10px 18px; }
.wh-consent-actions .ghost { padding: 10px 14px; }

/* nyhetsbrev / CTA-komponent */
.cmp-news { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 18px; }
.cmp-news-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.cmp-news h2 { margin: 0 0 6px; }
.cmp-news-sub { margin: 0 0 14px; color: var(--muted); }
.cmp-news-form { display: flex; gap: 8px; }
.cmp-news-form input[type=email] { flex: 1; border: 2px solid var(--ink); border-radius: var(--radius); padding: 11px 12px; font-size: max(16px, 1em); min-width: 0; }
.cmp-news-form .buy { width: auto; padding: 11px 20px; }
.cmp-news-note { margin: 8px 0 0; font-size: 0.78rem; color: var(--muted); }
.cmp-cat-link { margin-top: 12px; }
.cmp-cat-link a { font-weight: 800; color: var(--ink); text-decoration: none; }
.cmp-cat-link a:hover { text-decoration: underline; }
@media (max-width: 640px) { .cmp-news-form { flex-direction: column; } }

/* hidden-attributt slår alltid gjennom for faste overlays */
.wh-search[hidden] { display: none !important; }
.wh-consent[hidden] { display: none !important; }

/* mobil-overflow-guard: ingen horisontal side-scroll, alt wraper */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
.p-desc, .static-body, .cmp-text, .attr, .card-name { overflow-wrap: anywhere; }
.p-desc img, .static-body img, .cmp-text img { max-width: 100%; height: auto; }
.mm-overlay { max-width: 100vw; }
.mm-link, .mm-sublink, .mm-count { overflow-wrap: anywhere; }
.mm-inner, .mm-topbar { max-width: 100%; }

/* paginering: sentrert knapperekke */
.cat-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 12px; }
.cat-pages .page-chip {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 2px solid var(--ink); background: #fff; color: var(--ink);
	font-weight: 800; text-decoration: none; border-radius: var(--radius);
}
.cat-pages .page-chip:hover { background: var(--amber); }
.cat-pages .page-chip.current { background: var(--ink); color: var(--amber); cursor: default; }

/* inline-søkefelt: EGET element under headeren — block, sentrert */
.header-search { display: none; order: 20; flex: 0 0 auto; width: min(480px, 100%); margin: 8px auto 2px; position: relative; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 8px 12px; border-radius: var(--radius); }
.header-search svg { flex: none; opacity: 0.7; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: max(16px, 1em); font-family: var(--font); outline: none; }
.header-search input::placeholder { color: rgba(255,255,255,0.65); }
.header-search:focus-within { border-color: var(--amber); }
.wh-search-results--inline { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 95; }



/* blogg */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 30px; }
@media (max-width: 900px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-list { grid-template-columns: 1fr; } }
.blog-card { display: block; border: 1px solid var(--border-soft, #e5e7eb); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--text); }
.blog-card:hover { border-color: var(--ink); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-img--ph { background: var(--paper); }
.blog-card-body { padding: 12px 14px 14px; }
.blog-card-date { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.blog-card-title { margin: 4px 0 6px; font-size: 1rem; font-weight: 800; }
.blog-card-excerpt { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.blog-post { max-width: 760px; }
.blog-post h1 { font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 16px 0 4px; }
.blog-post-date { color: var(--muted); font-size: 0.85rem; margin: 0 0 16px; }
.blog-post-img { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 18px; }
.blog-post-body { line-height: 1.7; font-size: 1rem; overflow-wrap: anywhere; }
.blog-post-body img { max-width: 100%; height: auto; }
.blog-post-body h2, .blog-post-body h3 { text-transform: none; }
