/*
 * GENERATED by bin/build-css - do not edit this file.
 * Sources in cascade order (edit them, run bin/build-css, commit both):
 *   assets/css/theme.css
 *   assets/css/components/header.css
 *   assets/css/components/shop.css
 *   assets/css/components/prose.css
 *   assets/css/components/search.css
 *   assets/css/components/newsletter-popup.css
 * CI (job "css") fails when this file differs from its sources.
 */

/* ===== assets/css/theme.css ===== */
/* Naturalnie Zadbana theme styles. Tokens come from theme.json (--wp--preset-*), aliased here as --nz-*. */

/* ---------- Fonts ----------
   The web fonts (Newsreader 500 normal and italic, a static instance at optical size 28 with one
   weight, and Figtree 400-700; latin subsets and the Polish letters, font-display: swap) are declared in theme.json and printed by WordPress in the head
   (style.wp-fonts-local); inc/assets.php preloads the files used above the fold.
   The faces below are the fallbacks named right after them in the theme.json stacks: local
   Georgia and Arial scaled to the web fonts' width and vertical metrics, so text painted before
   the web font arrives takes the same space and the swap does not move the layout (CLS).
   Values measured in Chromium (canvas measureText, Polish heading and body copy):
   size-adjust = web font width / fallback width, ascent and descent = web font metric / size-adjust.
   Newsreader: ascent 0.735 em, descent 0.265 em (typo metrics); Figtree: ascent 0.95 em, descent 0.25 em.
   A system without the local font skips its face and uses the next family in the stack. */
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; font-weight: 400 500; src: local('Georgia'); size-adjust: 95.68%; ascent-override: 76.82%; descent-override: 27.7%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback'; font-style: italic; font-weight: 400 500; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 88.13%; ascent-override: 83.4%; descent-override: 30.07%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback'; font-style: normal; font-weight: 400; src: local('Arial'), local('ArialMT'); size-adjust: 100.12%; ascent-override: 94.89%; descent-override: 24.97%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback'; font-style: normal; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 96.13%; ascent-override: 98.83%; descent-override: 26.01%; line-gap-override: 0%; }
/* Android has neither Georgia nor Arial: Noto Serif and Roboto measured the same way (Chromium,
   the same Polish copy), next in the stacks after the faces above. */
@font-face { font-family: 'Newsreader Fallback Android'; font-style: normal; font-weight: 400 500; src: local('Noto Serif'), local('NotoSerif-Regular'); size-adjust: 88.61%; ascent-override: 82.95%; descent-override: 29.91%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback Android'; font-style: italic; font-weight: 400 500; src: local('Noto Serif Italic'), local('NotoSerif-Italic'); size-adjust: 85.95%; ascent-override: 85.52%; descent-override: 30.83%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback Android'; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto-Regular'); size-adjust: 100.48%; ascent-override: 94.55%; descent-override: 24.88%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback Android'; font-style: normal; font-weight: 700; src: local('Roboto Bold'), local('Roboto-Bold'); size-adjust: 101.95%; ascent-override: 93.18%; descent-override: 24.52%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --nz-bg: var(--wp--preset--color--cream);
  --nz-bg-light: var(--wp--preset--color--light);
  --nz-bg-linen: var(--wp--preset--color--linen);
  --nz-text: var(--wp--preset--color--espresso);
  --nz-text-2: var(--wp--preset--color--text-2);
  --nz-muted: var(--wp--preset--color--muted);
  --nz-accent: var(--wp--preset--color--terracotta);
  --nz-accent-dark: var(--wp--preset--color--terracotta-dark);
  --nz-line: var(--wp--preset--color--line);
  --nz-line-linen: var(--wp--preset--color--line-linen);
  --nz-serif: var(--wp--preset--font-family--serif);
  --nz-sans: var(--wp--preset--font-family--sans);
  --nz-radius: var(--wp--custom--radius, 2px);
  --nz-container: 1400px;
  --nz-gutter: var(--wp--custom--container--padding, clamp(20px, 3vw, 48px));
  /* Section spacing follows the width and the height of the window: on a laptop (1536x730, a 1920x1080
     screen at 125 percent) a section fits on one screen. */
  --nz-section: var(--wp--preset--spacing--70, clamp(min(4.5rem, 9svh), min(8vw, 10svh), 7.5rem));
  --nz-shadow-panel: var(--wp--custom--shadow--panel);
  --nz-focus: 2px solid var(--nz-accent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* Smooth page changes: a cross-document view transition fades the old page into the new one
   instead of a hard cut. CSS only, no script; a browser without support navigates as before.
   Root only: naming the header would make it a containing block for the fixed menus inside it.
   Off with prefers-reduced-motion (the * rule above does not reach the view-transition pseudos). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: nz-vt-out 200ms ease-in both; }
  ::view-transition-new(root) { animation: nz-vt-in 320ms ease-out both; }
}
@keyframes nz-vt-out { to { opacity: 0; } }
@keyframes nz-vt-in { from { opacity: 0; } }
/* font-synthesis-weight: Newsreader ships one weight (500), so no synthesized bold when a rule asks
   for more; Figtree is a 400-700 variable font and never needs it. */
body { margin: 0; font-synthesis-weight: none; background: var(--nz-bg); color: var(--nz-text); font-family: var(--nz-sans); font-size: 1.125rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--nz-serif); font-weight: 500; line-height: 1; margin: 0 0 0.5em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--nz-accent-dark); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nz-accent-dark); }
:focus-visible { outline: var(--nz-focus); outline-offset: 3px; }
button { font: inherit; }
ul[class] { list-style: none; margin: 0; padding: 0; }

/* Desktop: the fluid heading sizes of theme.json (the same clamp as WordPress prints, which only follows
   the width) also stay within a share of the window height, so a wide but short laptop screen does not
   get the full-HD sizes. Phones keep the theme.json values. */
@media (min-width: 1000px) {
  body {
    --wp--preset--font-size--heading-1: clamp(2.375rem, min(2.375rem + ((1vw - 0.2rem) * 3.148), 9svh), 4.5rem);
    --wp--preset--font-size--heading-2: clamp(2.375rem, min(2.375rem + ((1vw - 0.2rem) * 1.852), 7svh), 3.625rem);
    --wp--preset--font-size--heading-3: clamp(1.75rem, min(1.75rem + ((1vw - 0.2rem) * 0.556), 4.5svh), 2.125rem);
  }
}

/* ---------- Layout ---------- */
.nz-container { width: min(100% - 2 * var(--nz-gutter), var(--nz-container)); margin-inline: auto; }
.nz-section { padding-block: var(--nz-section); }
.nz-grid { display: grid; gap: 2.75rem 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.nz-prose { max-width: 72ch; }
.nz-prose--narrow { max-width: 64ch; }

/* ---------- Type helpers ---------- */
.nz-eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nz-accent-dark); margin-bottom: 0.75rem; }
.nz-lead { font-size: var(--wp--preset--font-size--lead); }
.nz-page-title { font-size: var(--wp--preset--font-size--heading-2); }
.nz-link { position: relative; font-weight: 700; font-size: 1.0625rem; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.nz-link:hover { color: var(--nz-accent-dark); }
/* 44px tall hit area without touching the layout: an invisible box centred on the link. */
.nz-link::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }

/* ---------- Buttons ---------- */
.nz-button { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 34px; background: var(--nz-text); color: var(--nz-bg-light); border: 1px solid var(--nz-text); border-radius: var(--nz-radius); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; cursor: pointer; transition: background-color 150ms, color 150ms; }
.nz-button:hover { background: var(--nz-accent); border-color: var(--nz-accent); color: var(--nz-bg-light); }
.nz-button--outline { background: transparent; color: var(--nz-text); min-height: 50px; }
.nz-button--outline:hover { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-button--cta { background: var(--nz-accent); border-color: var(--nz-accent); min-height: 46px; padding: 0 20px; }
.nz-button--cta:hover { background: var(--nz-text); border-color: var(--nz-text); }
@media (max-width: 999px) { .nz-button:not(.nz-button--cta) { width: 100%; min-height: 56px; } }
/* Editor buttons (core/buttons in page content: story pages, prose) follow the same rule: one per
   row, full width, below 1000px. */
@media (max-width: 999px) {
  .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
  .wp-block-buttons .wp-block-button__link { width: 100%; }
}

/* ---------- Visually hidden (WordPress and WooCommerce use this class) ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; white-space: normal; }

/* ---------- Skip link ---------- */
/* Moved up by its own height (not a fixed -100px), so it stays out of view with 200 percent text too. */
.nz-skip-link { position: absolute; left: 1rem; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--nz-text); color: var(--nz-bg-light); border-radius: var(--nz-radius); transform: translateY(-100%); }
.nz-skip-link:focus { top: 1rem; transform: none; }

