/* SezonHit theme: the product page (product/product.twig), on top of stylesheet.css's product components
   (.pdp__grid, .gallery, .seg, .swatches, .dtiles, .buy, .about, .specs, .modal…).

   The page opens as a whole order already picked (this size, the design in the photo, 1 шт), so the buyer only confirms
   it or changes one thing; the design is the main choice. Phones: title and price above the photo, a strip of design tiles
   right under it (a pick changes the photo just above), then size and quantity; «У кошик» is in a bar at the foot of the
   screen from the first screen on. Wider screens: the designs in a panel at the top of the buy column, the sizes as small
   buttons under it, and the buy row sticks to the window's foot while the choices above it scroll by. */

/* ── Layout: head (title, price) · photos · choices ───────────── */
.pdp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "media head" "media buy";
  grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; }
.pdp__head { grid-area: head; }
.pdp__media { grid-area: media; }
.pdp__buy { grid-area: buy; min-width: 0; }
@media (min-width: 721px) and (max-width: 960px) { .pdp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; } }
@media (max-width: 720px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "buy"; grid-template-rows: auto; row-gap: 0; margin-top: 0; }
}

/* the way back: on phones only the category above, as a back link (the bar of categories above says where you are) */
@media (max-width: 720px) {
  .crumbs { padding-top: 0; }
  .crumbs > :not(:nth-last-child(2)) { display: none; }
  .crumbs > :nth-last-child(2) { padding-left: 20px; font-weight: 600; color: var(--green); }
  .crumbs > :nth-last-child(2)::before { content: ""; left: 3px; top: 50%; bottom: auto; width: 8px; height: 8px; border: solid currentColor;
    border-width: 0 0 2px 2px; transform: translateY(-50%) rotate(45deg); }
}

/* ── Head: title, size and stock, the price with its best quantity price beside it ── */
.pdp__title { font-size: clamp(28px, 2.6vw, 38px); }
.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 14.5px; }
.pdp__size { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--paper-2);
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* «220 дизайнів»: down to the designs (it sat on the photo in the prototype, over the box) */
.pdp__count { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: -8px 0; color: var(--green); font-weight: 600;
  text-decoration: none; white-space: nowrap; }
.pdp__count::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.pdp__count:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp__price { flex-wrap: wrap; row-gap: 2px; margin-top: 14px; }
.pdp__price strong small { font: 500 17px/1 var(--ui); color: var(--ink-2); letter-spacing: 0; }
/* «від 10 шт — по 110 ₴»: the best quantity price, a pill beside the price. Just the fact: the price follows the quantity
   on its own, and the nudge under the buy row says the next step */
.pdp__price .pdp__from { display: inline-flex; align-items: center; min-height: 30px; margin-left: 6px; padding: 0 12px; border-radius: 999px;
  background: var(--brown-tint); color: var(--brown); font: 600 14px/1.2 var(--ui); white-space: nowrap; }
.pdp__from b { font-weight: 700; }
/* «Мітки» (model extension/sezonhit/flare): on the photo's top left corner, one under another, at every width; on phones
   clear of the dots on the right */
