/*
 * Single product page (woocommerce/single-product.php, content-single-product.php, single-product/*).
 * Tokens only (--nz-*, --wp--preset-*), mobile first, desktop from 1000px. The breadcrumb and the
 * related product cards reuse shop.css. Layout of the page: see content-single-product.php.
 */

/* ---------- Page ---------- */
.nz-product { padding-block: 20px var(--nz-section); }
.nz-product__item { min-width: 0; }
.nz-product__top { display: grid; gap: 28px; }
/* Tablets: photo and buying column side by side, so the price and the button are on the first
   screen (one column put a 750px photo above them at 768px). */
@media (min-width: 760px) and (max-width: 999px) {
  .nz-product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
/* The gallery stays in view while the summary beside it scrolls, and stops at the end of this
   block (its parent). Held below the sticky header like the other sticky blocks. */
@media (min-width: 760px) {
  .nz-product__gallery { position: sticky; top: calc(var(--nz-header-offset, 0px) + 24px); transition: top 250ms ease; }
}
@media (min-width: 1000px) {
  /* Two equal columns: the gallery fills its half, so no gap is left between the photo and the summary.
     The square track reserves its height (aspect-ratio), so the layout does not shift as images load. */
  .nz-product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
}

/* ---------- Notices (added to cart, errors) ---------- */
.nz-product .woocommerce-notices-wrapper:empty { display: none; }
.nz-product .woocommerce-message,
.nz-product .woocommerce-info,
.nz-product .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--nz-line-linen); border-left: 3px solid var(--nz-accent); border-radius: var(--nz-radius); background: var(--nz-bg-light); font-size: 1rem; list-style: none; }
.nz-product .woocommerce-error { border-left-color: var(--nz-accent-dark); }
.nz-product .woocommerce-message .button { order: 2; margin-left: auto; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 700; }

/* ---------- Gallery ---------- */
/* The scroll containers must not hand their min-content (all slides side by side) to the grid column:
   inline-size containment keeps the column at its share of the grid after lazy images load. */
.nz-product__gallery { min-width: 0; }
.nz-gallery { position: relative; display: block; max-width: 100%; contain: inline-size; }
.nz-gallery__badge { position: absolute; top: 12px; left: 12px; z-index: 2; 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; }
.nz-gallery__track { position: relative; display: flex; contain: inline-size; aspect-ratio: 1 / 1; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; background: var(--wp--preset--color--card); border-radius: var(--nz-radius); }
.nz-gallery__track::-webkit-scrollbar { display: none; }
/* Every direct child of the track is a slide: theme figures and anything plugins append on woocommerce_product_thumbnails. */
.nz-gallery__track > * { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.nz-gallery__track img,
.nz-gallery__track video { width: 100%; height: 100%; object-fit: cover; }
.nz-gallery__slide--video .woocommerce-product-gallery__video,
.nz-gallery__slide--video a { display: block; width: 100%; height: 100%; }
.nz-gallery__thumbs { position: relative; display: flex; contain: inline-size; gap: 8px; margin-top: 10px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.nz-gallery__thumbs::-webkit-scrollbar { display: none; }
.nz-gallery__thumb { flex: 0 0 64px; width: 64px; aspect-ratio: 1 / 1; padding: 0; border: 1px solid transparent; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); overflow: hidden; cursor: pointer; transition: border-color 150ms; }
.nz-gallery__thumb:hover { border-color: var(--nz-line-linen); }
.nz-gallery__thumb[aria-pressed="true"] { border-color: var(--nz-text); }
.nz-gallery__thumb:focus-visible { outline-offset: 1px; }
.nz-gallery__thumb-img { width: 100%; height: 100%; object-fit: cover; }
.nz-gallery__thumb-text { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nz-text-2); }
/* Desktop: the thumbnails sit on the main photo as a column along its left edge, centred, and
   scroll vertically when there are more than fit. The column stays clear of the sale badge in the
   top corner. No inline-size containment here: the absolutely placed column takes its width from
   the thumbnails. */
@media (min-width: 1000px) {
  .nz-gallery__thumbs { position: absolute; top: 50%; left: 16px; z-index: 1; flex-direction: column; gap: 8px; max-height: calc(100% - 112px); margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; contain: none; transform: translateY(-50%); }
  .nz-gallery__thumb { flex: 0 0 auto; width: 72px; border-color: var(--nz-line-linen); }
  .nz-gallery__thumb:hover { border-color: var(--nz-muted); }
  .nz-gallery__thumb[aria-pressed="true"] { border-color: var(--nz-text); box-shadow: inset 0 0 0 1px var(--nz-text); }
}