/* ---------- Top bar ---------- */
.nz-topbar { background: var(--nz-text); color: var(--nz-bg); font-size: 0.9375rem; font-weight: 600; padding: 9px var(--nz-gutter); }
.nz-topbar__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 56px; }
/* Phones: the three promises would wrap to three lines (98px over the header), so only the first
   one shows, on one line. The other two repeat on the product page and in the cart. */
@media (max-width: 759px) {
  .nz-topbar { padding-block: 7px; }
  .nz-topbar__item { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .nz-topbar__item:not(:first-child) { display: none; }
}

/* ---------- Hero (placeholder) ---------- */
.nz-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(640px, 52vw, 800px); }
.nz-hero__content { display: flex; flex-direction: column; justify-content: center; gap: 26px; max-width: 580px; padding: 48px max(48px, calc((100vw - var(--nz-container)) / 2 + 48px)) 48px; padding-right: clamp(48px, 5vw, 96px); background: linear-gradient(135deg, #F8F2EA 0%, #F3E6D9 55%, #EED6C4 100%); }
.nz-hero__title { font-size: var(--wp--preset--font-size--heading-1); line-height: 1; letter-spacing: -0.01em; }
.nz-hero__media { background: var(--wp--preset--color--peach); }
.nz-hero__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 999px) {
  .nz-hero { grid-template-columns: 1fr; }
  .nz-hero__media { order: -1; aspect-ratio: 4 / 5; }
  .nz-hero__content { padding: 36px 20px 48px; max-width: none; }
  .nz-hero__title { font-size: 2.375rem; line-height: 1.02; }
  .nz-hero__actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Cards ---------- */
.nz-card { display: grid; gap: 10px; }
.nz-card__media { background: var(--wp--preset--color--card); border-radius: var(--nz-radius); overflow: hidden; aspect-ratio: 4 / 5; }
.nz-card__img { width: 100%; height: 100%; object-fit: cover; }
.nz-card__title { font-size: 1.75rem; line-height: 1.1; margin: 0; }
/* Desktop: the 4:5 photo is cropped lower on a short window, so a section head and a row of cards fit
   on one screen (home guide, blog list, related posts). */
@media (min-width: 1000px) { .nz-card__media { width: 100%; max-height: max(240px, 100svh - 2 * var(--nz-section) - 420px); } }
.nz-card__title a:hover { color: var(--nz-accent-dark); }

/* ---------- WooCommerce error notices (woocommerce/notices/error.php) ---------- */
.nz-notice__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nz-notice__list li { margin: 0; }
.woocommerce-error:focus { outline: none; }
.woocommerce-error:focus-visible { outline: var(--nz-focus); outline-offset: 2px; }

/* ---------- Search ---------- */
.nz-search { display: flex; gap: 0; max-width: 560px; }
.nz-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nz-search__input { flex: 1; min-height: 60px; padding: 0 1rem; border: 1px solid var(--nz-text); border-right: 0; border-radius: var(--nz-radius) 0 0 var(--nz-radius); background: var(--nz-bg-light); font: inherit; }
.nz-search__submit { border-radius: 0 var(--nz-radius) var(--nz-radius) 0; min-height: 60px; }
/* The form keeps its row on phones (the mobile .nz-button rule above makes buttons full width);
   here rather than in blog.css, so product search results and empty listings get it without blog.css. */
.nz-search .nz-search__submit { width: auto; flex: none; }
.nz-search .nz-search__input { min-width: 0; }

/* ---------- Footer ---------- */
.nz-footer { background: var(--nz-text); color: var(--wp--preset--color--footer-text); padding: 72px 0 40px; margin-top: auto; }
.nz-footer a:hover { color: var(--wp--preset--color--peach-2); }
/* Focus ring on espresso: peach-2 (9.86:1) instead of terracotta (2.51:1, below the 3:1 of WCAG 1.4.11). */
.nz-footer :focus-visible { outline-color: var(--wp--preset--color--peach-2); }
/* Logo link: 44px target; the negative margins give back the extra height, so the column keeps its layout. */
.nz-footer__logo { display: inline-flex; align-items: center; min-height: 44px; margin-block: -8px; }
.nz-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 2.5rem; }
.nz-footer__logo .nz-logo__img--custom { filter: brightness(0) invert(1); }
.nz-footer__tagline { margin: 1rem 0 0; color: var(--wp--preset--color--footer-text-2); max-width: 32ch; }
.nz-footer__heading { font-family: var(--nz-sans); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--peach-2); margin-bottom: 0.75rem; }
.nz-footer__list { margin: 0; padding: 0; list-style: none; }
/* Links are 44px tall targets (WCAG 2.5.8 asks for 24px; the larger target suits the audience). */
.nz-footer__list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; line-height: 1.35; overflow-wrap: anywhere; }
.nz-footer__contact-item { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 10px; line-height: 1.4; }
.nz-footer__contact-item .nz-icon { flex: none; color: var(--wp--preset--color--peach-2); }
.nz-footer__social { display: flex; gap: 8px; margin: 1.25rem 0 0 -10px; padding: 0; list-style: none; }
.nz-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.nz-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--footer-line); font-size: 0.9375rem; color: var(--wp--preset--color--footer-text-3); }
.nz-footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.nz-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--footer-text-2); }
.nz-footer__copy { margin: 0; }
/* Below 1200px: link columns in pairs, the brand block and the contact details full width. */
@media (max-width: 1199px) {
  .nz-footer { padding-top: 56px; }
  .nz-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
  .nz-footer__brand,
  .nz-footer__contact { grid-column: 1 / -1; }
}
/* Link columns: a <details> each (footer.php, footer-nav.js). Open from 600px, the summary is only
   the heading there. */
.nz-footer__summary { display: block; list-style: none; cursor: default; }
.nz-footer__summary::-webkit-details-marker { display: none; }
.nz-footer__summary::marker { content: ""; }
.nz-footer__credit { margin: 0; }
.nz-footer__credit a { color: var(--wp--preset--color--footer-text-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 600px) {
  /* The copyright and the credit together at the right end of the bar, the legal links at the left. */
  .nz-footer__copy { margin-inline-start: auto; }
}
/* Below 600px: the brand block centred, the link columns an accordion (one link per row, folded
   by footer-nav.js so the footer stays short; without JS they stay open), the contact details
   under them and the bottom bar centred. */
@media (max-width: 599px) {
  .nz-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nz-footer__brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 2.25rem; text-align: center; }
  .nz-footer__tagline { margin-inline: auto; }
  .nz-footer__social { justify-content: center; margin: 1rem 0 0; }
  .nz-footer__col:not(.nz-footer__contact) { border-top: 1px solid var(--wp--preset--color--footer-line); }
  .nz-footer__summary { position: relative; display: flex; align-items: center; min-height: 56px; padding-right: 40px; cursor: pointer; }
  .nz-footer__summary .nz-footer__heading { margin: 0; }
  .nz-footer__summary::after { content: "+"; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--wp--preset--color--peach-2); }
  .nz-footer__group[open] > .nz-footer__summary::after { content: "−"; }
  .nz-footer__summary:focus-visible { outline-offset: -3px; }
  .nz-footer__group > .nz-footer__list { padding-bottom: 12px; }
  .nz-footer__contact { padding-top: 1.75rem; border-top: 1px solid var(--wp--preset--color--footer-line); }
  .nz-footer__bottom { flex-direction: column; gap: 0.25rem; margin-top: 2rem; padding-top: 1.25rem; text-align: center; }
  .nz-footer__legal { justify-content: center; }
}

/* ---------- Breadcrumbs: one line, last item truncates (global rule) ---------- */
/* contain: inline-size keeps the nowrap trail from widening its grid or flex column. When even the
   earlier steps do not fit (200 percent text, text spacing), the trail scrolls sideways inside its
   own box instead of widening the page; no visible scrollbar (the links are Tab stops and scroll
   into view). Links get 44px targets: the extra height and the room for focus rings come from
   padding given back by negative margins, so the trail keeps its place and its 1.6em line. */
.nz-breadcrumbs { contain: inline-size; }
.nz-breadcrumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.5rem; list-style: none; margin: calc((1.6em - 44px) / 2 - 6px) -6px; padding: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; font-size: 0.875rem; line-height: 1.6; }
.nz-breadcrumbs ol::-webkit-scrollbar { display: none; }
.nz-breadcrumbs li { flex: 0 0 auto; white-space: nowrap; }
.nz-breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nz-breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }

/* ===== assets/css/components/header.css ===== */
/* Header: mobile bar + menu drawer (default) and desktop bar + mega menu (min-width 1000px).
   Colors and sizes come from the tokens in theme.css / theme.json. */

