/*
 * Header — measured 1:1 from the prototype's src/header.jsx, layered onto
 * Blocksy's native header rows (top = dark utility bar, middle = main row,
 * bottom = category bar). The bespoke pieces with no native Blocksy element
 * (USP bar, stars, lang/currency pills, inline search, kcal pill, wishlist/
 * account icons) are injected by header.js and styled here. SHARP corners,
 * tokens from tokens.css.
 *   container 1360/32 · top bar 38 dark · main row pad 18 · logo 64 ·
 *   search h48 #F4F4F4 · icons 40 sharp · category pills mono uppercase
 */

#header.ct-header {
	background: var(--sisa-panel);
	font-family: var(--sisa-body);
	color: var(--sisa-ink);
}

/* Sticky middle row (header.js adds .sisa-mid-stuck once it reaches the top). It
   doesn't move when it pins — only the soft shadow fades in — so it reads as
   seamless; the categories row scrolls up underneath it. */
#header [data-row="middle"] { transition: box-shadow .25s ease; }
#header [data-row="middle"].sisa-mid-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 150;
	background: var(--sisa-panel);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .10);
}
@media (prefers-reduced-motion: reduce) {
	#header [data-row="middle"] { transition: none; }
}

/* Container — 1360 / 32px on every row. */
#header [data-row] > .ct-container,
#header [data-row] > div {
	max-width: var(--sisa-container);
	margin-inline: auto;
	/* No inline padding on desktop — the page content container has none either (its
	   gutter is the centering margin), so this keeps the header flush with the content
	   edges. A mobile gutter is added back in mobile.css. (Was var(--sisa-pad) → the
	   header sat ~32px inset from the content on desktop.) */
	padding-inline: 0;
	box-sizing: border-box;
}

/* ============================================================
   TOP BAR — dark, white text, 38px
   ============================================================ */
#header [data-row="top"] {
	background: var(--sisa-emphasis);
	color: var(--sisa-on-emphasis);
	border: 0;
	min-height: 0;
}
#header [data-row="top"] > .ct-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	height: 38px;
	min-height: 38px;
	padding-block: 0;
}
#header [data-row="top"] [data-column="start"] { display: flex; align-items: center; gap: 22px; overflow: hidden; }
#header [data-row="top"] [data-column="end"]   { display: flex; align-items: center; gap: 18px; justify-self: end; }
#header [data-row="top"] [data-column="middle"] { display: none; }

/* All top-bar text → mono 11px uppercase white */
#header [data-row="top"],
#header [data-row="top"] a,
#header [data-row="top"] .ct-menu-link {
	font-family: var(--sisa-mono);
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--sisa-on-emphasis);
	line-height: 1;
	text-decoration: none;
}
#header [data-row="top"] a:hover { color: var(--sisa-on-emphasis-muted); }

/* USP list (injected into .ct-header-text) */
#header [data-row="top"] .sisa-usp { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
#header [data-row="top"] .sisa-usp li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-transform: uppercase; color: var(--sisa-on-emphasis); letter-spacing: 1.2px; font-family: var(--sisa-mono); font-size: 11px; font-weight: 400; line-height: 1; }
#header [data-row="top"] .sisa-usp svg { width: 14px; height: 14px; color: var(--sisa-on-emphasis); fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
/* Top-right utility menu (Berater / Checkliste / Kontakt) */
#header [data-row="top"] [data-column="end"] { gap: 24px; }
#header [data-row="top"] .menu-container ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
#header [data-row="top"] .menu-container li { margin: 0; padding: 0; }
#header [data-row="top"] .menu-container .ct-menu-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; font-weight: 400; letter-spacing: .4px; }
#header [data-row="top"] .sisa-locale { padding-left: 14px; gap: 12px; }

/* Language / currency pills (injected) — hover dropdown. Short centered divider
   (16px, --sisa-on-emphasis-dim) instead of a full-height border. */
