/* nav/nav.css — jiroo navigation explorations.
   Three desktop directions (A editorial mega · B cascading flyout · C spotlight
   rail) + a matching mobile drawer, all sharing one chrome. Tokens come from
   colors_and_type.css; shop accents from the kit's --gen-* mapping. */

:root {
  --gen-indica: var(--c-lavendel);
  --gen-sativa: var(--c-lorbeer-700);
  --gen-hybrid: var(--c-schiefer-500);
  --jn-accent: var(--c-lavendel);
}

* { box-sizing: border-box; }

/* ============================================================
   HEADER SHELL  (shared by all directions)
   ============================================================ */
.jn {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  transition: transform var(--dur-base) var(--ease-out);
  will-change: transform;
}
.jn[data-hidden="true"] { transform: translateY(-100%); }
.jn[data-scroll="static"] { position: relative; }

/* utility bar — live processing times */
.jn-utility {
  background: var(--c-schiefer); color: var(--c-reinweiss);
  padding: 8px 32px; display: flex; justify-content: space-between; align-items: center;
  font: 400 12.5px/1 var(--font-sans);
  overflow: hidden;
}
.jn-utility .live { align-items: center; color: inherit; display: flex; gap: 10px; text-decoration: none; white-space: nowrap; }
.jn-utility .live:hover { color: var(--c-lavendel); }
.jn-utility .live:hover .meta { color: var(--c-reinweiss); }
.jn-utility .dot { position: relative; width: 7px; height: 7px; border-radius: 999px; background: #6BBF89; box-shadow: 0 0 0 4px rgba(107,191,137,0.18); flex: none; }
/* "Live" pulse — a ring expands and fades from the dot rather than the dot
   itself changing size/opacity, so the "Auf Lager"-style solid green dot
   stays visually steady and only the live/status cue animates. */
.jn-utility .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  background: rgba(107,191,137,0.55);
  animation: jn-live-pulse 2s ease-out infinite;
}
@keyframes jn-live-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jn-utility .dot::after { animation: none; content: none; }
}
.jn-utility .sep { opacity: 0.4; padding: 0 6px; }
.jn-utility .meta { color: rgba(255,255,255,0.78); }
.jn[data-topbar="false"] .jn-utility { display: none; }
@media (max-width: 640px) {
  .jn-utility { padding: 9px 16px; }
  .jn-utility .live { gap: 6px; white-space: nowrap; }
  .jn-utility .live .sep:nth-of-type(n+2),
  .jn-utility .live .meta:last-child { display: none; }
}

/* promo bar — one or more messages crossfade in place (data-promo-rotate) */
.jn-promo {
  position: relative;
  background: var(--c-lorbeer-hell); color: var(--c-schiefer);
  padding: 10px 32px; text-align: center; font: 400 13px/1.3 var(--font-sans);
  min-height: 1.3em; /* reserve one line so absolutely-stacked items don't collapse it */
}
.jn-promo strong { font-weight: 600; }
.jn-promo a { color: inherit; text-decoration: underline; }
.jn-promo__item { transition: opacity 0.45s ease; }
/* Rotation: stack every item so they overlap, only .is-active is shown. */
.jn-promo[data-promo-rotate] .jn-promo__item {
  position: absolute; left: 32px; right: 32px; top: 10px;
  opacity: 0; pointer-events: none;
}
.jn-promo[data-promo-rotate] .jn-promo__item.is-active {
  position: relative; left: auto; right: auto; top: auto; display: block;
  opacity: 1; pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .jn-promo__item { transition: none; }
}

/* main bar */
.jn-bar {
  position: relative;
  padding: 16px 32px; display: flex; align-items: center; gap: 30px;
  border-bottom: 1px solid var(--border);
}
.jn-logo { display: block; flex: none; }
.jn-logo img { height: 28px; width: auto; display: block; }
.jn-spacer { flex: 1; }

/* flex:none — its icon buttons can't actually compress, so leaving the default
   flex-shrink:1 here just meant the flex algorithm's shrink redistribution
   clawed extra space from .jn-city-wrap once this hit its own min-content
   floor, truncating the pharmacy name far more than the real deficit required. */
.jn-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.jn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--c-schiefer); cursor: pointer; border-radius: 999px; position: relative;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.jn-icon:hover { background: var(--c-lorbeer-hell); color: var(--c-schiefer-500); }
/* logged-in account icon: soft lorbeer rounded-square — calm, persistent "angemeldet" state (ADR-0034 D12) */
.jn-icon--me { background: var(--c-lorbeer-hell); color: var(--c-schiefer); border-radius: 12px; }
.jn-icon--me:hover { background: var(--c-lorbeer-hell); filter: brightness(0.97); }
.jn-cartdot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--c-schiefer); color: var(--c-reinweiss);
  font: 600 10px/1 var(--font-sans); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
/* display:flex above overrides UA [hidden]; re-assert so empty-cart badge stays invisible */
.jn-cartdot[hidden] { display: none; }
/* anmelden — brand signature: rectangular, sharp corner, 1.5px outline */
.jn-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border: 1.5px solid var(--c-schiefer); border-radius: 0;
  background: var(--bg); color: var(--c-schiefer);
  font: 600 13px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.jn-login:hover { background: var(--c-schiefer); color: var(--c-reinweiss); }
.jn-burger { display: none; }

/* ---------- top-level links (shared) ---------- */
.jn-top { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.jn-top__item { position: relative; }
.jn-top__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; font: 400 14.5px var(--font-sans); color: var(--fg);
  text-decoration: none; cursor: pointer; background: none; border: 0; white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}