/* ---------- Summary ---------- */
.nz-product__summary { min-width: 0; }
.nz-product__brand { margin-bottom: 10px; }
/* Brand link: the hit area grows to 44px around the text (pseudo element), the line does not move; underline on hover and focus. */
.nz-product__brand a { position: relative; display: inline-block; }
.nz-product__brand a::before { content: ""; position: absolute; inset: -11px 0; }
.nz-product__brand a:hover,
.nz-product__brand a:focus-visible { text-decoration: underline; text-underline-offset: 0.25em; }
.nz-product__capacity { color: var(--nz-muted); letter-spacing: 0.06em; text-transform: none; }
.nz-product__sep { margin-inline: 0.35em; color: var(--nz-muted); }
.nz-product__title { margin: 0 0 12px; font-size: 1.875rem; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .nz-product__title { font-size: 1.75rem; }
}
@media (min-width: 1000px) {
  .nz-product__title { font-size: clamp(1.875rem, min(1.3rem + 1.6vw, 5svh), 2.75rem); }
}
.nz-product__title { margin: 0 0 12px; font-size: clamp(1.875rem, min(1.3rem + 1.6vw, 5svh), 2.75rem); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.nz-product__rating { margin: 0 0 20px; font-size: 0.9375rem; color: var(--wp--preset--color--text-3); }
.nz-product__rating a { display: inline-block; padding-block: 4px; border-bottom: 1px solid transparent; }
.nz-product__rating a:hover,
.nz-product__rating a:focus-visible { color: var(--nz-accent-dark); border-bottom-color: currentColor; }

/* Skin labels (rectangles), a line, then the benefits box with the brand mark as its bullet.
   ul.… outranks the list reset ul[class] of theme.css. */
ul.nz-product__labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.nz-product__labels li { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); font-size: 0.9375rem; line-height: 1.45; color: var(--nz-text-2); }
.nz-product__divider { margin: 0 0 20px; border: 0; border-top: 1px solid var(--nz-line-linen); }
.nz-product__benefits { margin: 0 0 22px; padding: 16px 20px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
ul.nz-product__benefits-list { display: grid; gap: 8px; margin: 0; padding: 0; }
.nz-product__benefits-list li { position: relative; padding: 2px 0 2px 36px; font-size: 1rem; line-height: 1.55; }
@media (min-width: 720px) {
  .nz-product__benefits-list li { font-size: 1.0625rem; }
}
/* The mark is assets/img/brand-mark.svg, drawn through a mask in the accent colour: replace the file
   with the original mark to change every bullet. */
.nz-product__benefits-list li::before { content: ""; position: absolute; top: 5px; left: 0; width: 26px; height: 22px; background-color: var(--nz-accent); -webkit-mask: url("../../img/brand-mark.svg") no-repeat center / contain; mask: url("../../img/brand-mark.svg") no-repeat center / contain; }

/* Price: get_price_html() (del/ins on sale) plus the Omnibus line the plugin appends. */
.nz-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; font-family: var(--nz-sans); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--nz-text); }
.nz-product__price ins { order: -1; text-decoration: none; }
.nz-product__price del { font-family: var(--nz-sans); font-size: 1rem; font-weight: 400; color: var(--nz-muted); }
.nz-product__price .iworks-omnibus { order: 2; flex: 1 1 100%; margin: 4px 0 0; font-family: var(--nz-sans); font-size: 0.8125rem; font-weight: 400; line-height: 1.4; color: var(--nz-muted); }
@media (min-width: 1000px) {
  .nz-product__price { font-size: 2rem; }
}

/* Stock line */
.nz-stock { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 0.9375rem; font-weight: 600; color: var(--nz-text-2); }
.nz-stock__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--green); }
.nz-stock--low { color: var(--nz-accent-dark); }
.nz-stock--low .nz-stock__dot { background: var(--nz-accent); }
.nz-stock--out { color: var(--nz-muted); }
.nz-stock--out .nz-stock__dot { background: var(--nz-muted); }

/* Add to cart: quantity stepper + button (stacked on mobile, one row on desktop) */
.nz-buy { margin: 0 0 24px; }
.nz-buy__row { display: flex; flex-direction: column; gap: 12px; }
.nz-qty { display: inline-flex; align-self: flex-start; align-items: stretch; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-qty__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; min-height: 54px; padding: 0; border: 0; background: transparent; color: var(--nz-text); cursor: pointer; transition: background-color 150ms; }
.nz-qty__btn:hover { background: var(--nz-bg-linen); }
.nz-qty__btn[aria-disabled="true"] { color: var(--nz-muted); background: transparent; cursor: default; }
.nz-qty__btn:focus-visible { outline-offset: -3px; }
.nz-qty__input { width: 56px; min-height: 54px; padding: 0; border: 0; border-inline: 1px solid var(--nz-line); border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.nz-qty__input::-webkit-outer-spin-button,
.nz-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nz-qty__input:focus-visible { outline-offset: -3px; }
.nz-buy .nz-buy__button { width: 100%; min-height: 56px; }
.nz-buy--unavailable { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.nz-buy--unavailable .nz-buy__button { align-self: flex-start; }
/* Plugin stock alert form (form.nz-bis, server-rendered): space reserved so its enhancement does not shift the layout. */
.nz-buy--unavailable .nz-bis { min-height: 150px; }
.nz-buy--unavailable .nz-buy__button[disabled] { opacity: 0.5; cursor: not-allowed; }
.nz-buy--unavailable .nz-buy__button[disabled]:hover { background: var(--nz-text); border-color: var(--nz-text); color: var(--nz-bg-light); }
.nz-buy__notify { display: inline-flex; align-self: flex-start; align-items: flex-end; min-height: 44px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--nz-text); font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
.nz-buy__notify:hover { color: var(--nz-accent-dark); }
@media (min-width: 1000px) {
  .nz-buy__row { flex-direction: row; align-items: stretch; }
  .nz-qty { flex: none; align-self: auto; }
  .nz-qty__btn { width: 50px; min-height: 56px; }
  .nz-qty__input { min-height: 56px; }
  .nz-buy .nz-buy__button { flex: 1 1 auto; width: auto; min-height: 58px; }
}

/* Delivery and payment */
/* Delivery and payment lines: an icon each (truck, package, card) instead of a dot. ul.… outranks
   the list reset ul[class] of theme.css, which used to take its margin and padding. */
ul.nz-product__delivery { display: grid; gap: 10px; margin: 0 0 14px; padding: 16px 20px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); font-size: 0.9375rem; line-height: 1.4; color: var(--nz-text-2); }
.nz-product__delivery li { display: flex; align-items: center; gap: 12px; }
.nz-product__delivery .nz-icon { flex: none; color: var(--nz-accent-dark); }
/* "Metody dostawy" and "Formy płatności" under the delivery lines: two buttons that open a modal <dialog>. */
.nz-info-links { display: block; margin: 0 0 28px; }
.nz-info-links__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.nz-info-links__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--nz-text-2); font: inherit; font-size: 0.9375rem; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.nz-info-links__btn:hover,
.nz-info-links__btn:focus-visible { color: var(--nz-accent-dark); }
.nz-info-links__btn .nz-icon { flex: none; }