.sisa-locale { position: relative; display: inline-flex; align-items: center; gap: 12px; padding-left: 18px; }
.sisa-locale::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: var(--sisa-on-emphasis-dim); }
.sisa-locale__pill { position: relative; display: inline-flex; align-items: center; height: 38px; }
.sisa-locale__trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sisa-locale__trigger > span { font-family: var(--sisa-mono); font-size: 11px; letter-spacing: .5px; color: var(--sisa-on-emphasis); }
.sisa-locale__chev { width: 9px; height: 9px; fill: none; stroke: var(--sisa-on-emphasis-muted); stroke-width: 2.4; transition: transform .18s ease; }
.sisa-locale__pill:hover .sisa-locale__chev { transform: rotate(180deg); }
.sisa-flag { width: 18px; height: 18px; display: inline-block; flex: none; border-radius: 2px; overflow: hidden; }
.sisa-locale__menu {
	position: absolute; top: 100%; right: 0; z-index: 60; min-width: 96px;
	background: var(--sisa-emphasis); border: 1px solid var(--sisa-emphasis-line);
	box-shadow: 0 12px 24px rgba(0,0,0,.35); padding: 4px 0;
	opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.sisa-locale__menu--wide { min-width: 224px; }
.sisa-locale__pill:hover .sisa-locale__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sisa-locale__menu a {
	display: flex; align-items: center; gap: 10px; padding: 10px 14px;
	font-family: var(--sisa-mono); font-size: 11px; letter-spacing: .4px; color: var(--sisa-on-emphasis);
	text-decoration: none; border-left: 3px solid transparent; white-space: nowrap; text-transform: none;
}
.sisa-locale__menu a.is-active { border-left-color: var(--sisa-yellow); background: rgba(244, 212, 53, .10); }
.sisa-locale__menu a:hover { background: rgba(255, 255, 255, .06); color: var(--sisa-on-emphasis); }
.sisa-locale__menu a .sisa-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--sisa-yellow); }
/* Theme picker glyph (Auto/Hell/Dunkel) */
.sisa-theme__g { display: inline-flex; color: var(--sisa-on-emphasis); }
.sisa-theme__g svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sisa-theme__g svg [fill="currentColor"] { fill: currentColor; stroke: none; }

/* ============================================================
   MAIN ROW — white, logo · search · actions
   ============================================================ */
#header [data-row="middle"] {
	background: var(--sisa-panel);
	border: 0;
	min-height: 0 !important;
}
/* Override Blocksy's default 1fr/auto/1fr grid → flex so the search fills. */
#header [data-row="middle"] > .ct-container {
	display: flex !important;
	grid-template-columns: none !important;
	align-items: center !important;
	gap: 32px;
	padding-block: 18px;
	min-height: 0 !important;
	height: auto !important;
}
#header [data-row="middle"] [data-column] { min-height: 0 !important; display: flex; align-items: center !important; align-self: center !important; }
/* Logo wrappers: tight-wrap the image so the column centers it on the row line */
#header [data-row="middle"] [data-column="start"] .site-branding,
#header [data-row="middle"] [data-column="start"] [data-items],
#header [data-row="middle"] .site-logo-container,
#header [data-row="middle"] .site-logo-container > a { display: inline-flex; align-items: center; line-height: 0; }
#header [data-row="middle"] [data-column="start"] { flex: 0 0 auto; }
#header [data-row="middle"] [data-column="middle"] { flex: 1 1 auto; min-width: 0; }
#header [data-row="middle"] [data-column="end"] { flex: 0 0 auto; }
#header [data-row="middle"] .site-logo-container img,
#header [data-row="middle"] .ct-logo-container img,
#header [data-row="middle"] .site-logo-container svg { height: 64px; width: auto; }

/* Inline search — sharp, bg #F4F4F4, h48 */
#header [data-row="middle"] .sisa-search {
	position: relative;
	flex: 1 1 auto;
	display: flex; align-items: center; gap: 10px;
	height: 48px; padding-inline: 18px;
	background: var(--sisa-bg-input);
	border: 1px solid var(--sisa-hairline);
	border-radius: 0;
}
#header [data-row="middle"] .sisa-search:focus-within { border-color: var(--sisa-ink); }