.jn-top__link:hover,
.jn-top__item[data-open="true"] .jn-top__link { color: var(--c-schiefer-500); }
/* refined underline — grows from centre */
.jn-top__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--c-schiefer); transform: scaleX(0); transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.jn-top__link:hover::after,
.jn-top__item[data-open="true"] .jn-top__link::after { transform: scaleX(1); }
.jn-top__chev { transition: transform var(--dur-base) var(--ease-out); }
.jn-top__item[data-open="true"] .jn-top__chev { transform: rotate(180deg); }
.jn-badge {
  font: 700 9px/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-schiefer); background: var(--jn-accent);
  padding: 3px 5px; border-radius: 3px; transform: translateY(-1px);
}

/* ============================================================
   PANEL HOST  (absolute, full bleed under the bar)
   ============================================================ */
.jn-panelhost {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; justify-content: center;
  pointer-events: none;
}
.jn-panel {
  pointer-events: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 0;
  box-shadow: var(--shadow-lg);
  animation: jnPanelIn var(--dur-base) var(--ease-out) both;
}
.jn-panel--A {
  width: min(1180px, calc(100vw - 48px));
  max-height: var(--jn-mega-height, 100dvh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
@keyframes jnPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* small dropdown (jiroo / Wissenswertes) — shared by all directions */
.jn-drop {
  position: absolute; top: calc(100% + 6px); left: -14px;
  min-width: 230px; padding: 8px;
  background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.jn-top__item[data-open="true"] .jn-drop { opacity: 1; transform: translateY(0); pointer-events: auto; }
.jn-drop a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font: 400 14px var(--font-sans); color: var(--fg); text-decoration: none;
  border-radius: var(--r-sm); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.jn-drop a:hover { background: var(--c-lorbeer-hell); color: var(--c-schiefer-500); }
.jn-drop a .arr { opacity: 0; transform: translateX(-4px); transition: all var(--dur-fast) var(--ease-out); }
.jn-drop a:hover .arr { opacity: 1; transform: translateX(0); }

.jn-eyebrow {
  font: 600 11px var(--font-sans); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 14px;
}

/* ============================================================
   DIRECTION A — EDITORIAL MEGA
   left category rail · centre level-3 columns · right hero + feature
   ============================================================ */
.jnA-mega {
  width: 100%;
  display: grid; grid-template-columns: 248px 1fr 320px; gap: 0;
}
.jnA-rail { padding: 22px 16px; border-right: 1px solid var(--border); background: var(--c-hellgrau); }
.jnA-cat {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; border: 0; background: none; cursor: pointer; border-radius: var(--r-md);
  font: 500 15px var(--font-sans); color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), padding var(--dur-base) var(--ease-out);
}
.jnA-cat .cnt { margin-left: auto; font: 400 12px var(--font-sans); color: var(--fg-muted); }
.jnA-cat .arr { color: var(--fg-muted); opacity: 0; transform: translateX(-6px); transition: all var(--dur-base) var(--ease-out); }
.jnA-cat[data-active="true"] { background: var(--bg); color: var(--c-schiefer); padding-left: 18px; box-shadow: var(--shadow-sm); }
.jnA-cat[data-active="true"] .arr { opacity: 1; transform: translateX(0); margin-left: 4px; }
.jnA-cat[data-active="true"] .cnt { display: none; }

/* Reveal the keyboard preview shortcut when it receives focus. */
.jnA-preview {
  margin: 4px 0 4px 14px; padding: 4px 10px; border: 1px solid var(--c-border-control);
  border-radius: var(--r-sm); background: var(--bg); color: var(--c-schiefer);
  font: 500 13px var(--font-sans); cursor: pointer;
}
.jnA-preview:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.jnA-body { padding: 26px 30px; min-height: 320px; }
.jnA-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; }
.jnA-cols[hidden],
.jnA-hero img[hidden] { display: none; }
.jnA-group h6 { margin: 0 0 4px; }
.jnA-links { list-style: none; margin: 0; padding: 0; }
.jnA-link {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  font: 400 14.5px var(--font-sans); color: var(--fg); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-base) var(--ease-out);
}
.jnA-link:hover { color: var(--c-schiefer-500); padding-left: 6px; }
.jnA-link .gdot { width: 9px; height: 9px; border-radius: 999px; flex: none; transform: translateY(1px); }
.jnA-link .note { margin-left: auto; font: 400 12.5px var(--font-sans); color: var(--fg-muted); }

