/* fonts.css */
/* Локальные веб-копии; исходные TTF и лицензии сохранены в fonts/. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/web/manrope-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/web/cormorant-garamond-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/web/cormorant-garamond-italic.woff2") format("woff2");
}

/* variables.css */
/* Общие настройки оформления. Значения сохраняют текущий внешний вид. */
:root {
  /* Палитра: фоны, текст, линии и состояния. */
  --paper: #f7f6f1;
  --stage: #e9e6de;
  --ink: #30312b;
  --line: #d6d4cb;
  --focus: #797b54;
  --surface-rail: #f4f3ed;
  --surface-product: #ebe9e1;
  --text-product: #7d7e70;
  --favorite: #8e403c;
  --stage-light: #f5f2e9;
  --stage-dark: #e7e3d9;
  --text-season: #757569;
  --text-vertical: #7d7b6f;
  --runway-line: #bab7aa;
  --model-shadow: #48433319;
  --model-ground-shadow: #77705b33;
  --text-script: #747465;
  --line-caption: #959486;
  --text-secondary: #626358;
  --backdrop: #26251e55;
  --text-muted: #77776b;
  --surface-detail: #e9e6dd;
  --floor-shadow: #675f4633;
  --line-motion: #aaa895;
  --surface-alternate: #e3e1d9;
  --line-fitting: #c7c5b9;
  --line-input: #b9b8ac;
  --mask-opaque: #000;
  --white: #fff;

  /* Шрифты и повторяющиеся размеры текста. */
  --font-body: Manrope, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --text-micro: 7px;
  --text-tiny: 8px;
  --text-caption: 9px;
  --text-label: 10px;
  --text-small: 11px;
  --text-body: 12px;
  --text-input: 13px;

  /* Общие размеры и состояния интерактивных элементов. */
  --control-size: 44px;
  --hover-opacity: 0.62;
}

/* base.css */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:hover,
a:hover {
  opacity: var(--hover-opacity);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
.stage:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.wordmark {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 4px;
  white-space: nowrap;
}
.wordmark span {
  font-size: var(--text-label);
  vertical-align: top;
  letter-spacing: 0;
  margin-left: 3px;
}
nav {
  display: flex;
  gap: 33px;
  align-items: center;
  font-size: var(--text-label);
  letter-spacing: 1px;
}
nav button {
  font-size: var(--text-label);
  padding: 0;
  letter-spacing: 1px;
}
.active {
  border-bottom: 1px solid;
  padding-bottom: 7px;
  margin-top: 7px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--text-label);
  letter-spacing: 1px;
}
.currency select {
  border: 0;
  background: none;
  font-size: var(--text-label);
  cursor: pointer;
}
.bag-icon {
  font-size: 20px;
  margin-left: 8px;
}

/* На прямой ссылке образа не показываем главную, пока defer-скрипты загружаются. */
html.look-route main:not(.look-page) {
  display: none;
}