/* AJAX live-search results dropdown (2026 UX) */
.sisa-search__results {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80;
	background: var(--sisa-panel); border: 1px solid var(--sisa-hairline);
	box-shadow: var(--sisa-shadow-pop); max-height: 70vh; overflow-y: auto;
	display: none;
}
.sisa-search__results.is-open { display: block; }
.sisa-search__row {
	display: flex; align-items: center; gap: 14px; padding: 12px 16px;
	text-decoration: none; color: var(--sisa-ink); border-bottom: 1px solid var(--sisa-hairline-soft);
}
.sisa-search__row:last-of-type { border-bottom: 0; }
.sisa-search__row:hover, .sisa-search__row.is-active { background: var(--sisa-bg); }
.sisa-search__thumb {
	width: 48px; height: 48px; flex: none; background: var(--sisa-bg-card);
	object-fit: contain;
}
.sisa-search__info { min-width: 0; flex: 1; }
.sisa-search__name { font-family: var(--sisa-body); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--sisa-ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sisa-search__price { font-family: var(--sisa-body); font-size: 13px; color: var(--sisa-text-2); margin-top: 2px; }
.sisa-search__price del { color: var(--sisa-text-3); margin-right: 6px; }
.sisa-search__more {
	display: block; padding: 13px 16px; text-align: center; text-decoration: none;
	font-family: var(--sisa-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
	color: var(--sisa-ink); background: var(--sisa-bg); border-top: 1px solid var(--sisa-hairline);
}
.sisa-search__more:hover { background: var(--sisa-yellow); }
.sisa-search__empty { padding: 16px; font-size: 13px; color: var(--sisa-text-2); }
.sisa-search__ico { width: 16px; height: 16px; flex: none; color: var(--sisa-text-2); fill: none; stroke: currentColor; stroke-width: 2; }
#header .sisa-search .sisa-search__field {
	flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 14px; color: var(--sisa-ink);
	border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
	-webkit-appearance: none; appearance: none; margin: 0; padding: 0;
}
.sisa-search__field::placeholder { color: var(--sisa-text-2); }
.sisa-search__field::-webkit-search-decoration,
.sisa-search__field::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Action cluster: kcal pill · divider · wishlist · account · cart (12px desktop, 8px tablet) */
#header [data-row="middle"] [data-column="end"] { gap: 12px; }
#header [data-row="middle"] .sisa-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
#header [data-row="middle"] .ct-header-cart { margin: 0 !important; }
/* Notvorrat tracker pill — Duo cells (kcal | Wasser | Tage·P), each metric cell
   carries its own full-height tinted fill toward the goal (covered = live cart).
   Values/fills are driven by header.js; corner ✓ badge = cart-counter grammar. */
.sisa-kcalc {
	position: relative;
	display: inline-flex; align-items: center; gap: 0; height: 48px; padding-inline: 0;
	background: var(--sisa-panel); border: 1px solid var(--sisa-hairline); border-radius: 0;
	font-family: var(--sisa-mono); font-size: 12px; font-weight: 600; letter-spacing: .4px;
	color: var(--sisa-ink); cursor: pointer; white-space: nowrap;
	transition: background-color .18s, color .18s, border-color .18s;
}
.sisa-kcalc:hover { border-color: var(--sisa-emphasis); }
.sisa-kcalc:focus-visible { outline: 2px solid var(--sisa-ink); outline-offset: 2px; }
.sisa-kcalc__bolt { width: 14px; height: 14px; flex: none; fill: var(--sisa-yellow); }
.sisa-kcalc__drop { width: 13px; height: 13px; flex: none; fill: var(--sisa-water); }
.sisa-kcalc__dim { color: var(--sisa-text-3); }
.sisa-kcalc__chev { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sisa-kcalc__cell {
	position: relative; display: inline-flex; align-items: center; gap: 7px;
	height: 100%; padding-inline: 13px; overflow: hidden;
}
.sisa-kcalc__cell + .sisa-kcalc__cell { border-left: 1px solid var(--sisa-hairline); }
.sisa-kcalc__cell > :not(.sisa-kcalc__fill) { position: relative; z-index: 1; }
.sisa-kcalc__fill {
	position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 0;
	transition: width .4s cubic-bezier(.165, .84, .44, 1);
}
.sisa-kcalc__fill--k { background: var(--sisa-yellow-tint); }
.sisa-kcalc__fill--w { background: var(--sisa-water-tint); }
.sisa-kcalc__tail {
	display: inline-flex; align-items: center; gap: 8px; height: 100%;
	padding-inline: 13px; border-left: 1px solid var(--sisa-hairline);
}
.sisa-kcalc__grp { display: inline-flex; align-items: center; gap: 8px; }
/* Water opt-out (persisted as water:false in localStorage sisa-kcal): the water
   cell collapses and the pill reads ⚡ kcal | Tage·P again, kcal fill kept. */
.sisa-kcalc.is-nowater .sisa-kcalc__cell--w,
.sisa-mob__kcal.is-nowater .sisa-kcalc__cell--w { display: none; }
/* Goal reached → yellow ✓ corner badge, same grammar as the cart counter. */
.sisa-kcalc__done {
	position: absolute; top: -6px; right: -6px; z-index: 2; width: 18px; height: 18px;
	display: none; align-items: center; justify-content: center;
	font-family: var(--sisa-mono); font-size: 10px; font-weight: 700;
	color: var(--sisa-yellow-ink); background: var(--sisa-yellow);
	border: 2px solid var(--sisa-panel); border-radius: 9px;
}
.sisa-kcalc__done.is-on { display: inline-flex; animation: sisa-nv-pop .18s cubic-bezier(.165, .84, .44, 1); }
@keyframes sisa-nv-pop { from { transform: scale(.5); } to { transform: scale(1); } }
/* Narrow desktop (pill hides ≤1023): shed the dim unit labels, then Tage·P's
   ·P group, so the header row never wraps between 1024 and full width. */
@media (max-width: 1210px) {
	.sisa-kcalc__unit { display: none; }
	.sisa-kcalc__cell { padding-inline: 11px; }
}
@media (max-width: 1120px) {
	.sisa-kcalc__grp { display: none; }
}
/* First-contact state (nothing stored, empty cart): the pill names itself —
   «⚡ Kalorienbedarf berechnen» — same silhouette, same mono grammar, yellow
   bolt kept as the recognition anchor. Chip variant lives in mobile.css. */
.sisa-kcalc__cell--cta { gap: 9px; padding-inline: 15px; }
.sisa-kcalc__lbl { color: var(--sisa-ink); }
.sisa-kcalc__cell--cta .sisa-kcalc__chev { margin-left: 2px; }

/* First-contact → numbers morph: quick content crossfade (JS swaps the interior
   at 150ms); the pill's width settles naturally. */
.sisa-kcalc > * { transition: opacity .14s ease; }
.sisa-kcalc.is-swap > * { opacity: 0; }

/* Hover tooltip on the numbers state (replaces the old title="") — names what
   the compact figures mean: «Ihr Bedarf: 2 Personen × 90 Tage». 350ms intent
   delay; suppressed while the panel is open and on the first-contact CTA. */
.sisa-tip {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 65;
	background: var(--sisa-emphasis); color: var(--sisa-on-emphasis);
	border: 1px solid var(--sisa-emphasis-line); box-shadow: var(--sisa-shadow-pop);
	padding: 9px 12px; font-family: var(--sisa-mono); font-size: 11px; letter-spacing: .4px;
	white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.sisa-kcalc:not(.is-empty):hover + .sisa-tip { opacity: 1; transition-delay: .35s; }
.sisa-actions.is-open .sisa-tip { opacity: 0 !important; }

.sisa-actions__sep { width: 1px; height: 28px; background: var(--sisa-hairline); }

/* kcal calculator popover */
.sisa-kcalpop {
	position: absolute; top: calc(100% + 12px); right: 0; z-index: 70; width: 420px; max-width: 92vw;
	background: var(--sisa-panel); border: 1px solid var(--sisa-hairline); box-shadow: var(--sisa-shadow-pop);
	padding: 20px; font-family: var(--sisa-body); color: var(--sisa-ink); text-align: left;
}
.sisa-kcalpop[hidden] { display: none; }
.sisa-kcalpop__kick { font-family: var(--sisa-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sisa-text-2); margin-bottom: 4px; }
.sisa-kcalpop__title { font-family: var(--sisa-display); font-weight: 700; font-size: 22px; margin-bottom: 16px; }
.sisa-kcalpop__row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--sisa-hairline); }
.sisa-kcalpop__row > span { font-family: var(--sisa-mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.sisa-kcalpop__step { display: inline-flex; align-items: stretch; border: 1.5px solid var(--sisa-ink); background: var(--sisa-panel); }
.sisa-kcalpop__step button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--sisa-ink); line-height: 1; }
.sisa-kcalpop__step b { min-width: 46px; display: grid; place-items: center; font-family: var(--sisa-display); font-weight: 700; font-size: 19px; border-inline: 1.5px solid var(--sisa-ink); }

/* Status box — goal vs. Warenkorb, one progress row per metric. */
.sisa-kcalpop__status { margin-top: 18px; border: 1.5px solid var(--sisa-ink); background: var(--sisa-bg); padding: 14px; }
.sisa-kcalpop__goal {
	display: none; margin: -14px -14px 13px; padding: 9px 12px;
	background: var(--sisa-yellow); color: var(--sisa-yellow-ink);
	font-family: var(--sisa-mono); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.sisa-kcalpop__goal.is-on { display: block; }
.sisa-kcalpop__mrow + .sisa-kcalpop__mrow { border-top: 1px solid var(--sisa-hairline); margin-top: 13px; padding-top: 13px; }
.sisa-kcalpop__mhead { display: flex; align-items: center; gap: 8px; }
.sisa-kcalpop__mhead svg { flex: none; }
.sisa-kcalpop__mlabel { font-family: var(--sisa-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--sisa-text-1); }
.sisa-kcalpop__mpct { margin-left: auto; font-family: var(--sisa-mono); font-size: 11.5px; font-weight: 600; color: var(--sisa-text-2); }
.sisa-kcalpop__mpct.is-done { color: var(--sisa-ink); }
.sisa-kcalpop__track { height: 8px; margin-top: 9px; background: var(--sisa-hairline); position: relative; }
.sisa-kcalpop__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width .4s cubic-bezier(.165, .84, .44, 1); }
.sisa-kcalpop__fill--k { background: var(--sisa-yellow); }
.sisa-kcalpop__fill--w { background: var(--sisa-water); }
/* Overfill (Reserve) — 3px ink end-cap on the full track. */
.sisa-kcalpop__cap { display: none; position: absolute; right: 0; top: -2px; bottom: -2px; width: 3px; background: var(--sisa-ink); }
.sisa-kcalpop__cap.is-on { display: block; }
.sisa-kcalpop__msub { margin-top: 8px; font-size: 12.5px; color: var(--sisa-text-2); }
.sisa-kcalpop__msub b { color: var(--sisa-ink); font-weight: 600; }

/* Water opt-out switch — 34×18 sharp track (1.5px ink, stepper stroke), square
   knob, water-filled when on; ±8px invisible hit-area extension. Sits LEFT of
   the % so the data column keeps one right-aligned scan line. */
.sisa-kcalpop__wswitch {
	position: relative; width: 34px; height: 18px; flex: none; margin-left: auto; padding: 0;
	border: 1.5px solid var(--sisa-ink); background: var(--sisa-panel); cursor: pointer;
	transition: background-color .18s, border-color .18s;
}
.sisa-kcalpop__wswitch::before {
	content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px;
	background: var(--sisa-text-2); transition: transform .18s, background-color .18s;
}
.sisa-kcalpop__wswitch::after { content: ""; position: absolute; inset: -8px; }
.sisa-kcalpop__wswitch[aria-checked="true"] { background: var(--sisa-water); border-color: var(--sisa-water); }
.sisa-kcalpop__wswitch[aria-checked="true"]::before { transform: translateX(16px); background: var(--sisa-panel); }
.sisa-kcalpop__wswitch:focus-visible { outline: 2px solid var(--sisa-ink); outline-offset: 2px; }
.sisa-kcalpop__mrow--w .sisa-kcalpop__mpct { margin-left: 0; }

/* Water off → the row collapses to ONE quiet dormant line («Wasser deaktiviert»):
   muted drop + label + empty switch flush right; the whole row re-enables. */
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w .sisa-kcalpop__track,
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w .sisa-kcalpop__msub,
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w .sisa-kcalpop__mpct { display: none; }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w { cursor: pointer; }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w .sisa-kcalpop__wswitch { border-color: var(--sisa-text-3); }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w .sisa-kcalc__drop { fill: var(--sisa-text-3); }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w .sisa-kcalpop__mlabel { color: var(--sisa-text-3); }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w:hover .sisa-kcalpop__mlabel { color: var(--sisa-text-1); }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w:hover .sisa-kcalc__drop { fill: var(--sisa-text-2); }
.sisa-kcalpop.is-woff .sisa-kcalpop__mrow--w:hover .sisa-kcalpop__wswitch { border-color: var(--sisa-ink); }

/* CTA — full-width; flips «Pakete zeigen →» ↔ «Zum Warenkorb →» when reached. */
.sisa-kcalpop__cta {
	display: flex; align-items: center; justify-content: center; margin-top: 16px; padding: 13px 14px;
	background: var(--sisa-yellow); color: var(--sisa-yellow-ink); text-decoration: none;
	font-family: var(--sisa-display); font-weight: 700; font-size: 15px; letter-spacing: -0.2px;
}
.sisa-kcalpop__cta:hover { background: #EFCB1F; }
.sisa-kcalpop__note { margin-top: 12px; font-family: var(--sisa-mono); font-size: 11px; color: var(--sisa-text-2); line-height: 1.6; }
/* First-contact open: the base-assumption note IS the explanation of the
   defaults — lift it one text step so it reads at first glance (still quiet). */
.sisa-kcalpop.is-first .sisa-kcalpop__note { color: var(--sisa-text-1); }
.sisa-kcalpop__more { display: block; margin-top: 12px; font-family: var(--sisa-mono); font-size: 11px; letter-spacing: .04em; color: var(--sisa-text-2); text-decoration: none; }
.sisa-kcalpop__more b { color: var(--sisa-ink); font-weight: 600; }
.sisa-kcalpop__more:hover b, .sisa-kcalpop__more:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }
.sisa-kcalpop__more:focus-visible { outline: 2px solid var(--sisa-ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.sisa-kcalc__fill, .sisa-kcalpop__fill,
	.sisa-kcalc > *, .sisa-tip,
	.sisa-kcalpop__wswitch, .sisa-kcalpop__wswitch::before { transition: none; }
	.sisa-kcalc__done.is-on { animation: none; }
}
.sisa-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	color: var(--sisa-ink); background: var(--sisa-panel); border: 1px solid var(--sisa-hairline); border-radius: 0;
	transition: border-color .18s;
}
.sisa-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.sisa-icon:hover { border-color: var(--sisa-emphasis); }

/* Blocksy wishlist header item, relocated into the actions cluster by header.js —
   a 40px icon button (outline heart) with a yellow count badge, mirroring the cart. */
#header [data-row="middle"] .ct-header-wishlist {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; color: var(--sisa-ink);
	border: 1px solid var(--sisa-hairline); background: var(--sisa-panel); border-radius: 0; transition: border-color .18s;
}
#header [data-row="middle"] .ct-header-wishlist:hover { border-color: var(--sisa-emphasis); }
#header [data-row="middle"] .ct-header-wishlist .ct-label { display: none; }
/* relative (like the cart's icon-container) so the count anchors to the ICON — it
   sits at the icon's top-right, inside the box, exactly like the cart counter. */