.nz-info-dialog { width: min(1100px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--nz-bg-light); color: var(--nz-text); overflow: auto; }
.nz-info-dialog::backdrop { background: rgb(0 0 0 / 0.5); }
.nz-info-dialog__box { padding: 20px 20px 24px; }
.nz-info-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.nz-info-dialog__title { margin: 0; font-family: var(--nz-sans); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.nz-info-dialog__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; background: none; color: var(--nz-text); cursor: pointer; }
.nz-info-dialog__close:hover { color: var(--nz-accent-dark); }
.nz-info-dialog__cols { display: grid; gap: 28px; }
.nz-info-dialog__subtitle { margin: 0 0 8px; font-family: var(--nz-sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.nz-info-dialog__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.nz-info-dialog__table th { padding: 0 0 8px; color: var(--nz-muted); font-weight: 400; text-align: left; }
.nz-info-dialog__table th:last-child,
.nz-info-dialog__table td:last-child { text-align: right; }
.nz-info-dialog__table td { padding: 12px 0; border-top: 1px solid var(--nz-line-linen); vertical-align: middle; }
.nz-info-dialog__method { display: flex; align-items: center; gap: 12px; }
.nz-info-dialog__method .nz-icon { flex: none; color: var(--nz-accent-dark); }
.nz-info-dialog__price { white-space: nowrap; }
.nz-info-dialog__price small { display: block; color: var(--nz-muted); font-size: 0.8125rem; }
.nz-info-dialog__pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--nz-line-linen); }
.nz-info-dialog__pay li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 18px 10px; border-bottom: 1px solid var(--nz-line-linen); border-right: 1px solid var(--nz-line-linen); font-size: 0.9375rem; text-align: center; }
.nz-info-dialog__pay li:nth-child(2n) { border-right: 0; }
.nz-info-dialog__pay-icon { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.nz-info-dialog__pay-icon img { max-width: 96px; max-height: 44px; width: auto; height: auto; }
.nz-info-dialog__pay-icon .nz-icon { width: 36px; height: 36px; }
@media (min-width: 700px) {
  .nz-info-dialog__box { padding: 28px 32px 32px; }
  .nz-info-dialog__title { font-size: 1.5rem; }
  .nz-info-dialog__cols:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .nz-info-dialog:has(.nz-info-dialog__pay) { width: min(900px, calc(100% - 48px)); }
  .nz-info-dialog__pay { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nz-info-dialog__pay li:nth-child(2n) { border-right: 1px solid var(--nz-line-linen); }
  .nz-info-dialog__pay li:nth-child(4n) { border-right: 0; }
}

/* Short description. Production content uses h4 as paragraphs: render them as body text. */
.nz-product__excerpt { margin: 0 0 24px; color: var(--nz-text-2); }
.nz-product__panel .nz-product__excerpt { margin-bottom: 0; }
.nz-product__excerpt > :last-child { margin-bottom: 0; }
.nz-product__excerpt h2,
.nz-product__excerpt h3,
.nz-product__excerpt h4 { margin: 0 0 1em; font-family: inherit; font-size: inherit; font-weight: 400; line-height: inherit; text-wrap: pretty; }
.nz-product__excerpt h4:empty { display: none; }
.nz-product__excerpt ul,
.nz-product__excerpt ol { margin: 0 0 1em; padding-left: 1.25em; }
.nz-product__excerpt li { margin-bottom: 0.4em; }
/* Old descriptions wrap every list item in a paragraph, which spread the list with gaps. */
.nz-product__excerpt li > p { margin: 0; }
.nz-product__excerpt ul li::marker { color: var(--nz-accent-dark); }

/* Bundle contents */
.nz-bundle { margin: 0 0 24px; padding: 20px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); }
.nz-bundle__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.nz-bundle__title { margin: 0; font-size: 1.75rem; line-height: 1; }
.nz-bundle__badge { padding: 5px 10px; background: var(--nz-accent-dark); 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; }
.nz-bundle__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nz-bundle__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding-top: 12px; border-top: 1px solid var(--nz-line-linen); }
.nz-bundle__item:first-child { padding-top: 0; border-top: 0; }
.nz-bundle__media { display: block; aspect-ratio: 1 / 1; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); overflow: hidden; }
.nz-bundle__img { width: 100%; height: 100%; object-fit: cover; }
.nz-bundle__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-bundle__name { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.nz-bundle__name:hover,
.nz-bundle__name:focus-visible { color: var(--nz-accent-dark); }
.nz-bundle__price { font-family: var(--nz-sans); font-size: 1.125rem; font-weight: 600; line-height: 1; }

/* ---------- Product page blocks ---------- */
/* Order: top (gallery + summary), panels, routine, "Poznaj produkt" band, "Składniki aktywne", "Praktyczne
   informacje", reviews, related products. Every block keeps one rhythm of space above it. */
.nz-details-links { display: block; min-width: 0; }
.nz-product__section { scroll-margin-top: 24px; }
.nz-product__section-title { margin: 0 0 18px; font-size: var(--wp--preset--font-size--heading-3); line-height: 1.05; letter-spacing: -0.01em; }
.nz-product__section-body { min-width: 0; }
.nz-product__guide,
.nz-story,
.nz-ingredients-list,
.nz-facts { margin-top: 56px; scroll-margin-top: 24px; }
@media (min-width: 1000px) {
  .nz-product__guide,
  .nz-story,
  .nz-ingredients-list,
  .nz-facts { margin-top: 80px; }
}

/* ---------- "Czy to produkt dla Ciebie?" and "Jak włączyć go do rutyny?" ---------- */
.nz-product__guide { display: grid; gap: 16px; }
.nz-product__panel { min-width: 0; padding: 24px 22px 26px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-product__panel-title { margin: 0 0 14px; font-size: 1.75rem; line-height: 1.1; }
.nz-product__panel p { margin: 0 0 1em; color: var(--nz-text-2); }
.nz-product__panel p:last-child { margin-bottom: 0; }
.nz-product__panel-note { margin-top: 16px; font-size: 0.9375rem; color: var(--nz-muted); }
@media (min-width: 700px) {
  .nz-product__guide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .nz-product__guide--single { grid-template-columns: minmax(0, 1fr); }
  .nz-product__panel { padding: 30px 30px 32px; }
}

/* ---------- "Poznaj produkt": full width band, photo left, description right ---------- */
/* The band breaks out of the page container to the width of the window; the page clips the few
   pixels the scrollbar adds to 100vw (body.single-product below). */
body.single-product { overflow-x: clip; }
.nz-story { margin-inline: calc(50% - 50vw); background: var(--wp--preset--color--peach-3); color: var(--nz-text); }
.nz-story__inner { display: grid; max-width: calc(var(--nz-container) + 2 * var(--nz-gutter)); margin-inline: auto; }
.nz-story__media { min-width: 0; }
.nz-story__img { width: 100%; height: 100%; max-height: 640px; aspect-ratio: 4 / 3; object-fit: cover; }
.nz-story__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 260px; padding: 26px; background: linear-gradient(180deg, var(--wp--preset--color--peach-3) 0%, var(--wp--preset--color--peach-2) 100%); text-align: center; }
.nz-story__placeholder-box { display: grid; gap: 8px; max-width: 320px; padding: 26px 24px; border: 1px dashed var(--nz-muted); color: var(--nz-text-2); }
.nz-story__placeholder-caption { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.nz-story__placeholder-text { font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.25; }
.nz-story__text { min-width: 0; padding: 36px var(--nz-gutter) 40px; }
.nz-story__eyebrow { margin-bottom: 10px; }
.nz-story__title { margin: 0 0 22px; font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.01em; }
.nz-story__label { margin: 0 0 12px; font-family: var(--nz-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; }
.nz-story__prose { max-width: 520px; font-size: 1.0625rem; line-height: 1.8; color: var(--nz-text-2); }
.nz-story .nz-story__prose :is(h2, h3, h4) { font-size: 1.1875rem; line-height: 1.25; }
.nz-story__closing { margin: 24px 0 0; font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.3; color: var(--nz-accent-dark); }
/* No photo (visitors): the text alone, one centred column. */
.nz-story--text-only .nz-story__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.nz-story--text-only .nz-story__text { width: min(100%, 760px); justify-self: center; }
/* Phones and tablets: the text first, the photo under it. */
@media (max-width: 999.98px) {
  .nz-story__text { order: -1; }
  .nz-story__img { aspect-ratio: 4 / 3; max-height: 460px; }
}
@media (min-width: 1000px) {
  .nz-story .nz-story__prose :is(h2, h3, h4) { font-size: 1.375rem; }
  .nz-story__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 540px; }
  .nz-story__text { align-self: center; padding: 64px var(--nz-gutter) 64px clamp(40px, 5vw, 88px); }
  .nz-story--text-only .nz-story__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .nz-story--text-only .nz-story__text { padding: 64px var(--nz-gutter); }
  /* A long description makes the band tall: the photo (or its placeholder) keeps a window high
     and follows the reader down the band. */
  .nz-story__img,
  .nz-story__placeholder { position: sticky; top: var(--nz-header-offset, 0px); height: min(100%, 100svh); min-height: 540px; max-height: none; aspect-ratio: auto; }
  .nz-story__img--fallback { object-fit: cover; object-position: 50% 30%; background: linear-gradient(90deg, var(--wp--preset--color--peach-2) 0%, var(--wp--preset--color--peach-3) 100%); }
  .nz-story__placeholder { background: linear-gradient(90deg, var(--wp--preset--color--peach-2) 0%, var(--wp--preset--color--peach-3) 100%); }
}

/* ---------- "Składniki aktywne": four expanding rows, two columns on desktop ---------- */
.nz-ingredients-list__head { margin-bottom: 28px; text-align: center; }
.nz-ingredients-list__title { margin: 0 0 10px; font-size: var(--wp--preset--font-size--heading-3); line-height: 1.1; }
.nz-ingredients-list__hint { margin: 0; font-size: 0.875rem; font-style: italic; color: var(--nz-muted); }
.nz-ingredients-list__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.nz-ingredient { min-width: 0; border-block: 1px solid var(--nz-line-linen); }
.nz-ingredient + .nz-ingredient { margin-top: -1px; }
.nz-ingredient__summary { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 14px 8px; list-style: none; cursor: pointer; transition: background-color 150ms; }
.nz-ingredient__summary::-webkit-details-marker { display: none; }
.nz-ingredient__summary::marker { content: ""; }
.nz-ingredient__summary:hover,
.nz-ingredient[open]:not(.is-closing) > .nz-ingredient__summary { background: var(--nz-bg-light); }
.nz-ingredient__summary:focus-visible { outline-offset: -3px; }
.nz-ingredient__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nz-bg-linen); color: var(--nz-accent); }
.nz-ingredient__icon svg { width: 20px; height: 20px; stroke-width: 1.3; }
.nz-ingredient__name { display: block; flex: 1; min-width: 0; }
.nz-ingredient__title { display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.nz-ingredient__note { display: block; margin-top: 2px; font-size: 0.875rem; font-style: italic; line-height: 1.45; color: var(--nz-muted); }
.nz-ingredient__plus { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--nz-bg-linen); color: var(--nz-text); }
.nz-ingredient__plus::before,
.nz-ingredient__plus::after { content: ""; position: absolute; top: 13px; right: 8px; left: 8px; height: 1.5px; background: currentColor; transition: transform 150ms; }
.nz-ingredient__plus::after { transform: rotate(90deg); }
.nz-ingredient[open]:not(.is-closing) .nz-ingredient__plus::after { transform: rotate(0deg); }
.nz-ingredient__body { padding: 0 20px 22px 70px; }
.nz-ingredient__body p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--nz-text-2); }
@media (min-width: 760px) {
  .nz-ingredients-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  /* Two columns: the second row does not touch the first one twice. */
  .nz-ingredient:nth-child(2) { margin-top: 0; }
}
@media (max-width: 759.98px) {
  .nz-ingredient__summary { min-height: 84px; gap: 12px; }
  .nz-ingredient__body { padding: 0 12px 20px 60px; }
}