.jnA-aside { border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.jnA-hero { position: relative; height: 184px; overflow: hidden; background: var(--c-hellgrau); }
.jnA-mega:has(.jn-all-products[data-active="true"]) .jnA-hero { display: none; }
.jnA-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.jnA-aside:hover .jnA-hero img { transform: scale(1.04); }
.jnA-feat { padding: 20px 22px; }
.jnA-feat .blurb { font: 300 14px/1.5 var(--font-sans); color: var(--fg); margin: 6px 0 16px; }
.jnA-feat .ttl { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: var(--ls-tight); margin-bottom: 16px; }
.jnA-featlinks { display: flex; flex-direction: column; gap: 10px; }
.jn-cta--block { justify-content: space-between; width: 100%; }

/* feature/CTA button — rectangular brand button */
.jn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border: 1.5px solid var(--c-schiefer); border-radius: 0;
  background: var(--bg); color: var(--c-schiefer);
  font: 600 13px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.jn-cta:hover { background: var(--c-schiefer); color: var(--c-reinweiss); gap: 12px; }

/* fade/slide when switching active category */
.jnA-fade { animation: jnFade var(--dur-base) var(--ease-out); }
@keyframes jnFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   DIRECTION B — CASCADING FLYOUT
   compact category list · level-3 flyout to the right with thumb
   ============================================================ */
.jnB-wrap { display: flex; }
.jnB-list { width: 264px; padding: 10px; }
.jnB-cat {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; background: none; cursor: pointer; border-radius: var(--r-md);
  font: 500 14.5px var(--font-sans); color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.jnB-cat .cnt { margin-left: auto; font: 400 12px var(--font-sans); color: var(--fg-muted); }
.jnB-cat .chev { margin-left: 6px; color: var(--fg-muted); transition: transform var(--dur-base) var(--ease-out); }
.jnB-cat:hover, .jnB-cat[data-active="true"] { background: var(--c-lorbeer-hell); color: var(--c-schiefer); }
.jnB-cat[data-active="true"] .chev { transform: translateX(3px); }

.jnB-fly {
  width: 360px; border-left: 1px solid var(--border); padding: 22px 24px;
  display: grid; grid-template-rows: auto 1fr; gap: 16px;
}
.jnB-thumb { display: flex; gap: 14px; align-items: center; }
.jnB-thumb .pic { width: 76px; height: 76px; border-radius: var(--r-md); overflow: hidden; flex: none; }
.jnB-thumb .pic img { width: 100%; height: 100%; object-fit: cover; }
.jnB-thumb .ttl { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: var(--ls-tight); }
.jnB-thumb .blurb { font: 300 13px/1.45 var(--font-sans); color: var(--fg-muted); margin-top: 3px; }
.jnB-fly .jnA-links { columns: 1; }
.jnB-grouprow { margin-bottom: 14px; }

/* ============================================================
   DIRECTION C — SPOTLIGHT RAIL
   row of image tiles · sub-items revealed on the active tile
   ============================================================ */
.jnC-mega { width: min(1180px, calc(100vw - 48px)); padding: 24px; }
.jnC-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.jnC-tile {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  border-radius: var(--r-lg); min-height: 260px; text-decoration: none;
  background: var(--c-schiefer);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.jnC-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jnC-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.jnC-tile:hover img { transform: scale(1.06); }
.jnC-tile .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,54,54,0.92) 0%, rgba(10,54,54,0.55) 38%, rgba(10,54,54,0.05) 100%);
}
.jnC-tile .body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; color: var(--c-reinweiss);
}
  .jnC-tile .cnt { display: block; font: 600 10.5px var(--font-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; color: rgba(255,255,255,0.72); }
  .jnC-tile .ttl { display: block; font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.08; margin: 5px 0 0; letter-spacing: var(--ls-tight); }
.jnC-subs { list-style: none; margin: 0; padding: 0; overflow: hidden;
  max-height: 0; opacity: 0; transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out), margin var(--dur-base) var(--ease-out); }
.jnC-tile:hover .jnC-subs, .jnC-tile:focus-within .jnC-subs { max-height: 180px; opacity: 1; margin-top: 12px; }
.jnC-subs li { padding: 5px 0; }
.jnC-subs a {
  display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.92);
  font: 400 13.5px var(--font-sans); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.jnC-subs a:hover { color: #fff; gap: 12px; }
.jnC-subs a .gdot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.jnC-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
}
.jnC-foot .txt { font: 300 14px var(--font-sans); color: var(--fg); }
.jnC-foot .txt strong { font-weight: 600; }

/* ============================================================
   MOBILE DRAWER  (matches all directions)
   ============================================================ */
.jn-scrim {
  position: fixed; inset: 0; background: rgba(10,54,54,0.32); z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.jn-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
.jn-drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px;
  width: min(360px, calc(100vw - 20px)); z-index: 200;
  background: var(--c-reinweiss); border: 1px solid #d9e3e4; border-radius: 6px;
  box-shadow: 0 18px 42px rgba(14, 70, 70, 0.16);
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
  display: flex; flex-direction: column; overflow: hidden;
}
.jn-drawer[data-open="true"] { transform: translateX(0); }
.jn-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #d9e3e4; }
/* Explicit width, not just height: a bare <img> as a direct flex child gets
   its flex-basis from the intrinsic size rather than the height + aspect
   ratio, so height-only sizing renders it badly oversized here (unlike every
   other logo usage, which wraps the img in a block-level link/div and never
   hits this). Pinning both dimensions sidesteps it outright. */
.jn-drawer__top img { height: 30px; width: 83px; flex: none; }
/* border is this button's only visible boundary (fill matches the drawer bg) —
   a UI component boundary under 1.4.11, not a decorative divider, so it takes
   --c-border-control (3.08:1) rather than the sibling dividers' hairline colour. */