/* home.css */
.runway {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 650px;
  height: calc(100svh - 145px);
  max-height: 1000px;
}
.products {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 23px 18px 0;
  background: var(--surface-rail);
  z-index: 3;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-tiny);
  letter-spacing: 0.8px;
  margin-bottom: 15px;
}
.product-card {
  border-top: 1px solid var(--line);
  position: relative;
  padding: 15px 0 13px;
}
.product-card .photo-button {
  display: block;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: var(--surface-product);
  position: relative;
}
.sprite {
  background-image: url("../assets/models-cutout.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
}
.product-card .sprite {
  position: absolute;
  inset: 0 20%;
  background-size: 400% 100%;
  transform: scale(1.6);
  transform-origin: 50% 20%;
}
.product-card:nth-child(2) .sprite {
  transform: scale(1.65);
  transform-origin: 50% 87%;
}
.product-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: var(--text-caption);
  line-height: 1.7;
}
.product-info strong {
  font-weight: 500;
  display: block;
}
.product-info span {
  color: var(--text-product);
  font-size: var(--text-caption);
}
.add-mini {
  font-size: 21px;
  align-self: center;
}
.favorite {
  position: absolute;
  right: 8px;
  top: 22px;
  font-size: 20px;
  z-index: 1;
}
.favorite.saved {
  color: var(--favorite);
}
.all-look {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: var(--text-caption);
  letter-spacing: 1px;
  margin-top: auto;
}
.stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 45% 37%, var(--stage-light) 0, var(--stage-dark) 75%);
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
}
.stage:active {
  cursor: grabbing;
}
.season {
  position: absolute;
  top: 42px;
  right: 42px;
  text-align: right;
  z-index: 2;
}
.season > span {
  font-size: var(--text-tiny);
  letter-spacing: 2px;
}
.season h1 {
  font:
    400 clamp(30px, 3.6vw, 65px)/1.1 var(--font-display);
  margin: 14px 0;
}
.season p {
  font-size: var(--text-caption);
  line-height: 1.9;
  letter-spacing: 0.5px;
  color: var(--text-season);
}
.vertical-label {
  position: absolute;
  left: 25px;
  top: 37px;
  writing-mode: vertical-rl;
  font-size: var(--text-tiny);
  letter-spacing: 1.5px;
  color: var(--text-vertical);
}
.runway-line {
  position: absolute;
  bottom: 84px;
  left: 12%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--runway-line), transparent);
  transform: rotate(-4deg);
}
.models {
  position: absolute;
  inset: 100px 0 82px;
  pointer-events: none;
}
.model {
  position: absolute;
  width: 43%;
  height: 100%;
  left: 11%;
  bottom: 0;
  transition:
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1s,
    opacity 1s;
  transform-origin: 50% 100%;
  will-change: transform;
  filter: drop-shadow(8px 16px 7px var(--model-shadow));
}
.model::after {
  content: "";
  position: absolute;
  width: 45%;
  height: 7px;
  bottom: 1%;
  left: 27%;
  background: var(--model-ground-shadow);
  filter: blur(7px);
  border-radius: 50%;
}
.model .sprite {
  position: absolute;
  inset: 0;
  background-size: 400% 100%;
  background-position: var(--pos) 50%;
}
.look-caption {
  position: absolute;
  bottom: 104px;
  right: 40px;
  text-align: right;
  z-index: 5;
}
.script {
  font:
    italic 23px var(--font-display);
  color: var(--text-script);
}
.look-title {
  font:
    400 39px var(--font-display);
  letter-spacing: 3px;
  margin: 4px 0 15px;
}
.look-caption button {
  font-size: var(--text-tiny);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--line-caption);
  padding: 0 0 5px;
}
.look-caption button span {
  margin-left: 24px;
}
.stage-bottom {
  position: absolute;
  bottom: 25px;
  left: 35px;
  right: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  font-size: var(--text-tiny);
  letter-spacing: 1px;
}
.drag-hint > span {
  font-size: 24px;
  vertical-align: middle;
  margin-right: 10px;
}
.arrows {
  display: flex;
  gap: 24px;
  align-items: center;
}
.arrows button {
  font-size: 26px;
}
.collection-strip {
  height: 55px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  font-size: var(--text-tiny);
  letter-spacing: 1px;
}
.story {
  padding: 85px 12% 90px;
}
.eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 1.4px;
}
.story h2 {
  font:
    400 clamp(45px, 5.5vw, 85px)/1.05 var(--font-display);
  letter-spacing: -1px;
  margin: 35px 0 45px;
}
.story-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  max-width: 900px;
  margin-left: auto;
  font-size: var(--text-body);
  line-height: 2;
  color: var(--text-secondary);
}
.story-bottom p {
  margin-top: 0;
}
.story-bottom a {
  font-size: var(--text-caption);
  color: var(--ink);
  letter-spacing: 1px;
  border-bottom: 1px solid;
  padding-bottom: 6px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 35px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer > span,
footer > button {
  font-size: var(--text-tiny);
  letter-spacing: 1px;
}
footer .wordmark {
  font-size: 20px;
}

/* components.css */
dialog {
  position: fixed;
  border: 0;
  padding: 48px;
  background: var(--paper);
  color: var(--ink);
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(5px);
}
.close {
  position: absolute;
  right: 17px;
  top: 12px;
  font-size: 30px;
}
dialog h2 {
  font:
    400 42px/1.1 var(--font-display);
  margin: 18px 0 28px;
}
dialog p {
  font-size: var(--text-body);
  line-height: 1.9;
  color: var(--text-muted);
}
.dark-button {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 24px;
  width: 100%;
  font-size: var(--text-label);
  letter-spacing: 1px;
}
.detail-photo {
  height: 300px;
  background-color: var(--surface-detail);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.detail-photo .sprite {
  height: 100%;
  width: 230px;
  margin: auto;
}
.sizes {
  display: flex;
  gap: 9px;
  margin: 20px 0;
}
.sizes button {
  border: 1px solid var(--line);
  min-width: 45px;
  padding: 10px;
}
.sizes button.selected {
  background: var(--ink);
  color: var(--white);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: var(--text-body);
}
.cart-row small {
  display: block;
  color: var(--text-muted);
  margin-top: 8px;
}
.cart-row button {
  font-size: var(--text-label);
  text-decoration: underline;
}
.cart-total {
  border-top: 1px solid var(--ink);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
}
.demo-note {
  font-size: var(--text-label) !important;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 16px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-body);
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* responsive.css */
@media (min-width: 1600px) {
  .runway {
    grid-template-columns: 280px 1fr;
  }
  .product-card .photo-button {
    height: 230px;
  }
  .models {
    inset: 90px 0 82px;
  }
}
@media (max-width: 900px) {
  header {
    height: 75px;
    padding: 0 22px;
  }
  .wordmark {
    font-size: 22px;
  }
  nav {
    gap: 20px;
  }
  nav button {
    display: none;
  }
  .header-right {
    gap: 12px;
  }
  .runway {
    grid-template-columns: 185px 1fr;
    min-height: 600px;
    height: calc(100svh - 125px);
  }
  .products {
    padding: 20px 12px 0;
  }
  .product-card .photo-button {
    height: 160px;
  }
  .season {
    right: 25px;
    top: 28px;
  }
  .season h1 {
    font-size: 40px;
  }
  .model {
    width: 60%;
    left: 0;
  }
  .models {
    inset: 150px 0 95px;
  }
  .stage-bottom {
    left: 20px;
    right: 20px;
  }
  .drag-hint {
    font-size: 0;
  }
  .drag-hint > span {
    font-size: 24px;
  }
  .look-caption {
    right: 25px;
    bottom: 105px;
  }
  .look-title {
    font-size: 30px;
  }
  .collection-strip {
    padding: 0 20px;
  }
  .collection-strip > span:nth-child(2) {
    display: none;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  header {
    height: 72px;
    padding: 0 18px;
    gap: 10px;
  }
  header .wordmark {
    font-size: 19px;
    letter-spacing: 2px;
  }
  nav {
    display: none;
  }
  .header-right {
    font-size: var(--text-caption);
    gap: 8px;
  }
  .bag-icon {
    display: none;
  }
  .runway {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 0;
  }
  .stage {
    height: calc(82svh - 72px);
    min-height: 500px;
  }
  .season {
    top: 25px;
    right: 22px;
  }
  .season h1 {
    font-size: 37px;
  }
  .season p {
    font-size: var(--text-tiny);
  }
  .vertical-label {
    left: 16px;
    top: 25px;
    font-size: var(--text-micro);
  }
  .models {
    inset: 125px 0 80px;
  }
  .model {
    width: 65%;
    left: -4%;
  }
  .look-caption {
    bottom: 84px;
    right: 20px;
  }
  .script {
    font-size: 19px;
  }
  .look-title {
    font-size: 26px;
    letter-spacing: 1px;
  }
  .look-caption button {
    font-size: var(--text-micro);
  }
  .stage-bottom {
    bottom: 19px;
    left: 18px;
    right: 18px;
  }
  .arrows {
    gap: 20px;
  }
  .products {
    padding: 18px 18px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .rail-heading {
    margin-bottom: 10px;
  }
  #productRail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .product-card .photo-button {
    height: 180px;
  }
  .product-card {
    padding-top: 10px;
  }
  .favorite {
    top: 15px;
  }
  .all-look {
    padding: 16px 0;
  }
  .collection-strip {
    padding: 16px 18px;
    height: auto;
    gap: 20px;
    line-height: 1.8;
    font-size: var(--text-micro);
  }
  .story {
    padding: 55px 24px;
  }
  .story h2 {
    font-size: 46px;
    margin: 25px 0 30px;
  }
  .story-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    font-size: var(--text-body);
  }
  footer {
    padding: 28px 20px;
  }
  footer > span:nth-child(2) {
    order: 3;
    width: 100%;
    font-size: var(--text-micro);
  }
  dialog {
    padding: 40px 24px;
  }
  .toast {
    width: 90%;
    text-align: center;
  }
  .detail-photo {
    height: 250px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* runway.css */
/* Continuous runway: keyed image edges, spring motion and synchronized packshots. */
.products {
  overflow: hidden;
  min-height: 0;
}
#productRail {
  display: block;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  mask-image: linear-gradient(var(--mask-opaque) 0%, var(--mask-opaque) 92%, transparent 100%);
}
.rail-track {
  will-change: transform;
}
.rail-group {
  display: flow-root;
}
.product-card .photo-button {
  background: var(--surface-rail);
  height: 190px;
}
.product-pack {
  display: block;
  height: 100%;
  width: 142.5px;
  margin: auto;
  background: url("../assets/products-sheet.png") no-repeat;
  background-size: 400% 200%;
  max-width: 100%;
}
.model {
  left: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 3/8;
  transition: none !important;
  transform-origin: 50% 100%;
  will-change: transform, filter, opacity;
}
.model::after {
  display: none;
}
.model-image {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.floor-shadow {
  position: absolute;
  bottom: 0.5%;
  height: 7px;
  left: 7%;
  width: 86%;
  border-radius: 50%;
  background: var(--floor-shadow);
  filter: blur(6px);
}
.models:not(.initialized) .model {
  left: 17%;
}
@media (max-width: 600px) {
  .models:not(.initialized) .model { left: 13%; }
}
.motion-toggle {
  font-size: 17px;
  border: 1px solid var(--line-motion);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 25px;
}
.stage-bottom {
  gap: 16px;
}
.drag-hint {
  margin-right: auto;
}
.stage.dragging {
  cursor: grabbing;
}
.detail-photo .product-pack {
  width: 225px;
  height: 300px;
  max-width: 100%;
}
.detail-model {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.look-caption {
  pointer-events: none;
}
.look-caption button {
  pointer-events: auto;
}
.season {
  pointer-events: none;
}
@media (max-width: 900px) {
  .product-card .photo-button {
    height: 165px;
  }
  .product-pack {
    width: 123.75px;
  }
}
@media (max-width: 600px) {
  .products {
    height: 310px;
    flex: none;
  }
  .rail-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .product-card .photo-button {
    height: 175px;
  }
  .product-pack {
    width: 131.25px;
  }
  .models {
    inset: 135px 0 125px;
  }
  .look-caption {
    bottom: 67px;
    right: 20px;
  }
  .look-title {
    font-size: 25px;
    margin: 2px 0 7px;
  }
  .script {
    font-size: 19px;
  }
  .look-caption button {
    font-size: var(--text-micro);
  }
  .stage-bottom {
    bottom: 18px;
  }
  .stage {
    min-height: 570px;
  }
  .detail-photo .product-pack {
    height: 250px;
    width: 187.5px;
  }
}
@media (max-width: 600px) {
  .models {
    inset: 135px 0 160px;
  }
}

/* Предметные фото теперь используют адаптивные img вместо CSS-фонов. */
img.product-pack {
  object-fit: contain;
  background: none;
}

/* collection.css */
/* Collection first: browse, save, prepare a fitting. */
[hidden] {
  display: none !important;
}
section[id] {
  scroll-margin-top: 24px;
}
.header-fitting {
  border-bottom: 1px solid;
  padding: 8px 0;
}
.section-pad {
  padding: 80px 6%;
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}
.section-top h2 {
  font:
    400 clamp(42px, 5vw, 72px)/1.03 var(--font-display);
  margin: 24px 0 0;
}
.section-top > p {
  font-size: var(--text-body);
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 320px;
}
.filters {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filters button {
  font-size: var(--text-small);
  border: 1px solid var(--line);
  padding: 13px 18px;
  border-radius: 30px;
  min-height: var(--control-size);
}
.filters button.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.filters span {
  margin-left: 12px;
  opacity: 0.6;
}
.look-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.look-photo {
  height: 360px;
  background: var(--stage);
  position: relative;
  overflow: hidden;
}
.look-card:nth-child(even) .look-photo {
  background: var(--surface-alternate);
}
.look-open {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 30px 10px 0;
}
.look-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.look-open:hover {
  opacity: 1;
}
.look-open:hover img {
  transform: scale(1.035);
}
.look-index {
  position: absolute;
  left: 16px;
  top: 20px;
  font-size: var(--text-tiny);
  letter-spacing: 1px;
  pointer-events: none;
}
.look-save {
  position: absolute;
  right: 7px;
  top: 6px;
  font-size: 25px;
  width: var(--control-size);
  height: var(--control-size);
}
.look-save[aria-pressed="true"] {
  color: var(--favorite);
}
.look-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.look-card h3 {
  font:
    400 27px var(--font-display);
  margin: 18px 0 8px;
}
.look-card-title a {
  min-width: var(--control-size);
  min-height: var(--control-size);
  font-size: 23px;
}
.look-card p,
.collection-note {
  font-size: var(--text-small);
  line-height: 1.9;
  color: var(--text-secondary);
}
.collection-note {
  margin: 30px 0 0;
}
.story {
  border-top: 1px solid var(--line);
}
.fitting {
  background: var(--stage);
}
.fitting-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 50px 0;
}
.fitting-steps article {
  border-top: 1px solid var(--line-fitting);
  padding-top: 20px;
}
.fitting-steps span {
  font-size: var(--text-label);
  color: var(--text-secondary);
}
.fitting h3 {
  font-weight: 500;
  font-size: 15px;
  margin: 20px 0 12px;
}
.fitting p {
  font-size: var(--text-body);
  line-height: 1.9;
  color: var(--text-secondary);
}
.fitting-action {
  border-top: 1px solid var(--line-fitting);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.fitting-action .dark-button {
  width: auto;
  min-height: 52px;
}
.fitting-action h3 {
  font:
    400 32px var(--font-display);
}
.detail-fitting {
  display: block;
  text-align: center;
  font-size: var(--text-label);
  letter-spacing: 1px;
  padding: 20px 0;
}
.saved-row {
  display: flex;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.saved-thumb {
  height: 130px;
  min-width: 85px;
  background: var(--stage);
}
.saved-thumb img {
  height: 100%;
  width: 85px;
  object-fit: contain;
}
.saved-row h3 {
  font:
    400 26px var(--font-display);
  margin: 0;
}
.saved-row button {
  font-size: var(--text-small);
  text-decoration: underline;
  padding: 10px 0;
  min-height: var(--control-size);
}
.notes-label {
  display: block;
  font-size: var(--text-body);
  margin: 25px 0 12px;
}
textarea {
  font: inherit;
  font-size: var(--text-input);
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line-input);
  background: transparent;
  padding: 14px;
  color: var(--ink);
}
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
dialog[open] {
  overscroll-behavior: contain;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.favorite,
.add-mini,
.arrows button,
.close {
  min-width: var(--control-size);
  min-height: var(--control-size);
}
.product-info {
  align-items: center;
}
.look-caption button {
  min-height: var(--control-size);
}
.header-right button {
  min-height: var(--control-size);
}
.motion-toggle {
  min-width: var(--control-size);
  min-height: var(--control-size);
  line-height: 40px;
}
.product-card .favorite {
  top: 15px;
  right: 0;
}
.stage-bottom {
  bottom: 18px;
}
.look-caption {
  bottom: 100px;
}
.product-pack {
  pointer-events: none;
}
@media (max-width: 1100px) {
  .look-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .look-photo {
    height: 420px;
  }
  header {
    gap: 18px;
  }
  nav {
    gap: 16px;
  }
  .header-right {
    gap: 15px;
  }
}
@media (max-width: 600px) {
  header {
    height: auto;
    min-height: 94px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 12px 18px 0;
  }
  header nav {
    display: flex;
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    padding: 8px 0;
    font-size: var(--text-caption);
  }
  header nav a {
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  .active {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }
  .header-right {
    font-size: var(--text-tiny);
  }
  .header-fitting {
    display: none;
  }
  .section-pad {
    padding: 48px 20px;
  }
  .section-top {
    display: block;
    margin-bottom: 25px;
  }
  .section-top h2 {
    font-size: 44px;
  }
  .section-top > p {
    margin: 22px 0 0;
  }
  .filters {
    gap: 8px;
  }
  .filters button {
    font-size: var(--text-label);
    padding: 10px 14px;
  }
  .look-grid {
    gap: 24px 12px;
  }
  .look-photo {
    height: 260px;
  }
  .look-index {
    left: 10px;
    top: 17px;
    font-size: var(--text-micro);
  }
  .look-open {
    padding: 35px 0 0;
  }
  .look-card h3 {
    font-size: 23px;
  }
  .look-card-title {
    align-items: start;
  }
  .look-card-title a {
    margin-top: 9px;
    min-width: 30px;
  }
  .look-card p {
    font-size: var(--text-label);
    margin-top: 0;
  }
  .fitting-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
  }
  .fitting-steps article {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0 12px;
  }
  .fitting-steps span {
    grid-row: 1/3;
    padding-top: 4px;
  }
  .fitting-steps h3 {
    margin: 0 0 8px;
  }
  .fitting-steps p {
    margin: 0;
    grid-column: 2;
  }
  .fitting-action {
    display: block;
  }
  .fitting-action .dark-button {
    width: 100%;
    margin: 10px 0;
  }
  .stage {
    height: 590px;
    min-height: 0;
  }
  .models {
    inset: 145px 0 130px;
  }
  .look-caption {
    bottom: 80px;
  }
  .look-caption .script {
    font-size: 20px;
  }
  .products {
    height: 320px;
  }
  .stage-bottom {
    gap: 8px;
  }
  .drag-hint {
    display: none;
  }
  .arrows {
    margin-left: auto;
  }
  .collection-strip {
    gap: 12px;
  }
  .collection-strip a {
    min-height: var(--control-size);
    display: flex;
    align-items: center;
  }
  .story h2 {
    font-size: 43px;
  }
  .saved-row {
    gap: 14px;
  }
  dialog h2 {
    font-size: 34px;
  }
  dialog {
    max-height: calc(100svh - 24px);
    padding: 45px 22px 25px;
  }
  .sizes {
    flex-wrap: wrap;
  }
  footer {
    gap: 18px;
  }
}
@media (max-width: 360px) {
  .look-photo {
    height: 225px;
  }
  .look-card h3 {
    font-size: 20px;
  }
  .season h1 {
    font-size: 32px;
  }
  .stage-bottom {
    left: 12px;
    right: 12px;
  }
  .arrows {
    gap: 10px;
  }
}

/* details.css */
/* Fixed square SVG geometry keeps hearts independent of font metrics. */
.favorite,
.look-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-size);
  height: var(--control-size);
  padding: 0;
  line-height: 1;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.heart-icon {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  flex: 0 0 22px;
  aspect-ratio: 1;
  overflow: visible;
}
.save-look-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
}

.look-card-title a {
  display: grid;
  place-items: center;
}

.models .model {
  pointer-events: auto;
  cursor: pointer;
}
.models .model:hover {
  opacity: 1;
}
.look-page {
  padding: 35px 6% 65px;
}
.look-back {
  display: inline-block;
  font-size: var(--text-small);
  letter-spacing: 1px;
  padding: 12px 0 28px;
}
.look-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 7%;
  align-items: start;
}
.look-gallery {
  min-width: 0;
}
.look-zoom {
  display: block;
  width: 100%;
  height: 720px;
  max-height: 85svh;
  background: var(--stage);
  overflow: hidden;
  cursor: zoom-in;
  padding: 20px;
}
.look-zoom:hover {
  opacity: 1;
}
.look-zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.look-zoom.enlarged {
  cursor: zoom-out;
}
.look-zoom.enlarged img {
  transform: scale(2);
}
.look-gallery > p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  text-align: center;
}
.look-description h1 {
  font:
    400 clamp(42px, 5vw, 70px)/1.05 var(--font-display);
  margin: 22px 0;
}
.look-description > p {
  font-size: var(--text-input);
  line-height: 1.9;
}
.look-description h2 {
  font-size: var(--text-input);
  font-weight: 500;
  margin: 30px 0 12px;
}
.look-description ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.look-description li {
  border-top: 1px solid var(--line);
}
.look-description li button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 18px;
  width: 100%;
  padding: 12px 0;
  font-size: var(--text-body);
}
.look-description .product-pack {
  width: 75px;
  height: 100px;
  margin: 0;
  flex: none;
}
.look-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 25px;
  font-size: var(--text-label);
  letter-spacing: 1px;
}
@media (max-width: 700px) {
  .look-page {
    padding: 20px;
  }
  .look-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .look-zoom {
    height: 65svh;
  }
  .look-description h1 {
    font-size: 46px;
  }
  .look-pagination {
    font-size: var(--text-caption);
  }
}

.look-zoom.enlarged {
  cursor: grab;
  touch-action: none;
}
.look-zoom.panning {
  cursor: grabbing;
}
.look-zoom img {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: 2px;
}
.wordmark span {
  margin-left: 0;
  align-self: flex-start;
}
.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
footer .brand-icon {
  width: 30px;
  height: 30px;
}
@media (max-width: 900px) {
  header .wordmark {
    font-size: 18px;
    letter-spacing: 1px;
    gap: 7px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 600px) {
  header .wordmark {
    font-size: 16px;
    letter-spacing: 0.6px;
    gap: 5px;
  }
  header .brand-icon {
    width: 27px;
    height: 27px;
  }
  header .wordmark span {
    font-size: var(--text-tiny);
  }
}

.selection-contacts {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.selection-contacts a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-align: center;
}
.selection-call {
  flex-wrap: wrap;
  gap: 8px 16px;
  border: 1px solid var(--line);
  padding: 16px 20px;
  font-size: var(--text-body);
}
.selection-call span {
  white-space: nowrap;
}

#savedDialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100dvh - 32px);
}
#savedDialog > .eyebrow,
#savedDialog > h2,
.selection-footer {
  flex-shrink: 0;
}
#savedLooks {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  flex: 1 1 auto;
}
.selection-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  background: var(--paper);
}
.selection-footer > .demo-note {
  margin: 0 0 12px;
}
.selection-footer .selection-contacts {
  margin-top: 0;
}
@media (max-height: 600px) {
  #savedDialog {
    padding: 38px 24px 20px;
  }
  #savedDialog > h2 {
    font-size: 30px;
    margin: 12px 0 16px;
  }
  .selection-footer > .demo-note {
    display: none;
  }
  .selection-footer .selection-contacts {
    gap: 8px;
  }
  .selection-footer a {
    min-height: var(--control-size);
    padding: 12px 16px;
  }
}

/* The rail keeps the same height for looks with one, two or three garments. */
#productRail .rail-group {
  height: var(--rail-height);
  display: grid;
  grid-template-rows: repeat(var(--items), minmax(0, 1fr));
  grid-template-columns: minmax(0, 1fr);
}
#productRail .product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#productRail .photo-button {
  flex: 1;
  min-height: 0;
  height: auto;
}
#productRail .product-pack {
  width: 100%;
}
#productRail .product-info {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  #productRail .rail-group {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: repeat(var(--items), minmax(0, 1fr));
    gap: 10px;
  }
  #productRail .product-card {
    padding-bottom: 8px;
  }
  #productRail .product-info {
    gap: 2px;
  }
  #productRail .product-info strong {
    font-size: var(--text-tiny);
  }
}

button.detail-fitting {
  width: 100%;
}