/* ---------- "Praktyczne informacje": heading beside light rows ---------- */
.nz-facts { display: grid; gap: 22px; padding: 28px 16px; background: var(--nz-bg-linen); }
.nz-facts__title { margin: 0; font-size: 1.875rem; line-height: 1.2; }
.nz-facts__rows { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-fact { position: relative; min-width: 0; background: var(--nz-bg-light); }
.nz-fact::before { content: "i"; position: absolute; top: 22px; left: 14px; width: 18px; height: 18px; border: 1px solid var(--nz-accent); border-radius: 50%; color: var(--nz-accent); font-family: var(--nz-serif); font-size: 0.8125rem; line-height: 16px; text-align: center; pointer-events: none; }
.nz-fact__summary { position: relative; display: block; min-height: 64px; padding: 19px 44px 19px 42px; list-style: none; font-size: 1rem; line-height: 1.6; cursor: pointer; }
.nz-fact__summary::-webkit-details-marker { display: none; }
.nz-fact__summary::marker { content: ""; }
.nz-fact__summary::after { content: "+"; position: absolute; top: 15px; right: 16px; font-size: 1.5rem; font-weight: 300; line-height: 1.5; color: var(--nz-muted); }
.nz-fact[open]:not(.is-closing) > .nz-fact__summary::after { content: "−"; }
.nz-fact__summary:focus-visible { outline-offset: -3px; }
.nz-fact__body { padding: 0 20px 20px 42px; font-size: 1rem; line-height: 1.7; color: var(--nz-text-2); }
.nz-fact__body p { margin: 0 0 0.8em; }
.nz-fact__body > :last-child { margin-bottom: 0; }
.nz-fact__inci { font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }
ul.nz-fact__list { margin: 0 0 0.8em; padding: 0; list-style: none; }
.nz-fact__list li { padding: 2px 0; }
.nz-fact__link { display: inline-block; margin: 0 18px 0 0; padding-block: 8px; border-bottom: 1px solid currentColor; font-weight: 700; line-height: 1.3; }
.nz-fact--static { padding: 19px 20px 20px 42px; }
.nz-fact__heading { margin: 0 0 12px; font-family: var(--nz-sans); font-size: 1rem; font-weight: 400; line-height: 1.6; }
@media (min-width: 1000px) {
  .nz-facts { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr); gap: 60px; align-items: start; padding: 48px 36px; }
  .nz-facts__title { font-size: 2.125rem; }
  .nz-fact::before { left: 20px; }
  .nz-fact__summary { padding-left: 54px; }
  .nz-fact__body { padding-left: 54px; }
  .nz-fact--static { padding-left: 54px; }
}