#header [data-row="middle"] .ct-header-wishlist .ct-icon-container { display: inline-flex; align-items: center; justify-content: center; position: relative; }
#header [data-row="middle"] .ct-header-wishlist svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Match the cart count exactly: dark badge, white text, 16px, no border, top/right -9. */
#header [data-row="middle"] .ct-header-wishlist .ct-dynamic-count-wishlist {
	position: absolute; top: -9px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	font-family: var(--sisa-mono); font-size: 10px; font-weight: 700; line-height: 1;
	color: #fff; background: var(--sisa-emphasis, #1a1a1a); border: 0; border-radius: 10px;
}
#header [data-row="middle"] .ct-header-wishlist .ct-dynamic-count-wishlist[data-count="0"] { display: none; }

/* Native cart → 40px sharp icon button with yellow count */
#header [data-row="middle"] .ct-header-cart {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border: 1px solid var(--sisa-hairline); border-radius: 0;
	color: var(--sisa-ink);
}
#header [data-row="middle"] .ct-header-cart:hover { border-color: var(--sisa-emphasis); }
/* Hide the total-text beside the trigger ICON only — scoped to .ct-cart-item.
   (A bare `.ct-header-cart .amount` also nuked every price INSIDE the mini-cart
   popover — items + subtotal rendered 0×0, the "broken mini-cart" bug.) */