nz-mega-menu,
nz-mobile-menu,
nz-sticky-header { display: block; }

.nz-header { position: relative; z-index: 30; background: var(--nz-bg); border-bottom: 1px solid var(--nz-line); }

/* Sticky header (sticky-header.js): only with JS, so without it the header scrolls away as before.
   It moves with its sticky top offset (--nz-header-shift: 0, the top bar height, or the full
   height when hidden), never with a transform, which would make it the frame of the fixed mobile
   menu panel. The admin bar is fixed above 600px, so the header sits under it there. */
.admin-bar { --nz-admin-bar: 32px; }
.js .nz-sticky-header { position: sticky; top: calc(var(--nz-admin-bar, 0px) - var(--nz-header-shift, 0px)); z-index: 30; transition: top 250ms ease; }
.js .nz-sticky-header.is-hidden .nz-header { box-shadow: none; }
/* Open mobile menu drawer: above the cookie bar of the core plugin (9000), as for .nz-header below. */
.js .nz-sticky-header:has(.nz-mobile__panel:is(.is-open, .is-closing)) { z-index: 9100; }
/* Anchors and focused fields scroll clear of the visible header (WCAG 2.4.11). */
html { scroll-padding-top: calc(var(--nz-header-offset, 0px) + 16px); }
.nz-header__desktop { display: none; }
/* 44px target whatever the logo height (text logo or image); centred in the bar, so nothing moves. */
.nz-header__logo { display: inline-flex; align-items: center; flex: none; min-width: 0; min-height: 44px; }
.nz-logo__img { width: auto; height: 38px; }
/* Text logo is the fallback when no custom logo is set; it may truncate on narrow phones. */
.nz-logo--text { font-family: var(--nz-serif); font-size: clamp(1rem, 5.5vw, 1.375rem); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Mobile bar: menu, search | logo | account, cart ---------- */
/* Flex row, not a three-column grid: four 44px icon targets, the logo takes the space between the
   pairs (equal on both sides, so it stays centred) and truncates with an ellipsis (min 5em). With
   very large text (200 percent) or text spacing the row wraps instead of letting the parts overlap
   (WCAG 1.4.4, 1.4.10, 1.4.12). 12px + 44px + 12px keeps the 68px bar of the design.
   The text logo is about 8.4em wide in Newsreader: its size follows the space left by the four
   icons and 8px of padding (100vw - 184px, with a margin for the fallback font), so the whole
   name shows from 320px up; the ellipsis stays as the last resort. */
.nz-header__bar-m { display: flex; flex-wrap: wrap; align-items: center; gap: 0; min-height: 68px; padding: 12px 4px; }
.nz-header__bar-m .nz-header__logo { display: block; flex: 1 1 0; min-width: 5em; line-height: 44px; text-align: center; }
.nz-header__bar-m .nz-logo--text { font-size: clamp(1rem, calc((100vw - 192px) / 8.8), 1.375rem); }
.nz-header__bar-m .nz-header__logo:has(img) { display: flex; justify-content: center; }
/* The image logo is about 5.4 times wider than high: on a phone it shrinks to the space between the icon pairs (the box is the flexible middle) and stays 38px high at most. */
.nz-header__bar-m .nz-logo__img { width: auto; max-width: 100%; height: auto; max-height: 38px; }
.nz-mobile__toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--nz-radius); background: none; color: var(--nz-text); cursor: pointer; }
/* Three bars drawn with one element and its pseudo elements. */
.nz-mobile__bars,
.nz-mobile__bars::before,
.nz-mobile__bars::after { display: block; width: 22px; height: 1.75px; border-radius: 1px; background: currentColor; }
.nz-mobile__bars { position: relative; }
.nz-mobile__bars::before,
.nz-mobile__bars::after { content: ""; position: absolute; left: 0; }
.nz-mobile__bars::before { top: -7px; }
.nz-mobile__bars::after { top: 7px; }
/* The visible word is replaced by the icon; the button's aria-label carries the name. */
.nz-mobile__toggle-label { display: none; }
.nz-mobile__icon { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--nz-radius); color: var(--nz-text); }

/* Cart badge (mobile and desktop): the count in a small dot over the bag; hidden at 0, the number
   stays in the accessible name. */
.nz-cart-count { position: absolute; top: 4px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--nz-accent-dark); color: var(--nz-bg-light); font-size: 0.75rem; font-weight: 700; line-height: 19px; text-align: center; }
.nz-cart-count[data-count="0"] { width: 1px; min-width: 0; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }

/* ---------- Mobile menu drawer (mobile-menu.js) ----------
   Without JS a plain block under the bar: the section links, then every section view as a list
   under its title. With JS a drawer from the left (full width up to 440px) over a backdrop; inside
   it the first view and the section views slide sideways. Closed parts are visibility: hidden
   after the slide, so nothing in them takes focus. */
nz-mobile-menu { --nz-mobile-ease: cubic-bezier(0.4, 0, 0.2, 1); }
.nz-mobile__panel { display: flex; flex-direction: column; background: var(--nz-bg-light); border-top: 1px solid var(--nz-line); }
.nz-mobile__head[hidden],
.nz-mobile__backdrop[hidden] { display: none; }
.nz-mobile__view { padding: 20px 20px max(28px, env(safe-area-inset-bottom)); }
html:not(.js) .nz-mnav__section:has(> .nz-mnav__item--sub),
html:not(.js) .nz-mobile__back-arrow { display: none; }

.js .nz-mobile__panel { position: fixed; top: var(--nz-admin-bar, 0px); bottom: 0; left: 0; z-index: 40; width: min(100%, 440px); border-top: 0; box-shadow: var(--nz-shadow-panel); visibility: hidden; transform: translateX(-100%); transition: transform 300ms var(--nz-mobile-ease), visibility 0s linear 300ms; }
.js .nz-mobile__panel.is-open { visibility: visible; transform: none; transition: transform 300ms var(--nz-mobile-ease); }
.js .nz-mobile__backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(46, 38, 34, 0.45); opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 0s linear 300ms; }
.js .nz-mobile__backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 300ms; }
/* The header is the drawer's stacking context: while the drawer is open or sliding out it goes
   above the cookie bar of the core plugin (9000), which is inert then. */
.nz-header:has(.nz-mobile__panel:is(.is-open, .is-closing)) { z-index: 9100; }

/* Drawer head: the close cross sits where the menu button is in the bar (same 68px row). */
.nz-mobile__head { display: flex; align-items: center; flex: none; min-height: 68px; padding: 12px 8px; border-bottom: 1px solid var(--nz-line); }
.nz-mobile__close { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--nz-radius); background: none; color: var(--nz-text); cursor: pointer; }
.nz-mobile__close::before,
.nz-mobile__close::after { content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 1.75px; background: currentColor; transform: rotate(45deg); }
.nz-mobile__close::after { transform: rotate(-45deg); }

/* Views: the active one is in place; the first view waits on the left, section views on the right. */
.js .nz-mobile__views { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.js .nz-mobile__view { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--nz-bg-light); visibility: hidden; transform: translateX(100%); transition: transform 300ms var(--nz-mobile-ease), visibility 0s linear 300ms; }
.js .nz-mobile__view--root { transform: translateX(-30%); }
.js .nz-mobile__view.is-active { visibility: visible; transform: none; transition: transform 300ms var(--nz-mobile-ease); }
.js .nz-mobile__panel.is-instant .nz-mobile__view { transition: none; }

.nz-mobile__cta { width: 100%; min-height: 56px; margin-bottom: 20px; font-size: 1.0625rem; }
.nz-mnav__list { border-top: 1px solid var(--nz-line); }
.nz-mnav__section { border-bottom: 1px solid var(--nz-line); }
.nz-mnav__item,
.nz-mobile__back { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 0; border: 0; background: none; font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.1; color: var(--nz-text); text-align: left; cursor: pointer; }
.nz-mnav__item { justify-content: space-between; }
.nz-mnav__section--highlight .nz-mnav__item { color: var(--nz-accent); }
.nz-mobile__back { justify-content: flex-start; margin: -8px 0 8px; }
html:not(.js) .nz-mobile__back { cursor: default; }
html:not(.js) .nz-mobile__sub + .nz-mobile__sub { padding-top: 0; }
/* Arrows: a 16px line with a chevron head, to the right on section buttons, to the left on back. */
.nz-mnav__arrow,
.nz-mobile__back-arrow { position: relative; flex: none; width: 16px; height: 12px; }
.nz-mnav__arrow::before,
.nz-mobile__back-arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.nz-mnav__arrow::after,
.nz-mobile__back-arrow::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; transform: translateY(-50%) rotate(45deg); }
.nz-mnav__arrow::after { right: 1px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.nz-mobile__back-arrow::after { left: 1px; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }

.nz-mnav__links { border-top: 1px solid var(--nz-line); }
.nz-mnav__links > li { border-bottom: 1px solid var(--nz-line); }
.nz-mnav__link { display: flex; align-items: center; min-height: 52px; padding: 6px 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: var(--nz-text); }
.nz-mnav__links > li:last-child .nz-mnav__link { font-weight: 700; color: var(--nz-accent-dark); }
/* Image of the desktop mega panel with its text link; one link for both when the link is set. */
.nz-mnav__media { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; color: var(--nz-text); }
.nz-mnav__figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--nz-radius); background: var(--wp--preset--color--peach); }
.nz-mnav__img { width: 100%; height: 100%; object-fit: cover; }
.nz-mnav__more { align-self: flex-start; font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.nz-mobile__links { display: flex; gap: 28px; margin-top: 16px; font-size: 1.0625rem; font-weight: 600; }
.nz-mobile__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--nz-text); }