/* Description (the_content) */
.nz-product__prose > :first-child { margin-top: 0; }
.nz-product__prose > :last-child { margin-bottom: 0; }
.nz-product__prose h2 { margin: 1.4em 0 0.5em; font-size: 2rem; line-height: 1.05; }
.nz-product__prose h3 { margin: 1.4em 0 0.5em; font-size: 1.625rem; line-height: 1.1; }
.nz-product__prose h4 { margin: 1.4em 0 0.5em; font-size: 1.25rem; line-height: 1.2; }
/* Old product descriptions use headings for whole sentences (an h3 of three lines at 26px on a
   phone): below 1000px the headings inside the description stay close to the text size. */
@media (max-width: 999px) {
  .nz-product__prose :is(h1, h2) { font-size: 1.5rem; }
  .nz-product__prose h3 { font-size: 1.3125rem; }
  .nz-product__prose :is(h4, h5, h6) { font-size: 1.125rem; }
}
.nz-product__prose ul,
.nz-product__prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.nz-product__prose li { margin-bottom: 0.4em; }
.nz-product__prose ul li::marker { color: var(--nz-accent-dark); }
.nz-product__prose a { border-bottom: 1px solid currentColor; }
.nz-product__prose img { border-radius: var(--nz-radius); }
.nz-product__prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 1rem; }
/* Tables pasted into descriptions (ingredients, attributes): cell text may break anywhere, so a table
   never gets wider than the column, also at 320px or with larger text (WCAG 1.4.10, 1.4.4). */