.jn-x { width: 40px; height: 40px; border: 1px solid var(--c-border-control); background: var(--c-reinweiss); border-radius: 8px; cursor: pointer; color: var(--c-schiefer); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.jn-x:hover { background: var(--c-lorbeer-hell); border-color: var(--c-schiefer-100); }
.jn-drawer__scroll { overflow-y: auto; flex: 1; padding: 10px 24px 24px; }

.jn-acc__row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 16px 0; border: 0; background: none; cursor: pointer;
  font: 500 17px var(--font-sans); color: var(--c-schiefer); text-decoration: none;
  border-bottom: 1px solid #d9e3e4;
}
.jn-acc__row .badge { font: 700 9px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-schiefer); background: var(--jn-accent); padding: 3px 5px; border-radius: 3px; }
.jn-acc__row .plus { margin-left: auto; position: relative; width: 16px; height: 16px; flex: none; color: var(--fg-muted); }
.jn-acc__row .plus::before, .jn-acc__row .plus::after { content: ""; position: absolute; background: currentColor; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.jn-acc__row .plus::before { left: 0; right: 0; top: 7px; height: 2px; }
.jn-acc__row .plus::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.jn-acc__row[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.jn-acc__panel { background: var(--c-lorbeer-hell); }
.jn-acc__panel[data-open="false"], .jn-sub__panel[data-open="false"] { display: none; }
.jn-acc__inner { padding: 6px 12px 14px; }

.jn-sub__row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 13px 10px; border: 0; background: none; cursor: pointer;
  font: 500 15px var(--font-sans); color: var(--fg); text-decoration: none;
}
.jnA-cat.jn-all-products, .jn-sub__row.jn-all-products {
  font: 500 20px var(--font-display); color: var(--c-schiefer);
}
.jn-sub__row .cnt { margin-left: auto; font: 400 12px var(--font-sans); color: var(--fg-muted); }
.jn-sub__row .plus { margin-left: auto; position: relative; width: 14px; height: 14px; flex: none; color: var(--fg-muted); }
.jn-sub__row .plus::before, .jn-sub__row .plus::after { content: ""; position: absolute; background: currentColor; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.jn-sub__row .plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.jn-sub__row .plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.jn-sub__row[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.jn-leaf {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 18px;
  font: 400 14.5px var(--font-sans); color: var(--fg); text-decoration: none;
}
.jn-leaf .gdot { width: 9px; height: 9px; border-radius: 999px; flex: none; }
.jn-leaf .note { margin-left: auto; font: 400 12px var(--font-sans); color: var(--fg-muted); }
.jn-leaf:active { background: var(--c-lorbeer-hell); }
.jn-acc__head { font: 600 11px var(--font-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--fg-muted); padding: 12px 10px 4px; }
.jn-drawer__cta { padding: 20px 24px 24px; border-top: 1px solid #d9e3e4; display: flex; gap: 10px; }
.jn-drawer__cta form { display: flex; flex: 1; margin: 0; }
.jn-drawer__cta .jn-login { display: inline-flex; flex: 1; justify-content: center; background: var(--c-schiefer); color: var(--c-reinweiss); border-radius: 0; }
.jn-drawer__cta .jn-login:hover { background: #0a3535; }
.jn-drawer__acct { padding: 8px 24px; border-top: 1px solid #d9e3e4; }
.jn-drawer__account { display: block; padding: 8px 10px 4px; font: 600 13px var(--font-sans); color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.jn-cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 96vw); z-index: 200;
  background: var(--bg); box-shadow: -6px 0 48px rgba(10,54,54,0.13);
  transform: translateX(100%); transition: transform var(--dur-slow, .32s) var(--ease-out);
  display: flex; flex-direction: column; overflow: hidden;
}
.jn-cart[data-open="true"] { transform: translateX(0); }

.jn-cart__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex: none;
}
.jn-cart__title { font: 600 16px var(--font-sans); color: var(--c-schiefer); }
.jn-cart__cnt { font-weight: 400; color: var(--fg-muted); }

/* free-shipping bar */
.jn-cart__ship {
  padding: 12px 24px; background: var(--c-lorbeer-hell);
  border-bottom: 1px solid rgba(14,70,70,0.08); flex: none;
}
.jn-cart__ship__txt { font: 400 13px var(--font-sans); color: var(--c-schiefer); margin: 0 0 8px; }
.jn-cart__ship__txt strong { font-weight: 600; }
.jn-cart__ship__ok { color: var(--c-lorbeer-700); }
.jn-cart__ship__track {
  height: 4px; background: rgba(14,70,70,0.12); border-radius: 999px; overflow: hidden;
}
.jn-cart__ship__fill {
  height: 100%; background: var(--c-lorbeer-700); border-radius: 999px;
  transition: width .5s var(--ease-out);
}

/* items */
.jn-cart__items { flex: 1; overflow-y: auto; }
.jn-cart__item {
  display: flex; gap: 14px; padding: 16px 24px;
  border-bottom: 1px solid var(--c-schiefer-100);
}
.jn-cart__img {
  width: 72px; height: 72px; flex: none; overflow: hidden;
  background: var(--c-lorbeer-hell);
}
.jn-cart__img img { width: 100%; height: 100%; object-fit: cover; }
.jn-cart__meta {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.jn-cart__meta__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.jn-cart__name { font: 600 14px var(--font-sans); color: var(--c-schiefer); line-height: 1.3; }
.jn-cart__remove {
  width: 26px; height: 26px; background: none; border: 0; cursor: pointer; flex: none;
  color: var(--fg-muted); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.jn-cart__remove:hover { background: var(--c-hellgrau); color: var(--c-schiefer); }
.jn-cart__strain { font: 300 12.5px var(--font-sans); color: var(--fg-muted); }
.jn-cart__tag {
  font: 500 11px var(--font-sans); letter-spacing: 0.03em;
  color: var(--c-schiefer); background: var(--c-schiefer-100);
  padding: 2px 7px; display: inline-block; align-self: flex-start;
}
.jn-cart__row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px;
}
.jn-cart__price { font: 600 14px var(--font-sans); color: var(--c-schiefer); }
.jn-cart__qty {
  display: flex; align-items: center; border: 1px solid var(--c-schiefer-100);
}
.jn-cart__qty button {
  width: 28px; height: 28px; background: none; border: 0; cursor: pointer;
  color: var(--c-schiefer); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.jn-cart__qty button:hover { background: var(--c-lorbeer-hell); }
.jn-cart__qty__n {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-width: 26px; text-align: center;
  font: 600 13px var(--font-sans); color: var(--c-schiefer);
  border-left: 1px solid var(--c-schiefer-100);
  border-right: 1px solid var(--c-schiefer-100);
}

/* prescription notice */
.jn-cart__rx {
  padding: 12px 24px; flex: none;
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--c-lorbeer-hell); border-top: 1px solid rgba(14,70,70,0.08);
  font: 300 12px/1.5 var(--font-sans); color: var(--c-schiefer);
}
.jn-cart__rx svg { flex: none; color: var(--c-lorbeer-700); margin-top: 2px; }
.jn-cart__rx strong { font-weight: 600; }

/* footer totals + CTA */
.jn-cart__ft {
  padding: 18px 24px 28px; border-top: 1px solid var(--border); flex: none;
  display: flex; flex-direction: column; gap: 10px;
}
.jn-cart__subtot {
  display: flex; justify-content: space-between;
  font: 300 13.5px var(--font-sans); color: var(--fg-muted);
}
.jn-cart__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--c-schiefer-100);
  font: 600 15px var(--font-sans); color: var(--c-schiefer);
}
.jn-cart__total__amt { font-size: 20px; letter-spacing: -0.015em; }
.jn-cart__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; background: var(--c-schiefer); color: #fff;
  border: 0; cursor: pointer; text-decoration: none;
  font: 600 15px var(--font-sans); letter-spacing: -0.005em;
  transition: background var(--dur-base);
}
.jn-cart__btn:hover { background: #0a3535; }
.jn-cart__cont {
  background: none; border: 0; cursor: pointer; width: 100%; text-align: center;
  font: 400 13px var(--font-sans); color: var(--fg-muted); padding: 4px;
  transition: color var(--dur-fast);
}
.jn-cart__cont:hover { color: var(--c-schiefer); text-decoration: underline; }

/* empty state */
.jn-cart__empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; gap: 14px;
}
.jn-cart__empty svg { color: var(--c-schiefer-100); }
.jn-cart__empty p { font: 300 15px var(--font-sans); color: var(--fg-muted); margin: 0; }

/* Recoverable direct-sale checkout after its source cart was consumed. */
.jn-cart__open-checkout {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; gap: 14px; text-align: center;
}
.jn-cart__open-checkout svg { color: var(--c-lorbeer-700); }
.jn-cart__open-checkout p { font: 300 15px var(--font-sans); color: var(--fg-muted); margin: 0; }
.jn-cart__open-checkout .jn-cart__btn { width: 100%; max-width: 260px; }

/* ============================================================
   ACCOUNT DRAWER (ADR-0034 D12) — clones the cart-drawer slide-in
   ============================================================ */
/* Content is fixed and short (a greeting, 3 links, one logout button) — a
   full-height/full-width drawer (the cart's own sizing, cloned wholesale)
   left most of the screen empty. Sized to its content instead, as a
   floating panel pinned top-right rather than a full drawer. */
.jn-acct {
  position: fixed; top: 0; right: 0; width: min(320px, 82vw); max-height: 100vh; z-index: 200;
  background: var(--bg); box-shadow: -6px 12px 48px rgba(10,54,54,0.16);
  border-radius: 0 0 0 var(--r-lg);
  transform: translateX(100%); transition: transform var(--dur-slow, .32s) var(--ease-out);
  display: flex; flex-direction: column; overflow: hidden;
}
.jn-acct[data-open="true"] { transform: translateX(0); }
.jn-acct__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex: none;
}
.jn-acct__greet { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jn-acct__eyebrow { font: 600 11px var(--font-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--fg-muted); }
.jn-acct__email { font: 600 15px var(--font-sans); color: var(--c-schiefer); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* flex:0 1 auto, not flex:1 — this used to force the (short, fixed) link list
   to fill every bit of leftover height in a full-viewport drawer, which is
   exactly the empty space the panel no longer has now that it's
   content-sized. overflow-y:auto stays as a safety net if a future account
   ever grows enough links to hit max-height. */
.jn-acct__nav { flex: 0 1 auto; overflow-y: auto; padding: 8px 12px; }
.jn-acct__link {
  display: flex; align-items: center; gap: 14px; padding: 16px 12px;
  font: 500 16px var(--font-sans); color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.jn-acct__link svg { flex: none; color: var(--c-lorbeer-700); }
.jn-acct__link .arr { margin-left: auto; color: var(--fg-muted); display: flex; }
.jn-acct__link:hover { background: var(--c-hellgrau); }
.jn-acct__ft { padding: 16px 20px; border-top: 1px solid var(--border); flex: none; }
.jn-acct__ft form { margin: 0; }
.jn-acct__logout {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px var(--font-sans); color: var(--c-reinweiss); background: var(--c-schiefer);
}
.jn-acct__logout:hover { background: #0a3535; }

/* ============================================================
   RESPONSIVE — collapse desktop nav into burger
   ============================================================ */
.jn[data-view="mobile"] .jn-top,
.jn[data-view="mobile"] .jn-login,
.jn[data-view="mobile"] .jn-panelhost { display: none; }
.jn[data-view="mobile"] .jn-burger { display: inline-flex; }
.jn[data-view="mobile"] .jn-utility .live .meta:not(:first-of-type),
.jn[data-view="mobile"] .jn-utility .sep,
.jn[data-view="mobile"] .jn-utility > .meta { display: none; }
.jn[data-view="mobile"] .jn-utility { justify-content: center; }
.jn[data-view="mobile"] .jn-utility .live { gap: 8px; font-size: 12px; }

@media (max-width: 920px) {
  .jn-top, .jn-login, .jn-panelhost { display: none; }
  .jn-burger { display: inline-flex; }
  /* Tighten the bar so the logo + city selector + action icons fit 375px.
     Desktop padding (32px) and gap (30px) alone ate ~150px of the width.
     Vertical padding isn't just cosmetic here: at 0 the 44px icon buttons'
     hover/active circle sits flush against the bar's own edge, touching the
     search field directly below (which itself sits flush with no gap). */
  .jn-bar { padding: 6px 16px; gap: 8px; }
  /* flex:none (the desktop default) forces the picker to its full content
     width no matter what — fine for "Berlin", but "München" (or any longer
     pharmacy name) then had nowhere to give and pushed the action icons past
     the viewport edge. Scoped to this breakpoint only: desktop has real
     .jn-top nav links and an inline search field competing for the same row,
     and letting this shrink there too clamped the name far more than needed
     even with plenty of free space (a max-width:100%-style fix on the button
     hit a percentage-resolution circularity that clamped "Berlin" and
     "München" to the identical wrong width regardless of content — this
     display:flex + flex:1 1 auto path avoids that). */
  .jn-city-wrap { flex: 0 1 auto; min-width: 0; display: flex; }
  /* Belt-and-suspenders: flex-shrink alone didn't reliably close small gaps
     at every width (observed a few px of overflow at some widths despite
     min-width:0 above) — max-width is a hard, deterministic cap independent
     of flex-shrink distribution, computed from the other fixed-width
     siblings: 32px bar padding + 77px logo + 144px actions + 3×8px gaps. */
  .jn-city-btn { padding: 6px 6px; flex: 1 1 auto; min-width: 0; max-width: calc(100vw - 280px); overflow: hidden; }
  .jn-city-name { overflow: hidden; text-overflow: ellipsis; }
  /* Purely decorative here (the picker is unambiguously a button either way)
     — dropping it reclaims ~18px for the pharmacy name itself, which is the
     part that actually carries information. Extra .jn-bar qualifier for
     specificity: this rule sits earlier in the file than the base
     .jn-city-btn .chev{display:inline-flex} rule, which would otherwise win
     the cascade tie by source order regardless of this media query. */
  .jn-bar .jn-city-btn .chev { display: none; }
  /* Keep the neutral prompt legible without reducing the action touch targets. */
  .jn-bar[data-neutral-account] { gap: 4px; }
  .jn-bar[data-neutral-account] .jn-actions { gap: 2px; }
  .jn-bar[data-neutral-account] .jn-city-btn { padding: 6px 5px; max-width: calc(100vw - 260px); }
  .jn-bar[data-neutral-account] .jn-city-btn > svg { display: none; }
}

/* ============================================================
   SEARCH SLOT  (inline header search, wide form)
   ============================================================ */
.jn-search-slot {
  flex: 0 520px; min-width: 0; flex-shrink: 1; flex-basis: 520px;
  /* Deliberately NOT positioned. The slot is a shrinkable flex item (measured
     408px wide at 1440px, 218px at 1250px, 121px at 1168px), so anchoring the
     results panel here bound the panel to that width and truncated every row to
     "DE…". The panel anchors to .jn-bar instead, which spans the page. The mobile
     row re-establishes its own containing block below. */
}
.jn-search-slot--mobile { display: none; }
/* The full-width row takes over before the inline field becomes too cramped by
   the desktop navigation. At ~1168px it had shrunk to about 121px, which is not
   a useful search control; 1200px preserves an input-sized field on desktop and
   otherwise uses the existing full-width mobile row. */
@media (max-width: 1200px) {
  .jn-search-slot { display: none; }
  /* In-flow (not position:absolute) so it always reserves its own row height —
     the old absolute/no-reserved-space version was built to float over the
     home hero, but that same trick is shared by every page via this one
     header partial, so on any page without a hero it overlapped whatever
     content came first instead (the page heading, breadcrumb, etc). Full
     width and flush against the nav row above it: no side margins, no gap. */
  .jn-search-slot--mobile { display: block; margin: 0; }
  .jn-search-slot--mobile .filt-search input[type="search"] {
    border-radius: 0; border-width: 0 0 1px;
  }
  /* The rounded lavender glow ring reads fine on the floating, bordered
     desktop field, but clashes against a flush, edge-to-edge, square mobile
     one — a soft halo around a hard-edged bar. Flat instead: just a darker
     bottom border, no shadow. */
  .jn-search-slot--mobile .filt-search input[type="search"]:focus {
    box-shadow: none; border-color: var(--c-schiefer);
  }
  /* Same reasoning for the results panel: rounded corners + a drop shadow
     read as a floating card, which fights the flush/square field it now
     hangs directly off. Sharp-edged and flat, like the field itself. */
  .jn-search-slot--mobile .jn-search-drop {
    border-radius: 0; box-shadow: none;
  }
}

.filt-search { position: relative; }
.filt-search svg {
  color: var(--fg-muted); pointer-events: none;
  position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
}
.filt-search input[type="search"] {
  border: 1px solid var(--c-schiefer-100); border-radius: var(--r-sm);
  width: 100%; height: 44px;
  font: 400 16px var(--font-sans); color: var(--c-schiefer);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  padding: 0 14px 0 38px;
  background: transparent; appearance: none; -webkit-appearance: none;
}
.filt-search input[type="search"]::placeholder { color: var(--fg-muted); }
/* The clear affordance is the browser's own control for input[type=search], not
   markup of ours — WebKit and Blink draw an opaque grey pill that ignores the
   input's `appearance: none`. It cannot be recoloured directly, so the native
   glyph is dropped and redrawn as a mask filled with a CI colour: muted like the
   magnifier beside it, deepening to brand on hover. Firefox exposes no such
   pseudo-element and renders no clear button at all; Escape and clearing the
   field by hand both still work there. */
.filt-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 15px; width: 15px; margin: 0; cursor: pointer;
  /* The native button is replaced, so it also loses the browser's own centring and
     lays out on the text baseline — which leaves the glyph hugging the top border.
     Its `top: 50%` is relative to the pseudo-element's line box, not the input,
     and therefore cancels out with `translateY(-50%)`. Move it by half the
     inherited 16px font size instead: 8px is the distance from the baseline to the
     centre of this 44px control, and scales correctly with browser text zoom. */
  transform: translateY(0.5em);
  background-color: var(--fg-muted);
  -webkit-mask: var(--jn-clear-glyph) center / contain no-repeat;
  mask: var(--jn-clear-glyph) center / contain no-repeat;
}
.filt-search input[type="search"]:hover::-webkit-search-cancel-button,
.filt-search input[type="search"]:focus::-webkit-search-cancel-button {
  background-color: var(--c-schiefer);
}
.filt-search {
  --jn-clear-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='1.75' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}
/* Lavendel is the accent (--accent), so the active field reads as selected rather
   than as another slate-on-slate outline: the ring is the only thing marking which
   control has focus, and the schiefer version sat at 8% alpha against a schiefer
   border on a white bar. --c-lavendel/-100 themselves were 2.05:1/1.24:1 on white
   (fail 1.4.11) — -700 is the darkest step in the lavender ramp and still reads as
   the accent, at 4.16:1 on white (re-0fx7k.2). outline:none here is scoped to
   :focus and paired with this ring, which is the visible indicator. */
.filt-search input[type="search"]:focus {
  outline: none;
  border-color: var(--c-lavendel-700);
  box-shadow: 0 0 0 3px var(--c-lavendel-700);
}

/* ---------- live-search dropdown (REZEPTOR20-69) ----------
   The panel node always exists (htmx needs a stable swap target); data-open is
   what shows it, so an empty placeholder or a too-short term renders nothing. */
.jn-search-drop {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--c-reinweiss, #fff);
  border: 1px solid var(--c-schiefer-100);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 28px rgba(14,70,70,0.12);
  /* The panel is the scroller, not the lists inside it. Each list used to carry
     `max-height: 60vh; overflow-y: auto` while the panel itself was
     `overflow: hidden` with no max-height, which failed three ways at once: with
     three sections populated the panel grew to the sum of them (measured 1194px
     on a 659px iPhone viewport, 1319px on a 900px desktop one), `overflow: hidden`
     made everything past the viewport unreachable rather than merely off-screen,
     and the wheel found no scrollable box here so the page scrolled behind the
     panel instead.

     60dvh keeps it short enough to sit under any header height without needing to
     know that height (dvh so iOS Safari's collapsing toolbars don't leave it
     taller than the visible viewport); vh first for browsers without dvh.
     overscroll-behavior stops a flick that reaches the last row from chaining
     into the page. */
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 60vh;
  max-height: 60dvh;
  overscroll-behavior: contain;
}
.jn-search-drop[data-open="true"] { display: block; }

/* The inline panel hangs off .jn-bar, not off the field. Because .jn-search-slot
   is unpositioned, .jn-bar (position: relative) is the containing block, so these
   offsets are page-relative. `top: 100%` is the bottom of the bar rather than of
   the field — 6px lower, and steady while the field shrinks.

   The panel spans from the field's own left edge to the bar's right gutter. It
   still may NOT be anchored to .jn-search-slot: the slot is a shrinkable flex
   item (measured 356px wide at 1440px, 121px at 1168px), so a slot-anchored
   panel inherited that width and truncated every row to "DE…". Only the LEFT
   offset is measured — shop.js writes the field's page x into --jn-drop-left on
   load and on resize — and `right: 32px` keeps the far edge on the gutter, so
   the panel *widens* as the field shrinks and can never overflow the viewport.
   Fixing the width instead (the previous `min(720px, …)`) is what pushed the
   left edge off the field: 720px back from the gutter lands 38px left of a
   1440px field and further out at every narrower width.

   The fallback in the var() reproduces that old 720px right-gutter panel exactly,
   so a no-JS visitor still gets a correctly-sized panel rather than a shrink-to-
   fit one; max() keeps it on-screen if the bar is ever narrower than the panel.

   720px is also the ceiling, unchanged from that fixed width — stretching to the
   gutter is only meant to reclaim space when the bar is tight, not to grow without
   limit: the logo + nav block is a fixed 726px, so on a 1920px bar the same rule
   otherwise drew a 1162px panel under a 520px field (2560px: 1802px). Clamping an
   element with both left and right set over-constrains it, which CSS resolves by
   dropping `right` in a ltr document — so the panel keeps its left edge on the
   field and gives the width back on the right, which is exactly the intent. */
.jn-bar .jn-search-drop {
  left: var(--jn-drop-left, max(32px, calc(100% - 32px - 720px)));
  right: 32px;
  width: auto;
  max-width: 720px;
}

/* No max-height/overflow here any more: a scroller inside a scroller meant the
   Produkte list clipped itself at 60vh (measured scrollHeight 460 vs clientHeight
   395) inside a panel that was already overflowing, so a row could be hidden by
   either box. The lists grow; the panel scrolls. */
.jn-search-drop__list { list-style: none; margin: 0; padding: 6px; }
.jn-search-section + .jn-search-section { border-top: 1px solid var(--c-schiefer-100); }
.jn-search-section__title {
  margin: 0; padding: 10px 16px 2px;
  font: 600 11px var(--font-sans); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--fg-muted);
}
.jn-search-drop__list--facets { padding-top: 2px; }

.jn-search-hit {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--fg); text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.jn-search-hit:hover, .jn-search-hit:focus-visible { background: var(--c-lorbeer-hell); }
.jn-search-hit--facet { font: 400 14px var(--font-sans); color: var(--c-schiefer); }
.jn-search-hit--flat { justify-content: space-between; }
.jn-search-hit__type {
  flex: none; border-radius: 999px; padding: 3px 7px;
  font: 600 10px var(--font-sans); letter-spacing: .03em; color: var(--fg-muted);
  background: var(--c-lorbeer-hell);
}

.jn-search-hit__img {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--c-hellgrau, #f5f5f5); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.jn-search-hit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A product photo is cropped to fill the tile; a logo or a flag must not be —
   cover would slice the wordmark off a wide logo and distort a flag's aspect. */
.jn-search-hit__img img.jn-search-hit__flag { object-fit: contain; }
.jn-search-hit--facet .jn-search-hit__img img { object-fit: contain; padding: 4px; }
/* Fallback mark: the common case for manufacturers, since most have no logo on
   file. Muted so it reads as "no image" rather than as a broken one. */
.jn-search-hit__glyph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--fg-muted);
}
.jn-search-hit__glyph svg { width: 20px; height: 20px; display: block; }

/* min-width:0 lets the two lines ellipsis instead of stretching the panel. */
.jn-search-hit__text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.jn-search-hit__name,
.jn-search-hit__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jn-search-hit__name { font: 400 14px var(--font-sans); color: var(--c-schiefer); }
.jn-search-hit__meta { font: 400 12px var(--font-sans); color: var(--fg-muted); flex: 1 1 auto; min-width: 0; }

/* Sub-line = Hersteller + availability. The availability is always visible and
   anchored at the right edge, while the Hersteller yields on narrow panels. */
.jn-search-hit__sub { min-width: 0; width: 100%; display: flex; align-items: center; gap: 6px; }
.jn-search-hit__availability {
  flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px;
  font: 400 11.5px var(--font-sans); text-align: right;
}
.jn-search-hit__availability--available { color: var(--c-schiefer); }
.jn-search-hit__availability--out { color: var(--c-danger); }
/* Same dot the grid card's stock label uses, so the visual language stays consistent. */
.jn-search-hit__availability .d { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.jn-search-drop__all,
.jn-search-drop__empty {
  display: block; margin: 0; padding: 10px 16px;
  font: 400 13px var(--font-sans); color: var(--fg-muted);
  border-top: 1px solid var(--c-schiefer-100);
}
/* Pinned to the bottom of the scroller: it is the escape hatch to the full
   catalog, and with the panel capped at 60dvh it would otherwise sit below the
   fold whenever the results scroll — reachable only by scrolling past every row.
   Needs its own background, or the rows would show through as it passes over. */
.jn-search-drop__all {
  color: var(--c-schiefer); text-decoration: none;
  position: sticky; bottom: 0;
  background: var(--c-reinweiss, #fff);
}
.jn-search-drop__all:hover { background: var(--c-lorbeer-hell); }
.jn-search-drop__empty { border-top: 0; }

/* ============================================================
   PHARMACY / CITY SELECTOR
   ============================================================ */
.jn-city-wrap { flex: none; position: relative; }
/* City / pharmacy selector stays visible on mobile — it sits directly left of the
   action icons once the nav links and search slot collapse into the burger drawer. */

.jn-city-btn {
  color: var(--fg); font: 400 13px var(--font-sans); cursor: pointer;
  border-radius: var(--r-sm); white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
  background: none; border: 0;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
}
.jn-city-btn:hover { background: var(--c-lorbeer-hell); }
.jn-city-name { min-width: 0; }
.jn-city-btn .chev { display: inline-flex; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.jn-city-wrap[data-open="true"] .jn-city-btn .chev { transform: rotate(180deg); }

.jn-city-drop {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  /* Above the search panel's 60. Both hang off .jn-bar, and since the panel became
     page-wide it reaches under this menu — at z-index 50 the pharmacy list was
     buried beneath the results, with only its title strip peeking out. The picker
     is the smaller, deliberately-opened menu, so it wins. */
  min-width: 160px; box-shadow: var(--shadow-lg); z-index: 70;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  /* Right-anchored: the trigger now sits at the right edge of the bar, so a
     left-anchored menu would hang out under the cart/account icons. */
  padding: 8px; position: absolute; top: calc(100% + 6px); right: 0;
  transform: translateY(6px);
}
.jn-city-wrap[data-open="true"] .jn-city-drop {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.jn-city-drop__title {
  font: 600 11px var(--font-sans); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--fg-muted); padding: 4px 8px 8px;
}
.jn-city-drop__empty { padding: 9px 10px; color: var(--fg-muted); font: 400 14px var(--font-sans); }
.jn-city-drop button[role="menuitem"] {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 9px 10px;
  font: 400 14px var(--font-sans); color: var(--fg);
  background: none; border: 0; cursor: pointer; border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.jn-city-drop button[role="menuitem"]:hover { background: var(--c-lorbeer-hell); color: var(--c-schiefer-500); }
.jn-city-drop button[data-active="true"] { font-weight: 500; }

/* Accessibility: visually-hidden text for icon-only actions */
.jn-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* The same native wallet component occupies the active OTC product/cart slot. */
.jn-express { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule, #dce7e7); }
.jn-express > p { margin: 0 0 10px; font: 400 13px/1.5 var(--font-sans); }
.jn-express .jn-express__legal { font-size: 11px; }
.jn-express a { text-decoration: underline; }
.jn-express__error { color: var(--c-danger); }
.jn-express__payment { width: 100%; }
.jn-express [hidden], .jn-express[hidden], [data-express-trigger][hidden] { display: none !important; }