/* Hover colours only for real pointers, so a tap does not leave a stuck hover state. */
@media (hover: hover) {
  .nz-mobile__toggle:hover,
  .nz-mobile__icon:hover,
  .nz-mobile__close:hover,
  .nz-mobile__back:hover,
  .nz-mnav__item:hover,
  .nz-mnav__link:hover,
  .nz-mnav__media:hover,
  .nz-mobile__link:hover { color: var(--nz-accent-dark); }
  .nz-mnav__section--highlight .nz-mnav__item:hover { color: var(--nz-accent); }
}

/* ---------- Desktop ---------- */
/* Measured: at 16px with the chevron buttons the bar needs ~1330px, so sizes and gaps grow
   fluidly from 1240px (tight) to 1440px (handoff values); 1000-1239px keeps every element by
   moving the nav to a second row (handoff note 0b offers tightening or an earlier mobile switch). */
@media (min-width: 1000px) {
  .nz-header__mobile { display: none; }
  .nz-header__desktop { display: block; position: relative; }
  /* min-height and wrapping instead of a fixed 84px: with large text (200 percent) or text spacing
     the nav and the actions move to their own rows instead of running into each other. */
  .nz-header__bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 clamp(14px, -72.8px + 7vw, 28px); min-height: 84px; }
  .nz-header__logo { align-self: center; }
  .nz-logo__img { height: clamp(40px, 2.8px + 3vw, 46px); }
  .nz-logo--text { font-size: 1.375rem; }

  .nz-nav { display: flex; align-items: stretch; min-width: 0; }
  .nz-nav__list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 clamp(10px, -52px + 5vw, 26px); min-height: 84px; font-size: clamp(0.875rem, 0.1rem + 1vw, 1rem); font-weight: 600; white-space: nowrap; }
  .nz-nav__item { display: flex; align-items: center; margin-bottom: -1px; border-bottom: 2px solid transparent; }
  .nz-nav__item.is-open { border-bottom-color: var(--nz-accent); }
  .nz-nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--nz-text); }
  /* 28x44 hit area that starts where the label ends (no overlap with the section link) and reaches
     8px into the gap to the next item (the gap is at least 10px); the chevron stays 7px from the
     label and the item keeps its width (28px - 8px = the former 44px - 2 x 12px). */
  .nz-nav__toggle { display: inline-flex; align-items: center; justify-content: flex-start; width: 28px; height: 44px; margin: 0 -8px 0 0; padding: 0 0 0 7px; border: 0; background: none; color: var(--nz-text); cursor: pointer; }
  .nz-nav__link:hover,
  .nz-nav__toggle:hover,
  .nz-nav__item.is-open .nz-nav__link,
  .nz-nav__item.is-open .nz-nav__toggle,
  .nz-nav__item--highlight .nz-nav__link,
  .nz-nav__item--highlight .nz-nav__toggle { color: var(--nz-accent); }
  .nz-nav__chevron { display: block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.7; }

  .nz-header__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 clamp(4px, -35.6px + 4vw, 10px); margin-left: auto; font-size: clamp(0.875rem, 0.1rem + 1vw, 1rem); font-weight: 600; white-space: nowrap; }
  .nz-header__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--nz-text); }
  .nz-header__icon:hover { color: var(--nz-accent-dark); }
  .nz-header__cta + .nz-header__icon { margin-left: 6px; }
  .nz-header__cta { min-height: 46px; padding: 0 clamp(14px, -23.2px + 3vw, 20px); font-size: clamp(0.9375rem, 0.1625rem + 1vw, 1.0625rem); }

  /* Mega menu panel: full width under the bar, one open at a time (hidden attribute when closed). */
  .nz-mega__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--nz-bg-light); border-bottom: 1px solid var(--nz-line); box-shadow: var(--nz-shadow-panel); font-weight: 400; white-space: normal; animation: nz-mega-in 150ms ease-out; }
  .nz-mega__panel[hidden] { display: none; }
  @keyframes nz-mega-in { from { opacity: 0; } }
  /* Every panel has the same fixed height, about 40% of the viewport (never above 400px), so the
     menu does not jump between sections and never covers half the page. The image fills what the
     columns leave; the content of the tallest panel (six link rows) fits the 340px minimum. */
  .nz-mega__panel { --nz-mega-h: clamp(340px, 42vh, 400px); }
  .nz-mega__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 300px); gap: 40px; align-items: stretch; box-sizing: border-box; height: var(--nz-mega-h); padding: 28px 0; }
  .nz-mega__head { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .nz-mega__eyebrow { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nz-accent-dark); }
  .nz-mega__title { margin: 0; font-family: var(--nz-serif); font-size: 1.875rem; line-height: 1.05; color: var(--nz-text); text-wrap: balance; }
  .nz-mega__intro { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--wp--preset--color--text-3); }
  .nz-mega__links { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; align-content: start; min-height: 0; border-top: 1px solid var(--nz-line); }
  .nz-mega__links--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nz-mega__link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--nz-line); font-size: 1.0625rem; font-weight: 500; color: var(--nz-text); }
  .nz-mega__link:hover { color: var(--nz-accent-dark); }
  .nz-mega__links > li:last-child .nz-mega__link { font-weight: 700; color: var(--nz-accent-dark); }
  .nz-mega__arrow { position: relative; flex: none; width: 14px; height: 12px; color: var(--nz-muted); opacity: 0.75; }
  .nz-mega__arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: currentColor; }
  .nz-mega__arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
  .nz-mega__media { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .nz-mega__figure { flex: 1 1 0; min-height: 0; background: var(--wp--preset--color--peach); border-radius: var(--nz-radius); overflow: hidden; }
  .nz-mega__img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .nz-mega__more { align-self: flex-start; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 1rem; font-weight: 700; color: var(--nz-text); }
  .nz-mega__more:hover { color: var(--nz-accent-dark); }
}

/* 1000-1239px: one row cannot hold the logo, six items and the right group, so the nav takes a second row. */
@media (min-width: 1000px) and (max-width: 1239px) {
  .nz-header__bar { align-items: center; padding-top: 12px; }
  .nz-nav { order: 3; flex: 0 0 100%; }
  .nz-nav__list { min-height: 52px; }
}

/* Wider panel columns from 1250px. */
@media (min-width: 1250px) {
  .nz-mega__grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 380px); gap: 48px; }
}

/* Panels with two link columns (Sklep): every link stays on one line. The longest label
   ("Kosmetyki na okres menopauzy") needs ~290px with its arrow, so from 1400px the intro and the
   image give up some width; below 1400px the image is dropped and the links take its column. */