.nz-product__prose th,
.nz-product__prose td { padding: 10px 12px; border-bottom: 1px solid var(--nz-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }

/* How to use: numbered steps */
.nz-product__steps,
.nz-prose ol.nz-product__steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: nz-step; }
.nz-product__steps li { position: relative; min-height: 36px; padding-left: 52px; counter-increment: nz-step; }
.nz-product__steps li::before { content: counter(nz-step, decimal-leading-zero); position: absolute; left: 0; top: -0.08em; font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1; color: var(--nz-accent-dark); }

/* Details: label / value rows */
.nz-attributes { margin: 0; }
.nz-attributes__row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--nz-line); font-size: 1rem; }
.nz-attributes__row:first-child { padding-top: 0; border-top: 0; }
.nz-attributes__label { font-weight: 700; }
/* Narrow screens: the label above its value, so a long value gets the whole width instead of a
   column of about 100px that breaks words in the middle. */
@media (max-width: 599.98px) {
  .nz-attributes__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.nz-attributes__value { margin: 0; color: var(--nz-text-2); overflow-wrap: anywhere; }
.nz-attributes__value p { margin: 0; }
.nz-attributes__value a { border-bottom: 1px solid var(--nz-line-linen); }
.nz-attributes__value a:hover,
.nz-attributes__value a:focus-visible { color: var(--nz-accent-dark); border-bottom-color: currentColor; }

/* ---------- Reviews ---------- */
/* Star rating: WooCommerce markup (div.star-rating > span[style=width]) drawn with text stars. */
.nz-product .star-rating { position: relative; display: inline-block; font-size: 1.0625rem; line-height: 1; letter-spacing: 0.06em; white-space: nowrap; color: var(--nz-line-linen); }
.nz-product .star-rating::before { content: "★★★★★"; }
.nz-product .star-rating > span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; color: var(--nz-accent-dark); }
.nz-product .star-rating > span::before { content: "★★★★★"; }
/* Overview (average, distribution, policy) beside the review cards from 1000px; stacked below. */
.nz-product__section--reviews { margin-top: 56px; padding-block: 40px; border-block: 1px solid var(--nz-line); }
.nz-reviews { display: grid; gap: 28px; }
.nz-reviews__overview { display: grid; gap: 18px; align-content: start; }
.nz-reviews__title { margin: 0; }
.nz-reviews__score { display: flex; align-items: center; gap: 16px; }
.nz-reviews__average { margin: 0; font-family: var(--nz-serif); font-size: 3.5rem; line-height: 0.9; }
.nz-reviews__summary-text { margin: 6px 0 0; font-size: 1rem; color: var(--nz-text-2); }
.nz-reviews__bars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nz-reviews__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(3ch, auto); align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-reviews__bar-track { height: 8px; border-radius: 4px; background: var(--nz-line); overflow: hidden; }
.nz-reviews__bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--nz-accent-dark); }
.nz-reviews__bar-count { text-align: right; }
.nz-reviews__policy { margin: 0; padding: 14px 16px; border-left: 2px solid var(--nz-accent-dark); background: var(--nz-bg-light); font-size: 0.9375rem; line-height: 1.55; color: var(--nz-text-2); }
.nz-reviews__write { justify-self: start; }
/* Review cards in a horizontal slider (<nz-review-slider>, review-slider.js): a scroll-snap row,
   one card and the edge of the next on phones, two from 600px. Grid items stretch, so every card
   of the row is as tall as the tallest; inside, the author and date sit at the bottom. The arrows
   show only when the row overflows (the module removes hidden). */
nz-review-slider { display: grid; gap: 14px; min-width: 0; }
.nz-reviews__arrows { display: flex; justify-content: flex-end; gap: 8px; }
.nz-reviews__arrows[hidden] { display: none; }
.nz-reviews__arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: none; color: var(--nz-text); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color 150ms, color 150ms, opacity 150ms; }
.nz-reviews__arrow:hover { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-reviews__arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.nz-reviews__arrow[aria-disabled="true"]:hover { background: none; color: var(--nz-text); }
.nz-reviews__list { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; contain: inline-size; }
.nz-reviews__list::-webkit-scrollbar { display: none; }
.nz-reviews__list:focus-visible { outline-offset: 2px; }
@media (min-width: 600px) {
  .nz-reviews__list { grid-auto-columns: calc((100% - 16px) / 2); }
}
.nz-review { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--nz-line); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-reviews__list > .nz-review { scroll-snap-align: start; }
.nz-review__inner,
.nz-review__content { display: flex; flex: 1 1 auto; flex-direction: column; }
.nz-review__content { gap: 14px; }
/* The stars keep their own width: stretched, the clipped "Oceniono 5 na 5" text would show. */
.nz-review__content > .star-rating { align-self: flex-start; }
.nz-review .children { margin: 16px 0 0; padding: 16px 0 0 16px; border-top: 1px solid var(--nz-line); list-style: none; }
.nz-review .children .nz-review { padding: 0; border: 0; background: none; }
.nz-review__foot { margin-top: auto; padding-top: 4px; }
.nz-review__meta { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 0.9375rem; color: var(--nz-muted); }
.nz-review__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.nz-review__author { font-weight: 700; color: var(--nz-text); }
.nz-review__verified { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--nz-accent-dark); }
.nz-review__verified::before { content: "✓ "; }
.nz-review__content .description { font-size: 1.0625rem; line-height: 1.6; color: var(--nz-text-2); overflow-wrap: anywhere; }
.nz-review__content .description > :first-child { margin-top: 0; }
.nz-review__content .description > :last-child { margin-bottom: 0; }
.nz-reviews__empty { margin: 0; color: var(--nz-text-2); }
.nz-reviews__note { margin: 0 0 18px; font-size: 0.9375rem; color: var(--nz-muted); }
@media (min-width: 1000px) {
  .nz-product__section--reviews { margin-top: 80px; padding-block: 64px; }
  .nz-reviews { grid-template-columns: minmax(280px, 1fr) minmax(0, 2.2fr); gap: 32px clamp(40px, 5vw, 80px); }
  .nz-reviews__overview { position: sticky; top: calc(var(--nz-header-offset, 0px) + 24px); transition: top 250ms ease; }
  .nz-reviews__form-wrap { grid-column: 2; }
}