#header [data-row="middle"] .ct-header-cart .ct-cart-item .ct-cart-price,
#header [data-row="middle"] .ct-header-cart .ct-cart-item .ct-label,
#header [data-row="middle"] .ct-header-cart .ct-cart-item .ct-amount,
#header [data-row="middle"] .ct-header-cart .ct-cart-item > .amount { display: none; }
/* The cart link is a flex row [price-text · gap · icon]; with the price hidden, its
   8px gap still reserved space left of the icon, pushing it ~4px off-centre. Zero
   the gap so the icon is the sole, truly-centred child. */
#header [data-row="middle"] .ct-header-cart .ct-cart-item { gap: 0 !important; }
#header [data-row="middle"] .ct-header-cart svg { width: 16px; height: 16px; }
/* design cart icon = outline (Blocksy otherwise fills it solid) */
#header .ct-header-cart .sisa-cart-ico,
#header .ct-header-cart .sisa-cart-ico path,
#header .ct-header-cart .sisa-cart-ico circle { fill: none !important; stroke: currentColor; stroke-width: 2; }
#header [data-row="middle"] .ct-header-cart .ct-cart-count,
#header [data-row="middle"] .ct-header-cart [class*="cart-count"] {
	position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding-inline: 5px;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--sisa-mono); font-size: 10px; font-weight: 700;
	color: var(--sisa-yellow-ink); background: var(--sisa-yellow); border: 2px solid var(--sisa-panel); border-radius: 9px;
}

