/* product-switcher.css — #190 S14 Hero product switcher: one product big on its own ground (Sand by default — the homepage's beige; lime only as
   an accent, Artem 2026-11-05), a large X behind the copy, the colour swatches swap the photo (crossfade), the price and the variant in the form. */
.ext-sw { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; padding: 0; overflow: hidden;
  border-radius: var(--rounded-block); background: rgb(var(--color-background)); color: rgb(var(--color-foreground)); }
.ext-sw[data-scheme="surface"] { background: var(--ext-surface); } /* the product card's graphite, under the dark scheme's text */
.ext-sw[data-media="left"] .ext-sw__media { order: -1; }
/* Ground fill (Artem 2026-11-05: the flat sand reads too light next to the bright lifestyle photo) — the palette's sand / tan, or the dark base
   with warmth; the copy side is where the fill shows, so the gradients run across it */
.ext-sw[data-ground="sand-deep"] { background: #cfc8b6; } /* sand-400 */
.ext-sw[data-ground="tan"] { background: #d4c0a3; } /* sand-warm */
.ext-sw[data-ground="tan-gradient"] { background: linear-gradient(160deg, #d9d3c3 0%, #d4c0a3 45%, #b59d7c 100%); }
.ext-sw[data-ground="glow"] { background: radial-gradient(90% 110% at 0% 100%, rgb(212 192 163 / .26), transparent 62%), radial-gradient(60% 70% at 55% 0%, rgb(212 192 163 / .08), transparent 70%), #0c0c0e; }
.ext-sw[data-ground="espresso"] { background: linear-gradient(150deg, #4a3b2d 0%, #2b231c 45%, #121214 100%); }

/* the X: the logo's letter in the heading font, quiet, bleeding off the copy block */
.ext-sw__mark { position: absolute; z-index: -1; left: 30%; top: 50%; translate: -50% -50%; font-size: clamp(22rem, 46vw, 50rem); font-weight: 900; line-height: .8;
  color: rgb(var(--color-foreground) / .045); pointer-events: none; user-select: none; }
.ext-sw[data-media="left"] .ext-sw__mark { left: 70%; }
.ext-sw__copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(32px, 4.2vw, 72px); min-width: 0; }
.ext-sw__title { margin: 0; }
.ext-sw__text { max-width: 520px; color: rgb(var(--color-foreground) / .7); }
.ext-sw__text p { margin: 0; }
.ext-sw__price { font-size: clamp(1.25rem, 1rem + .6vw, 1.75rem); font-weight: 600; }
/* the facts: three cells under a hairline — the product's metafields, the same for every colour */
.ext-sw__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid rgb(var(--color-foreground) / .12); }
.ext-sw__fact { display: grid; gap: 6px; padding: 18px 16px 0 0; }
.ext-sw__fact + .ext-sw__fact { padding-inline-start: 16px; border-inline-start: 1px solid rgb(var(--color-foreground) / .12); }
.ext-sw__fact dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--color-foreground) / .55); }
.ext-sw__fact dd { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; }
/* the colour and size picker: the product page's (snippet product-variant-picker under a div — Concept's swatches, label swatches and form label,
   Artem 2026-11-05: the same elements and spacing); nothing of its own here */
.ext-sw__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.ext-sw__link { gap: 8px; font-weight: 600; }
.ext-sw__link .icon { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ext-sw__link:hover .icon { transform: translateX(3px); }
/* the photo: flush with the block's edges (Artem 2026-11-05; the block's radius clips it), the selected colour's (Photo: 03 lifestyle · 02 on the model · 01 packshot — the file's number); colours crossfade */
.ext-sw__media { position: relative; min-height: 640px; background: var(--ext-surface); }
/* the rotating badge (Concept's spinning-text — the element is the circle's centre): on the seam between the copy and the photo, or on the photo;
   desktop only — hidden once the block stacks (< 1024) */
.ext-sw__badge { z-index: 2; inset: auto; }
.ext-sw[data-badge="none"] .ext-sw__badge { display: none; }
.ext-sw[data-badge="seam-top"] .ext-sw__badge { left: 0; top: clamp(96px, 9vw, 132px); }
.ext-sw[data-badge="seam-bottom"] .ext-sw__badge { left: 0; bottom: clamp(96px, 9vw, 132px); }
.ext-sw[data-badge="photo"] .ext-sw__badge { right: 76px; top: 76px; font-size: 12px; } /* smaller on the photo (Artem 2026-11-05) */
.ext-sw[data-media="left"][data-badge^="seam"] .ext-sw__badge { left: 100%; }
/* the X in the middle — outlined, like the heading's outline word */
.ext-sw__badge-x { position: absolute; font-size: 3em; font-weight: 900; line-height: 1; translate: 0 .04em; color: transparent; -webkit-text-stroke: max(1px, .03em) rgb(var(--color-foreground)); }
/* the photos' frame — «Photo motion» clips it (curtain, scroll) and scales the photos inside (zoom, curtain); product-switcher.js */
.ext-sw__frame { position: absolute; inset: 0; overflow: hidden; }
.ext-sw__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: opacity .6s cubic-bezier(.2, .7, .2, 1); }
.ext-sw__img:not([data-n]) { display: none; }
.ext-sw[data-photo="01"] .ext-sw__img:not([data-n="01"]), .ext-sw[data-photo="02"] .ext-sw__img:not([data-n="02"]), .ext-sw[data-photo="03"] .ext-sw__img:not([data-n="03"]) { display: none; }
.ext-sw[data-photo="01"] .ext-sw__img { object-fit: contain; object-position: 50% 50%; } /* the packshot keeps its whole frame on the graphite */
.ext-sw__img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ext-sw__img { transition: none; } }
@media screen and (max-width: 1023px) {
  .ext-sw { grid-template-columns: minmax(0, 1fr); }
  .ext-sw__media { order: -1; min-height: 0; aspect-ratio: 4 / 5; }
  .ext-sw .ext-sw__badge { display: none; } /* no seam once stacked — the badge is desktop-only (Artem 2026-11-05) */
  .ext-sw__mark { left: 50%; top: 66%; font-size: 110vw; }
}
/* phones: the photo first, the colours right under it (spec §6), then the copy */
@media screen and (max-width: 767px) {
  .ext-sw__copy { padding: 18px 14px 22px; gap: 20px; }
  .ext-sw .variant-picker { display: contents; } /* its fieldsets join the copy's column, so the switch option (the colour) can go first */
  .ext-sw[data-switch-index="1"] .variant-picker > fieldset:nth-of-type(1), .ext-sw[data-switch-index="2"] .variant-picker > fieldset:nth-of-type(2),
  .ext-sw[data-switch-index="3"] .variant-picker > fieldset:nth-of-type(3) { order: -1; }
  .ext-sw__facts { grid-template-columns: minmax(0, 1fr); }
  .ext-sw__fact { padding: 12px 0; }
  .ext-sw__fact + .ext-sw__fact { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgb(var(--color-foreground) / .12); }
  .ext-sw__actions .product-form, .ext-sw__actions .button { width: 100%; }
}