/* Review form */
.nz-reviews__form-wrap { margin-top: 0; padding: 24px 20px; scroll-margin-top: 24px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-reviews__form-title { margin: 0 0 6px; font-size: 1.75rem; line-height: 1.05; }
.nz-reviews__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.nz-reviews__form textarea { width: 100%; max-width: 100%; }
.nz-reviews__form .comment-notes { margin: 0; }
.nz-field { display: grid; gap: 6px; margin: 0; }
.nz-field label { font-size: 0.9375rem; font-weight: 700; }
.nz-field input,
.nz-field select,
.nz-field textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: var(--nz-bg); color: inherit; font: inherit; }
.nz-field textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.nz-reviews__form .required { color: var(--nz-accent-dark); }
.nz-reviews__form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-reviews__form .comment-form-cookies-consent input { flex: none; width: 20px; height: 20px; margin: 12px 0 0; accent-color: var(--nz-accent); }
.nz-reviews__form .comment-form-cookies-consent label { padding-block: 10px; }
.nz-reviews__form .form-submit { margin: 4px 0 0; }
@media (min-width: 700px) {
  .nz-reviews__form-wrap { padding: 28px; }
  .nz-reviews__form { grid-template-columns: 1fr 1fr; }
  .nz-reviews__form .comment-notes,
  .nz-reviews__form .comment-form-rating,
  .nz-reviews__form .comment-form-comment,
  .nz-reviews__form .comment-form-cookies-consent,
  .nz-reviews__form .form-submit { grid-column: 1 / -1; }
}
/* Star picker built by review-rating.js from the select (p.stars > span > a). Unselected stars are
   outlines in --nz-muted (5.9:1 on the form background, WCAG 1.4.11), selected ones filled in
   --nz-accent-dark: the shape tells them apart, not only the colour. The glyph has an empty
   alternative text, so it stays out of the radio's accessible name ("3 z 5: ..."); the first
   declaration is the fallback for browsers without it. */
.nz-product p.stars { display: flex; margin: 0; }
.nz-product p.stars > span { display: inline-flex; gap: 2px; }
.nz-product p.stars a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; color: transparent; font-size: 0; }
.nz-product p.stars a::before { content: "☆"; content: "☆" / ""; font-size: 1.75rem; line-height: 1; color: var(--nz-muted); }
.nz-product p.stars:hover a::before,
.nz-product p.stars.selected a.active::before,
.nz-product p.stars.selected a:not(.active)::before { content: "★"; content: "★" / ""; color: var(--nz-accent-dark); }
.nz-product p.stars.selected a.active ~ a::before,
.nz-product p.stars a:hover ~ a::before { content: "☆"; content: "☆" / ""; color: var(--nz-muted); }

/* ---------- Related products ---------- */
.nz-related { margin-top: 56px; }
.nz-related__head { margin-bottom: 28px; }
.nz-related__head .nz-eyebrow { margin-bottom: 12px; }
.nz-related__title { margin: 0; font-size: var(--wp--preset--font-size--heading-3); line-height: 1; letter-spacing: -0.01em; }
@media (min-width: 1000px) {
  .nz-related { margin-top: 80px; }
}

/* ---------- Sticky buy bar (all screens; hidden again at the footer) ---------- */
/* While the cookie bar is shown (fixed, full width, z-index 9000) the buy bar sits right above it:
   consent.js sets --nz-consent-bar-height on the html element. The cookie bar covers the safe area
   then, so the buy bar keeps only the part of the inset its height does not cover (none in practice). */
.nz-sticky-buy { position: fixed; left: 0; right: 0; bottom: var(--nz-consent-bar-height, 0px); z-index: 35; padding: 10px var(--nz-gutter) calc(10px + max(0px, env(safe-area-inset-bottom, 0px) - var(--nz-consent-bar-height, 0px))); background: var(--nz-bg-light); border-top: 1px solid var(--nz-line-linen); transform: translateY(100%); visibility: hidden; transition: transform 200ms ease, visibility 0s linear 200ms; }
.nz-sticky-buy.is-visible { transform: none; visibility: visible; transition-delay: 0s, 0s; }
.nz-sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nz-sticky-buy__product { display: flex; flex: 1; align-items: center; gap: clamp(12px, 1.4vw, 18px); min-width: 0; }
.nz-sticky-buy__media { display: none; flex: none; width: 56px; height: 56px; overflow: hidden; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg); }
.nz-sticky-buy__img { width: 100%; height: 100%; object-fit: contain; }
.nz-sticky-buy__info { display: flex; flex: 0 1 clamp(220px, 36vw, 520px); flex-direction: column; gap: 3px; min-width: 0; }
.nz-sticky-buy__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem); font-weight: 600; line-height: 1.3; color: var(--nz-text); }
.nz-sticky-buy__price { font-family: var(--nz-sans); font-size: 1.25rem; font-weight: 600; line-height: 1.1; }
.nz-sticky-buy .nz-sticky-buy__button { flex: none; width: auto; min-height: 50px; padding: 0 22px; font-size: 1rem; }
@media (max-width: 999px) {
  /* Both bars stacked: the space kept clear covers both. !important wins over the inline
     scroll-padding-bottom consent.js sets for the cookie bar alone; consent.js also reads this
     value when it moves focused content above the bars. */
  html.nz-has-sticky-buy { scroll-padding-bottom: calc(120px + var(--nz-consent-bar-height, 0px)) !important; }
}
/* From 1000px the bar is a full width strip with the product photo, name and price on the left
   and a regular size button on the right, in the width of the page content. */