@media (min-width: 1400px) {
  .nz-mega__grid:has(> .nz-mega__links--2) { grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 340px); gap: 40px; }
}
@media (min-width: 1000px) and (max-width: 1399px) {
  .nz-mega__grid:has(> .nz-mega__links--2) { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .nz-mega__grid:has(> .nz-mega__links--2) .nz-mega__media { display: none; }
}

@media (max-width: 782px) {
  .admin-bar { --nz-admin-bar: 46px; }
}
@media (max-width: 600px) {
  .admin-bar { --nz-admin-bar: 0px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .nz-sticky-header { transition: none; }
  .nz-mega__panel { animation: none; }
  .js .nz-mobile__panel,
  .js .nz-mobile__backdrop,
  .js .nz-mobile__view { transition: none; }
}

/* ===== assets/css/components/shop.css ===== */
/* Shop listings (shop page, categories, search) and the product card.
   Tokens only (--nz-*, --wp--preset-*), mobile first, breakpoint 1000px. */

/* ---------- Visually hidden: WooCommerce prints .screen-reader-text inside prices and buttons ---------- */
.nz-shop .screen-reader-text,
.nz-product-card .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Listing layout ---------- */
.nz-shop { padding-block: 20px var(--nz-section); }
.nz-shop__breadcrumbs { margin-bottom: 24px; color: var(--nz-text-2); }
.nz-breadcrumbs__sep { margin-right: 0.5rem; color: var(--nz-muted); }
/* Long words (brand names, the search phrase) break instead of widening the page at 200 percent text. */
.nz-shop__header { margin-bottom: 28px; overflow-wrap: anywhere; }
.nz-shop__title { font-size: var(--wp--preset--font-size--heading-2); line-height: 1; letter-spacing: -0.01em; margin: 0; }
.nz-shop__intro { max-width: 64ch; margin: 12px 0 0; color: var(--nz-text-2); text-wrap: pretty; }
/* Term description below the products and pagination (woocommerce/archive-product.php). */
.nz-shop__about { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--nz-line); color: var(--nz-text-2); }
.nz-shop__about-title { margin: 0 0 0.6em; color: var(--nz-text); }
.nz-shop__about .term-description > :last-child { margin-bottom: 0; }
.nz-shop__layout { display: grid; gap: 32px; }
.nz-shop__filters[hidden] { display: none; }
.nz-shop__main { min-width: 0; }

/* ---------- Result count (in the listing bar, see filters.css) ---------- */
.nz-shop__count { margin: 0; font-size: 0.9375rem; color: var(--nz-text-2); }

/* ---------- Grid: 2 columns, 3 from 700px, 4 from 1000px ---------- */
.nz-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) {
  .nz-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .nz-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
}

/* ---------- Product card ---------- */
.nz-product-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
.nz-product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--wp--preset--color--card); border-radius: var(--nz-radius); overflow: hidden; }
.nz-product-card__img { width: 100%; height: 100%; object-fit: cover; }
.nz-outlet-card__note { flex: 1 1 100%; font-family: var(--nz-sans); font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--nz-accent-dark); }
.nz-product-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; background: var(--nz-text); color: var(--nz-bg-light); border-radius: var(--nz-radius); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; }
/* Outlet listing (page-outlet.php): terracotta badge instead of the dark sale badge. */
.nz-product-card__badge--outlet { background: var(--nz-accent-dark); }
.nz-product-card__body { display: flex; flex-direction: column; gap: 6px; }
/* Card texts break anywhere if they must: long names, "a/b" pairs and brand names stay inside the
   two-column grid at 320px, with 200 percent text and with text spacing (WCAG 1.4.10, 1.4.12). */
/* Brand in one line above the name, its height kept without a brand, so the cards of a row stay
   aligned; a brand too long for the card ends with an ellipsis (the brand is also on the product
   page and in the brand filter). */
.nz-product-card__meta { display: flex; align-items: baseline; min-height: 1.5em; margin: 0; }
.nz-product-card__brand { min-width: 0; margin: 0; overflow: hidden; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; color: var(--nz-accent-dark); }
/* The name shows at most three lines on phones and two from 700px: the cards of a row line up and
   the eye moves from photo to price without a wall of text. The full name stays in the markup
   (screen readers, search, the product page), only its display is cut with an ellipsis; the
   height of the lines is reserved, so a short name does not move the price up. */
.nz-product-card__name { --nz-card-lines: 3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--nz-card-lines); line-clamp: var(--nz-card-lines); min-height: calc(1.45em * var(--nz-card-lines)); margin: 0; overflow: hidden; font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
.nz-product-card__name a:hover,
.nz-product-card__name a:focus-visible { color: var(--nz-accent-dark); }
/* The clamped name hides its overflow, which would cut the global focus outline: draw it inside. */
.nz-product-card__name a:focus-visible { outline-offset: -2px; }
/* Price row at the bottom of the card (the rating is a badge on the photo). */
.nz-product-card__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 6px; }
/* Rating badge in the bottom left corner of the photo: one star and the average ("★ 4,9"), no
   number of reviews (screen readers get rating and count as text under the price). */
.nz-product-card__rating { position: absolute; bottom: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; background: var(--nz-bg-light); color: var(--nz-text); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); font-size: 0.875rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.nz-product-card__star { color: var(--nz-accent-dark); }

/* Price: wraps get_price_html() (del/ins on sale) and the Omnibus line the plugin appends to it. */
.nz-product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; font-family: var(--nz-sans); font-size: 1.375rem; font-weight: 600; line-height: 1; color: var(--nz-text); }
.nz-product-card__price ins { order: -1; text-decoration: none; }
.nz-product-card__price del { font-family: var(--nz-sans); font-size: 0.9375rem; font-weight: 400; color: var(--nz-muted); text-decoration: line-through; }
.nz-product-card__price .iworks-omnibus { flex: 1 1 100%; margin: 2px 0 0; font-family: var(--nz-sans); font-size: 0.8125rem; font-weight: 400; line-height: 1.4; color: var(--nz-muted); }

/* Button pinned at the bottom; the WooCommerce AJAX states (.loading, .added) stay on it. */
.nz-product-card .nz-product-card__button { width: 100%; min-width: 0; min-height: 50px; margin-top: 6px; padding: 6px 10px; font-size: 1rem; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.nz-product-card .nz-product-card__button.loading { opacity: 0.6; cursor: progress; }
.nz-product-card .nz-product-card__button[disabled] { opacity: 0.5; cursor: not-allowed; }
.nz-product-card .nz-product-card__button[disabled]:hover { background: transparent; color: var(--nz-text); }
.nz-product-card .added_to_cart { align-self: center; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 0.9375rem; font-weight: 700; }
@media (min-width: 700px) {
  .nz-product-card__name { --nz-card-lines: 2; font-size: 1.1875rem; }
}
@media (max-width: 699px) {
  .nz-product-card__price { font-size: 1.25rem; }
  .nz-product-card .nz-product-card__button { padding: 0 8px; font-size: 0.9375rem; }
}

/* ---------- Pagination ---------- */
.nz-pagination { margin-top: 40px; }
.nz-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nz-pagination a.page-numbers,
.nz-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); font-size: 1rem; font-weight: 600; transition: border-color 150ms, color 150ms; }
.nz-pagination a.page-numbers:hover { border-color: var(--nz-text); color: var(--nz-text); }
.nz-pagination span.page-numbers.current { background: var(--nz-text); border-color: var(--nz-text); color: var(--nz-bg-light); }
.nz-pagination span.page-numbers.dots { min-width: auto; border: 0; }
.nz-pagination a.prev.page-numbers,
.nz-pagination a.next.page-numbers { padding: 0 16px; }

/* ---------- Empty state ---------- */
.nz-shop__empty { max-width: 640px; padding-block: 24px; }
.nz-shop__empty-title { font-size: var(--wp--preset--font-size--heading-3); margin-bottom: 12px; }
.nz-shop__empty-text { color: var(--nz-text-2); }
.nz-shop__empty .nz-search { margin: 24px 0; }
.nz-shop__empty-link { margin: 0; }

/* ---------- Add to cart: busy state and confirmation (assets/js/components/add-to-cart.js) ---------- */
/* Busy while the request runs: card buttons, the product page button and the mobile buy bar. */
.nz-button[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Confirmation: inserted after the trigger in the DOM (next Tab stop), shown fixed at the bottom.
   Mobile: full width above the buy bar and the cookie bar (--nz-cart-toast-offset from the module);
   desktop: a card in the bottom right corner. Isolated from the styles of the card it sits in. */
.nz-cart-toast { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--nz-cart-toast-offset, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; gap: 12px; margin: 0; padding: 14px 16px 16px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); box-shadow: var(--nz-shadow-panel); color: var(--nz-text); font-family: var(--nz-sans); font-size: 1rem; font-weight: 400; line-height: 1.4; letter-spacing: normal; text-align: left; text-transform: none; opacity: 0; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.nz-cart-toast.is-open { opacity: 1; transform: none; }
.nz-cart-toast__text { display: grid; gap: 2px; min-width: 0; }
.nz-cart-toast__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nz-accent-dark); }
.nz-cart-toast__title::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.nz-cart-toast__name { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 1rem; color: var(--nz-text-2); overflow-wrap: anywhere; }
.nz-cart-toast__name[hidden] { display: none; }
/* Notice variant: the add was not confirmed (unreadable answer), info icon and the full message. */
.nz-cart-toast--notice .nz-cart-toast__title::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15H9V9h2v6Zm0-8H9V5h2v2Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15H9V9h2v6Zm0-8H9V5h2v2Z'/%3E%3C/svg%3E"); }
.nz-cart-toast--notice .nz-cart-toast__name { display: block; -webkit-line-clamp: none; overflow: visible; }
.nz-cart-toast__actions { display: flex; gap: 8px; }
.nz-cart-toast .nz-cart-toast__cart,
.nz-cart-toast .nz-cart-toast__close { flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; letter-spacing: 0; text-align: center; }
@media (min-width: 1000px) {
  .nz-cart-toast { left: auto; right: 24px; bottom: calc(24px + var(--nz-cart-toast-offset, 0px)); width: 400px; padding: 18px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-cart-toast { transform: none; transition: none; }
}

/* ---------- Cart drawer (inc/cart-drawer.php, cart-drawer.js) ---------- */
/* A modal <dialog> in the top layer: the panel slides in from the right, full width on phones and
   420px from 600px. The page behind does not scroll while it is open. */
nz-cart-drawer { display: contents; }
/* Scroll lock without a layout shift: the scrollbar goes away and its width comes back as padding
   (--nz-scrollbar, set by cart-drawer.js). Not scrollbar-gutter: stable, which keeps the gutter out
   of the viewport, so the drawer stopped short of the right edge by the scrollbar width. */
html.nz-drawer-open { overflow: hidden; padding-right: var(--nz-scrollbar, 0px); }
.nz-drawer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--nz-text); overflow: hidden; }
.nz-drawer::backdrop { background: rgba(46, 38, 34, 0.45); }
.nz-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; background: var(--nz-bg-light); box-shadow: var(--nz-shadow-panel); }
/* Slide in and out: cart-drawer.js animates the panel and the backdrop (Web Animations), so closing
   (button, backdrop, Esc) slides out too; without motion it opens and closes at once. */
