/* s-products.css — products family home sections (see docs/REBUILD-PLAN.md). RTL-first, logical properties; physical
   left/right only where a setting is literally physical (reverse_box, image_position, hotspot from_right). */

/* ---------- special products: the shared card turns horizontal when its slide is wide enough ---------- */
.spp__cell { container: spp / inline-size; }
@container spp (min-width: 330px) {
  .spp .pc { display: grid; grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .spp .pc__media { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 230px; }
  .spp .pc__ticker { grid-column: 2; grid-row: 1; }
  .spp .pc__body { grid-column: 2; grid-row: 2; justify-content: center; padding: 16px; }
  .spp .pc__cd .cd__unit { min-width: 33px; }
}
body:not(.pc-compact) .spp.s .pc__foot { position: static; opacity: 1; transform: none; }
body:not(.pc-compact) .spp.s .pc:hover .pc__price { visibility: visible; }
.spp--sharp .pc { --pc-r: 0px; }
/* transparent cards show the section, not this section's card background: drop the card text colours judged on it */
body.pc-transparent .spp .pc { --pc-fg: initial; --pc-name: initial; --pc-desc: initial; --pc-price: initial; }
body .spp--btn-sharp .pc__btn { border-radius: 0; }
.spp--center .pc__body { align-items: center; text-align: center; }
.spp--center .pc__rating { align-self: center; }
.spp--center .pc__foot, .spp--center .pc__opts { align-self: stretch; }
.spp--center .pc__price, .spp--center .pc__bnpl, .spp--center .opt__values { justify-content: center; }
.spp--badge .pc__off { background: var(--pc-badge-bg, var(--c-primary)); color: var(--pc-badge-fg, var(--c-on-primary)); }

/* ---------- tabs ---------- */
.tbp__tabs { display: flex; gap: 8px; margin-block-end: clamp(16px, 2vw, 24px); padding-block: 2px; overflow-x: auto; scrollbar-width: none; }
.tbp__tabs::-webkit-scrollbar { display: none; }
.tbp__tab:first-child { margin-inline-start: auto; }
.tbp__tab:last-child { margin-inline-end: auto; }
@media (min-width: 768px) { .tbp__tabs { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.tbp__tab {
  flex: none; min-height: 42px; padding: 8px 20px; border: 1px solid var(--tbp-border, var(--c-border)); border-radius: var(--pill);
  background: var(--tbp-bg, #fff); color: var(--tbp-fg, var(--c-text)); font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tbp__tab:hover { border-color: var(--tbp-on-border, var(--tbp-on-bg, var(--c-text))); }
.tbp__tab.is-active { background: var(--tbp-on-bg, var(--c-text)); color: var(--tbp-on-fg, #fff); border-color: var(--tbp-on-border, var(--tbp-on-bg, var(--c-text))); box-shadow: var(--shadow-sm); }
.tbp__panel:not([hidden]) { animation: spp-in .4s var(--ease); }
@keyframes spp-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- banner with products ---------- */
.bwp__row { display: flex; flex-direction: column; gap: var(--gap); }
.bwp__banner { position: relative; display: flex; min-height: 300px; overflow: hidden; isolation: isolate; border-radius: var(--bwp-r, var(--radius)); background: var(--c-surface); color: #fff; }
.bwp--classic .bwp__banner { aspect-ratio: 4 / 5; }
.bwp--compact .bwp__banner { aspect-ratio: 1; }
.bwp__banner.has-ov::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bwp-ov, #000); opacity: var(--bwp-ov-op, .4); pointer-events: none; }
.bwp__media, .bwp__banner picture, .bwp__banner picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bwp__hit { position: absolute; inset: 0; z-index: 2; }
.bwp__copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 12px; width: 100%; padding: clamp(20px, 3vw, 34px); pointer-events: none; }
.bwp__copy a { pointer-events: auto; }
.bwp__copy--v-top { justify-content: flex-start; }
.bwp__copy--v-center { justify-content: center; }
.bwp__copy--v-bottom { justify-content: flex-end; }
.bwp__copy--a-start { align-items: flex-start; text-align: start; }
.bwp__copy--a-center { align-items: center; text-align: center; }
.bwp__copy--a-end { align-items: flex-end; text-align: end; }
.bwp__title { color: var(--bwp-title, #fff); font-size: var(--bwp-tm, clamp(1.5rem, 6vw, 2rem)); line-height: 1.25; }
.bwp__des { max-width: 38ch; color: var(--bwp-des, rgb(255 255 255 / 90%)); white-space: pre-line; }
.bwp__cd .cd__unit { place-content: center; width: 58px; height: 58px; min-width: 0; padding: 0; border-radius: 50%; background: var(--cd-bg, rgb(255 255 255 / 94%)); }
.bwp__cd .cd__unit b { font-size: 1.1rem; }
.bwp__btn { --btn-bg: transparent; --btn-fg: var(--bwp-btn-fg, #fff); --btn-border: var(--bwp-btn-border, currentColor); margin-block-start: 4px; }
.bwp__btn--outline:hover { --btn-bg: rgb(255 255 255 / 14%); }
.bwp__btn--filled { --btn-bg: var(--bwp-btn-bg, #fff); --btn-fg: var(--bwp-btn-fg, var(--c-text)); --btn-border: var(--bwp-btn-border, transparent); }
.bwp__products { flex: 1; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; justify-content: center; }
.bwp__products .cr, .vwp__products .cr { --per: 2; }
@container (min-width: 540px) { .bwp__products .cr, .vwp__products .cr { --per: 3; } }
@container (min-width: 800px) { .bwp__products .cr, .vwp__products .cr { --per: 4; } }
/* compact lists */
.bwp__lists { flex: 1; min-width: 0; display: grid; gap: var(--gap); align-content: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.bwp__list { display: grid; align-content: start; gap: 12px; }
.bwp__lhead { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.bwp__ltitle { color: var(--c-text); font-size: 1.05rem; }
.bwp__nav { display: flex; gap: 6px; margin-inline-start: auto; }
.bwp__arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; color: var(--bwp-arrows, var(--c-text)); transition: background .2s, color .2s, opacity .2s; }
.bwp__arrow:hover { border-color: transparent; background: var(--bwp-arrows, var(--c-text)); color: #fff; }
.bwp__arrow[disabled] { opacity: .35; pointer-events: none; }
.bwp__arrow .ic { width: 18px; height: 18px; }
.cr.is-static .bwp__nav { visibility: hidden; }
.hide-arrows .bwp__nav { display: none; }
@media (max-width: 767px) { .hide-arrows-m .bwp__nav { display: none; } }
.bwp__page { display: grid; align-content: start; gap: 10px; }
.bwp .pm { grid-template-columns: 78px minmax(0, 1fr) auto; background: var(--bwp-card-bg, #fff); border-color: var(--bwp-card-border, var(--c-border)); }
.bwp .pm__media img { width: 78px; height: 78px; padding: 4px; object-fit: contain; background: var(--bwp-img-bg, var(--c-surface)); }
.bwp--cover .pm__media img { padding: 0; object-fit: cover; }
.bwp .pm__name { color: var(--bwp-card-fg, var(--c-text)); }
.bwp .pm__now { color: var(--bwp-price, var(--c-text)); }
.bwp .pm__price del { color: var(--bwp-old, var(--c-muted)); }
.bwp .pm__add { background: var(--bwp-cart-bg, var(--c-primary)); color: var(--bwp-cart-fg, var(--c-on-primary)); }
@media (min-width: 768px) {
  .bwp__row { flex-direction: row; align-items: stretch; }
  .bwp .bwp__banner { flex: 0 0 var(--bwp-w, 400px); aspect-ratio: auto; min-height: var(--bwp-h, 460px); }
  .bwp--compact .bwp__banner { min-height: var(--bwp-h, 380px); }
  .bwp--w-narrow { --bwp-w: 320px; }
  .bwp--w-half { --bwp-w: calc(50% - var(--gap) / 2); }
  .bwp__title { font-size: var(--bwp-t, clamp(1.6rem, 2.2vw, 2.4rem)); }
  /* reverse_box is physical: banner on the right by default, on the left when reversed */
  [dir="ltr"] .bwp__banner, .bwp--rev .bwp__banner { order: 2; }
  [dir="ltr"] .bwp--rev .bwp__banner { order: 0; }
}

/* ---------- video with products ---------- */
.vwp__row { display: flex; flex-direction: column; gap: var(--gap); }
.vwp__video { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #111; aspect-ratio: 4 / 5; }
.vwp__video video { width: 100%; height: 100%; object-fit: cover; }
.vwp__products { flex: 1; min-width: 0; container-type: inline-size; }
@media (min-width: 768px) {
  .vwp__row { flex-direction: row; align-items: center; }
  .vwp__video { flex: 0 0 clamp(260px, 30%, 380px); aspect-ratio: 727 / 1000; }
  [dir="ltr"] .vwp__video, .vwp--rev .vwp__video { order: 2; }
  [dir="ltr"] .vwp--rev .vwp__video { order: 0; }
}
/* pause/play for the muted looping videos (banner + video sections) */
.bwp__vbtn, .vwp__vbtn { position: absolute; z-index: 4; inset-block-end: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(0 0 0 / 45%); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bwp__vbtn .ic, .vwp__vbtn .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.bwp__vbtn .ic + .ic, .vwp__vbtn .ic + .ic, .is-paused .ic:first-child { display: none; }
.is-paused .ic + .ic { display: block; }

/* ---------- fixed products: slider ≤768px, grid above ---------- */
@media (min-width: 769px) {
  .fxp__swipe { --cols: var(--cols-md, 3); }
  .fxp__swipe .cr__track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  .fxp__swipe .cr__arrow, .fxp__swipe .cr__progress { display: none; }
}
@media (min-width: 992px) { .fxp__swipe { --cols: var(--cols-lg, 4); } }
@media (min-width: 1200px) { .fxp__swipe { --cols: var(--cols-xl, 5); } }

/* ---------- products with background ---------- */
.pwb:not(.s--bg) { padding-block: clamp(28px, 4vw, 56px); background: var(--c-surface); }
.pwb.s--bg { padding-block: clamp(40px, 6vw, 88px); }
.pwb--img .sh { width: fit-content; max-width: 100%; margin-inline: auto; padding: 16px clamp(18px, 3vw, 36px); border-radius: var(--radius); background: rgb(255 255 255 / 88%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.pwb--img .cr__progress { background: rgb(255 255 255 / 60%); }
body:not(.va-button) .pwb--img .s__more .va { padding: .5em 1.3em; border-radius: var(--pill); }
body:not(.va-button) .pwb--img .s__more .va:not(:hover) { background: rgb(255 255 255 / 90%); }

/* ---------- featured product ---------- */
.fpd__box { display: grid; gap: clamp(20px, 3vw, 44px); align-items: start; }
.fpd__gallery { display: grid; gap: 10px; min-width: 0; }
.fpd__main { overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.fpd__slide { aspect-ratio: 1; }
.fpd__slide img { width: 100%; height: 100%; object-fit: cover; }
body.pc-contain .fpd__slide img { object-fit: contain; }
.fpd__main .cr__arrow { --cr-arrow-top: 50%; }
.fpd__main .cr__arrow--prev { inset-inline-start: 10px; }
.fpd__main .cr__arrow--next { inset-inline-end: 10px; }
.fpd__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fpd__thumb { flex: 0 0 66px; height: 66px; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--c-surface); opacity: .65; transition: opacity .2s, border-color .2s; }
.fpd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fpd__thumb:hover, .fpd__thumb.is-active { border-color: var(--c-text); opacity: 1; }
.fpd__info { display: grid; align-content: start; gap: 14px; min-width: 0; }
.fpd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fpd__meta:empty { display: none; }
.fpd__cat { color: var(--c-muted); font-size: .8125rem; font-weight: 600; }
.fpd__cat:hover { color: var(--c-primary); }
.fpd__pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; }
.fpd__pill--badge { background: var(--c-text); color: #fff; }
.fpd__pill--pre { background: color-mix(in srgb, var(--c-warning) 14%, #fff); color: var(--c-warning); }
.fpd__stock { background: color-mix(in srgb, var(--c-success) 12%, #fff); color: color-mix(in srgb, var(--c-success) 95%, #000); } /* 4.5:1 on its tint */
.fpd__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fpd__stock.is-out { background: var(--c-surface); color: color-mix(in srgb, var(--c-muted) 95%, #000); }
.fpd__stock:empty { display: none; }
.fpd__name { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); line-height: 1.35; }
.fpd__name a:hover { color: var(--c-primary); }
.fpd__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .8125rem; }
.fpd__rating { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--pill); background: var(--pc-rating-bg, #fff7e6); color: var(--pc-rating-fg, #b45309); font-weight: 700; }
.fpd__rating .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.fpd__rating small { font-weight: 500; }
.fpd__sold { display: inline-flex; align-items: center; gap: 6px; color: var(--c-danger); font-weight: 600; }
.fpd__sold .ic { width: 16px; height: 16px; }
.fpd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.fpd__now { font-size: 1.6rem; font-weight: 800; }
.fpd__price del { font-size: 1rem; }
.fpd__off { direction: ltr; unicode-bidi: isolate; padding: 2px 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--c-danger) 12%, #fff); color: color-mix(in srgb, var(--c-danger) 80%, #000); font-size: .8125rem; font-weight: 700; }
.fpd__urgency { display: grid; gap: 10px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--c-danger) 35%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c-danger) 5%, #fff); }
.fpd__urgency p { display: flex; align-items: center; gap: 8px; color: var(--c-danger); font-size: .875rem; font-weight: 600; }
.fpd__urgency p .ic { width: 17px; height: 17px; }
.fpd__bar { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 6px; background: var(--bar, var(--c-border)); }
.fpd__bar--stock::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--c-danger), var(--c-warning)); }
.fpd__desc { display: -webkit-box; overflow: hidden; color: var(--c-muted); line-height: 1.8; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.fpd__form { display: grid; gap: 14px; }
.fpd__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fpd__actions .btn { flex: 1 1 170px; }
.fpd__qty { flex: none; height: 52px; }
.fpd__qty button { width: 42px; height: 50px; }
.fpd__qty input { width: 44px; height: 50px; }
.fpd__actions .fpd__notify { flex-basis: 100%; }
.fpd__live, .fpd__sku { display: flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: .8125rem; }
.fpd__live .ic { width: 17px; height: 17px; color: var(--c-primary); }
.fpd__more { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--c-primary); font-size: .875rem; font-weight: 600; }
.fpd__more .ic { width: 16px; height: 16px; }
.fpd--center .fpd__info, .fpd--center .opt { justify-items: center; text-align: center; }
.fpd--center :is(.fpd__meta, .fpd__proof, .fpd__price, .fpd__actions, .opt__values, .fpd__live, .fpd__sku, .fpd__urgency p, .fpd__urgency .cd) { justify-content: center; }
.fpd--center .fpd__more { justify-self: center; }
.fpd--center .fpd__urgency, .fpd--center .fpd__form { justify-self: stretch; }
.fpd__sk { display: block; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--c-surface), #fff, var(--c-surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.fpd__sk--img { overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); }
.fpd__sk-pic { width: 100%; height: 100%; object-fit: cover; }
.fpd__sk--line { width: 70%; height: 18px; }
.fpd__sk--line + .fpd__sk--line { width: 45%; }
.fpd__sk--btn { width: 100%; height: 52px; border-radius: var(--pill); }
@media (min-width: 768px) {
  .fpd__box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fpd__box.fpd--no-gallery { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .fpd__gallery { position: sticky; top: calc(var(--hd-h, 72px) + 16px); }
  /* image_position is physical: gallery on the right by default */
  [dir="ltr"] .fpd__gallery, .fpd--img-left .fpd__gallery { order: 2; }
  [dir="ltr"] .fpd--img-left .fpd__gallery { order: 0; }
}

/* ---------- categories with products (home-tabs-section) ---------- */
.hts__banner { margin-block-end: clamp(18px, 2.5vw, 28px); padding: 14px 20px; border-inline-start: 4px solid var(--c-primary); border-radius: var(--radius-sm); background: var(--c-primary-soft); color: var(--c-primary-dark); font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-weight: 700; }
.hts__block + .hts__block { margin-block-start: clamp(24px, 3vw, 40px); }
.hts__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.hts__title { font-size: 1.15rem; }

/* ---------- products on image ---------- */
.ptp__stage { position: relative; }
.ptp__frame { position: relative; overflow: hidden; aspect-ratio: var(--ar, 1669 / 700); border-radius: var(--radius); background: var(--c-surface); }
.ptp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptp__layer { position: absolute; inset: 0; z-index: 1; }
/* single image: never shorter than 300px — narrow screens pan sideways instead of shrinking the hotspots */
.ptp__pan { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius); scrollbar-width: none; }
.ptp__pan::-webkit-scrollbar { display: none; }
.ptp__pan .ptp__frame { width: max(100%, calc(300px * var(--ar, 1669 / 700))); }
.ptp__dot { position: absolute; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ptp-dot, #fff); color: var(--ptp-dot-fg, var(--c-text)); box-shadow: 0 4px 14px rgb(0 0 0 / 25%); transform: translate(50%, -50%); transition: transform .25s var(--ease); }
.ptp__dot::before { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ptp-dot, #fff); border-radius: inherit; animation: ptp-ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes ptp-ring { from { opacity: .85; transform: scale(.85); } to { opacity: 0; transform: scale(1.6); } }
.ptp__dot .ic { width: 16px; height: 16px; stroke-width: 2.5; transition: transform .25s var(--ease); }
.ptp__dot:hover, .ptp__dot.is-open { transform: translate(50%, -50%) scale(1.12); }
.ptp__dot.is-open .ic { transform: rotate(45deg); }
.ptp__coord { position: absolute; top: 100%; margin-top: 7px; padding: 1px 6px; border-radius: 4px; background: rgb(0 0 0 / 72%); color: #fff; font-size: 10px; line-height: 16px; white-space: nowrap; direction: ltr; }
.ptp__grid { position: absolute; inset: 0; pointer-events: none; }
.ptp__gl { position: absolute; border: 0 dashed rgb(255 255 255 / 90%); filter: drop-shadow(0 0 1px rgb(0 0 0 / 70%)); }
.ptp__gl--h { left: 0; right: 0; border-top-width: 1px; }
.ptp__gl--v { top: 0; bottom: 0; border-right-width: 1px; }
.ptp__gl b { position: absolute; padding: 0 4px; border-radius: 3px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; direction: ltr; }
.ptp__gl--h b { right: 4px; transform: translateY(-50%); }
.ptp__gl--v b { top: 4px; right: 0; transform: translateX(50%); }
.ptp__pop { position: absolute; z-index: 6; width: min(300px, calc(100% - 16px)); padding: 12px; border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: var(--shadow-lg); }
.ptp__pop:not([hidden]) { animation: spp-in .2s var(--ease); }
.ptp__x { position: absolute; z-index: 1; inset-block-start: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface); }
.ptp__x .ic { width: 14px; height: 14px; }
.ptp__pbody { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; }
.ptp__pimg img { width: 84px; height: 100px; border-radius: var(--radius-sm); background: var(--c-surface); object-fit: cover; }
.ptp__pinfo { display: grid; gap: 6px; padding-inline-end: 22px; }
.ptp__pname { display: -webkit-box; overflow: hidden; font-size: .875rem; font-weight: 600; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ptp__pname:hover { color: var(--c-primary); }
.ptp__pprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .875rem; }
.ptp__pprice del { font-size: .75rem; }
.ptp__load { grid-column: 1 / -1; display: grid; place-items: center; min-height: 96px; color: var(--c-muted); font-size: .875rem; }
/* gallery: swipeable looks on mobile, expanding panels on desktop */
.ptp__name, .ptp__tab { display: none; }
.ptp__cap { margin-block-start: 10px; font-weight: 700; text-align: center; }
@media (min-width: 992px) {
  .ptp--gallery .cr__track { display: flex; gap: 12px; height: clamp(380px, 40vw, 600px); overflow: visible; scroll-snap-type: none; }
  .ptp--gallery .ptp__look { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow .6s var(--ease); }
  .ptp--gallery .ptp__look.is-active { flex-grow: 6; }
  .ptp--gallery .ptp__frame { position: absolute; inset: 0; aspect-ratio: auto; container-type: size; }
  /* the layer mirrors the object-fit: cover box of the image, so hotspots stay on target at any panel size */
  .ptp--gallery .ptp__layer { inset: auto; top: 50%; left: 50%; width: max(100cqw, 100cqh * var(--ar, 1669 / 700)); aspect-ratio: var(--ar, 1669 / 700); transform: translate(-50%, -50%); transition: opacity .3s; }
  .ptp--gallery .ptp__look:not(.is-active) .ptp__layer { opacity: 0; visibility: hidden; }
  .ptp--gallery .ptp__cap { display: none; }
  .ptp--gallery .ptp__tab { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding-block-end: 24px; background: linear-gradient(to top, rgb(0 0 0 / 62%), rgb(0 0 0 / 8%) 65%); color: #fff; font-weight: 700; transition: background .3s; }
  .ptp--gallery .ptp__tab:hover { background: linear-gradient(to top, rgb(0 0 0 / 72%), rgb(0 0 0 / 18%) 65%); }
  .ptp--gallery .ptp__tab span { writing-mode: vertical-rl; max-height: 80%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ptp--gallery .ptp__look.is-active .ptp__tab { display: none; }
  .ptp--gallery .ptp__look.is-active .ptp__name { position: absolute; z-index: 2; inset-block-start: 14px; inset-inline-start: 14px; display: block; padding: 6px 14px; border-radius: var(--pill); background: rgb(255 255 255 / 90%); color: var(--c-text); font-size: .875rem; font-weight: 700; }
}
