:root {
  --ink: #111210;
  --ink-soft: #242521;
  --paper: #fff;
  --paper-deep: #ecece8;
  --line: rgba(17, 18, 16, .16);
  --light-line: rgba(17, 18, 16, .16);
  --glass: rgba(255, 255, 255, .62);
  --cream: #111210;
  --glow: #fff;
  --muted: #6d6f69;
  --nav-h: 72px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .74, .25, 1);
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color-scheme: light;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sf);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.glass-nav {
  position: fixed;
  z-index: 80;
  top: max(18px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(980px, calc(100% - 40px));
  height: var(--nav-h);
  transform: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 10px 8px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 999px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .055) 38%, rgba(255, 255, 255, .11)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(0, 0, 0, .12),
    0 20px 48px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: border-color .2s ease;
  isolation: isolate;
}

.glass-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 55% at 26% -5%, rgba(255, 255, 255, .24), transparent 72%);
}

.nav-context,
.wordmark,
.icon-button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-context {
  justify-self: start;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 4px;
  color: rgba(255, 255, 255, .66);
  font-size: .7rem;
  letter-spacing: .16em;
}

.nav-context strong {
  color: white;
  font-size: .82rem;
  font-weight: 600;
}

.wordmark {
  justify-self: center;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  color: white;
}

.wordmark-main {
  font-family: var(--font-sf);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.08em;
  transform: scaleX(.88);
}

.wordmark-sub {
  padding-top: 2px;
  font-family: var(--font-sf);
  font-size: .78rem;
  font-style: italic;
  letter-spacing: .1em;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, .13);
}

.icon-button:active {
  transform: scale(.94);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button {
  background: rgba(255, 255, 255, .12);
}

.cart-count {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: #efffdc;
  color: var(--ink);
  font-size: .65rem;
  font-weight: 700;
  transform: scale(0);
  transition: transform .25s var(--ease);
}

.cart-count.has-items {
  transform: scale(1);
}

.view {
  min-height: 100svh;
}

.view[hidden] {
  display: none !important;
}

/* Home / campaign frame */
.home-view {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #15180e;
  isolation: isolate;
}

.scene-scroller,
.scene-media {
  position: absolute;
  inset: 0;
}

.scene-scroller {
  overflow: hidden;
  overscroll-behavior: none;
}

.scene-media {
  width: 100%;
  height: 100%;
  transform-origin: center;
}

.hero-image,
.hotspot-map,
.scene-grade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: contrast(1.03) saturate(.9);
  transform: scale(1.008);
}

.scene-grade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 23%, transparent 65%, rgba(0, 0, 0, .44)),
    radial-gradient(circle at 50% 48%, transparent 44%, rgba(0, 0, 0, .18) 100%);
}

.hotspot-map {
  z-index: 3;
  overflow: visible;
}

.garment-hotspot {
  cursor: pointer;
}

.home-chrome {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, .65);
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .15em;
}

.home-chrome-left {
  left: 30px;
}

.home-chrome-right {
  right: 30px;
}

.tap-hint {
  position: absolute;
  z-index: 6;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(8, 9, 7, .27);
  color: rgba(255, 255, 255, .86);
  font-size: .78rem;
  letter-spacing: .05em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tap-hint i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 13px var(--glow);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  50% { opacity: .35; transform: scale(.72); }
}

.swipe-hint {
  display: none;
}

/* Product */
.product-view {
  background: var(--paper);
  color: var(--ink);
}

.product-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(400px, .85fr);
}

.gallery-column {
  position: relative;
  min-width: 0;
  padding: 112px 28px 28px;
  overflow: hidden;
  background: #080907;
  color: white;
}

.back-link {
  border: 0;
  background: none;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .67);
  font-size: .79rem;
  letter-spacing: .07em;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.back-link:hover {
  color: white;
  transform: translateX(-3px);
}

.back-link span {
  font-size: 1rem;
}

.product-photo {
  position: relative;
  height: min(68svh, 760px);
  min-height: 440px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 38%, #171916, #070806 72%),
    #070806;
}


.product-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  transition: none;
}

.product-photo.crop-front img {
  transform: scale(1.86);
  transform-origin: 22% 49%;
}

.product-photo.crop-back img {
  transform: scale(1.86);
  transform-origin: 78% 49%;
}

.product-photo.crop-detail img {
  transform: scale(2.55);
  transform-origin: 24% 48%;
}

.product-photo.studio img {
  object-fit: cover;
  transform: scale(1.01);
}

.photo-index {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  color: rgba(255, 255, 255, .74);
  font-size: .65rem;
  letter-spacing: .13em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 50%;
  background: rgba(13, 14, 12, .42);
  color: white;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background .2s ease, transform .2s ease;
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, .16);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(.93);
}

.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84px, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  position: relative;
  height: 70px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 2px;
  background: #11130f;
  opacity: .42;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, .64);
}

.gallery-thumb:hover img {
  transform: scale(1.045);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumb[data-crop="front"] img { object-position: 19% 50%; transform: scale(1.35); }
.gallery-thumb[data-crop="back"] img { object-position: 81% 50%; transform: scale(1.35); }
.gallery-thumb[data-crop="detail"] img { object-position: 20% 48%; transform: scale(2); }

.product-info {
  align-self: stretch;
  padding: 128px clamp(32px, 4vw, 76px) 48px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 34%),
    var(--paper);
}


.product-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: #686a63;
  font-size: .66rem;
  letter-spacing: .14em;
}