.nz-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--nz-line); }
.nz-drawer__title { margin: 0; font-family: var(--nz-serif); font-size: 1.625rem; font-weight: 500; line-height: 1.1; }
.nz-drawer__count { font-family: var(--nz-sans); font-size: 1rem; font-weight: 600; color: var(--nz-muted); }
.nz-drawer__close { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--nz-radius); background: none; color: var(--nz-text); cursor: pointer; }
.nz-drawer__close::before,
.nz-drawer__close::after { content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 1.75px; background: currentColor; transform: rotate(45deg); }
.nz-drawer__close::after { transform: rotate(-45deg); }
.nz-drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; }
.nz-drawer__body[aria-busy="true"] .nz-drawer__items { opacity: 0.6; }
.nz-drawer__body[aria-busy="true"] button[data-action] { cursor: progress; }
.nz-drawer__status { margin: 24px 0; color: var(--nz-text-2); }
/* Placeholder while the cart loads; the pulse is off with reduced motion. */
.nz-drawer__skeleton-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--nz-line); }
.nz-drawer__skeleton-media { flex: none; width: 88px; height: 88px; border-radius: var(--nz-radius); background: var(--nz-line-linen); }
.nz-drawer__skeleton-line { flex: 1 1 auto; align-self: flex-start; height: 48px; margin-top: 4px; border-radius: var(--nz-radius); background: var(--nz-line-linen); }
@media (prefers-reduced-motion: no-preference) {
	.nz-drawer__skeleton { animation: nz-drawer-pulse 1.2s ease-in-out infinite; }
}
@keyframes nz-drawer-pulse { 50% { opacity: 0.5; } }
.nz-drawer .nz-free-shipping { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--nz-line); }
.nz-drawer .nz-free-shipping__text { margin: 0 0 8px; font-size: 0.9375rem; line-height: 1.4; color: var(--nz-text-2); }
.nz-drawer .nz-free-shipping__text strong { color: var(--nz-text); }
.nz-drawer .nz-free-shipping__bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--nz-line-linen); }
.nz-drawer .nz-free-shipping__fill { display: block; height: 100%; background: var(--nz-accent); border-radius: 3px; transition: width 300ms; }
.nz-drawer .nz-free-shipping--reached .nz-free-shipping__text { color: var(--nz-accent-dark); font-weight: 600; }
.nz-drawer__items { margin: 0; padding: 0; list-style: none; }
.nz-drawer__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--nz-line); }
.nz-drawer__item:first-child { padding-top: 0; }
.nz-drawer__media { display: block; width: 88px; height: 88px; overflow: hidden; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); }
.nz-drawer__img { width: 100%; height: 100%; object-fit: cover; }
.nz-drawer__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-drawer__name { font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--nz-text); overflow-wrap: anywhere; }
.nz-drawer__name:hover { color: var(--nz-accent-dark); }
.nz-drawer__meta { margin: 0; font-size: 0.875rem; color: var(--nz-muted); }
.nz-drawer__price { margin: 0; font-size: 1rem; }
.nz-drawer__each { font-size: 0.875rem; color: var(--nz-muted); }
.nz-drawer__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 4px; }
.nz-drawer__qty { display: inline-flex; align-items: center; border: 1px solid var(--nz-muted); border-radius: var(--nz-radius); }
.nz-drawer__step { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--nz-text); cursor: pointer; }
.nz-drawer__step::before,
.nz-drawer__step--plus::after { content: ""; position: absolute; left: 15px; top: 21px; width: 14px; height: 1.5px; background: currentColor; }
.nz-drawer__step--plus::after { transform: rotate(90deg); }
.nz-drawer__step:disabled { color: var(--nz-line); cursor: not-allowed; }
.nz-drawer__qty-value { min-width: 2ch; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.nz-drawer__remove { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--nz-text-2); font: inherit; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nz-drawer__remove:hover { color: var(--nz-accent-dark); }
.nz-drawer__empty { display: grid; gap: 12px; padding: 24px 0; }
.nz-drawer__empty-title { margin: 0; font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.15; }
.nz-drawer__empty-text { margin: 0 0 8px; color: var(--nz-text-2); }
.nz-drawer__foot { display: grid; gap: 10px; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--nz-line); background: var(--nz-bg-light); }
.nz-drawer__foot[hidden] { display: none; }
.nz-drawer__sum { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1.125rem; }
.nz-drawer__sum strong { font-size: 1.375rem; }
.nz-drawer__note { margin: 0; font-size: 0.875rem; color: var(--nz-muted); }
.nz-drawer .nz-drawer__checkout { width: 100%; min-height: 56px; }
.nz-drawer__cart { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--nz-text); text-decoration: underline; text-underline-offset: 3px; }
.nz-drawer__cart:hover { color: var(--nz-accent-dark); }
@media (min-width: 600px) {
  .nz-drawer__panel { width: 420px; }
}

/* ===== assets/css/components/prose.css ===== */
/*
 * Content typography for .nz-prose: Gutenberg blocks and legacy HTML from the previous
 * editor (posts, pages, term descriptions). Tokens only, mobile first. The 72ch limit
 * sits on .nz-prose in theme.css. Headings use Newsreader, which ships one weight (500), so
 * <strong> inside headings stays at that weight instead of a synthesized bold.
 */

/* ---------- Flow ---------- */
.nz-prose { font-size: 1.125rem; line-height: 1.6; overflow-wrap: anywhere; }
/* Stored content may carry its own grids and flex rows (some posts ship a <style> block):
   let every child shrink to the column so 200 percent text never widens the page (WCAG 1.4.4). */
.nz-prose :where(div, section, article, aside, nav, figure, header, footer, ul, ol, li, p, blockquote, dl, dt, dd) { min-width: 0; max-width: 100%; }
.nz-prose > :first-child { margin-top: 0; }
.nz-prose > :last-child { margin-bottom: 0; }
.nz-prose p { margin: 0 0 1.25em; text-wrap: pretty; }
.nz-prose p:empty { display: none; }
.nz-prose .has-text-align-center { text-align: center; }
.nz-prose .has-text-align-right { text-align: right; }