@media (min-width: 1000px) {
  .nz-sticky-buy { padding-block: 12px; box-shadow: 0 -6px 24px rgba(58, 40, 28, 0.08); }
  .nz-sticky-buy__inner { width: min(100%, var(--nz-container)); margin-inline: auto; gap: 24px; }
  .nz-sticky-buy__media { display: block; }
  .nz-sticky-buy__price { font-size: 1.1875rem; }
  .nz-sticky-buy .nz-sticky-buy__button { min-width: 240px; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-sticky-buy { transition: none; }
}

/* ---------- Outlet options in the buy form (inc/outlet.php) ---------- */
nz-outlet-choice { display: block; }
.nz-outlet-choice__set { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.nz-outlet-choice__legend { margin: 0 0 8px; padding: 0; font-size: 0.9375rem; font-weight: 700; }
.nz-outlet-option { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg-light); cursor: pointer; }
.nz-outlet-option:has(.nz-outlet-option__input:checked) { border-color: var(--nz-text); box-shadow: inset 0 0 0 1px var(--nz-text); }
.nz-outlet-option:has(.nz-outlet-option__input:disabled) { cursor: not-allowed; opacity: 0.6; }
.nz-outlet-option:has(.nz-outlet-option__input:focus-visible) { outline: var(--nz-focus); outline-offset: 2px; }
.nz-outlet-option__input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--nz-text); cursor: inherit; }
.nz-outlet-option__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-outlet-option__title { font-weight: 700; line-height: 1.3; }
.nz-outlet-option--outlet .nz-outlet-option__title { color: var(--nz-accent-dark); }
.nz-outlet-option__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-family: var(--nz-sans); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.nz-outlet-option__price ins { order: -1; text-decoration: none; }
.nz-outlet-option__price del { font-size: 0.9375rem; font-weight: 400; color: var(--nz-muted); }
.nz-outlet-option__price .nz-outlet-omnibus { flex: 1 1 100%; font-size: 0.8125rem; font-weight: 400; line-height: 1.4; color: var(--nz-muted); }
.nz-outlet-option__note { font-size: 0.875rem; line-height: 1.4; color: var(--nz-text-2); }

/* ---------- "Uzupełnij swoją rutynę" (template-parts/product/routine.php) ---------- */
/* A wide block after the two guide panels: one product per row on phones, three side by side from 1000px. */
.nz-routine { margin: 56px 0 0; padding: 24px 20px 26px; border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); background: var(--nz-bg-light); }
.nz-routine__title { margin: 0 0 18px; font-size: var(--wp--preset--font-size--heading-3); line-height: 1.1; }
.nz-routine__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nz-routine__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--nz-line); border-radius: var(--nz-radius); background: var(--nz-bg); }
.nz-routine__media { display: block; width: 72px; height: 72px; overflow: hidden; border-radius: var(--nz-radius); background: var(--wp--preset--color--card); }
.nz-routine__img { width: 100%; height: 100%; object-fit: cover; }
.nz-routine__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nz-routine__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--nz-text); }
.nz-routine__name:hover,
.nz-routine__name:focus-visible { color: var(--nz-accent-dark); }
.nz-routine__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-family: var(--nz-sans); font-size: 0.9375rem; font-weight: 600; }
.nz-routine__price ins { order: -1; text-decoration: none; }
.nz-routine__price del { font-size: 0.8125rem; font-weight: 400; color: var(--nz-muted); }
.nz-routine__price .iworks-omnibus { display: none; }
.nz-routine__add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: transparent; color: var(--nz-text); font-size: 0.9375rem; font-weight: 700; white-space: nowrap; transition: background-color 150ms, color 150ms, border-color 150ms; }
/* Hover and focus like the main "Dodaj do koszyka" button (.nz-button:hover in theme.css). */
.nz-routine__add:hover,
.nz-routine__add:focus-visible { background: var(--nz-accent); border-color: var(--nz-accent); color: var(--nz-bg-light); }
.nz-routine__add[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.nz-routine__add.added::after { content: "✓"; }
.nz-routine__set { display: grid; gap: 2px; margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--nz-accent); background: var(--nz-bg); color: var(--nz-text); }
.nz-routine__set:hover .nz-routine__set-name,
.nz-routine__set:focus-visible .nz-routine__set-name { color: var(--nz-accent-dark); }
.nz-routine__set-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nz-accent-dark); }
.nz-routine__set-name { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nz-routine__set-price { font-size: 0.9375rem; color: var(--nz-text-2); }
@media (min-width: 1000px) {
  .nz-routine { margin-top: 80px; padding: 40px 40px 44px; }
  .nz-routine__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 380px) {
  .nz-routine__add-text { display: none; }
}