.product-info h2 {
  margin: 30px 0 5px;
  max-width: 600px;
  font-family: var(--font-sf);
  font-size: clamp(2.5rem, 4vw, 4.75rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.055em;
}

.product-price {
  margin-top: 22px;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.product-description {
  max-width: 510px;
  margin: 35px 0 26px;
  color: #4c4e48;
  font-family: var(--font-sf);
  font-size: 1rem;
  line-height: 1.5;
}

.product-specs {
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
}

.product-specs > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  line-height: 1.45;
}

.product-specs dt {
  color: #7a7b74;
}

.product-specs dd {
  margin: 0;
}

.choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.choice-head button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: #6b6d66;
  font-size: .72rem;
  cursor: pointer;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.size-option {
  height: 50px;
  border: 1px solid #babbb4;
  background: rgba(255, 255, 255, .1);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.size-option:hover {
  border-color: var(--ink);
}

.size-option.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.size-note {
  min-height: 18px;
  margin: 10px 0 0;
  color: #777971;
  font-size: .72rem;
}

.add-button {
  width: 100%;
  min-height: 62px;
  margin-top: 18px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: .85rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}

.add-button:hover:not(:disabled) {
  background: #22251f;
}

.add-button:active:not(:disabled) {
  transform: scale(.99);
}

.add-button:disabled {
  border-color: #bfc0b9;
  background: #d5d4cd;
  color: #85877f;
  cursor: not-allowed;
}

.delivery-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.delivery-notes span {
  display: block;
  margin-bottom: 5px;
  font-size: .72rem;
  font-weight: 600;
}

.delivery-notes p {
  margin: 0;
  color: #74766f;
  font-size: .7rem;
  line-height: 1.45;
}

/* Cart */
.cart-view {
  padding: 135px max(24px, 5vw) 70px;
  background: #11120f;
  color: var(--cream);
}

.cart-shell {
  max-width: 1500px;
  margin: 0 auto;
}

.cart-back {
  margin-bottom: 46px;
}

.section-label {
  color: #81847a;
  font-size: .67rem;
  letter-spacing: .16em;
}

.cart-heading h2 {
  margin: 12px 0 42px;
  font-family: var(--font-sf);
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  font-weight: 650;
  line-height: .96;
  letter-spacing: -.055em;
}

.cart-heading sup {
  display: inline-block;
  margin-left: 10px;
  color: #93958c;
  font-family: var(--font-sf);
  font-size: .9rem;
  vertical-align: top;
  letter-spacing: normal;
}

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(36px, 7vw, 120px);
  align-items: start;
}

.cart-items {
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.cart-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.cart-item-image {
  height: 115px;
  overflow: hidden;
  background: #050604;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 18% center;
  transform: scale(1.28);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h3 {
  margin: 0 0 8px;
  font-family: var(--font-sf);
  font-size: 1.15rem;
  font-weight: 600;
}

.cart-item-info p {
  margin: 0;
  color: #97998f;
  font-size: .78rem;
}

.quantity-control {
  width: fit-content;
  display: grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
}

.quantity-control button {
  height: 32px;
  border: 0;
  background: none;
  color: white;
  cursor: pointer;
}

.quantity-control span {
  text-align: center;
  font-size: .75rem;
}

.cart-item-side {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-price {
  font-size: .86rem;
  font-weight: 600;
}

.remove-item {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  background: none;
  color: #91938a;
  font-size: .7rem;
  cursor: pointer;
}

.empty-cart {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.empty-cart h3 {
  margin: 0 0 10px;
  font-family: var(--font-sf);
  font-size: 2.1rem;
  font-weight: 400;
}

.empty-cart p {
  margin: 0 0 24px;
  color: #97998f;
}

.empty-cart button {
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: none;
  color: white;
  cursor: pointer;
}

.order-summary {
  position: sticky;
  top: 125px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .035);
}

.summary-row,
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
}

.summary-row {
  padding: 9px 0;
  color: #999b92;
  font-size: .78rem;
}

.summary-row strong {
  color: #dcddd6;
  font-size: .78rem;
  font-weight: 400;
  text-align: right;
}

.summary-total {
  margin-top: 19px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  font-size: 1rem;
}

.summary-total strong {
  font-family: var(--font-sf);
  font-size: 1.8rem;
  font-weight: 400;
}

.checkout-button,
.checkout-submit {
  width: 100%;
  min-height: 60px;
  margin-top: 28px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.checkout-button:hover,
.checkout-submit:hover {
  background: var(--glow);
}

.checkout-button:active,
.checkout-submit:active {
  transform: scale(.985);
}

.checkout-button:disabled {
  background: #454740;
  color: #86887f;
  cursor: not-allowed;
}

.order-summary > p {
  margin: 13px 0 0;
  color: #797b73;
  font-size: .7rem;
  line-height: 1.45;
}

/* Menu */
.menu-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 510px);
}

.menu-layer[hidden] {
  display: none;
}

.menu-scrim {
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: default;
}

.menu-panel {
  min-width: 0;
  padding: max(24px, env(safe-area-inset-top)) 32px max(26px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, .2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 34%),
    rgba(20, 22, 18, .83);
  box-shadow: -30px 0 70px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(35px) saturate(1.35);
  backdrop-filter: blur(35px) saturate(1.35);
}


.menu-top,
.checkout-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.menu-top > span {
  color: rgba(255, 255, 255, .55);
  font-size: .66rem;
  letter-spacing: .16em;
}

.round-close {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font-size: 1.55rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.menu-nav {
  margin: auto 0;
  border-top: 1px solid rgba(255, 255, 255, .17);
}

.menu-nav button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: baseline;
  padding: 16px 3px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
  background: none;
  color: white;
  font-family: var(--font-sf);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 520;
  text-align: left;
  cursor: pointer;
  transition: padding-left .25s var(--ease), color .2s ease;
}

.menu-nav button:hover {
  padding-left: 10px;
  color: var(--glow);
}

.menu-nav button span {
  color: rgba(255, 255, 255, .44);
  font-family: var(--font-sf);
  font-size: .67rem;
  letter-spacing: .08em;
}

.menu-foot {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .48);
  font-size: .62rem;
  letter-spacing: .12em;
}

.menu-foot strong {
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

/* Dialogs */
dialog {
  border: 0;
  padding: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, .52);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.checkout-dialog {
  width: min(750px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  overflow: auto;
  background: transparent;
  color: var(--ink);
}

.checkout-card,
.size-card {
  padding: clamp(24px, 4.5vw, 52px);
  background: var(--paper);
  color: var(--ink);
}

.checkout-top h2 {
  margin: 8px 0 0;
  font-family: var(--font-sf);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.055em;
}

.checkout-card .round-close,
.size-card .round-close {
  border-color: rgba(0, 0, 0, .18);
  background: rgba(0, 0, 0, .04);
}

.checkout-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 40px;
}

.checkout-body label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #666860;
  font-size: .7rem;
  letter-spacing: .06em;
}

.checkout-body .wide {
  grid-column: 1 / -1;
}

.checkout-body input {
  min-width: 0;
  height: 53px;
  padding: 0 14px;
  border: 1px solid #babbb4;
  border-radius: 0;
  background: rgba(255, 255, 255, .3);
  color: var(--ink);
  font-size: 1rem;
}

.checkout-body input::placeholder {
  color: #a0a29a;
}

.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.checkout-total strong {
  font-family: var(--font-sf);
  font-size: 1.6rem;
  font-weight: 400;
}

.checkout-submit {
  background: var(--ink);
  color: white;
}

.form-note {
  margin: -4px 0 0;
  color: #85877f;
  font-size: .68rem;
  text-align: center;
}

.checkout-success {
  padding: 55px 0 25px;
  text-align: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.4rem;
}

.checkout-success h3 {
  margin: 0;
  font-family: var(--font-sf);
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -.045em;
}

.checkout-success p {
  max-width: 430px;
  margin: 14px auto 25px;
  color: #6c6e67;
  line-height: 1.55;
}

.checkout-success .checkout-submit {
  justify-content: center;
}

.size-dialog {
  width: min(620px, calc(100vw - 28px));
  background: transparent;
  color: var(--ink);
}

.size-table {
  margin-top: 35px;
  border-top: 1px solid var(--line);
}

.size-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}

.size-card > p {
  margin: 16px 0 0;
  color: #74766e;
  font-size: .72rem;
}

.toast {
  position: fixed;
  z-index: 160;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(16, 18, 14, .76);
  color: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .28);
  font-size: .78rem;
  text-align: center;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform .3s var(--ease), opacity .22s ease, visibility 0s .3s;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (max-width: 980px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .gallery-column {
    min-height: 80svh;
  }

  .product-info {
    padding-top: 75px;
  }

  .product-info h2 {
    font-size: clamp(3rem, 8vw, 4.3rem);
  }

  .cart-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-h: 61px;
  }

  .glass-nav {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100% - 20px);
    padding: 5px 6px 5px 12px;
  }

  .nav-context {
    visibility: hidden;
    width: 75px;
    padding: 0;
  }

  .wordmark {
    min-width: 0;
    gap: 6px;
    padding: 5px 7px;
  }

  .wordmark-main {
    font-size: 1.2rem;
  }

  .wordmark-sub {
    font-size: .65rem;
  }

  .icon-button {
    width: 43px;
    height: 43px;
  }

  .icon-button svg {
    width: 20px;
    height: 20px;
  }

  .home-view {
    touch-action: pan-x;
  }

  .scene-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .scene-scroller::-webkit-scrollbar {
    display: none;
  }

  .scene-media {
    inset: 0 auto 0 0;
    width: max(960px, 177.7778svh);
    height: 100svh;
  }

  .hero-image {
    object-fit: cover;
  }

  .home-chrome,
  .tap-hint {
    display: none;
  }

  .swipe-hint {
    position: absolute;
    z-index: 7;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    display: block;
    padding: 9px 13px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(9, 10, 8, .35);
    color: rgba(255, 255, 255, .82);
    font-size: .7rem;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .hotspot-label circle {
    r: 28px;
  }

  .gallery-column {
    min-height: auto;
    padding: 92px 12px 12px;
  }

  .back-link {
    margin-left: 6px;
  }

  .product-photo {
    height: 62svh;
    min-height: 410px;
  }

  .gallery-arrow {
    width: 43px;
    height: 43px;
  }

  .gallery-thumbs {
    overflow-x: auto;
    grid-auto-columns: 96px;
  }

  .product-info {
    padding: 58px 18px 40px;
  }

  .product-info h2 {
    margin-top: 24px;
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  .product-description {
    margin-top: 28px;
    font-size: 1rem;
  }

  .product-specs > div {
    grid-template-columns: 95px 1fr;
  }

  .size-options {
    gap: 5px;
  }

  .size-option {
    height: 48px;
  }

  .delivery-notes {
    grid-template-columns: 1fr;
  }

  .cart-view {
    padding: 108px 16px 45px;
  }

  .cart-back {
    margin-bottom: 35px;
  }

  .cart-heading h2 {
    margin-bottom: 32px;
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    padding: 17px 0;
  }

  .cart-item-image {
    height: 105px;
  }

  .cart-item-info h3 {
    font-size: 1.2rem;
  }

  .cart-item-side {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
  }

  .quantity-control {
    margin-top: 15px;
  }

  .order-summary {
    padding: 21px;
  }

  .menu-layer {
    grid-template-columns: 1fr;
  }

  .menu-scrim {
    position: absolute;
    inset: 0;
  }

  .menu-panel {
    position: relative;
    width: min(92vw, 460px);
    min-height: 100%;
    justify-self: end;
    padding: max(18px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  }

  .menu-nav button {
    grid-template-columns: 40px 1fr;
    font-size: 1.75rem;
  }

  .menu-foot {
    flex-direction: column;
    gap: 7px;
  }

  .checkout-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100svh - 14px);
  }

  .checkout-card,
  .size-card {
    padding: 24px 17px;
  }

  .checkout-body {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .checkout-body .wide {
    grid-column: 1;
  }

  .checkout-top h2 {
    font-size: 2.8rem;
  }
}

/* Light editorial catalog: compact type, image-led layout, fluid desktop/mobile. */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #fff;
}