/* ---------- Headings ---------- */
.nz-prose h1, .nz-prose h2, .nz-prose h3, .nz-prose h4, .nz-prose h5, .nz-prose h6 { margin: 2em 0 0.6em; font-family: var(--nz-serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
.nz-prose h1, .nz-prose h2 { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.05; }
.nz-prose h3 { font-size: 1.75rem; }
.nz-prose h4 { font-size: 1.375rem; }
.nz-prose h5, .nz-prose h6 { font-family: var(--nz-sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; }
.nz-prose :is(h1, h2, h3, h4) :is(strong, b) { font-weight: 500; }
.nz-prose :is(h1, h2, h3, h4) em { color: var(--nz-accent-dark); }
.nz-prose :is(h2, h3, h4) + :is(h2, h3, h4) { margin-top: 0.75em; }

/* ---------- Inline ---------- */
.nz-prose a:not([class]) { color: var(--nz-accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.nz-prose a:not([class]):hover { color: var(--nz-text); }
.nz-prose strong, .nz-prose b { font-weight: 700; }
.nz-prose mark { background: var(--wp--preset--color--peach-light); color: inherit; }
.nz-prose small { font-size: 0.875em; }
.nz-prose sup, .nz-prose sub { line-height: 0; }

/* ---------- Lists (theme.css resets ul[class]; Gutenberg lists carry .wp-block-list) ---------- */
.nz-prose ul, .nz-prose ol, .nz-prose ul[class], .nz-prose ol[class] { margin: 0 0 1.25em; padding-left: 1.4em; }
.nz-prose ul, .nz-prose ul[class] { list-style: disc; }
.nz-prose ol, .nz-prose ol[class] { list-style: decimal; }
.nz-prose li { margin-bottom: 0.4em; padding-left: 0.2em; text-wrap: pretty; }
.nz-prose li::marker { color: var(--nz-accent-dark); }
.nz-prose li > ul, .nz-prose li > ol { margin: 0.4em 0 0; }
.nz-prose dl { margin: 0 0 1.25em; }
.nz-prose dt { font-weight: 700; }
.nz-prose dd { margin: 0 0 0.75em; }

/* ---------- Quotes ---------- */
.nz-prose blockquote { margin: 2em 0; padding: 0 0 0 1.25em; border-left: 2px solid var(--nz-accent); }
.nz-prose blockquote p { font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.3; }
.nz-prose blockquote cite, .nz-prose blockquote footer { display: block; margin-top: 0.5em; font-family: var(--nz-sans); font-size: 0.9375rem; font-style: normal; color: var(--nz-text-2); }
.nz-prose .wp-block-pullquote { margin: 2.5em 0; padding: 2em 0; border-top: 1px solid var(--nz-line); border-bottom: 1px solid var(--nz-line); text-align: center; }
.nz-prose .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.nz-prose .wp-block-pullquote p { font-family: var(--nz-serif); font-size: 2rem; line-height: 1.2; }

/* ---------- Media ---------- */
.nz-prose img { height: auto; border-radius: var(--nz-radius); }
.nz-prose figure { margin: 2em 0; }
.nz-prose figcaption, .nz-prose .wp-element-caption { margin: 0.6em 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--nz-text-2); }
.nz-prose .wp-block-image img { max-width: 100%; }
.nz-prose .wp-block-image.aligncenter, .nz-prose .aligncenter { margin-inline: auto; text-align: center; }
.nz-prose .wp-block-image.aligncenter > img, .nz-prose img.aligncenter { margin-inline: auto; }
.nz-prose .alignwide, .nz-prose .alignfull { max-width: 100%; }
.nz-prose .wp-block-gallery, .nz-prose .wp-block-embed, .nz-prose .wp-block-video, .nz-prose .wp-block-audio { margin: 2em 0; }
.nz-prose .wp-block-embed__wrapper { overflow: hidden; border-radius: var(--nz-radius); }
.nz-prose iframe { max-width: 100%; }
.nz-prose video { width: 100%; border-radius: var(--nz-radius); }
@media (min-width: 1000px) {
  .nz-prose .alignleft { float: left; max-width: 50%; margin: 0.4em 2em 1em 0; }
  .nz-prose .alignright { float: right; max-width: 50%; margin: 0.4em 0 1em 2em; }
  .nz-prose .wp-block-image.alignleft, .nz-prose .wp-block-image.alignright { margin-top: 0.4em; }
}

/* ---------- Tables ---------- */
.nz-prose .wp-block-table { margin: 2em 0; overflow-x: auto; }
.nz-prose table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.nz-prose .wp-block-table table { margin: 0; }
/* Cell text may break anywhere: a legacy table without the scrolling block wrapper never widens the page. */
.nz-prose th, .nz-prose td { padding: 12px 14px; border-bottom: 1px solid var(--nz-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.nz-prose th { font-weight: 700; border-bottom-color: var(--nz-text); }
.nz-prose .wp-block-table.is-style-stripes { border-bottom: 0; }
.nz-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--nz-bg-light); }

/* ---------- Buttons ---------- */
.nz-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 2em 0; }
.nz-prose .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; background: var(--nz-text); color: var(--nz-bg-light); border: 1px solid var(--nz-text); border-radius: var(--nz-radius); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; text-decoration: none; transition: background-color 150ms, color 150ms; }
.nz-prose .wp-block-button__link:hover { background: var(--nz-accent); border-color: var(--nz-accent); color: var(--nz-bg-light); }
.nz-prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--nz-text); }
.nz-prose .is-style-outline .wp-block-button__link:hover { background: var(--nz-text); color: var(--nz-bg-light); }

/* ---------- Separators ---------- */
.nz-prose hr, .nz-prose .wp-block-separator { width: 100%; height: 0; margin: 3em auto; border: 0; border-top: 1px solid var(--nz-line); background: none; opacity: 1; }
.nz-prose .wp-block-separator.is-style-dots { border: 0; height: auto; text-align: center; }

/* ---------- Layout blocks ---------- */
.nz-prose .wp-block-columns { margin: 0 0 1.25em; }
.nz-prose .wp-block-column:empty { display: none; }
.nz-prose .wp-block-columns:not(:has(> .wp-block-column:not(:empty))) { display: none; }
.nz-prose .wp-block-column > :last-child { margin-bottom: 0; }
.nz-prose .wp-block-group { margin: 0 0 1.25em; }
.nz-prose .wp-block-group > :last-child { margin-bottom: 0; }

/* ---------- Details (core/details, the FAQ accordion) ---------- */
/* A run of details reads as one list: shared rules, no gaps. The summary is a 44px+ target with a
   chevron that turns when open; display: block keeps Safari happy (no flex on summary). */
.nz-prose .wp-block-details { margin: 0; padding: 0; border-bottom: 1px solid var(--nz-line); }
.nz-prose > .wp-block-details:first-child,
.nz-prose :not(.wp-block-details) + .wp-block-details { border-top: 1px solid var(--nz-line); }
.nz-prose .wp-block-details + :not(.wp-block-details) { margin-top: 2em; }
.nz-prose .wp-block-details > summary { position: relative; display: block; min-height: 44px; padding: 16px 44px 16px 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.nz-prose .wp-block-details > summary::-webkit-details-marker { display: none; }
.nz-prose .wp-block-details > summary::after { content: ""; position: absolute; top: 50%; right: 8px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 200ms ease; }
.nz-prose .wp-block-details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.nz-prose .wp-block-details > summary:hover { color: var(--nz-accent-dark); }
.nz-prose .wp-block-details > summary:focus-visible { outline: var(--nz-focus); outline-offset: 2px; }
.nz-prose .wp-block-details > :not(summary) { font-size: 1.0625rem; }
.nz-prose .wp-block-details > :last-child:not(summary) { margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  .nz-prose .wp-block-details > summary::after { transition: none; }
}
@media (min-width: 1000px) {
  .nz-prose .wp-block-details > summary { padding-block: 20px; font-size: 1.1875rem; }
}

/* ---------- Code ---------- */
.nz-prose pre, .nz-prose code, .nz-prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9375rem; }
.nz-prose pre { margin: 0 0 1.5em; padding: 16px; overflow-x: auto; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); }

/* ---------- Legacy HTML from the previous editor: inline fonts give way to the theme type ---------- */
.nz-prose [style*="font-family"] { font-family: inherit !important; }
.nz-prose span[style*="font-size"] { font-size: inherit !important; }
.nz-prose [align="center"] { text-align: center; }

/* ===== assets/css/components/search.css ===== */
/* Site search: the header overlay (full-screen sheet on mobile, centred card from 1000px) with
   the product form, popular searches and live suggestions, plus the hint line under the product
   search heading. Tokens only (--nz-*, --wp--preset-*), mobile first. */

nz-search-overlay { display: block; }
.nz-search-overlay { position: fixed; inset: 0; z-index: 9100; /* above the cookie bar of the core plugin (9000), which is inert while the overlay is open; the filters sheet uses the same layer */ }
.nz-search-overlay[hidden] { display: none; }
.nz-search-overlay__backdrop { position: absolute; inset: 0; background: rgba(46, 38, 34, 0.45); background: color-mix(in srgb, var(--nz-text) 45%, transparent); }

/* ---------- Card: a sheet that fills the screen and scrolls on its own ---------- */
.nz-search-overlay__card { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px 16px max(24px, env(safe-area-inset-bottom)); background: var(--nz-bg-light); color: var(--nz-text); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; animation: nz-search-in 180ms ease-out; }
.nz-search-overlay__card:focus { outline: none; }
@keyframes nz-search-in { from { opacity: 0; transform: translateY(8px); } }