/* ============================================================
   CATEGORY BAR — mono uppercase pills, sharp
   ============================================================ */
#header [data-row="bottom"] {
	background: var(--sisa-panel);
	border-top: 1px solid var(--sisa-hairline) !important;
	min-height: 0 !important;
}
#header [data-row="bottom"] > .ct-container {
	display: flex; align-items: center; padding-block: 10px;
	min-height: 0 !important; height: auto !important;
}
#header [data-row="bottom"] .menu-container { min-height: 0 !important; }
#header [data-row="bottom"] .menu-container > ul {
	display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scrollbar-width: none; min-height: 0 !important;
}
#header [data-row="bottom"] .menu-container > ul > li { min-height: 0 !important; align-self: center; display: flex; }
#header [data-row="bottom"] .menu-container > ul::-webkit-scrollbar { display: none; }
#header [data-row="bottom"] .menu-container > ul > li > .ct-menu-link {
	display: inline-flex; align-items: center; padding: 8px 14px;
	font-family: var(--sisa-mono); font-size: 11px; font-weight: 600; letter-spacing: .4px;
	text-transform: uppercase; text-decoration: none; white-space: nowrap;
	color: var(--sisa-text-1); background: var(--sisa-panel);
	border: 1px solid var(--sisa-hairline); border-radius: 0; transition: border-color .18s, color .18s;
}
#header [data-row="bottom"] .menu-container > ul > li > .ct-menu-link:hover { border-color: var(--sisa-emphasis); color: var(--sisa-ink); }
/* Active = current page/category (not always the first pill) */
#header [data-row="bottom"] .menu-container > ul > li.current-menu-item > .ct-menu-link,
#header [data-row="bottom"] .menu-container > ul > li.current_page_item > .ct-menu-link,
#header [data-row="bottom"] .menu-container > ul > li.current-menu-ancestor > .ct-menu-link,
#header [data-row="bottom"] .menu-container > ul > li.current-product_cat-ancestor > .ct-menu-link { border-color: var(--sisa-emphasis); color: var(--sisa-ink); background: var(--sisa-panel); }
#header [data-row="top"] .menu-container li.current-menu-item > .ct-menu-link { color: var(--sisa-yellow); }

