/* ── Zentanee page layouts on the Tibeb Band system ───────────────────
   Catalog, product detail, cart/checkout/orders, account and static page
   layouts, in that order. Shared components live in zent-tibeb.css; the
   homepage keeps zent-home.css. Prefix: .zh-  */

/* ═══ catalog ═══ */
   Collection pages (all, sale, search, category, brand), the collections and
   brands directories, and the unavailable-product page. Shared components live
   in zent-tibeb.css; this file holds only layout and the page-scoped pieces:
   toolbar, filters, load-more, pager, directory rows. Prefix: .zh-  */

/* ── Collection heading and toolbar ───────────────────────────────────── */
.zh-collection__head { padding-bottom: 0; }
.zh-collection__head h1 mark.zh-mark { font-weight: 700; }
.zh-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  margin-top: 14px; padding: 10px 0;
  border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink);
}
.zh-toolbar__summary { flex: 1 1 auto; min-width: 0; font-size: 13px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-toolbar__sort { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.zh-toolbar__sort .zh-select { width: auto; min-width: 150px; }
.zh-active-filters { align-items: center; gap: 6px 12px; margin-top: 12px; }
.zh-active-filters .zh-chip { cursor: default; gap: 6px; }
.zh-active-filters .zh-chip__x { margin-left: 0; }
.zh-active-filters__clear { font-size: 13px; }

/* ── Layout: filters above the grid on phones, a ruled left column from 1024px ── */
.zh-collection__layout { display: grid; gap: 20px; margin-top: 18px; }
.zh-collection__results { min-width: 0; }

/* ── Filters (details drawer → ruled column) ──────────────────────────── */
.zh-filters { display: block; }
.zh-filters__toggle { list-style: none; width: 100%; }
.zh-filters__toggle::-webkit-details-marker { display: none; }
.zh-filters__toggle::marker { content: ""; }
.zh-filters[open] .zh-filters__toggle { background: var(--zh-ink); color: var(--zh-paper); }
.zh-filters__body { gap: 0; margin-top: 16px; border-bottom: 2px solid var(--zh-ink); }
.zh-filter-group { display: grid; gap: 10px; padding: 14px 0; border-top: 2px solid var(--zh-ink); }
fieldset.zh-filter-group { margin: 0; min-width: 0; border-right: 0; border-bottom: 0; border-left: 0; padding-right: 0; padding-left: 0; }
.zh-filter-group > legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; }
.zh-filter-group > legend + * { clear: both; }
.zh-price-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zh-form .zh-filter-group .zh-input, .zh-form .zh-filter-group .zh-select { min-height: 44px; }
.zh-filters__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zh-filters__actions .zh-btn { flex: 1 1 0; min-width: 0; }

/* A checkbox dressed as a chip: the input stays in the tree for the form and the keyboard. */
.zh-chip--check { position: relative; }
.zh-chip--check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.zh-chip--check:has(input:checked) { background: var(--zh-ink); color: var(--zh-paper); }
.zh-chip--check:has(input:focus-visible) { outline: 3px solid var(--zh-indigo); outline-offset: 3px; }

/* ── Results grid: load-more sentinel and empty states span every column ── */
.zh-grid > .zh-more, .zh-grid > .zh-empty, .zh-grid > .zh-search-empty__recent { grid-column: 1 / -1; }
.zh-more { display: flex; justify-content: center; padding-top: 4px; }
.zh-more__btn { min-width: min(100%, 320px); }
.zh-more__hint { font-family: var(--zh-body); font-weight: 400; font-size: 12px; letter-spacing: 0.02em; }
.zh-more__btn.htmx-request { opacity: 0.5; pointer-events: none; }
.zh-collection__empty { justify-self: start; }
.zh-search-empty__links { margin-top: 4px; }
.zh-search-empty__recent { padding-top: 12px; }
.zh-search-empty__recent .zh-section__head h3 { font-family: var(--zh-display); font-weight: 700; font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.05; }

/* ── Pager (directories) ──────────────────────────────────────────────── */
.zh-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 28px; padding: 14px 0;
  border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink);
}
.zh-pager__list { gap: 6px; }
.zh-pager__gap { display: inline-flex; align-items: center; height: 34px; padding: 0 4px; color: var(--zh-ink-2); }

/* ── Directory: a ruled list of names with photo swatches, not cards ───── */
.zh-directory { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-directory > li { border-bottom: 2px solid var(--zh-ink); }
.zh-directory__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; align-items: center; gap: 16px;
  padding: 14px 0; color: var(--zh-ink);
}
.zh-directory__name {
  font-family: var(--zh-display); font-weight: 700; font-size: clamp(20px, 5vw, 36px);
  letter-spacing: -0.02em; line-height: 1; overflow-wrap: anywhere;
}
.zh-directory__count { font-size: 13px; color: var(--zh-ink-2); white-space: nowrap; }
.zh-directory__swatch { display: block; width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--zh-ink); background: var(--zh-paper); grid-column: 3; }
.zh-directory__swatch--empty { background: transparent; }
.zh-directory__row:hover .zh-directory__name, .zh-directory__row:focus-visible .zh-directory__name {
  text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.12em; text-decoration-skip-ink: none;
}
.zh-directory__note { padding: 14px 0; font-size: 15px; color: var(--zh-ink-2); }