.nz-search-overlay__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.nz-search-overlay__title { margin: 0; font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.05; }
.nz-search-overlay__close { position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--nz-radius); background: none; color: var(--nz-text); cursor: pointer; }
.nz-search-overlay__close::before,
.nz-search-overlay__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.nz-search-overlay__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Form: input and button share one bordered field ---------- */
.nz-search-overlay__field { display: flex; align-items: stretch; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-search-overlay__field:focus-within { outline: var(--nz-focus); outline-offset: 2px; }
.nz-search-overlay__input { flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 0 14px; border: 0; border-radius: var(--nz-radius) 0 0 var(--nz-radius); background: transparent; color: var(--nz-text); font: inherit; font-size: 1.0625rem; appearance: none; -webkit-appearance: none; }
.nz-search-overlay__input:focus { outline: none; }
.nz-search-overlay__input::-webkit-search-decoration { -webkit-appearance: none; }
.nz-search-overlay__field .nz-search-overlay__submit.nz-button { flex: none; width: auto; min-height: 0; padding: 0 18px; border: 0; border-radius: 0 var(--nz-radius) var(--nz-radius) 0; font-size: 1rem; }
.nz-search-overlay__hint { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--nz-text-2); }
/* Link-styled submit button; the pseudo element stretches its hit area to about 44px without moving the text. */
.nz-search-overlay__alt { position: relative; margin: 0; padding: 0 0 1px; border: 0; border-bottom: 1px solid currentColor; background: none; font: inherit; font-weight: 700; color: var(--nz-text); cursor: pointer; }
.nz-search-overlay__alt::before { content: ""; position: absolute; inset: -11px 0; }

/* ---------- Status and suggestions ---------- */
.nz-search-overlay__status { margin: 16px 0 0; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-search-overlay__status:empty { margin: 0; }
.nz-search-overlay__results { margin: 8px 0 0; padding: 0; list-style: none; }
.nz-search-overlay__results[hidden] { display: none; }
.nz-search-overlay__results[aria-busy="true"] { opacity: 0.6; }
.nz-search-overlay__row { border-bottom: 1px solid var(--nz-line); }
.nz-search-overlay__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 76px; margin: 0 -8px; padding: 10px 8px; border-radius: var(--nz-radius); color: var(--nz-text); }
.nz-search-overlay__thumb { display: block; width: 56px; height: 56px; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); overflow: hidden; }
.nz-search-overlay__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nz-search-overlay__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nz-search-overlay__brand { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nz-accent-dark); }
/* Three lines: several products share a long prefix ("BIOETIQ Zestaw Prezentowy - ..."), two lines often cut
   off the part that tells them apart, more so with larger text. The link's accessible name is the full text. */
.nz-search-overlay__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.nz-search-overlay__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 1rem; }
.nz-search-overlay__price ins { font-weight: 700; text-decoration: none; }
.nz-search-overlay__price del { font-size: 0.875rem; color: var(--nz-muted); }
.nz-search-overlay__badge { padding: 2px 6px; background: var(--nz-text); color: var(--nz-bg-light); border-radius: var(--nz-radius); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; }
.nz-search-overlay__all { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 0 -8px; padding: 8px; border-radius: var(--nz-radius); font-weight: 700; color: var(--nz-accent-dark); }
.nz-search-overlay__all::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
/* Active option (aria-activedescendant): the focus outline, inset so the card does not clip it; the background alone is too faint (1.19:1). */
.nz-search-overlay__item[aria-selected="true"],
.nz-search-overlay__all[aria-selected="true"] { background: var(--nz-bg-linen); outline: var(--nz-focus); outline-offset: -2px; }
.nz-search-overlay__item:focus-visible,
.nz-search-overlay__all:focus-visible { outline-offset: -2px; }

/* ---------- Popular searches (before typing) ---------- */
.nz-search-overlay__popular { margin-top: 24px; }
.nz-search-overlay__popular[hidden] { display: none; }
.nz-search-overlay__label { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nz-accent-dark); }
.nz-search-overlay__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nz-search-overlay__chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); font-size: 0.9375rem; font-weight: 600; color: var(--nz-text); transition: border-color 150ms, color 150ms; }

/* Hover colours only for real pointers, so a tap does not leave a stuck hover state. */
@media (hover: hover) {
  .nz-search-overlay__close:hover,
  .nz-search-overlay__alt:hover { color: var(--nz-accent-dark); }
  .nz-search-overlay__item:hover { background: var(--nz-bg-linen); color: var(--nz-text); }
  .nz-search-overlay__all:hover { background: var(--nz-bg-linen); color: var(--nz-accent-dark); }
  .nz-search-overlay__chip:hover { border-color: var(--nz-text); color: var(--nz-text); }
}

/* ---------- Desktop: a card under the header, max 720px, centred ---------- */
@media (min-width: 1000px) {
  .nz-search-overlay { display: flex; align-items: flex-start; justify-content: center; padding: clamp(32px, 10vh, 96px) 24px 24px; }
  .nz-search-overlay__card { position: relative; inset: auto; width: min(720px, 100%); max-height: 100%; padding: 24px 32px 32px; border-radius: var(--nz-radius); box-shadow: var(--nz-shadow-panel); }
  .nz-search-overlay__title { font-size: 2rem; }
  .nz-search-overlay__input { min-height: 60px; font-size: 1.125rem; }
  .nz-search-overlay__field .nz-search-overlay__submit.nz-button { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .nz-search-overlay__card { animation: none; }
  .nz-search-overlay__chip { transition: none; }
}

/* ---------- Product search results: hint under the heading ---------- */
.nz-shop__search-hint { max-width: 64ch; margin: 14px 0 0; font-size: 1rem; line-height: 1.5; color: var(--nz-text-2); }
.nz-shop__search-hint .nz-link { font-size: inherit; padding-bottom: 2px; }

/* ===== assets/css/components/newsletter-popup.css ===== */
/* Newsletter popup (inc/newsletter-popup.php, assets/js/components/newsletter-popup.js): a small
   non-modal panel above the bottom bars (cookie bar, sticky buy and checkout bars), bottom right
   on desktop. In site.css because it can appear on most views. */
.nz-nl-popup { position: fixed; z-index: 38; left: var(--nz-gutter); right: var(--nz-gutter); bottom: calc(var(--nz-consent-bar-height, 0px) + 12px + env(safe-area-inset-bottom, 0px)); opacity: 0; transform: translateY(16px); transition: opacity 250ms ease, transform 250ms ease; }
.nz-nl-popup[hidden] { display: none; }
.nz-nl-popup.is-visible { opacity: 1; transform: none; }
html.nz-has-sticky-buy .nz-nl-popup,
html.nz-has-sticky-checkout .nz-nl-popup { bottom: calc(var(--nz-consent-bar-height, 0px) + 92px + env(safe-area-inset-bottom, 0px)); }
.nz-nl-popup__panel { position: relative; max-height: 70svh; overflow-y: auto; padding: 20px 20px 16px; background: var(--nz-bg-light); color: var(--nz-text); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); box-shadow: var(--nz-shadow-panel, 0 12px 32px rgba(46, 38, 34, 0.18)); }
.nz-nl-popup__close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--nz-text); cursor: pointer; }
.nz-nl-popup__close:focus-visible { outline: var(--nz-focus); outline-offset: -4px; }
.nz-nl-popup__eyebrow { margin: 0 44px 6px 0; color: var(--wp--preset--color--green); }
.nz-nl-popup__title { margin: 0 36px 8px 0; font-size: 1.375rem; line-height: 1.15; }
.nz-nl-popup__text { margin: 0 0 14px; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-nl-popup__box { display: block; }
.nz-nl-popup__form { position: relative; display: flex; }
.nz-nl-popup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nz-nl-popup__input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--nz-text); border-right: 0; border-radius: var(--nz-radius) 0 0 var(--nz-radius); background: #fff; font: inherit; font-size: 1rem; color: var(--nz-text); }
.nz-nl-popup__input::placeholder { color: var(--nz-muted); opacity: 1; }
.nz-nl-popup__submit { min-height: 48px; padding: 0 14px; border: 0; border-radius: 0 var(--nz-radius) var(--nz-radius) 0; background: var(--nz-text); color: var(--nz-bg-light); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nz-nl-popup__submit:hover { background: var(--wp--preset--color--green); }
.nz-nl-popup__submit[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.nz-nl-popup .nz-newsletter__thanks,
.nz-nl-popup .nz-newsletter__error { margin: 0 0 10px; font-size: 0.9375rem; }
.nz-nl-popup .nz-newsletter__thanks:focus { outline: none; }
.nz-nl-popup__note { margin: 10px 0 0; font-size: 0.8125rem; color: var(--nz-text-2); }
.nz-nl-popup__note a { text-decoration: underline; }
@media (min-width: 1000px) {
  .nz-nl-popup { left: auto; right: 24px; bottom: calc(var(--nz-consent-bar-height, 0px) + 24px); width: 400px; }
  .nz-nl-popup__panel { padding: 28px 28px 20px; }
  .nz-nl-popup__title { font-size: 1.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-nl-popup { transition: none; transform: none; }
}