.gallery__flares { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.gallery__flares .flare { max-width: 100%; box-shadow: 0 2px 8px -2px rgb(0 0 0 / .3); }
@media (max-width: 720px) {
  .gallery__flares { top: 12px; left: 12px; right: 84px; gap: 5px; }
}
/* a wholesale buyer's own price: a quiet line over it (\Sezonhit\Wholesale) */
.pdp__price .pdp__opt { flex-basis: 100%; font: 600 13.5px/1.3 var(--ui); color: var(--green); }
@media (min-width: 721px) { .pdp__head { padding-bottom: 4px; } }
@media (max-width: 720px) {
  .pdp__head { padding: 2px 0 14px; }
  .pdp__title { font-size: 27px; }
  .pdp__meta { margin-top: 8px; }
  .pdp__price { margin-top: 8px; }
  .pdp__price strong { font-size: 28px; }
}

/* ── Photos: a track of slides (swipe on phones, thumbnails beside it on wider screens) ── */
.gallery__main { isolation: isolate; }
.gallery__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
#pdpImg { transition: opacity var(--t); }
.gallery__main.is-loading #pdpImg { opacity: .6; }
.gallery__dots { position: absolute; right: 12px; top: 12px; display: none; gap: 5px; padding: 6px 8px; border-radius: 999px; background: rgb(24 20 14 / .5); }
.gallery__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgb(255 252 246 / .6); transition: width var(--t) var(--ease), background-color var(--t); }
.gallery__dots i.is-on { width: 16px; background: #fffcf6; }

.gallery__thumbs { display: flex; gap: 8px; margin: 10px -3px 0; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { position: relative; flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover img { opacity: .85; }
.gallery__thumb[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--card); }
@media (min-width: 961px) {
  .gallery--thumbs { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .gallery--thumbs .gallery__main { grid-column: 2; grid-row: 1; }
  .gallery--thumbs figcaption { grid-column: 2; }
  .gallery--thumbs .gallery__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; margin: -3px; height: 0; min-height: calc(100% + 6px); overflow: hidden auto; }
  .gallery__thumbs.is-overflowing { padding-bottom: 40px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); }
}
@media (max-width: 960px) {
  .gallery__thumbs { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .gallery__thumbs:not(.is-overflowing) { padding-right: 3px; -webkit-mask-image: none; mask-image: none; }
}
/* the photos full-screen (#pdpView, js: viewer in product-product.js): a tap on the photo or this corner button opens it */
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0;
  border-radius: 50%; background: rgb(24 20 14 / .5); color: #fffcf6; }
.gallery__zoom[hidden] { display: none; }
.gallery__zoom svg { width: 20px; height: 20px; }
.gallery__zoom:hover { background: rgb(24 20 14 / .72); }
.gallery__main.has-view .gallery__slide img, .gallery__main.has-view > #pdpImg { cursor: zoom-in; }
.pview { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #14110d; color: #fffcf6; overflow: hidden; }
.pview[open] { display: block; }
.pview::backdrop { background: #14110d; }
.pview__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior: contain; }
.pview__track::-webkit-scrollbar { display: none; }
.pview__slide { display: flex; flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.pview__slide img { display: block; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
/* zoomed: the photo bigger than the screen, moved by a drag (its own scroll, not the track's) */
.pview__slide.is-zoomed { overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.pview__slide.is-zoomed::-webkit-scrollbar { display: none; }
.pview__slide.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.pview__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px 18px; background: linear-gradient(rgb(20 17 13 / .75), rgb(20 17 13 / 0)); pointer-events: none; }
.pview__bar > * { pointer-events: auto; }
/* on their own dark backing: a zoomed light photo (a white board) runs under the bar */
.pview__count { padding: 8px 12px; border-radius: 999px; background: rgb(20 17 13 / .6); font: 600 15px/1 var(--ui); font-variant-numeric: tabular-nums; }
.pview__count:empty { display: none; }
.pview__close { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: rgb(20 17 13 / .6); color: #fffcf6; }
.pview__close svg { width: 22px; height: 22px; }
.pview__close:hover { background: rgb(20 17 13 / .85); }
.pview__hint { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 7px 14px;
  border-radius: 999px; background: rgb(20 17 13 / .66); font: 500 13.5px/1.2 var(--ui); white-space: nowrap; pointer-events: none; }
.pview__nav { position: absolute; top: 50%; display: none; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%;
  background: rgb(255 252 246 / .92); color: var(--ink); box-shadow: 0 2px 10px -2px rgb(0 0 0 / .5); }
.pview__nav svg { width: 22px; height: 22px; }
.pview__nav:disabled { opacity: .3; }
.pview__nav--prev { left: 16px; }
.pview__nav--next { right: 16px; }
@media (hover: hover) and (pointer: fine) { .pview__nav { display: grid; } }

/* phones swipe the track (dots on the photo say there's more); a personalised product keeps its thumbnails, which the
   text on the photo follows */
@media (max-width: 720px) {
  .gallery--track .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; }
}

/* what keyboard focus and the page's links scroll to stops clear of what's fixed at the window's foot: the phone bar
   (72 px) and, on wider screens, the stuck buy row (about 135 px, 145 with «Додано») */
@media (max-width: 960px) { html { scroll-padding-bottom: 96px; } }
@media (min-width: 961px) and (min-height: 761px) { html { scroll-padding-bottom: 150px; } }

/* #choose (cards link here) and the designs (the «220 дизайнів» link, the phone bar's picture): a little room above them */
#choose { scroll-margin-top: 12px; }
#pdpDesign { scroll-margin-top: calc(var(--hdr-stick) + 16px); }
@media (max-width: 860px) {
  #choose { scroll-margin-top: 0px; }
  #pdpDesign { scroll-margin-top: calc(var(--hdr-stick) + 8px); }
}

/* ── Stock: made to order ─────────────────────────────────────── */
.stock__pre { display: inline-flex; align-items: center; gap: 7px; color: var(--brown); font-weight: 600; }
.stock__pre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; }

/* ── Choices: the design first and biggest, then the size as small buttons, then any other ── */
.pdp__buy .field { margin-top: 22px; }
.pdp__buy .field__label { font-size: 15.5px; margin-bottom: 10px; }
.pdp__buy .field__label em { color: var(--green); font-weight: 600; }
.pdp__buy > .field:first-child { margin-top: 18px; }
@media (max-width: 720px) {
  .pdp__buy > .field:first-child { margin-top: 16px; }
  .pdp__buy .field { margin-top: 24px; }
}

/* ── Designs: the main choice. Wider screens: a toned panel at the top of the buy column: «Оберіть дизайн · 7», the picked
   one named under it in the title's type (a tick like its tile's), then big tiles, two rows of them (more rows for more
   designs, four to six a row). Many designs: the theme chips, then two rows of four whose last cell opens every design.
   Phones: the words, then a strip of tiles that swipes, the chips under it (further down) ── */
.pdp-design { padding: 16px 16px 18px; border-radius: var(--r-lg); background: var(--paper-2); }
.pdp__buy > .pdp-design:first-child { margin-top: 20px; }
.pdp__buy > .field.pdp-design + .field { margin-top: 20px; }
.dpick__head { align-items: flex-start; margin-bottom: 14px; }
.pdp__buy .dpick__ask { margin: 0; font: 600 17px/1.3 var(--ui); color: var(--ink); }
.dpick__n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dpick__pick { display: flex; align-items: center; gap: 9px; margin-top: 6px; font: 600 21px/1.25 var(--serif); color: var(--green); overflow-wrap: anywhere; }
.dpick__pick::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%23fffcf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pdp-design .field__note { margin: 0 0 12px; }

/* the tiles: few designs are 3:4 (as the photos), many are square; four a row, five from 9 designs, six from 16 */
.pdp-design .swatches { --cols: 4; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
.pdp-design .swatches:has(> :nth-child(9)) { --cols: 5; }
.pdp-design .swatches:has(> :nth-child(16)) { --cols: 6; }
.pdp-design .swatch { border-radius: 12px; }
.pdp-design .swatch[aria-checked="true"]::after { border-radius: 12px; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--card); }
/* the chosen tile: a tick in its corner, so it reads as chosen without telling a ring from a print */
.pdp-design .swatch[aria-checked="true"]::before { content: ""; position: absolute; z-index: 1; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%23fffcf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 2px var(--card); }
.pdp-design .swatch img { transition: transform var(--t) var(--ease); }
.pdp-design .swatch:hover img { transform: scale(1.04); }

/* many designs: the theme chips, then a grid of tiles whose last cell opens every design */
.pdp-design .themes { margin-bottom: 12px; }
/* wider screens wrap the chips (a mouse can't swipe), a little tighter there, and one row only: the rest hide behind
   «+N», which opens them all until a theme is picked or «Менше» folds them (product-product.js capChips()). The box is
   one row high from the first paint (6 + 44 + 6 px, the padding room for the focus ring), so the script, which hides
   what's past it, moves nothing. Phones keep their one swipeable row (stylesheet.css). */
@media (min-width: 961px) {
  .pdp-design .themes { gap: 6px 5px; }
  .pdp-design .themes button { padding: 0 11px; gap: 5px; font-size: 14px; }
}
@media (min-width: 861px) {
  .pdp-design .themes:not(.is-open) { max-height: 56px; padding: 6px; margin: -6px -6px 6px; overflow: hidden; overflow: clip; }
}
.pdp-design .themes [hidden] { display: none !important; }
.themes__more { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 14px; border: 1px dashed var(--line-2); border-radius: 999px;
  background: var(--card); color: var(--green); font: 600 14.5px/1 var(--ui); white-space: nowrap; cursor: pointer; }
.themes__more:hover { border-color: var(--green); }
.dpick__grid { --cols: 4; --gap: 10px; position: relative; }
.dpick__grid .dtiles { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.dpick__all { position: absolute; right: 0; bottom: 0; width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); aspect-ratio: 1;
  margin: 0; padding: 6px; border: 1.5px solid var(--green); border-radius: 12px; background: var(--green-tint); color: var(--green);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.dpick__all[hidden] { display: none; }
.dpick__all b { font: 600 26px/1 var(--serif); font-variant-numeric: lining-nums; }
.dpick__all span { font: 600 13px/1.15 var(--ui); }
.dpick__all:hover { background: #d4e0d0; }
/* while the tile «усі дизайни» shows, it takes the grid's last cell: seven tiles and it, two rows of four */
@media (min-width: 721px) {
  .dpick__grid:has(> .dpick__all:not([hidden])) .dtiles > :nth-child(n + 8) { display: none; }
}

/* phones: the picked design's words on one line where they fit («Оберіть дизайн · 3  ✓ холодне світло»), then the
   strip, edge to edge, that swipes (a tile cut at the screen's edge says there's more), the chips under it. The field's
   parts keep their order in the markup (what a screen reader and Tab meet: the words, the chips, the tiles) */
@media (max-width: 720px) {
  .pdp__buy > .pdp-design:first-child { margin-top: 10px; }
  .pdp-design { display: flex; flex-direction: column; padding: 0; border-radius: 0; background: none; }
  .pdp-design > .dpick__head { order: 0; margin: 0 0 4px; align-items: center; }
  .dpick__say { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-width: 0; }
  .pdp-design > .swatches, .pdp-design > .dpick__grid { order: 1; }
  .pdp-design > .field__note, .pdp-design > .field__err { order: 2; margin: 10px 0 0; }
  .pdp-design > .themes { order: 3; margin: 10px -3px -3px; }
  .dpick__pick { margin-top: 0; font-size: 18px; }
  .dpick__pick::before { width: 18px; height: 18px; background-size: 13px; }
  .pdp-design .swatches, .pdp-design .dpick__grid { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter);
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .pdp-design .swatches::-webkit-scrollbar, .pdp-design .dpick__grid::-webkit-scrollbar { display: none; }
  .pdp-design .swatch, .dpick__all { flex: none; width: 80px; scroll-snap-align: start; }
  .pdp-design .dtiles { display: flex; flex: none; gap: 8px; }
  .dpick__all { position: static; }
  .dpick__all b { font-size: 22px; }
  .dpick__all span { font-size: 12.5px; }
  .pdp-design .swatch[aria-checked="true"]::before { top: 5px; right: 5px; width: 20px; height: 20px; background-size: 14px; }
  /* the photo above gives way a little where the screen is short, so the words and the strip show on the first screen,
     over the phone bar (390 × 844: the photo 316 px high instead of 390); a tall phone keeps the square */
  .pdp__grid:has(.pdp-design:not([hidden])):not(:has(.pdp-pers)) .gallery__main { aspect-ratio: auto; height: min(100vw, max(75vw, calc(100svh - 528px))); }
  /* the picked design's name is said over the strip («Чемній дитині»), not again under the photo */
  .pdp__grid:has(.pdp-design:not([hidden])) .gallery figcaption { display: none; }
}

/* ── Sizes: the second choice, small buttons «27×21×8,5 см · 160 ₴» that link the family's other sizes ──
   They wrap; a tree's heights («1,3 м · 550 ₴») three or four a row. A size without the picked design says so under its
   label («немає цього дизайну») */
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--line-2);
  border-radius: var(--r); background: var(--card); color: var(--ink); font: 500 15px/1.25 var(--ui); font-variant-numeric: tabular-nums; text-decoration: none; }
.size:hover { border-color: var(--ink-3); }
.size[aria-current] { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
/* a long size («30м 1000LED (зелений металевий дріт), з пультом, IP65», or a product name when «Розмір» is empty) wraps
   inside its button instead of widening the page past a phone's screen; the price keeps to one line */
.size { max-width: 100%; }
.size b { font-weight: 600; overflow-wrap: anywhere; }
.size__price { color: var(--ink-2); white-space: nowrap; }
.size__no { font-size: 13px; font-weight: 600; color: var(--brown); }
@media (max-width: 560px) { .size { padding: 6px 12px; font-size: 14.5px; } }

/* choices with a price each (the kids' chair's back): as many rows as they need */
.seg--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.seg--wrap button { align-items: center; text-align: center; min-height: 60px; }
.seg--wrap button small:empty { display: none; }

/* a design that costs more: «+60 ₴» on its swatch */
.swatch__extra { position: absolute; right: 3px; bottom: 3px; padding: 3px 4px; border-radius: 5px; background: var(--brown); color: var(--card);
  font: 700 11px/1 var(--ui); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* many designs: the search field also takes names */
.dpick__num input[type="search"]::-webkit-search-cancel-button { display: none; }
.dpick__num:not(:has(> span)) { padding-left: 4px; }
.dpick__num:not(:has(> span)) input { width: 120px; padding-left: 8px; }

/* ── Option errors and notes ──────────────────────────────────── */
.field__err { margin-top: 8px; color: var(--warn); font-size: 14.5px; font-weight: 600; }
.pdp-opt.is-invalid [data-opt-values] { border-radius: 12px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--warn); }
.field__note { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--brown-tint); color: var(--brown); font-size: 14.5px; line-height: 1.45; }

/* plain option fields (select, text…), none in the catalogue yet */
.pdp-opt .inp select { cursor: pointer; }
.pdp-checks { margin: 0; padding: 0; border: 0; display: grid; gap: 2px; }
.pdp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.pdp-check input { width: 20px; height: 20px; accent-color: var(--green); }

/* ── The buy row (the dock): quantity, «У кошик · сума», a hint, and «Додано» after an add ── */
.dock { margin-top: 18px; }
.dock .buy { margin-top: 0; }
.dock .qty { height: 56px; }
.dock .buy .btn--primary { min-height: 56px; font-size: 16.5px; border-radius: 14px; }
.buy__label { white-space: nowrap; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: pdp-spin .7s linear infinite; }
.btn[aria-busy="true"] #pdpSumWrap { display: none; }
.btn[aria-busy="true"] .buy__label::after { content: "…"; }
.pdp-bar .btn[aria-busy="true"]::after { content: "…"; margin-left: -.5em; }
@keyframes pdp-spin { to { transform: rotate(1turn); } }
.incart { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; }
.incart:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pdp__min { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.dock .under-buy { margin-top: 6px; }
/* «Ще 1 шт — і по 140 ₴» (a tap adds them): a quiet line under the buy row, not a pill that reads like a coupon */
.dock .nudge { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--brown);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dock .nudge:hover { background: none; text-decoration-thickness: 2px; }
/* «Різні дизайни рахуються разом»: the quantity price counts every design of the product (beside the nudge, or alone) */
.mixed { font-size: 14px; line-height: 1.35; color: var(--ink-2); }

.added { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 12px;
  border-radius: var(--r); background: var(--green-tint); color: var(--green); animation: pdp-in var(--t) var(--ease); }
.added[hidden] { display: none; }
.dock:has(.added:not([hidden])) .under-buy { display: none; }  /* «Додано» says it already */
.added__mark { width: 26px; height: 26px; }
.added__text { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--green); }
.added__text b { font: 700 15.5px/1.25 var(--ui); }
.added__go { background: var(--card); }
@keyframes pdp-in { from { opacity: 0; transform: translateY(-4px); } }

/* wider screens: the dock sticks to the window's foot while the choices above it scroll by; a shadow while it floats.
   Not on a window under 761 px high (a laptop at 1366×650): stuck there it left the design tiles no room */
@media (min-width: 961px) and (min-height: 761px) {
  .dock { position: sticky; bottom: 0; z-index: 6; margin: 14px -14px 0; padding: 12px 14px 14px; border-radius: 16px 16px 0 0; background: var(--paper);
    transition: box-shadow var(--t) var(--ease); }
  .dock.is-stuck { box-shadow: 0 -1px 0 var(--line), 0 -16px 28px -18px rgb(40 30 15 / .45); }
}

/* «Купити в 1 клік»: the second way to buy, with what it means said on the button */
.oneclick { margin-top: 10px; }
.oneclick__sum { gap: 8px; min-height: 52px; }
.oneclick__sum svg { color: var(--green); }
.oneclick__sum small { font: 500 14px/1.2 var(--ui); color: var(--ink-2); }
.oneclick[open] .oneclick__sum small { color: inherit; }
@media (max-width: 360px) { .oneclick__sum small { display: none; } }

/* ── Доставка й оплата: native <details> under the buy block (product.twig, model extension/sezonhit/delivery) ──
   Closed, each row says its gist under the title; open, the detail. Nothing animates but the chevron and a short fade-in. */
.ship { margin-top: 26px; border-top: 1px solid var(--line); }
.ship__item { border-bottom: 1px solid var(--line); }
.ship__item > summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ship__item > summary::-webkit-details-marker { display: none; }
.ship__item > summary::after { content: ""; justify-self: center; width: 8px; height: 8px; border: solid var(--ink-3); border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t) var(--ease); }
.ship__item[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.ship__item > summary:hover::after { border-color: var(--ink); }
.ship__item > summary:focus-visible { outline-offset: -3px; border-radius: var(--r-sm); }
.ship__ico { width: 24px; height: 24px; color: var(--brown); }
.ship__head { display: grid; gap: 1px; min-width: 0; }
.ship__head b { font: 600 15.5px/1.3 var(--ui); }
.ship__head small { font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }
.ship__item[open] .ship__head small { display: none; }
.ship__body { padding: 0 32px 16px 36px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ship__item[open] > .ship__body { animation: ship-in var(--t) var(--ease); }
@keyframes ship-in { from { opacity: 0; transform: translateY(-4px); } }
.ship__body p + p, .ship__body dl + p { margin-top: 8px; }
.ship__body dl { margin: 0; display: grid; gap: 8px; }
.ship__body dd { margin: 0; }
/* what the package measures: label and value side by side */
.ship__facts > div { display: flex; justify-content: space-between; gap: 16px; }
.ship__facts dt { color: var(--ink-3); }
.ship__facts dd { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
/* the carriers and payment methods: name over what it means */
.ship__rows dt { font-weight: 600; color: var(--ink); }

/* «Є питання?»: the shop's own ways to ask, below the rows. The buttons need the corner button's script (hidden without it) */
.ship__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 14px; padding: 4px 0; }
.ship__ask-t { font: 600 15px/1.3 var(--ui); color: var(--ink-2); }
.ship__ask-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ship__ask .btn--sm { min-height: 44px; padding: 0 14px; }
.ship__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: 15px; color: var(--green); text-decoration: none; white-space: nowrap; }
.ship__tel svg { width: 20px; height: 20px; flex: none; }
.ship__tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.ship__ask-note { flex-basis: 100%; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ship__ask-note.is-err { color: var(--warn); }
@media (max-width: 380px) { .ship__body { padding-right: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .ship__item[open] > .ship__body { animation: none; }
  .ship__item > summary::after { transition: none; }
}

/* ── Description and specs: side by side on wider screens, under the photo's and the buy column's edges ── */
@media (min-width: 961px) {
  .about { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a c" "b d"; column-gap: 56px; align-items: start; }
  .about > h2:first-child { grid-area: a; }
  .about > .about__text { grid-area: b; max-width: 640px; }
  .about > h2:not(:first-child) { grid-area: c; margin-top: 0; }
  .about > .specs { grid-area: d; grid-template-columns: minmax(120px, 160px) 1fr; }
}

/* ── Description from the admin (Prom texts): lists, headings, images ── */
.about__text { color: var(--ink-2); font-size: 16.5px; overflow-wrap: anywhere; }
.about__text > * + * { margin-top: 12px; }
.about .about__text h2, .about__text h3, .about__text h4 { margin: 24px 0 0; font: 600 18px/1.3 var(--ui); color: var(--ink); }
.about__text ul, .about__text ol { padding-left: 1.3em; }
.about__text ul { list-style: disc; }
.about__text ol { list-style: decimal; }
.about__text li + li { margin-top: 4px; }
.about__text img { border-radius: var(--r); }
.about__text a { color: var(--green); text-underline-offset: 3px; }
.about__text table { border-collapse: collapse; }
.about__text td, .about__text th { padding: 6px 10px; border: 1px solid var(--line); }
.specs__group { margin: 20px 0 8px; font: 600 16px/1.3 var(--ui); color: var(--ink-2); }

/* ── Review mode: a question's photos ─────────────────────────── */
.pdp-note__photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pdp-note__photos img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }

/* ── Design picker: names under named designs ─────────────────── */
.dtile__name { padding: 8px 10px 10px; }
.dtile__pick { width: 100%; }
.dtile__pick:focus-visible { outline-offset: -3px; }
.dtile.is-on .dtile__pick::after { content: ""; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%23fffcf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 2px var(--card); }

/* its foot names the picked design with its picture (the words as on the page: «Дизайн: Для коханих», never a number) */
.sum__pick { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sum__pick img { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.modal__foot .sum__pick b { font: 600 15.5px/1.3 var(--ui); }

/* phones: a design big over the picker before it's picked (the tiles are too small to judge one by; js: picker's look in
   product-product.js). It covers the whole dialog, which doesn't scroll under it (a phone on its side scrolls the dialog
   itself: .is-looking). */
.dlook { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: var(--paper); }
.dlook[hidden] { display: none; }
.modal.is-looking { overflow: hidden; }
.dlook__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 56px; padding: 6px 16px 6px 6px;
  border-bottom: 1px solid var(--line); background: var(--card); }
.dlook__back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; border: 0; border-radius: 9px; background: none;
  color: var(--green); font: 600 16px/1 var(--ui); }
.dlook__back svg { width: 22px; height: 22px; }
.dlook__count { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dlook__media { position: relative; flex: 1 1 auto; min-height: 0; background: var(--paper-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dlook__img { display: block; width: 100%; height: 100%; object-fit: contain; transition: filter .2s; }
/* the tile, stretched, until the big photo comes */
.dlook__media.is-loading .dlook__img { filter: blur(6px); }
.dlook__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgb(255 252 246 / .94); color: var(--ink); box-shadow: 0 2px 10px -2px rgb(0 0 0 / .4); }
.dlook__nav[hidden] { display: none; }
.dlook__nav svg { width: 22px; height: 22px; }
.dlook__nav--prev { left: 10px; }
.dlook__nav--next { right: 10px; }
.dlook__info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; flex: none; padding: 12px 16px 0; }
.dlook__name { font: 600 21px/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.dlook__extra { font: 600 16px/1.3 var(--ui); color: var(--brown); }
.dlook__foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.dlook__pick { width: 100%; min-height: 52px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .dlook__img { transition: none; } }

/* the toast with a link to the cart is shared with the cards: stylesheet.css */

/* ── Personalised products: the buyer's text on the photo's plate (js: pers in product-product.js) ──
   The admin's editor draws the same plates (admin/view/stylesheet/sezonhit.css .sh-plate): keep the two in step. */
.plates { position: absolute; pointer-events: none; container-type: inline-size; }
.plate { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; white-space: nowrap; transform-origin: center; }
.plate--italic { font-family: var(--serif); font-style: italic; font-weight: 600; }
.plate--serif { font-family: var(--serif); font-weight: 600; }
.plate--sans { font-family: var(--ui); font-weight: 600; }
.plate--2 { white-space: normal; }
.plate--2 .plate__text { text-wrap: balance; }
.plate__patch { position: absolute; inset: 0; border-radius: 6px; filter: blur(.45cqw); }
/* clipped sideways only: fit() keeps the text inside the box across, and a vertical clip at line-height 1.1 cut the
   script's descenders (j, g, у, р) */
.plate__text { position: relative; max-width: 96%; overflow-x: clip; overflow-y: visible; padding: 0 .08em; letter-spacing: -.01em; }
.plate--ink .plate__text { mix-blend-mode: multiply; }

.pers__left { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
/* what's drawn is a preview (the owners agree the final wording and layout): a line under the field, and a tag in the
   photo's corner and the phone's close-up while the text is on it */
.pers__note { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.plates-tag { position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .92);
  color: var(--ink); font: 600 12.5px/1.3 var(--ui); box-shadow: 0 1px 3px rgb(0 0 0 / .18); pointer-events: none; }
.preview-mini .plates-tag { left: 8px; bottom: 8px; font-size: 12px; }
.pdp-pers.is-invalid .inp input { border-color: var(--warn); }
/* phones: the plate close up under the field (the photo has scrolled away). Not on tablets (721–960 px): the photo sits
   beside the field there, and a strip that arrives after the script pushed «У кошик» down 141 px */
.preview-mini { display: none; position: relative; margin-top: 10px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--paper-2); }
.preview-mini__view { position: relative; width: 100%; aspect-ratio: 2.6 / 1; overflow: hidden; }
.preview-mini__inner { position: absolute; left: 0; top: 0; }
.preview-mini__inner > img { display: block; width: 100%; height: 100%; }
.preview-mini__inner > .plates { inset: 0; }
@media (max-width: 720px) { .preview-mini:not([hidden]) { display: block; } }

/* ── «Своє фото»: the buyer's photo in the photo design's frame (js: photo in product-product.js) ──
   The admin's editor marks the frame the same way (admin/view/stylesheet/sezonhit.css .sh-pframe). Until there's a
   photo the frame says where it goes; the buyer's crop fills it (a round lid's is a circle) */
.pframes { position: absolute; pointer-events: none; container-type: inline-size; }
.pframe { position: absolute; overflow: hidden; transform-origin: center; }
.pframe--round { border-radius: 50%; }
.pframe > img { display: block; width: 100%; height: 100%; }
.pframe__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35em;
  border: 2px dashed rgb(255 255 255 / .95); border-radius: inherit; background: rgb(255 255 255 / .38);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .22), inset 0 0 0 1px rgb(0 0 0 / .22);
  color: var(--ink); font: 600 clamp(12px, 3.4cqw, 17px)/1.2 var(--ui); text-align: center; text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.pframe__empty svg { width: clamp(22px, 7cqw, 38px); height: auto; }
/* a lid at an angle: the frame is the whole photo laid onto its corners, so its words grow back by what that shrinks */
.pframe--quad .pframe__empty > * { transform: scale(calc(1 / var(--qs, 1))); }
/* the lid's slots: its own photo again over the buyer's, clipped to each (js holes()) */
.pframe__hole { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* the buyer's photo lit as the lid on the photo is: multiplied by the lid's white (--tone, measured when the owners save
   the frame; a print on a light board's, until then), so its white is the board's, not the screen's */
.pframe--shot::after { content: ""; position: absolute; inset: 0; background: var(--tone, rgb(236 232 225)); mix-blend-mode: multiply; pointer-events: none; }
/* the switch over the design block: the ready designs, or the buyer's own photo (not a tile among the designs: the
   shop's own thing, said first). Pressed, a white pill; the photo one, unpressed, in the shop's green to be seen */
.dmode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 999px; background: rgb(60 45 20 / .08); }
.dmode__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-2); font: 600 15px/1.2 var(--ui); cursor: pointer; white-space: nowrap; }
.dmode__btn small { font-weight: 500; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dmode__btn svg { flex: none; width: 20px; height: 20px; }
.dmode__btn--photo { color: var(--green); }
.dmode__btn--photo small { color: inherit; opacity: .8; }
.dmode__btn[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .14); cursor: default; }
.dmode__btn--photo[aria-pressed="true"] { color: var(--green); }
.dmode__btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
/* with «Своє фото» on, the photo's panel is the block: the designs' heading, chips and tiles step aside */
.pdp-design.is-photo > .dpick__head, .pdp-design.is-photo > .themes, .pdp-design.is-photo > .dpick__grid,
.pdp-design.is-photo > .swatches, .pdp-design.is-photo > [data-opt-note] { display: none; }
@media (max-width: 720px) {
  .pdp-design > .dmode { order: -1; margin: 0 0 10px; }
  .pdp-design > .pdp-photo { order: 1; }
  .dmode__btn { font-size: 14.5px; padding: 0 8px; }
}
@media (max-width: 360px) { .dmode__btn small { display: none; } }
/* the panel in the design block */
.pdp-photo .field__label em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.pphoto__empty { display: grid; gap: 8px; justify-items: start; }
.pphoto__up { display: inline-flex; align-items: center; gap: 8px; }
.pphoto__busy { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pphoto__bar { display: block; height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.pphoto__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s; }
.pphoto__done { display: flex; align-items: center; gap: 12px; }
.pphoto__thumb { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pphoto__acts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pphoto__link { padding: 6px 0; border: 0; background: none; color: var(--green); font: 600 15px/1.3 var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pdp-photo.is-invalid .pphoto__up { box-shadow: 0 0 0 2px var(--warn); }
.pphoto__thumb--round { border-radius: 50%; }
.pphoto__info { display: grid; gap: 2px; min-width: 0; }
/* the print's quality: green, amber, red as the words say */
.pphoto__q { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.pphoto__q b { font-weight: 700; }
.pphoto__q.is-good b { color: var(--green); }
.pphoto__q.is-ok b { color: #9a6700; }
.pphoto__q.is-low b, .pphoto__q.is-need { color: var(--warn); }
.pphoto__ok { margin-top: 12px; }
.pphoto__ok label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.pphoto__ok input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.pphoto__rules { margin: 4px 0 0 30px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.pdp-photo.is-invalid .pphoto__ok input { outline: 2px solid var(--warn); outline-offset: 2px; }
.pdp-photo .preview-mini__view { aspect-ratio: 2 / 1; }
.preview-mini__inner > .pframes { inset: 0; }


@media (max-width: 560px) {
  .pdp__price strong small { font-size: 15px; }
  .dpick__num input { width: 64px; }
  .dpick__num:not(:has(> span)) input { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  #pdpImg, .pdp-design .swatch img, .gallery__dots i { transition: none; }
  .pdp-design .swatch:hover img { transform: none; }
  .added { animation: none; }
  .btn[aria-busy="true"]::before { animation-duration: 2s; }
}


/* ── Phones: the bar at the foot of the screen (js): the chosen design, the sum, «У кошик» ──
   Up from the first screen on, stepping aside while the buy row itself is in view. */
.pdp-bar { display: none; }
@media (max-width: 960px) {
  .pdp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgb(40 30 15 / .45); transform: translateY(110%); visibility: hidden;
    transition: transform var(--t) var(--ease), visibility 0s var(--t);
  }
  .pdp-bar.is-on { transform: none; visibility: visible; transition: transform var(--t) var(--ease); }
  .pdp-bar__pic { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--paper-2);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
  .pdp-bar__pic img { width: 100%; height: 100%; object-fit: cover; }
  .pdp-bar__pic::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3.5px var(--card); }
  /* the sum, then «Ø 25 см · 1 шт», then the design's words («Для коханих»): three short lines beside its picture, so a
     long group name doesn't push the size out */
  .pdp-bar__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
  .pdp-bar__text b { margin-bottom: 1px; font: 700 18px/1 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pdp-bar__text small { font-size: 13px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__text small[hidden] { display: none; }
  .pdp-bar__words { font-weight: 600; color: var(--ink) !important; }
  /* the label may wrap (a long «Оберіть …» at large text) instead of pushing the bar past the screen's edge */
  .pdp-bar .btn { flex: 0 1 auto; min-width: 0; min-height: 52px; padding: 0 22px; white-space: normal; line-height: 1.15; border-radius: 14px; font-size: 16px; }
  .pdp-bar .btn[hidden] { display: none; }
  /* after an add: what went in, and the way on to the cart */
  .pdp-bar.is-added .pdp-bar__text b { color: var(--green); font-size: 16.5px; }
  .pdp-bar.is-added .pdp-bar__pic::before { content: ""; position: absolute; z-index: 1; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%23fffcf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
    box-shadow: 0 0 0 2px var(--card); }
  /* the bar covers the page's last 72 px and the toast's spot */
  .pdp-has-bar .ftr__bottom { padding-bottom: 76px; }
  .pdp-has-bar .toast { --toast-lift: calc(60px + env(safe-area-inset-bottom)); }  /* 84 px up from the screen's foot instead of 24 */
  .pdp-has-bar .fab { --fab-lift: 76px; }
}
@media (max-width: 360px) { .pdp-bar { gap: 10px; } .pdp-bar .btn { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .pdp-bar, .pdp-bar.is-on { transition: none; } }