/* ── Unavailable product ──────────────────────────────────────────────── */
.zh-unavailable__actions { margin-top: 10px; }
.zh-unavailable__actions .zh-btn { flex: 1 1 0; min-width: 0; }
.zh-rail__empty { grid-column: 1 / -1; }

/* ── Inline save button (product page) ────────────────────────────────── */
.zh-save.is-saved { background: var(--zh-ink); color: var(--zh-paper); }
.zh-save.is-saved:hover, .zh-save.is-saved:focus-visible { background: var(--zh-paper); color: var(--zh-ink); }

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .zh-toolbar { margin-top: 18px; padding: 12px 0; }
  .zh-collection__layout { margin-top: 22px; gap: 24px; }
  .zh-filters__toggle { width: auto; }
  .zh-filters__actions .zh-btn, .zh-unavailable__actions .zh-btn { flex: 0 0 auto; }
  .zh-directory__row { grid-template-columns: minmax(0, 1fr) auto 72px; padding: 18px 0; }
  .zh-directory__swatch { width: 72px; height: 72px; }
}

/* ── Desktop: filters become the ruled left column ────────────────────── */
@media (min-width: 1024px) {
  .zh-collection__layout { grid-template-columns: 260px minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .zh-collection__layout .zh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zh-filters__body { margin-top: 0; }
  .zh-filters__actions .zh-btn { flex: 1 1 0; }
  /* zent.js opens the filters on wide viewports (and after htmx swaps); once open the
     toggle disappears and the groups read as a ruled column. Without JS the toggle stays. */
  .zh-filters[open] .zh-filters__toggle { display: none; }
}

/* ═══ commerce ═══ */
   Cart and checkout, order confirmation, order history, review invite, and the
   shared flow-status notice. The cart is an order slip: every line, fee and
   total in tabular figures on 2px ink rules; no boxes, no shadows, no radius. */

/* ── Flow status (shared notice; tones stay monochrome like .zent-alert) ── */
.zh-status {
  display: grid; gap: 14px; align-items: start; max-width: 72ch;
  margin: 0 0 22px; padding: 16px 18px;
  border: 2px solid var(--zh-ink); background: var(--zh-paper); color: var(--zh-ink);
}
.zh-status__body { display: grid; gap: 6px; min-width: 0; }
.zh-status__title { font-family: var(--zh-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; }
.zh-status__message { font-size: 14px; line-height: 1.5; color: var(--zh-ink-2); max-width: 64ch; }
.zh-status__meta { font-size: 12.5px; line-height: 1.45; color: var(--zh-ink-2); max-width: 64ch; }
.zh-status__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-status--muted { background: transparent; }
.zh-status--warning { border-style: dashed; }
.zh-status--danger { background: var(--zh-ink); color: var(--zh-paper); }
.zh-status--danger .zh-status__message, .zh-status--danger .zh-status__meta { color: var(--zh-paper); }
.zh-status--danger .zh-btn--ghost { border-color: var(--zh-paper); color: var(--zh-paper); }
.zh-status--danger .zh-btn--ghost:hover, .zh-status--danger .zh-btn--ghost:focus-visible { background: var(--zh-paper); color: var(--zh-ink); }
.zh-status--danger .zh-btn--primary { background: var(--zh-paper); color: var(--zh-ink); border-color: var(--zh-paper); border-bottom-color: var(--zh-indigo); }
.zh-status--danger .zh-btn--primary:hover, .zh-status--danger .zh-btn--primary:focus-visible { background: var(--zh-ink); color: var(--zh-paper); }

/* ── Lines: a ruled row with an ink-framed photo (cart, confirmation, orders, review) ── */
.zh-lines > li { padding: 16px 0; }
.zh-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; }
.zh-line__media { display: block; background: var(--zh-paper); border: 2px solid var(--zh-ink); }
.zh-line__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.zh-line__body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.zh-line__title { margin: 0; font-family: var(--zh-body); font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.zh-line__title a { color: var(--zh-ink); }
.zh-line__title a:hover, .zh-line__title a:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-line__meta { margin: 0; font-size: 12.5px; letter-spacing: 0.02em; color: var(--zh-ink-2); line-height: 1.4; }
.zh-line__meta .zh-tag { vertical-align: 1px; margin-left: 2px; }
.zh-line__aside { display: grid; gap: 8px; justify-items: end; align-content: start; text-align: right; }
.zh-line__total { font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.zh-line__remove { padding: 0; border: 0; background: transparent; font: 600 12.5px/1.4 var(--zh-body); color: var(--zh-ink); cursor: pointer; }
.zh-line--compact { grid-template-columns: 72px minmax(0, 1fr) auto; }
.zh-line--compact .zh-line__media { width: 72px; }
.zh-line--compact .zh-line__body { gap: 4px; }

/* Quantity stepper: two ink chips around a tabular numeral. */
.zh-qty { display: inline-flex; align-items: center; gap: 0; margin-top: 4px; }
.zh-qty form { display: contents; }
.zh-qty .zh-chip { width: 36px; min-width: 36px; height: 36px; padding: 0; font-size: 11px; }
.zh-qty .zh-chip i { font-size: 11px; }
.zh-qty__n { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); font-family: var(--zh-display); font-weight: 600; font-size: 14px; }

/* ── Cart page ─────────────────────────────────────────────────────── */
.zh-cartpage__layout { display: grid; gap: 34px; align-items: start; }
.zh-cartpage__slip { display: grid; gap: 28px; min-width: 0; }
.zh-cartpage__slip .zh-status { margin: 0; }
.zh-cartpage__lines { min-width: 0; }
.zh-row__text { font-family: var(--zh-body); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.zh-cartpage__summary { display: grid; gap: 18px; min-width: 0; }
.zh-cartpage__summary > h2 { font-family: var(--zh-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.zh-cartpage__address { display: grid; gap: 6px; padding: 12px 0 14px; border-top: 2px solid var(--zh-ink); }
.zh-cartpage__address .zh-row__label { margin-bottom: 2px; }
.zh-cartpage__address address { font-size: 14px; line-height: 1.5; }
.zh-cartpage__address .zh-link { font-size: 13px; justify-self: start; }
.zh-cartpage__address .zh-btn { justify-self: start; margin-top: 4px; }
.zh-cartpage__ledger { display: grid; gap: 10px; }
.zh-cartpage__ledger .zh-cartpage__address { padding-bottom: 12px; }
.zh-coupon__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.zh-coupon__row .zh-input { min-height: 48px; }
.zh-coupon__row .zh-btn { min-height: 48px; }
.zh-cartpage__continue { justify-self: start; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.zh-cartpage__continue i { font-size: 12px; }
.zh-checkout { padding-top: 18px; border-top: 2px solid var(--zh-ink); }
.zh-checkout .zh-btn--block { margin-top: 4px; }
.zh-checkout__terms { font-size: 12.5px; line-height: 1.5; }
.zh-checkout__terms a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-checkout__note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--zh-ink); }
.zh-checkout__note i { font-size: 15px; margin-top: 3px; flex: 0 0 auto; }
.zh-pay { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-pay li { border-bottom: 2px solid var(--zh-ink); }
.zh-pay .zh-check { padding: 12px 0; margin: 0; }
.zh-pay .zh-check span { display: grid; gap: 2px; }
.zh-pay .zh-check strong { font-weight: 600; }
.zh-form .zh-pay label.zh-check { font: 400 14px/1.45 var(--zh-body); letter-spacing: 0; text-transform: none; }
.zh-cartpage__optin { margin-top: 40px; }

/* Telegram opt-in: a ruled row with a ghost button. */
.zh-optin { display: grid; gap: 12px; padding: 18px 0; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); }
.zh-optin__copy { display: grid; gap: 4px; min-width: 0; }
.zh-optin__copy strong { font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
.zh-optin__copy p { font-size: 14px; line-height: 1.5; color: var(--zh-ink-2); max-width: 52ch; }
.zh-optin .zh-btn { justify-self: start; }
.zh-optin--linked { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--zh-ink-2); }
.zh-optin--linked i { font-size: 15px; margin-top: 3px; color: var(--zh-ink); }

/* ── Order confirmation ────────────────────────────────────────────── */
.zh-confirm__head h1 { max-width: none; }
.zh-confirm__head h1 .zh-num { display: block; font-size: clamp(24px, 6.4vw, 56px); }
.zh-confirm__lede { max-width: 60ch; }
.zh-confirm__split { display: grid; gap: 40px; align-items: start; }
.zh-confirm__aside { display: grid; gap: 28px; min-width: 0; }
.zh-confirm__block { display: grid; gap: 12px; }
.zh-confirm__block > h2 { font-family: var(--zh-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.zh-confirm__block address { padding: 12px 0; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); font-size: 14px; line-height: 1.55; }
.zh-confirm__help { font-size: 13px; line-height: 1.5; color: var(--zh-ink-2); }
.zh-confirm__help a { color: var(--zh-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-confirm .zh-step.is-current h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-confirm .zh-step.is-done .zh-step__n { color: var(--zh-ink-2); }
.zh-confirm__actions .zh-btn { flex: 1 1 auto; }

/* ── Orders ────────────────────────────────────────────────────────── */
.zh-tally {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 32px; padding: 0; list-style: none;
  border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink);
}
.zh-tally li { display: grid; gap: 1px; padding: 8px 8px 8px 0; font-size: 12px; letter-spacing: 0.02em; color: var(--zh-ink-2); min-width: 0; }
.zh-tally li:not(:nth-child(3n+1)) { border-left: 2px solid var(--zh-ink); padding-left: 10px; }
.zh-tally li:nth-child(n+4) { border-top: 2px solid var(--zh-ink); }
.zh-tally strong { font-family: var(--zh-display); font-weight: 600; font-size: 17px; color: var(--zh-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.zh-orders { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-order { display: grid; gap: 16px; padding: 20px 0 24px; border-bottom: 2px solid var(--zh-ink); }
.zh-order__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; }
.zh-order__number { font-family: var(--zh-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.zh-order__number a { color: var(--zh-ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-order__number a:hover { text-decoration-color: var(--zh-ink); }
.zh-order__date { grid-column: 1; font-size: 12.5px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-order__head .zh-tag { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
.zh-order__copy { font-size: 14px; line-height: 1.5; color: var(--zh-ink-2); max-width: 60ch; }
.zh-order__note { font-size: 13px; line-height: 1.5; padding: 10px 0; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); }
.zh-order__note strong { font-weight: 600; }
.zh-order__rows { margin: 0; }
.zh-order__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-order__actions form { display: contents; }

/* Timeline: vertical on phones, horizontal from 768px. Ink squares carry state;
   the current step's label carries the indigo thread. */
.zh-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.zh-timeline__step { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 34px; padding: 0; }
.zh-timeline__mark { display: block; width: 14px; height: 14px; border: 2px solid var(--zh-ink); background: transparent; }
.zh-timeline__step::before { content: ""; position: absolute; left: 6px; top: -17px; width: 2px; height: 17px; background: var(--zh-ink); }
.zh-timeline__step:first-child::before { display: none; }
.zh-timeline__label { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--zh-ink-2); }
.zh-timeline__step.is-completed .zh-timeline__mark, .zh-timeline__step.is-cancelled .zh-timeline__mark { background: var(--zh-ink); }
.zh-timeline__step.is-completed .zh-timeline__label { color: var(--zh-ink); }
.zh-timeline__step.is-current .zh-timeline__mark { border-width: 3px; }
.zh-timeline__step.is-current .zh-timeline__label { color: var(--zh-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-timeline__step.is-cancelled .zh-timeline__label { color: var(--zh-ink); font-weight: 600; }
.zh-timeline__step.is-upcoming .zh-timeline__mark { border-style: solid; }
.zh-orders__help { margin-top: 40px; }
.zh-orders__help p { font-size: 15px; line-height: 1.55; color: var(--zh-ink-2); max-width: 60ch; margin-bottom: 16px; }

/* ── Review invite ─────────────────────────────────────────────────── */
.zh-review { max-width: 560px; }
.zh-review__product { margin: 0 0 28px; }
.zh-review__product .zh-line { padding: 14px 0; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink); }
.zh-review__product .zh-line__title { font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.zh-review .zh-form input[type="file"] { min-height: 0; padding: 12px 14px; line-height: 1.3; }
.zh-review .zh-form input[type="file"]::file-selector-button { margin: 0 12px 0 0; padding: 6px 10px; border: 2px solid var(--zh-ink); background: transparent; color: var(--zh-ink); font: 600 11.5px/1 var(--zh-display); letter-spacing: 0.02em; cursor: pointer; }
.zh-review .zh-form input[type="file"]::file-selector-button:hover { background: var(--zh-ink); color: var(--zh-paper); }
.zh-review__clear { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.zh-review__clear input { width: 18px; height: 18px; margin: 0; accent-color: var(--zh-ink); }
.zh-review__clear a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }

/* Radio chips: a visually hidden input drives a .zh-chip label. */
.zh-chips--radio { gap: 6px; }
.zh-chips--radio .zh-chip { min-width: 44px; height: 40px; }
.zh-chips--radio input:checked + .zh-chip { background: var(--zh-ink); color: var(--zh-paper); }
.zh-chips--radio input:focus-visible + .zh-chip { outline: 3px solid var(--zh-indigo); outline-offset: 3px; }
.zh-chips--radio .zh-chip { cursor: pointer; }

/* ── Tablet and up ─────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .zh-status { padding: 18px 22px; }
  .zh-line { gap: 8px 18px; }
  .zh-optin { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
  .zh-tally { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .zh-tally li { padding: 12px 12px 12px 0; }
  .zh-tally li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .zh-tally li:nth-child(n+2) { border-left: 2px solid var(--zh-ink); padding-left: 12px; }
  .zh-tally li:nth-child(n+4) { border-top: 0; }
  .zh-order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; }
  .zh-order__head { grid-column: 1 / -1; }
  .zh-order__line { grid-column: 1; }
  .zh-order__track { grid-column: 2; grid-row: 2 / span 3; display: grid; gap: 14px; align-content: start; }
  .zh-order__rows, .zh-order__actions { grid-column: 1; }
  .zh-timeline { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .zh-timeline__step { grid-template-columns: 1fr; gap: 8px; align-items: start; justify-items: start; padding-right: 8px; }
  .zh-timeline__step::before { top: 6px; left: 14px; right: -8px; width: auto; height: 2px; }
  .zh-timeline__step:first-child::before { display: block; }
  .zh-timeline__step:last-child::before { display: none; }
  .zh-timeline__label { font-size: 12.5px; }
  .zh-confirm__actions .zh-btn { flex: 0 1 auto; }
}

/* ── Desktop ───────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  .zh-cartpage__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .zh-cartpage__summary { position: sticky; top: 24px; }
  .zh-confirm__split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .zh-order { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
}
@media (min-width: 1200px) {
  .zh-cartpage__layout, .zh-confirm__split { gap: 72px; }
}

/* ═══ account ═══ */
   Covers templates/account/*, the static Read pages (about, contact, FAQ, delivery & returns,
   privacy, terms) and 404. Everything here is page layout; components are reused from the system. */

/* ── Auth column (login, register, add address, password flows) ─────
   One narrow column under the page heading: alerts, the form, one meta line of links. */
.zh-auth { display: grid; gap: 20px; max-width: 440px; }
.zh-auth .zent-messages { margin: 0; }
.zh-auth__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.zh-auth__terms { font-size: 13px; line-height: 1.5; color: var(--zh-ink-2); }
.zh-auth__terms a { font-weight: 600; color: var(--zh-ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-auth__terms a:hover { text-decoration-color: var(--zh-ink); }
/* Django's password validators render their help as a <ul>. */
.zh-help ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.zh-help li::marker { color: var(--zh-ink); }

/* ── Inline row: an input with one button beside it (copy link, 404 search) ── */
.zh-inrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.zh-inrow .zh-input { min-width: 0; text-overflow: ellipsis; }
.zh-inrow .zh-btn { min-height: 48px; }
.zh-inrow .zh-input[readonly] { background: var(--zh-ground); font-size: 13px; }
.zh-inrow--compact .zh-input, .zh-inrow--compact .zh-btn { min-height: 40px; }

/* ── Account (profile) ──────────────────────────────────────────────── */
.zh-account .zh-row dd { max-width: 100%; overflow-wrap: anywhere; }
/* Rows that carry an object plus its action(s): address rows, recent orders. */
.zh-objrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: start; }
.zh-objrow__body { display: grid; gap: 2px; min-width: 0; }
.zh-objrow__body > strong { font-family: var(--zh-display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; margin-bottom: 4px; }
.zh-objrow__body p { font-size: 15px; line-height: 1.45; }
.zh-objrow__body .zh-meta { margin-top: 2px; }
.zh-objrow form { display: contents; }
.zh-objrow .zh-tag { align-self: start; margin-top: 2px; }
/* A ruled list of link rows: label left, chevron right; the indigo thread sits under the label only. */
.zh-linklist > li { padding: 0; }
.zh-linklist a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; color: var(--zh-ink); }
.zh-linklist a .zh-link { font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.zh-linklist a i { font-size: 13px; color: var(--zh-ink); transition: transform 220ms var(--zh-ease); }
.zh-linklist a:hover i { transform: translateX(4px); }
.zh-linklist a:hover .zh-link { text-decoration-color: var(--zh-ink); }
.zh-section__foot { margin-top: 18px; }
.zh-section .zh-empty { margin-top: 4px; }

/* ── Referral dashboard ─────────────────────────────────────────────── */
.zh-share { display: grid; gap: 14px; max-width: 720px; }
.zh-share .zh-actions .zh-btn { flex: 1 1 auto; }
.zh-stats { max-width: 720px; }
.zh-reflinks > li { display: grid; gap: 10px; }
.zh-reflinks__title { font-weight: 500; font-size: 15px; line-height: 1.35; min-width: 0; }
.zh-reflinks__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }
.zh-reflinks .zh-actions { gap: 6px; }
.zh-commissions .zh-tag { white-space: nowrap; }

/* ── Contact facts ──────────────────────────────────────────────────── */
.zh-facts { max-width: 760px; }
.zh-facts .zh-row { grid-template-columns: 92px minmax(0, 1fr); align-items: start; padding: 16px 0; }
.zh-facts dt { padding-top: 2px; font: 600 12px/1.3 var(--zh-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--zh-ink); }
.zh-facts dd { display: grid; gap: 6px; justify-items: start; text-align: left; font: 400 15px/1.5 var(--zh-body); letter-spacing: 0; color: var(--zh-ink-2); }
.zh-facts dd .zh-link { color: var(--zh-ink); }
.zh-facts dd .zh-num { font-family: var(--zh-display); font-weight: 600; letter-spacing: -0.01em; }
.zh-contact__hours { display: inline-flex; align-items: center; gap: 8px; }
.zh-contact__hours i { font-size: 13px; }
.zh-crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }

/* ── Read pages ─────────────────────────────────────────────────────── */
.zh-fees { margin: 4px 0 32px; max-width: 760px; }
.zh-prose .zh-actions { margin: 18px 0 8px; }
.zh-faq-group { margin-top: 32px; }
.zh-faq-group > h2 { margin-bottom: 14px; }
.zh-faq details p a, .zh-lede a { font-weight: 600; color: var(--zh-ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-faq details p a:hover, .zh-lede a:hover { text-decoration-color: var(--zh-ink); }

/* ── 404 ───────────────────────────────────────────────────────────── */
.zh-notfound { display: grid; gap: 22px; max-width: 560px; }
.zh-notfound .zh-actions .zh-btn { flex: 1 1 auto; }

/* ── Tablet and up ─────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .zh-auth { gap: 24px; }
  .zh-objrow { gap: 16px 24px; }
  .zh-reflinks > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 20px; }
  .zh-facts .zh-row { grid-template-columns: 140px minmax(0, 1fr); }
  .zh-share .zh-actions .zh-btn, .zh-notfound .zh-actions .zh-btn { flex: 0 0 auto; }
  .zh-account__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
  .zh-account__two > .zh-section { padding-top: 40px; }
}
@media (min-width: 1200px) {
  .zh-account__two { gap: 0 72px; }
}

/* Link-row text stack (label plus an optional meta line). */
.zh-linklist__text { display: grid; gap: 4px; min-width: 0; }
.zh-linklist__text .zh-meta { max-width: 52ch; }

/* ═══ detail ═══ */
   One piece laid on the cloth: the photo is the page, the size ruler is the
   only control, and the inspect-before-you-pay mechanism sits beside the
   price as fact. Builds on zent-tibeb.css; loaded from detail.html until the
   integrator folds it into the site bundle. Prefix: .zh-pdp  */

/* ── Head: preview banner and breadcrumb ───────────────────────────── */
.zh-pdp__preview { margin-top: 16px; }
.zh-pdp__crumbs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  padding: 14px 0 18px; font-size: 13px; letter-spacing: 0.01em; color: var(--zh-ink-2);
}
.zh-pdp__crumbs a { color: var(--zh-ink); font-weight: 500; }
.zh-pdp__crumbs a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-pdp__crumbs span[aria-hidden] { color: var(--zh-ink); font-weight: 600; }
.zh-pdp__crumbs [aria-current] { color: var(--zh-ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ── Layout: gallery then info; two ruled columns from 992px ───────── */
.zh-pdp__layout { display: grid; gap: 30px; align-items: start; }

/* ── Gallery: photo in an ink frame laid on a strip of woven cloth ─── */
.zh-pdp__gallery { min-width: 0; padding: 0 14px 14px 0; }
.zh-pdp__frame { position: relative; margin: 0; background: var(--zh-paper); border: 2px solid var(--zh-ink); }
.zh-pdp__frame .zh-pdp__under {
  position: absolute; top: 12px; left: 12px; right: -14px; bottom: -14px; z-index: 0;
  width: auto; height: auto;
  background-repeat: repeat; background-position: 0 0; background-size: auto 10px;
}
.zh-pdp__frame img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center; background: var(--zh-paper);
}
.zh-pdp__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: var(--zh-paper); }
.zh-pdp__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.zh-pdp__thumb {
  display: block; width: 72px; height: 72px; padding: 0; overflow: hidden;
  border: 2px solid var(--zh-ink); background: var(--zh-paper); cursor: pointer;
  transition: none;
}
.zh-pdp__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zh-pdp__thumb:hover, .zh-pdp__thumb.is-active { border-width: 3px; }

/* ── Info column ───────────────────────────────────────────────────── */
.zh-pdp__info { min-width: 0; }
.zh-pdp__brand { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-pdp__title {
  margin: 0 0 14px;
  font-family: var(--zh-display); font-weight: 700; font-size: clamp(26px, 5vw, 44px);
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere;
}
html[lang="am"] .zh-pdp__title { line-height: 1.15; letter-spacing: 0; }

/* Rating and save share one ruled row. */
.zh-pdp__topline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 0; border-top: 2px solid var(--zh-ink); border-bottom: 2px solid var(--zh-ink);
}
.zh-pdp__rating { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--zh-ink); }
a.zh-pdp__rating { font-weight: 500; }
a.zh-pdp__rating:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-pdp__stars { display: inline-flex; gap: 1px; line-height: 1; }
/* star_icons (template tag) emits .spring-star spans: ink outline, ink fill. */
.spring-star { font-size: 14px; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--zh-ink); }
.spring-star.is-filled { color: var(--zh-ink); -webkit-text-stroke: 0; }
.zh-pdp__stars--empty { font-size: 14px; letter-spacing: 1px; color: var(--zh-ink); }

/* Price: the loud face carries the number; the compare-at is quiet; the sale is a flag. */
.zh-pdp__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 18px 0 4px;
  font-family: var(--zh-display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.zh-pdp__was { font-family: var(--zh-body); font-weight: 400; font-size: 15px; color: var(--zh-ink-2); }
.zh-pdp__price .zh-tag { align-self: center; }
.zh-pdp__stock { margin: 0; font-size: 13px; color: var(--zh-ink-2); }
.zh-pdp__lede { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--zh-ink-2); max-width: 48ch; }

/* ── Colours: one swatch per sibling product, each its own page ─────── */
.zh-pdp__colours { margin-top: 22px; }
.zh-pdp__colour-name { font-size: 13px; color: var(--zh-ink-2); }
.zh-pdp__swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.zh-swatch { display: grid; gap: 5px; justify-items: center; width: 64px; color: var(--zh-ink); text-decoration: none; }
.zh-swatch__img { display: block; width: 64px; aspect-ratio: 4 / 5; border: 2px solid var(--zh-ink); background: var(--zh-paper); overflow: hidden; }
.zh-swatch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zh-swatch__label { font-size: 11px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
a.zh-swatch:hover .zh-swatch__img, a.zh-swatch:focus-visible .zh-swatch__img { outline: 3px solid var(--zh-indigo); outline-offset: 2px; }
a.zh-swatch:focus-visible { outline: none; }
.zh-swatch.is-current .zh-swatch__img { outline: 3px solid var(--zh-indigo); outline-offset: 2px; }
.zh-swatch.is-current .zh-swatch__label { font-weight: 600; }
.zh-swatch.is-soldout .zh-swatch__img { opacity: .5; }
.zh-module__colours { font-variant-numeric: tabular-nums; }

/* ── Form: the size ruler and the selvedge bar ─────────────────────── */
.zh-pdp__form { display: grid; gap: 18px; margin-top: 22px; }
.zh-pdp__group { display: grid; gap: 10px; }
.zh-pdp__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.zh-pdp__label-row .zh-link { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.zh-pdp__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.zh-pdp__sizes .zh-chip { min-width: 48px; height: 40px; padding: 0 12px; font-size: 13px; }
.zh-pdp__sizes input:checked + .zh-chip { background: var(--zh-ink); color: var(--zh-paper); }
.zh-pdp__sizes input:focus-visible + .zh-chip { outline: 3px solid var(--zh-indigo); outline-offset: 3px; }
.zh-pdp__sizes input:disabled + .zh-chip { pointer-events: none; }
.zh-pdp__actions { display: grid; gap: 10px; }
.zh-pdp__feedback { display: grid; gap: 8px; }
.zh-pdp__feedback:empty { display: none; }

/* Restock: a narrow form, or one inline row per sold-out size. */
.zh-pdp__restock { display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--zh-ink); }
.zh-pdp__restock h2 { font-family: var(--zh-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.zh-pdp__restock p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--zh-ink-2); max-width: 46ch; }
.zh-pdp__restock .zh-form { margin-top: 6px; }
.zh-pdp__restock--size { gap: 8px; margin-top: 16px; padding-top: 14px; }
.zh-pdp__restock-inline { display: grid; gap: 8px; }
.zh-pdp__restock-inline .zh-btn { white-space: normal; }

/* Size guide: one details block, ruled like the FAQ. */
.zh-pdp__guide { margin-top: 22px; max-width: none; }
.zh-pdp__guide summary > span { display: inline-flex; align-items: center; gap: 10px; }
.zh-pdp__guide summary i { font-size: 14px; }
.zh-pdp__measure { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.zh-pdp__measure li { padding: 8px 0; border-bottom: 2px solid var(--zh-ink); }
.zh-pdp__measure li:last-child { border-bottom: 0; }

/* Fee ruler and the mechanism, in the column, as fact. */
.zh-pdp__fees { margin-top: 26px; }
.zh-pdp__how { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 28px 0 10px; }
.zh-pdp__how h2 { font-family: var(--zh-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.zh-pdp__how a { font-size: 13px; font-weight: 600; color: var(--zh-ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-pdp__how a:hover { text-decoration-color: var(--zh-ink); }
/* Steps stay stacked inside the column at every width; the shared 3-up grid is for full-width sections. */
.zh-pdp__steps { grid-template-columns: 1fr; }
.zh-pdp__steps .zh-step, .zh-pdp__steps .zh-step + .zh-step { grid-template-columns: 56px 1fr; padding: 16px 0; border-left: 0; border-bottom: 0; }
.zh-pdp__steps .zh-step:last-child { border-bottom: 2px solid var(--zh-ink); }
.zh-pdp__steps .zh-step__n { font-size: 26px; }
.zh-pdp__steps .zh-step p { font-size: 14px; }
.zh-pdp__steps mark { background: transparent; color: var(--zh-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }

.zh-pdp__support { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--zh-ink-2); }
.zh-pdp__support p { margin: 0; }
.zh-pdp__support-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.zh-pdp__support-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.zh-pdp__support-links i { font-size: 13px; }

/* ── Details: prose beside the facts ───────────────────────────────── */
.zh-pdp__details-grid { display: grid; gap: 28px; align-items: start; }
.zh-pdp__facts .zh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.zh-pdp__facts dd { font-size: 14px; overflow-wrap: anywhere; }
.zh-pdp__facts dd a { color: var(--zh-ink); }
.zh-pdp__facts dd a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.zh-pdp__notes { list-style: none; margin: 0; padding: 0; }
.zh-pdp__notes li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 2px solid var(--zh-ink); }
.zh-pdp__notes h3 { font-family: var(--zh-display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.zh-pdp__notes p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--zh-ink-2); max-width: 52ch; }

/* ── Reviews: a ruled list beside the form ─────────────────────────── */
.zh-pdp__review-summary { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.zh-pdp__avg { font-family: var(--zh-display); font-weight: 600; font-size: 18px; color: var(--zh-ink); letter-spacing: -0.01em; }
.zh-pdp__fit { display: flex; align-items: baseline; gap: 10px; margin: -6px 0 18px; font-size: 14px; color: var(--zh-ink-2); }
.zh-pdp__fit strong { font-family: var(--zh-display); font-weight: 600; font-size: 17px; color: var(--zh-ink); }
.zh-pdp__fit i { font-size: 13px; color: var(--zh-ink); }
.zh-pdp__review-grid { display: grid; gap: 32px; align-items: start; }
.zh-pdp__review { display: grid; gap: 8px; }
.zh-pdp__review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.zh-pdp__review-head strong { font-family: var(--zh-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.zh-pdp__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 12.5px; letter-spacing: 0.02em; color: var(--zh-ink-2); }
.zh-pdp__byline .zh-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; }
.zh-pdp__review > p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.zh-pdp__review-photo { display: inline-block; width: 96px; height: 96px; border: 2px solid var(--zh-ink); background: var(--zh-paper); }
.zh-pdp__review-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zh-pdp__review-form { display: grid; gap: 14px; align-content: start; }
.zh-pdp__review-form h3 { font-family: var(--zh-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.zh-pdp__review-form > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--zh-ink-2); max-width: 46ch; }
.zh-pdp__review-form > .zh-btn { justify-self: start; }
/* Django's RadioSelect renders label-wrapped radios; keep them sentence case, not field labels. */
.zh-pdp .zh-form .zh-field :is(div, li) label { display: flex; align-items: center; gap: 10px; font: 400 14px/1.45 var(--zh-body); letter-spacing: 0; text-transform: none; color: var(--zh-ink); }
.zh-pdp .zh-form .zh-field :is(div, li) label input { margin: 0; }
.zh-pdp .zh-form .zh-field > div, .zh-pdp .zh-form .zh-field > ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zh-pdp .zh-form input[type="file"] { padding: 10px 14px; min-height: 0; line-height: 1.3; }

/* Rails: the shared component; the empty line sits in the rail's first column. */
.zh-pdp__rail-empty { margin: 0; font-size: 14px; color: var(--zh-ink-2); align-self: center; }

/* ── Sticky bar: phone and tablet only, above the tab bar ──────────── */
.zh-pdp__sticky {
  position: fixed; left: 0; right: 0; z-index: 1090;
  bottom: calc(var(--zh-tabbar) + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--zh-paper); border-top: 2px solid var(--zh-ink);
}
.zh-pdp__sticky[hidden] { display: none; }
.zh-pdp__sticky-info { display: grid; gap: 2px; min-width: 0; }
.zh-pdp__sticky-price { font-family: var(--zh-display); font-weight: 600; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.zh-pdp__sticky-size { font-size: 12px; letter-spacing: 0.02em; color: var(--zh-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zh-pdp__sticky-size:empty { display: none; }
.zh-pdp__sticky .zh-btn { min-height: 46px; }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.zh-pdp__lightbox {
  position: fixed; inset: 0; z-index: 1400;
  display: grid; place-items: center; padding: 24px;
  background: rgba(17, 17, 17, 0.94);
}
.zh-pdp__lightbox[hidden] { display: none; }
.zh-pdp__lightbox img { display: block; max-width: 92vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.zh-pdp__lightbox-close { position: absolute; top: 16px; right: 16px; border-color: var(--zh-paper); background: var(--zh-ink); color: var(--zh-paper); }
.zh-pdp__lightbox-close:hover, .zh-pdp__lightbox-close:focus-visible { background: var(--zh-paper); color: var(--zh-ink); }

/* ── Breakpoints ───────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .zh-pdp__restock-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
@media (min-width: 768px) {
  .zh-pdp__crumbs { padding: 20px 0 22px; }
  .zh-pdp__details-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
  .zh-pdp__review-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
}
@media (min-width: 992px) {
  .zh-pdp__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
  .zh-pdp__info { position: sticky; top: 24px; align-self: start; }
  .zh-pdp__thumb { width: 88px; height: 88px; }
  .zh-pdp__title { margin-bottom: 18px; }
  .zh-pdp__price { font-size: 28px; }
  .zh-pdp__sticky { display: none; }
}