.sisa-hidden { display: none !important; }

/* Mobile/drawer show-hide is fully owned by mobile.css (deterministic order). */
@media (max-width: 1100px) {
	#header [data-row="top"] .sisa-usp li:nth-child(2),
	#header [data-row="top"] .sisa-usp li:nth-child(3) { display: none; }
}
/* Full responsive header behaviour lives in mobile.css */

/* Topbar Berater link gets the design's ✦ sparkle (src/header.jsx: "✦ BERATER"). */
#header [data-row="top"] .menu-container .ct-menu-link[href*="berater"]::before,
#header [data-row="top"] .menu-container .ct-menu-link[href*="advisor"]::before {
	content: "✦";
	color: var(--sisa-yellow, #f4d435);
	margin-right: 1px;
}

/* Logged-in admin bar: the pinned middle row must sit below it, not behind it
   (Gilles 2026-08-20). WP admin bar = 32px desktop, 46px up to 782px. */
body.admin-bar #header [data-row="middle"].sisa-mid-stuck { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar #header [data-row="middle"].sisa-mid-stuck { top: 46px; }
}

/* Dark mode: Blocksy's cart element keeps its own near-black icon color instead
   of the ink token — invisible on the dark header (Gilles 2026-08-20). */
[data-theme="dark"] .ct-header-cart,
[data-theme="dark"] .ct-header-cart .ct-icon {
	color: var(--sisa-ink);
}