.glass-nav {
  border-color: rgba(17, 18, 16, .14);
  background: linear-gradient(115deg, rgba(255,255,255,.88), rgba(255,255,255,.62) 48%, rgba(255,255,255,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 16px 40px rgba(17,18,16,.12);
}
.home-view { background: #fff; }
.glass-nav::before { background: radial-gradient(80% 55% at 26% -5%, rgba(255,255,255,.9), transparent 72%); }
.nav-context { color: rgba(17,18,16,.58); }
.nav-context { font-size: .75rem; }
.nav-context strong, .wordmark { color: var(--ink); }
.wordmark { text-decoration: none; }
.wordmark { transform-origin: center; transition: transform .22s var(--ease); }
@media (hover: hover) {
  .wordmark:hover { transform: scale(1.04); }
}
.wordmark:focus-visible { transform: scale(1.04); }
.wordmark:active { transform: scale(1.02); transition-duration: .09s; }
.icon-button:hover, .cart-button { background: rgba(17,18,16,.045); }
.cart-count { border-color: rgba(17,18,16,.2); background: #fff; color: var(--ink); }

.product-view, .product-info, .gallery-column { background: #fff; color: var(--ink); }
.product-layout {
  min-height: 100svh;
  max-width: 1600px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
  transform: none;
}
.gallery-column { padding: 112px clamp(20px, 3vw, 46px) 30px; }
.back-link { color: rgba(17,18,16,.62); }
.back-link:hover { color: var(--ink); }
.product-photo {
  height: min(68svh, 760px);
  border-color: rgba(17,18,16,.1);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(17,18,16,.055);
}
.product-photo img { object-fit: contain; transform: none !important; }
.photo-index, .gallery-arrow {
  border-color: rgba(17,18,16,.14);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(17,18,16,.08);
}
.photo-index { color: rgba(17,18,16,.72); }
.photo-index { font-size: .75rem; }
.gallery-arrow:hover { background: #fff; }
.gallery-thumb { border-color: rgba(17,18,16,.14); border-radius: 1px; background: #fff; }
.gallery-thumb.is-active { border-color: var(--ink); opacity: 1; }
.gallery-thumb img { object-fit: contain; object-position: center; transform: none !important; }
.hotspot-shape { fill: rgba(255,255,255,.015); stroke: rgba(255,255,255,.82); }
.garment-hotspot:hover .hotspot-shape, .garment-hotspot:focus .hotspot-shape { fill: rgba(255,255,255,.12); stroke: #fff; }

.product-info { padding: clamp(112px, 14vh, 150px) clamp(28px, 4vw, 64px) 48px; }
.product-kicker { font-size: .75rem; }
.section-label { font-size: .75rem; }
.product-info h2 { max-width: 500px; margin-top: 25px; font-size: clamp(2.15rem, 3.2vw, 3.35rem); line-height: 1.03; letter-spacing: -.045em; }
.product-description { margin: 26px 0 24px; }
.product-specs { margin-bottom: 26px; }
.size-option.is-active { border-color: var(--ink); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.add-button { border-color: rgba(17,18,16,.3); background: #fff; color: var(--ink); }
.add-button:hover:not(:disabled) { background: #f0f0ed; }
.add-button:disabled { background: #ecece8; border-color: #d6d6d1; color: #777971; }

.cart-view { background: #fff; color: var(--ink); }
.cart-heading h2 { margin: 12px 0 36px; font-size: clamp(2.15rem, 3.5vw, 3.4rem); line-height: 1; letter-spacing: -.045em; }
.cart-items, .cart-item { border-color: rgba(17,18,16,.14); }
.cart-item-image { background: #fff; border: 1px solid rgba(17,18,16,.1); }
.cart-item-image img { object-fit: contain; object-position: center; transform: none; }
.cart-item-info p, .empty-cart p, .order-summary > p { color: #6d6f69; }
.quantity-control { border-color: rgba(17,18,16,.16); }
.quantity-control button, .remove-item { color: var(--ink); }
.remove-item { border-color: rgba(17,18,16,.35); }
.empty-cart, .order-summary { border-color: rgba(17,18,16,.14); }
.empty-cart button { border-color: rgba(17,18,16,.28); background: #fff; color: var(--ink); }
.order-summary { background: #fff; box-shadow: 0 18px 45px rgba(17,18,16,.05); }
.summary-row { color: #6d6f69; }
.summary-row strong, .summary-total { color: var(--ink); }
.summary-total { border-color: rgba(17,18,16,.14); }
.checkout-button, .checkout-submit { border: 1px solid rgba(17,18,16,.3); background: #fff; color: var(--ink); }
.checkout-button:hover, .checkout-submit:hover { background: #f0f0ed; }
.checkout-button:disabled { background: #ecece8; border-color: #d6d6d1; color: #8b8d86; }

.menu-scrim { background: rgba(17,18,16,.2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.menu-panel { border-color: rgba(17,18,16,.14); background: rgba(255,255,255,.98); color: var(--ink); box-shadow: -30px 0 70px rgba(17,18,16,.12); -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-top > span, .menu-foot { color: #6d6f69; }
.menu-nav, .menu-nav button { border-color: rgba(17,18,16,.15); }
.menu-nav button, .menu-nav button span, .menu-foot strong { color: var(--ink); }
.menu-nav button:hover { color: #555750; }
.round-close { border-color: rgba(17,18,16,.18); background: rgba(255,255,255,.75); color: var(--ink); }
.checkout-card, .size-card { background: #fff; }
.toast { border-color: rgba(17,18,16,.14); background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 15px 40px rgba(17,18,16,.14); }
.size-note, .delivery-notes span, .delivery-notes p { font-size: .75rem; }

@media (min-width: 981px) {
  .gallery-column { min-height: 100svh; }
  .cart-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 410px); }
}

@media (max-width: 980px) {
  .product-layout { grid-template-columns: 1fr; }
  .gallery-column { min-height: auto; padding: 96px clamp(14px, 3vw, 28px) 24px; }
  .product-photo { height: min(72svh, 720px); min-height: 380px; }
  .product-info { padding: 42px clamp(20px, 5vw, 64px) 46px; }
  .product-info h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
  .cart-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 700px) {
  .glass-nav { width: calc(100% - 24px); top: max(12px, env(safe-area-inset-top)); height: 62px; padding-left: 12px; }
  .wordmark { min-width: 0; gap: 5px; padding-inline: 8px; }
  .wordmark-main { font-size: 1.22rem; }
  .wordmark-sub { font-size: .68rem; }
  .icon-button { width: 42px; height: 42px; }
  .gallery-column { padding: 94px 14px 18px; }
  .product-photo { height: min(62svh, 560px); min-height: 330px; margin-top: 8px; }
  .gallery-thumbs { grid-auto-columns: minmax(78px, 1fr); gap: 7px; }
  .gallery-thumb { height: 76px; }
  .product-info { padding: 34px 18px 38px; }
  .product-info h2 { margin-top: 20px; font-size: clamp(2rem, 10vw, 2.9rem); }
  .product-description { margin: 22px 0; }
  .cart-view { padding: 108px 18px 48px; }
  .cart-heading h2 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .cart-grid { display: block; }
  .cart-item { grid-template-columns: 92px minmax(0, 1fr); gap: 15px; }
  .cart-item-image { height: 105px; }
  .cart-item-side { grid-column: 2; width: 100%; min-width: 0; flex-direction: row; align-items: center; }
  .quantity-control { margin-top: 15px; }
  .order-summary { margin-top: 30px; padding: 21px; }
  .menu-layer { grid-template-columns: 1fr; }
  .menu-scrim { position: absolute; inset: 0; }
  .menu-panel { position: relative; width: min(92vw, 460px); min-height: 100%; justify-self: end; padding: max(18px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Product and bag layout based on the supplied storefront references. */
[hidden] { display: none !important; }
.wordmark { min-width: 0; padding: 0 8px; }
.brand-logo { display: block; width: 180px; height: 54px; object-fit: contain; }
.product-layout { max-width: 1520px; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: clamp(28px, 5vw, 80px); padding: 126px clamp(24px, 4vw, 64px) 64px; align-items: start; }
.gallery-column { min-height: 0; padding: 0; }
.back-link { font-size: .875rem; letter-spacing: .015em; }
.product-photo { height: min(68vw, 690px); min-height: 0; margin-top: 16px; border: 0; border-radius: 0; box-shadow: none; animation-duration: .3s; }
.photo-index { top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); border: 0; box-shadow: none; background: rgba(255,255,255,.88); font-size: .75rem; }
.gallery-arrow { width: 42px; height: 42px; border: 0; box-shadow: none; background: rgba(255,255,255,.8); }
.gallery-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 72px; height: 88px; padding: 0; opacity: .7; flex: 0 0 72px; }
.product-info { padding: 46px 0 0; align-self: start; animation-duration: .3s; }
.product-brand { margin: 0 0 8px; font-size: .75rem; letter-spacing: .15em; color: #777; }
.product-info h2 { margin: 0; max-width: 100%; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 400; line-height: 1.45; letter-spacing: .035em; text-transform: uppercase; }
.product-price { margin: 16px 0 20px; color: #777; font-size: 1rem; font-weight: 400; letter-spacing: .04em; }
.size-block { margin: 0 0 20px; }
.size-options { display: flex; gap: 9px; }
.size-option { width: 52px; height: 40px; border: 1px solid #888; border-radius: 999px; background: white; font-size: .875rem; font-weight: 400; }
.size-option.is-active { background: #111; border-color: #111; color: #fff; box-shadow: none; }
.quantity-control { display: inline-flex; align-items: center; justify-content: space-between; width: 142px; height: 48px; margin: 0; border: 1px solid #888; border-radius: 0; }
.quantity-control button { flex: 0 0 42px; width: 42px; height: 46px; padding: 0; border: 0; background: none; color: #333; font-size: 1rem; cursor: pointer; }
.quantity-control button:hover:not(:disabled) { background: #f4f4f4; }
.quantity-control button:disabled { opacity: .35; cursor: default; }
.quantity-control span { min-width: 32px; text-align: center; font-size: .875rem; }
.purchase-actions { display: grid; gap: 10px; margin-top: 24px; }
.add-button, .buy-button, .checkout-button, .checkout-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 18px; margin: 0; border: 1px solid #111; border-radius: 0; background: #111; color: #fff; font-size: .875rem; font-weight: 400; letter-spacing: .035em; cursor: pointer; transition: background .18s ease; }
.add-button { text-transform: uppercase; }
.add-button:hover:not(:disabled), .buy-button:hover, .checkout-button:hover:not(:disabled), .checkout-submit:hover { background: #333; color: #fff; }
.product-description { max-width: none; margin: 28px 0 36px; color: #666; font-size: 1rem; line-height: 1.7; letter-spacing: .015em; }
.product-details { border-top: 1px solid #e6e6e6; }
.product-details details { border-bottom: 1px solid #e6e6e6; }
.product-details summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; font-size: .875rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-right: 3px; transition: transform .18s; }
.product-details details[open] summary::after { transform: rotate(225deg); }
.product-details details > p { margin: 0 0 16px; font-size: 1rem; color: #666; line-height: 1.6; }
.text-link { padding: 0; margin: 0 0 20px; background: none; border: 0; border-bottom: 1px solid currentColor; font-size: .875rem; cursor: pointer; }
.product-specs { margin: 0 0 16px; border: 0; }
.product-specs > div { font-size: .875rem; grid-template-columns: 100px 1fr; border: 0; padding: 7px 0; gap: 12px; }
.delivery-notes { display: block; margin: 0; padding: 0 0 20px; border: 0; }
.delivery-notes > div + div { margin-top: 14px; }
.delivery-notes span { font-size: .875rem; color: #444; }
.delivery-notes p { font-size: 1rem; color: #666; line-height: 1.6; }
.cart-view { padding: 132px clamp(24px, 4vw, 64px) 72px; }
.cart-shell { max-width: 1500px; margin: 0 auto; }
.cart-back { margin: 0; }
.cart-heading { margin: 30px 0; }
.cart-heading .section-label { display: none; }
.cart-heading h2 { margin: 0; font-size: 1.65rem; font-weight: 400; letter-spacing: .015em; line-height: 1.4; }
.cart-heading h2 sup { font-size: .875rem; color: #777; vertical-align: super; }
.cart-grid { display: block; }
.cart-columns, .cart-item { display: grid; grid-template-columns: minmax(0, 1fr) 220px 150px; column-gap: 36px; }
.cart-columns { padding: 16px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; color: #777; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; }
.cart-columns span:last-child { text-align: right; }
.cart-items { border: 0; }
.cart-item { align-items: start; padding: 36px 0; border: 0; }
.cart-product { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.cart-item-image { display: block; width: 150px; height: 210px; border: 1px solid #efefef; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { padding-top: 3px; }
.cart-item-info h3 { max-width: 330px; margin: 0 0 9px; font-size: .875rem; font-weight: 400; text-transform: uppercase; line-height: 1.5; letter-spacing: .02em; }
.cart-item-info h3 a { color: inherit; text-decoration: none; }
.cart-item-info h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-item-info p { margin: 6px 0; color: #555; font-size: .875rem; line-height: 1.5; }
.cart-item-controls { display: flex; gap: 16px; align-items: center; padding-top: 4px; }
.remove-item { display: grid; place-items: center; width: 44px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; }
.remove-item svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.2; fill: none; }
.remove-item:hover { background: #f5f5f5; }
.cart-item-price { display: block; padding-top: 17px; font-size: .875rem; text-align: right; font-weight: 400; white-space: nowrap; }
.order-summary { position: static; width: min(100%, 410px); margin: 30px 0 0 auto; padding: 26px 0 0; border: 0; border-top: 1px solid #e6e6e6; box-shadow: none; }
.summary-row { display: none; }
.summary-total { margin: 0 0 20px; padding: 0; border: 0; font-size: 1rem; }
.summary-total strong { font-size: 1.15rem; }
.order-summary > p { font-size: .875rem; text-align: right; line-height: 1.5; }
.empty-cart { padding: 70px 20px; border: 0; text-align: center; }
.empty-cart h3 { font-size: 1.4rem; }
.checkout-top h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: 0; font-weight: 400; }
.checkout-body label, .form-note { font-size: .875rem; }
.checkout-submit { margin-top: 20px; }
.checkout-success h3 { font-size: 1.5rem; }
@media (max-width: 980px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 28px; padding: 116px 24px 50px; }
  .product-info { padding-top: 46px; }
  .product-photo { height: 520px; }
  .cart-columns, .cart-item { grid-template-columns: minmax(0, 1fr) 185px 105px; gap: 20px; }
  .cart-product { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
  .cart-item-image { width: 110px; height: 154px; }
  .cart-item-controls { gap: 2px; }
}
@media (max-width: 700px) {
  .glass-nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 5px 6px; }
  .nav-context { width: 0; }
  .nav-actions { gap: 0; }
  .icon-button { width: 36px; height: 42px; }
  .brand-logo { width: clamp(132px, 40vw, 166px); height: 48px; }
  .wordmark { padding: 0; }
  .product-layout { display: block; padding: 96px 18px 40px; }
  .gallery-column { padding: 0; }
  .product-photo { height: min(115vw, 580px); min-height: 0; margin-top: 8px; }
  .gallery-thumb { width: 60px; height: 74px; flex-basis: 60px; }
  .product-info { padding: 32px 0 0; }
  .product-info h2 { margin: 0; font-size: 1.4rem; line-height: 1.45; }
  .product-price { margin-top: 14px; }
  .product-description { margin: 26px 0 32px; }
  .product-details summary { min-height: 58px; }
  .cart-view { padding: 108px 18px 44px; }
  .cart-heading { margin: 22px 0; }
  .cart-heading h2 { font-size: 1.5rem; }
  .cart-columns { grid-template-columns: 1fr auto; gap: 12px; }
  .cart-columns span:nth-child(2) { display: none; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 26px 0; border-bottom: 1px solid #eee; }
  .cart-product { grid-column: 1; grid-row: 1; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .cart-item-image { width: 84px; height: 118px; }
  .cart-item-info { padding: 0; }
  .cart-item-info h3 { margin-bottom: 7px; font-size: .875rem; }
  .cart-item-info p { font-size: .875rem; }
  .cart-item-price { grid-column: 2; grid-row: 1; padding-top: 2px; font-size: .875rem; }
  .cart-item-controls { grid-column: 1 / -1; padding: 0 0 0 98px; gap: 12px; }
  .quantity-control { margin: 0; }
  .order-summary { margin-top: 32px; padding: 0; border: 0; }
  .order-summary > p { text-align: center; }
}

/* A seamless travelling light; the final dash position is one full perimeter from the first. */
.hero-image { transform: none; }
.hotspot-map, .garment-hotspot { pointer-events: none; }
.garment-hotspot { outline: none; }
.hotspot-shape,
.garment-hotspot:hover .hotspot-shape,
.garment-hotspot:focus .hotspot-shape {
  pointer-events: visibleFill;
  fill: transparent;
  stroke: none;
  filter: none;
  opacity: 1;
  animation: none;
  transition: none;
}
.selection-light, .selection-light *, .selection-rest { pointer-events: none; fill: none; }
.selection-fallback { display: none; pointer-events: none; }
.selection-rest { stroke: none; opacity: 0; }
.selection-light { opacity: 0; transition: opacity .18s ease; }
.selection-beam { fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round; }
/* Eight feathered segments per item preserve the travelling glow with fewer SVG repaints. */
.selection-trail {
  stroke-dashoffset: var(--selection-to);
  animation: selectionPerimeter var(--selection-duration, 3.6s) linear infinite;
  animation-play-state: paused;
}
.garment-hotspot:hover .selection-light,
.garment-hotspot:focus-visible .selection-light { opacity: 1; }
.garment-hotspot:hover .selection-trail,
.garment-hotspot:focus-visible .selection-trail { animation-play-state: running; }
@keyframes selectionPerimeter {
  0% { stroke-dashoffset: var(--selection-from); }
  100% { stroke-dashoffset: var(--selection-to); }
}
/* If measured frames drop, pulse the cached full contour instead of repainting an animated mask. */
body.selection-lite .selection-light { display: none; }
body.selection-lite .selection-fallback { display: block; opacity: 0; }
body.selection-lite .garment-hotspot:hover .selection-fallback,
body.selection-lite .garment-hotspot:focus-visible .selection-fallback {
  animation: selectionBreath 2s ease-in-out infinite;
}
@keyframes selectionBreath { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }
.garment-tooltip {
  position: fixed;
  z-index: 70;
  left: 0;
  top: 0;
  max-width: calc(100% - 24px);
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(94,94,98,.62);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  will-change: transform;
  animation: tooltipIn .15s ease both;
}
@keyframes tooltipIn { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none) {
  .garment-hotspot:active .selection-fallback { display: block; opacity: 1; }
  .garment-hotspot:active .selection-light { display: none; }
  .selection-trail { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .selection-light, .garment-tooltip { animation: none !important; }
  .selection-light { display: none; }
  .garment-hotspot:hover .selection-fallback,
  .garment-hotspot:focus-visible .selection-fallback { display: block; opacity: 1; animation: none !important; }
}

/* Shared spacing, outlines and control geometry across the shopping flow. */
:root {
  --control-height: 48px;
  --radius-pill: 999px;
  --radius-field: 14px;
  --radius-panel: 24px;
  --shop-line: #e5e5e5;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}
.product-price { margin: var(--space-md) 0 var(--space-lg); }
.choice-label { display: block; margin-bottom: var(--space-sm); font-size: .875rem; color: #666; line-height: 1.4; }
.size-block { margin: 0; }
.size-options { gap: var(--space-sm); }
.size-option { min-width: 56px; height: 44px; border: 1px solid var(--shop-line); border-radius: var(--radius-pill); }
.size-option:hover { border-color: #999; }
.size-option.is-active { border-color: #111; }
.purchase-actions { gap: var(--space-sm); margin-top: var(--space-lg); }
.add-button, .buy-button, .checkout-button, .checkout-submit, .empty-cart button {
  min-height: var(--control-height);
  padding: 12px var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: none;
}
.add-button, .checkout-button, .checkout-submit { background: #111; color: #fff; }
.buy-button, .empty-cart button { background: #f4f4f4; border-color: var(--shop-line); color: #333; font-weight: 400; }
.buy-button:hover, .empty-cart button:hover { background: #eaeaea; border-color: #d8d8d8; color: #111; }
.add-button:hover:not(:disabled), .checkout-button:hover:not(:disabled), .checkout-submit:hover { background: #303030; }
.product-description { margin: var(--space-lg) 0 var(--space-xl); }
.product-details, .product-details details, .cart-columns, .order-summary, .size-table, .size-table > div, .checkout-total { border-color: var(--shop-line); }
.product-details summary { padding: 18px 0; min-height: 56px; letter-spacing: .01em; text-transform: none; }
.gallery-thumbs { gap: var(--space-sm); margin-top: var(--space-md); }
.gallery-thumb { border: 1px solid var(--shop-line); border-radius: var(--radius-field); }
.gallery-thumb.is-active { border-color: #777; }
.gallery-arrow { width: 44px; height: 44px; border-radius: var(--radius-pill); }
.cart-heading { margin: var(--space-lg) 0; }
.cart-columns { padding: var(--space-md) 0; }
.cart-item { padding: var(--space-xl) 0; }
.cart-item-image { border: 1px solid var(--shop-line); border-radius: var(--radius-field); }
.quantity-control { width: 136px; height: var(--control-height); overflow: hidden; border: 1px solid var(--shop-line); border-radius: var(--radius-pill); background: #fff; }
.quantity-control button { width: 44px; flex-basis: 44px; height: 46px; }
.remove-item { width: 44px; height: 44px; border-radius: var(--radius-pill); }
.order-summary { margin-top: var(--space-xl); padding-top: var(--space-lg); }
.summary-total { margin-bottom: var(--space-lg); }
.order-summary > p { margin-top: var(--space-md); }
.checkout-dialog, .size-dialog { border-radius: var(--radius-panel); }
.checkout-card, .size-card { padding: var(--space-xl); border-radius: var(--radius-panel); }
.checkout-body { margin-top: var(--space-xl); gap: var(--space-md); }
.checkout-body label { gap: var(--space-sm); letter-spacing: .01em; }
.checkout-body input { height: var(--control-height); border: 1px solid var(--shop-line); border-radius: var(--radius-field); background: #fafafa; padding: 0 var(--space-md); }
.checkout-body input:focus { border-color: #777; background: #fff; }
.checkout-submit { margin-top: var(--space-md); }
.round-close { width: 44px; height: 44px; border-color: var(--shop-line); background: #f7f7f7; }
.checkout-card .round-close, .size-card .round-close { border-color: var(--shop-line); background: #f7f7f7; }
.menu-nav, .menu-nav button { border-color: var(--shop-line); }
.menu-nav button { padding-top: var(--space-md); padding-bottom: var(--space-md); }
@media (max-width: 700px) {
  .product-layout { padding-left: 20px; padding-right: 20px; }
  .product-info { padding-top: var(--space-xl); }
  .cart-view { padding-left: 20px; padding-right: 20px; }
  .cart-item { padding: var(--space-lg) 0; border-color: var(--shop-line); }
  .checkout-card, .size-card { padding: var(--space-lg) 20px; }
  .checkout-body { margin-top: var(--space-lg); }
  .order-summary { padding-top: 0; }
}

/* Stable navigation geometry, overlays and constrained small-screen controls. */
body.menu-open, body:has(dialog[open]) { overflow-y: hidden; }
.menu-panel { min-height: 0; height: 100svh; overflow-y: auto; overscroll-behavior: contain; }
.menu-nav { flex-shrink: 0; }
.menu-scrim { will-change: opacity; }
.menu-layer { overflow: hidden; }
.cart-count { min-width: 20px; width: auto; padding-inline: 3px; }
.product-info, .cart-product, .cart-item-info { min-width: 0; }
.cart-item-info h3 { overflow-wrap: anywhere; }
.photo-error { position: absolute; z-index: 4; inset: 20% 12%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; background: #fff; }
.photo-error p { margin: 0; color: #666; }
.photo-error button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--shop-line); border-radius: var(--radius-pill); background: #f4f4f4; cursor: pointer; }
dialog[open] { animation: dialogIn .2s ease-out; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.size-dialog { max-height: calc(100svh - 28px); overflow: auto; }
.page-idle *, .page-idle *::before, .page-idle *::after { animation-play-state: paused !important; }
@media (max-width: 700px) {
  .glass-nav { grid-template-columns: 88px minmax(0, 1fr) 88px; }
  .brand-logo { width: min(166px, 100%); max-width: 100%; }
  .wordmark { width: 100%; min-width: 0; }
  .icon-button { width: 44px; height: 44px; }
  .scene-scroller { touch-action: pan-x pinch-zoom; }
}
@media (max-width: 380px) {
  .cart-product { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .cart-item-image { width: 64px; height: 90px; }
  .cart-item-controls { padding-left: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open], .menu-scrim, .tap-hint i { animation: none; }
  .scene-media, .wordmark { transform: none !important; }
}

/* Keep checkout in view while the bag itself can grow. */
.cart-list:has(.empty-cart) { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(28px, 3vw, 48px); align-items: start; }
  .cart-list { min-width: 0; }
  .cart-columns, .cart-item { grid-template-columns: minmax(0, 1fr) 182px 96px; column-gap: 20px; }
  .cart-product { grid-template-columns: 104px minmax(0, 1fr); gap: 20px; }
  .cart-item-image { width: 104px; height: 146px; }
  .cart-item-controls { gap: 2px; }
  .order-summary { position: sticky; top: 116px; width: 100%; margin: 0; padding: 24px; border: 1px solid var(--shop-line); border-radius: var(--radius-panel); }
  .order-summary > p { text-align: center; }
}
@media (max-width: 1099px) {
  .cart-view { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .cart-grid { display: flex; flex-direction: column; gap: 24px; }
  .cart-list { width: 100%; }
  .order-summary { position: static; order: -1; width: 100%; margin: 0; padding: 16px 20px; border: 1px solid var(--shop-line); border-radius: var(--radius-panel); background: #fff; box-shadow: none; }
  .summary-total { margin: 0 0 12px; }
  .order-summary > p { margin: 8px 0 0; font-size: .75rem; line-height: 1.35; text-align: center; }
}

/* Reserve room for the photo controls inside the first viewport. */
.gallery-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: min(820px, calc(100svh - 150px));
  min-height: 200px;
}
.gallery-column > .back-link { justify-self: start; }
.product-photo { height: 100%; min-height: 0; margin-top: 0; }
.gallery-thumbs { margin-top: 0; }
.cart-item, .cart-product { align-items: center; }
.cart-item-info, .cart-item-controls, .cart-item-price { padding-top: 0; }
.hotspot-map { shape-rendering: auto; }
.selection-light image { image-rendering: auto; }
@media (max-width: 700px) {
  .gallery-column { height: min(680px, calc(100svh - 120px)); gap: 10px; }
}

/* Drop label uses regular weight. */
.nav-context, .menu-top > span { font-weight: 400; }

/* PDF design review: common baselines and a consistent spacing hierarchy. */
.product-layout { padding-top: 144px; }
.gallery-column {
  grid-template-rows: 44px minmax(0, 1fr) 68px;
  height: min(760px, calc(100svh - 168px));
  gap: 12px;
}
.back-link { min-height: 44px; padding: 10px 0; color: #555; line-height: 24px; }
.back-link:hover { color: #111; transform: none; }
.product-info { padding-top: 12px; }
.product-brand { margin: 0 0 8px; line-height: 20px; }
.product-info h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: .025em; }
.product-price { margin: 12px 0 24px; line-height: 24px; }
.choice-label { margin-bottom: 8px; line-height: 20px; }
.purchase-actions { margin-top: 24px; gap: 8px; }
.product-description { margin: 24px 0; line-height: 1.55; }
.product-details summary { min-height: 56px; padding: 16px 0; line-height: 24px; }
.product-photo { display: grid; place-items: center; width: 100%; height: 100%; }
.product-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-photo img, .gallery-thumb img, .cart-item-image img {
  transform: translate(var(--image-x, 0%), var(--image-y, 0%)) !important;
}
.gallery-thumbs { align-items: center; gap: 8px; margin: 0; }
.gallery-thumb { width: 56px; height: 68px; flex-basis: 56px; }
.photo-index { bottom: 8px; padding: 5px 10px; line-height: 18px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gallery-arrow { background: rgba(255,255,255,.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
.cart-item { padding-block: 20px; }
.cart-item-info p:last-child { margin-bottom: 0; }
.order-summary > p { line-height: 1.5; }
@media (min-width: 1100px) {
  .cart-grid { --cart-heading-height: 52px; --cart-row-gap: 20px; }
  .cart-columns {
    height: var(--cart-heading-height);
    padding-block: 0;
    align-items: center;
    line-height: 20px;
  }
  .cart-item { align-items: start; padding-top: var(--cart-row-gap); }
  .cart-product { align-items: start; }
  .cart-item-info { padding-top: 0; }
  .cart-item-controls { padding-top: 0; align-self: start; }
  .cart-item-price { min-height: var(--control-height); display: flex; align-items: center; justify-content: flex-end; padding-top: 0; }
  .order-summary { padding: 0 24px 20px; }
  .summary-total {
    height: calc(var(--cart-heading-height) - 1px);
    margin: 0 0 var(--cart-row-gap);
    padding: 0;
    align-items: center;
    line-height: 20px;
  }
  .summary-total strong { line-height: 20px; }
  .checkout-button { height: var(--control-height); min-height: var(--control-height); margin: 0; padding: 12px 16px; }
  .order-summary > p { margin: var(--cart-row-gap) 0 0; }
}
@media (max-width: 1099px) {
  .order-summary { padding: 16px 20px; }
  .summary-total { margin: 0 0 16px; padding: 0; }
  .order-summary > p { margin: 16px 0 0; }
}
/* The persistent prompt and product label belong to the same interface. */
.tap-hint, .garment-tooltip, .swipe-hint {
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(94,94,98,.62);
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: .875rem;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: .01em;
}
.garment-tooltip {
  padding: 14px 22px;
  border: 0;
  background: rgba(94,94,98,.62);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.tap-hint, .swipe-hint { border: 1px solid rgba(255,255,255,.34); }
.tap-hint { padding: 13px 18px; gap: 12px; font-size: 1rem; line-height: 22px; }
.tap-hint i { flex: 0 0 10px; width: 10px; height: 10px; box-shadow: 0 0 12px rgba(255,255,255,.65); }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.85); } }
/* Empty notifications must never leave a visible pill on the home screen. */
.toast:empty { display: none; }
@media (max-width: 700px) {
  .product-layout { padding-top: 112px; }
  .gallery-column { height: min(580px, calc(100svh - 136px)); grid-template-rows: 44px minmax(0, 1fr) 60px; gap: 8px; }
  .gallery-thumb { width: 50px; height: 60px; flex-basis: 50px; }
  .product-info { padding-top: 24px; }
  .tap-hint { display: flex; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 44px); white-space: nowrap; }
  .swipe-hint { padding: 7px 12px; font-size: .75rem; line-height: 18px; }
}

/* Align the column heading with the counter itself, excluding the remove button. */
.cart-view { padding-top: 156px; }
.cart-columns span:nth-child(2) { width: 136px; max-width: 100%; text-align: center; justify-self: start; }
.cart-item-controls { display: grid; grid-template-columns: 136px 44px; align-items: center; justify-content: start; }
.quantity-control { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; justify-content: normal; padding: 0; }
.quantity-control button { display: grid; place-items: center; width: 44px; height: 46px; line-height: 20px; }
.quantity-control span { display: block; min-width: 0; width: 100%; line-height: 20px; font-variant-numeric: tabular-nums; }
.remove-item { height: 48px; }
@media (max-width: 700px) {
  .cart-view { padding-top: 120px; }
}

/* Begin the hero push-in with the first painted frame, including on reload. */
.home-view:not([hidden]) .scene-media {
  animation: heroPushIn 2.2s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes heroPushIn {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

.buy-button:disabled { cursor: not-allowed; opacity: .45; }
.menu-foot {
  margin-top: 26px;
  display: grid;
  gap: 17px;
  letter-spacing: 0;
  font-size: .78rem;
}
.menu-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.menu-foot-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #555750;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: color .2s ease;
}
.menu-foot-links button:hover, .menu-foot-links button:focus-visible { color: #111; text-decoration: underline; }
.menu-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #858780;
}
.editorial-view {
  min-height: 100svh;
  padding: clamp(135px, 13vw, 200px) clamp(20px, 6vw, 96px) 90px;
  background: #fff;
}
.editorial-shell { max-width: 790px; margin: 0 auto; }
.editorial-shell > .section-label { margin: 42px 0 12px; }
.editorial-shell h1 { margin: 0 0 32px; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -.05em; }
.editorial-muted { color: #7b7c78; }
.editorial-copy { color: #363733; font-size: 1rem; line-height: 1.65; }
.editorial-copy h2 { margin: 38px 0 8px; font-size: 1.18rem; line-height: 1.3; font-weight: 500; }
.editorial-copy p { margin: 0 0 16px; }
.editorial-copy .legal-note { padding: 18px 20px; background: #f3f3f0; color: #444540; border-radius: 12px; }
.editorial-copy strong { font-weight: 600; }
@media (max-width: 700px) {
  .menu-nav { margin: 26px 0 18px; }
  .menu-nav button { padding-block: 11px; font-size: 1.45rem; }
  .menu-foot { margin-top: auto; padding-top: 16px; gap: 12px; }
  .editorial-view { padding: 132px 22px 65px; }
  .editorial-shell > .section-label { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-view:not([hidden]) .scene-media { animation: none; }
}

/* =====================================================================
   ПРАВКИ v2 (по замечаниям коллег). Всё ниже переопределяет старые стили.
   ===================================================================== */

/* --- Главная: без «резинки», белых рамок и масштабирования (iPad/iPhone) --- */
html, body { overscroll-behavior: none; }
html:has(body[data-route="home"]) { background: #15180e; }
body[data-route="home"] { position: fixed; inset: 0; overflow: hidden; background: #15180e; }
.home-view { position: fixed; inset: 0; height: auto; min-height: 0; touch-action: none; }
/* Долгое нажатие на вещь не должно открывать системное меню «Открыть / Скопировать ссылку». */
.home-view, .home-view * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body { touch-action: manipulation; }
@media (max-width: 700px) {
  .home-view, .scene-scroller { touch-action: pan-x; }
}

/* --- Обводка вещи ---
   Сцена повторяет геометрию фото (1536×864, «cover»), чтобы свечение совпадало с вещами.
   Контур свечения — маска (растеризуется один раз), внутри вращается «прожектор»:
   анимируется только transform, это делает видеокарта, без перерисовки на каждом кадре. */
/* Размер сцены (--stage-w/--stage-h) считает JS: так работает и в старом Safari (iOS 15 и ниже). */
.glow-stage {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: var(--stage-w, 100%); height: var(--stage-h, 100%);
  transform: translate(-50%, -50%); pointer-events: none;
}
.garment-beam {
  position: absolute; overflow: hidden;
  /* --vw/--vh — размер фото в пикселях: широкое 1536×864, вертикальное 1086×1448 */
  left: calc(var(--x) / var(--vw, 1536) * 100%); top: calc(var(--y) / var(--vh, 864) * 100%);
  width: calc(var(--w) / var(--vw, 1536) * 100%); height: calc(var(--h) / var(--vh, 864) * 100%);
  -webkit-mask: var(--glow) center / 100% 100% no-repeat; mask: var(--glow) center / 100% 100% no-repeat;
  opacity: 0; transition: opacity .25s ease;
}
.garment-beam[data-beam="bird"] { --glow: url(../assets/glow-bird.svg?v=7c2bd947); }
.garment-beam[data-beam="henley"] { --glow: url(../assets/glow-henley.svg?v=09a4790e); }
.garment-beam[data-beam="ash"] { --glow: url(../assets/glow-ash.svg?v=308f047e); }
/* Слой для цельного контура: по умолчанию пуст — виден только бегущий луч, след за ним гаснет */
.garment-beam::before { content: ""; position: absolute; inset: 0; background: transparent; }
/* Сам луч: яркая дуга с затухающим хвостом */
.garment-beam i {
  position: absolute; inset: -80%;
  background: conic-gradient(from 0deg, transparent 0 64%, rgba(255,255,255,.18) 78%, rgba(255,255,255,.8) 93%, #fff 97.5%, transparent 100%);
  animation: beamSpin 3.2s linear infinite; animation-play-state: paused;
  will-change: transform;
}
@keyframes beamSpin { to { transform: rotate(360deg); } }
.garment-beam.is-active { opacity: 1; }
.garment-beam.is-active i { animation-play-state: running; }
/* Телефон: тап — вещь обводится целиком, затем переход на страницу товара */
.garment-beam.is-tapped { opacity: 1; transition-duration: .1s; }
.garment-beam.is-tapped::before { background: rgba(255, 255, 255, .85); }
.garment-beam.is-tapped i { animation-play-state: running; animation-duration: 1.2s; }
/* Запасной режим, если устройство всё же не тянет анимацию: мягкая пульсация контура */
body.selection-lite .garment-beam i { display: none; }
body.selection-lite .garment-beam.is-active::before { background: #fff; animation: beamBreath 2s ease-in-out infinite; }
@keyframes beamBreath { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .garment-beam i { display: none; }
  .garment-beam.is-active::before { background: #fff; }
}

/* --- Плашка с названием при наведении: на 15% меньше --- */
.garment-tooltip { padding: 12px 19px; font-size: clamp(.85rem, 1.36vw, 1.275rem); }

/* --- Меню: непрозрачное, без цифр, две группы --- */
.menu-panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-nav { border-top: 0; }
.menu-group { border-top: 1px solid var(--shop-line); }
.menu-group + .menu-group { margin-top: 32px; }
.menu-nav button { display: block; }

/* --- Страница товара --- */
.product-layout { padding-top: 116px; }
.gallery-column { grid-template-rows: 44px minmax(0, 1fr) 24px; height: min(760px, calc(100svh - 140px)); }
/* «Вернуться на главную» и «EMPATHY CRISIS» на одной линии */
.product-info { padding-top: 0; }
.product-brand { display: flex; align-items: center; min-height: 44px; margin: 0 0 4px; }
/* Фото выровнены в самих файлах, никаких сдвигов */
.product-photo img, .cart-item-image img { transform: none !important; }
/* Только счётчик фото под картинкой, без миниатюр */
.photo-index {
  position: static; justify-self: center; transform: none;
  padding: 0; border: 0; background: none; box-shadow: none;
  color: #777; font-size: .75rem; letter-spacing: .13em; line-height: 24px;
}

/* --- Корзина --- */
.cart-view { padding-top: 116px; }
.cart-heading { margin: 16px 0 20px; }
/* Фото товаров — одинаковые квадраты, по центру строки */
.cart-item-image { width: 104px; height: 104px; display: grid; place-items: center; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item, .cart-product { align-items: center; }
.cart-item-controls { align-self: center; }
@media (min-width: 1100px) {
  /* Как в первой версии: «Итого» в рамке на одной линии с шапкой «Товар / Количество / Сумма»,
     кнопка «Перейти к оформлению» — на одной линии с кнопками количества первой вещи */
  .cart-product { grid-template-columns: 104px minmax(0, 1fr); }
  .cart-item, .cart-product { align-items: start; }
  .cart-item-controls { align-self: start; }
  .cart-item-price { min-height: var(--control-height); }
}
/* Планшет и телефон: сначала товары, потом итог */
@media (max-width: 1099px) {
  .order-summary { order: 0; }
}

/* --- Телефон: отступы --- */
@media (max-width: 700px) {
  .product-layout { padding-top: 84px; padding-bottom: 32px; }
  .gallery-column { height: auto; grid-template-rows: 40px auto 24px; gap: 6px; }
  .product-photo { height: auto; aspect-ratio: 1 / 1; max-height: 52svh; }
  .product-info { padding-top: 16px; }
  .product-brand { min-height: 0; }
  .cart-view { padding-top: 92px; }
  .cart-item-image { width: 84px; height: 84px; }
  .cart-product { grid-template-columns: 84px minmax(0, 1fr); }
}

/* --- Вертикальное фото для телефонов и планшетов в портретной ориентации ---
   Фото 3:4 на весь экран (режим «cover»): без полос и размытия,
   на узких телефонах края кадра по бокам немного срезаются (вещи стоят по центру). */
.scene-portrait { display: none; }
.portrait-stage { --vw: 1086; --vh: 1448; }
.garment-beam[data-beam="bird"]:where(.portrait-stage *) { --glow: url(../assets/glow-m-bird.svg?v=7d70bb77); }
.garment-beam[data-beam="henley"]:where(.portrait-stage *) { --glow: url(../assets/glow-m-henley.svg?v=226c963b); }
.garment-beam[data-beam="ash"]:where(.portrait-stage *) { --glow: url(../assets/glow-m-ash.svg?v=2ec6c984); }
@media (max-aspect-ratio: 4/5) {
  .scene-scroller, .swipe-hint { display: none !important; }
  .home-view { touch-action: none; }
  /* Полосы Safari (у часов и у кнопок) — в цвет травы по краям фото */
  html:has(body[data-route="home"]), body[data-route="home"] { background: #5e5a30; }
  .scene-portrait { display: block; position: absolute; inset: 0; overflow: hidden; background: #5e5a30; }
  .portrait-frame {
    position: absolute; inset: 0;
    animation: heroPushIn 2.2s cubic-bezier(.22,.61,.36,1) both;
  }
  .portrait-frame .hero-image { object-fit: cover; object-position: center; }
  .portrait-frame .hotspot-map { position: absolute; inset: 0; width: 100%; height: 100%; }
  .tap-hint { bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-aspect-ratio: 4/5) and (prefers-reduced-motion: reduce) {
  .portrait-frame { animation: none; }
}

/* Телефон: фото уходит под плавающие кнопки Safari внизу.
   Safari (iOS 26) не рисует «приклеенные» (position: fixed) элементы под своими панелями,
   а заливает эту зону их цветом. Поэтому здесь главная — обычный блок в потоке страницы
   высотой 100lvh (экран вместе с областью под панелями), а прокрутку запрещаем отдельно. */
@media (max-aspect-ratio: 4/5) {
  html:has(body[data-route="home"]) { overflow: hidden; overscroll-behavior: none; }
  body[data-route="home"] { position: relative; inset: auto; height: 100vh; height: 100lvh; overflow: hidden; }
  .home-view { position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: 100vh; height: 100lvh; }
  .tap-hint { position: fixed; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 8px); }
}

/* --- Форма оформления заказа --- */
.checkout-body textarea { min-height: 72px; padding: 12px var(--space-md); border: 1px solid var(--shop-line); border-radius: var(--radius-field); background: #fafafa; color: var(--ink); font: inherit; font-size: 1rem; resize: vertical; }
.checkout-body textarea:focus { border-color: #777; background: #fff; outline: none; }
.delivery-choice { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: 0; padding: 0; border: 0; }
.delivery-choice legend { width: 100%; margin-bottom: var(--space-sm); padding: 0; color: #666860; font-size: .875rem; }
.checkout-body .choice { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--shop-line); border-radius: var(--radius-pill); color: var(--ink); cursor: pointer; }
.checkout-body .choice:has(input:checked) { border-color: #111; }
.checkout-body .choice input, .checkout-body .consent input { width: 18px; height: 18px; margin: 0; accent-color: #111; }
.checkout-body .consent { flex-direction: row; align-items: flex-start; gap: 10px; color: #555; line-height: 1.45; cursor: pointer; }
.checkout-body .consent input { flex: 0 0 18px; margin-top: 1px; }
.checkout-body .consent a { color: inherit; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; padding: 12px var(--space-md); border-radius: var(--radius-field); background: #fdeeee; color: #9b1c1c; font-size: .875rem; line-height: 1.4; }
.checkout-submit:disabled { opacity: .6; cursor: wait; }

.checkout-success .checkout-submit + .checkout-submit { margin-top: var(--space-sm); background: #f4f4f4; border-color: var(--shop-line); color: #333; }

/* --- iPad: фото товара всегда целиком в рамке (Safari не всегда ограничивал высоту картинки в сетке) --- */
.product-photo { position: relative; }
.product-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; object-fit: contain; object-position: center;
}

/* --- Логотип: без увеличения при нажатии/наведении — на iPad Safari оно давало
   мелькающий прямоугольник под стеклянной шапкой. Вместо этого — мягкое затемнение. --- */
.wordmark, .wordmark:hover, .wordmark:active, .wordmark:focus-visible { transform: none !important; }
.wordmark { transition: opacity .2s ease; border-radius: 999px; }
@media (hover: hover) { .wordmark:hover { opacity: .7; } }
.wordmark:active { opacity: .6; }
.wordmark:focus:not(:focus-visible) { outline: none; box-shadow: none; }
