
* { box-sizing: border-box; }
body { margin: 0; background: #ebe2d5; color: #251e19; font: 1rem 'Space Grotesk', system-ui, sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid #673c0c; outline-offset: 3px; }
.fit {
  --gutter: clamp(.6rem, 2vw, 1.5rem);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.55rem, 1.5vw, .85rem);
  padding: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
  background: #ebe2d5;
}
.fit::before { content: ''; position: absolute; z-index: -2; inset: -12px; background: linear-gradient(150deg,#fbf4e7b5,#d4b79999),url('/looks/minimal-editorial.webp') center / cover; filter: blur(18px); }
.fit h1 { font: 600 clamp(1.65rem,5vw,3rem)/1 'Cormorant Garamond',Georgia,serif; margin: 0; text-align: center; text-wrap: balance; }
.fit h1 span { display: block; font: 600 .8rem 'Space Grotesk',system-ui; letter-spacing: .18em; text-transform: uppercase; margin-top: .4rem; }
.glass { background: #fff9ef; border: 1px solid #fff; border-radius: 1.15rem; box-shadow: 0 12px 35px #38281923; }
@supports (backdrop-filter: blur(12px)) { .glass { background: #fff9efdc; backdrop-filter: blur(12px); } }
.model-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; max-width: 100%; padding: .2rem; }
.model-picker button { min-height: 44px; padding: .35rem clamp(.5rem,2.5vw,.95rem); border-radius: .9rem; border: 0; background: transparent; }
.model-picker button[aria-pressed="true"] { background: #73512e; color: white; }
.stage {
  width: min(100%, 82rem);
  block-size: clamp(16rem, 58vw, 38rem);
  block-size: clamp(16rem, min(58svh, 58vw), 38rem);
  flex: 0 0 auto;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.stage::before { content: 'ELEGANCE'; position: absolute; inset: 14% 0 auto; text-align: center; font: 600 clamp(3.7rem,16vw,13rem)/1 'Cormorant Garamond',Georgia,serif; color: #fff9; pointer-events: none; }
.model { width: min(45%, 21rem); height: 100%; position: absolute; inset: 0 0 auto; margin: auto; pointer-events: none; z-index: 2; }
.model img[hidden], .model img:not([src]) { display: none; }
.model img { position: absolute; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.scan { position: absolute; inset: 0 0 auto; height: 2px; background: #fff; box-shadow: 0 0 22px 5px #ffdda8; opacity: 0; }
.arc { position: absolute; inset: 0; }
.garment { position: absolute; left: 50%; top: 53%; width: min(29%, 12rem); min-height: 44px; padding: .35rem; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .25s; transform: translate(-50%,-50%) translateX(var(--x)) perspective(900px) rotateY(var(--tilt)) scale(var(--scale)); opacity: var(--opacity); }
.garment.glass { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.garment.glass:hover, .garment.glass:focus-visible { background: #fff3; }
.garment img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.garment b { display: block; font-size: clamp(.7rem,2.55vw,.85rem); line-height: 1.15; overflow-wrap: anywhere; }
.arrows { position: absolute; inset: auto 0 .5rem; display: flex; justify-content: space-between; pointer-events: none; z-index: 4; }
.arrows button { pointer-events: auto; width: 44px; height: 44px; font-size: 1.4rem; }
.details { z-index: 3; width: min(100%, 46rem); padding: .8rem clamp(.65rem, 2vw, 1rem); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .55rem .85rem; }
.details > * { min-width: 0; }
.details h2, .details p { margin: 0; }
.details h2 { font: 600 1.65rem/1 'Cormorant Garamond',Georgia,serif; }
.details > header, .details > p { grid-column: 1 / -1; }
.details > p { font-size: .78rem; }
.choices { display: flex; gap: .2rem; flex-wrap: wrap; margin-top: .2rem; }
.choices button { min-width: 44px; min-height: 44px; padding: .25rem; border: 1px solid #9a7d59; background: #fff; border-radius: 2rem; }
.choices button[aria-pressed="true"] { outline: 2px solid #775226; outline-offset: -2px; }
.choices .swatch { display: grid; place-items: center; border-color: transparent; background: transparent; }
.choices .swatch::before { content: ''; width: 28px; height: 28px; border: 1px solid #8e775f; border-radius: 50%; background: var(--swatch); }
.choices .swatch[aria-pressed="true"] { outline-color: #8f5e24; outline-offset: -3px; }
.choices button:focus-visible { outline: 2px dashed #673c0c; outline-offset: 0; }
.details a { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-self: start; min-height: 44px; color: #663e17; font-weight: 700; text-underline-offset: .15em; }
@media (max-width: 42rem) {
  .details { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 31rem) {
  .stage { block-size: clamp(12rem, 68vw, 20rem); }
  .stage::before { inset-block-start: 16%; }
  .model { width: 56%; }
  .garment { width: 30%; padding: .15rem; }
  .garment img { max-width: 4.8rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .garment { transition: none; } }
.fit-embedded .fit { min-height: 0; background: transparent; padding: var(--gutter); }
.fit-embedded .fit::before { display: none; }
.fit-embedded .stage { block-size: clamp(12rem, 48vw, 31rem); }
.fit-embedded .fit-access { display: none; }
.fit-embedded body:not(.fit-streetwear) { background: transparent; }
.fit-access { position: absolute; right: max(.75rem, env(safe-area-inset-right)); top: max(.75rem, env(safe-area-inset-top)); z-index: 8; }
@media (max-width: 35rem) {
  html:not(.fit-embedded) .fit-access:not([hidden]) { position: static; justify-content: flex-end; padding: env(safe-area-inset-top) max(.6rem, env(safe-area-inset-right)) 0 max(.6rem, env(safe-area-inset-left)); }
  html:not(.fit-embedded) body:has(.fit-access:not([hidden])) .fit { min-height: calc(100svh - 44px - env(safe-area-inset-top)); padding-top: .35rem; }
}
@media (orientation: landscape) and (min-width: 35rem) and (max-height: 35rem) {
  html:not(.fit-embedded) .fit {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(14rem, 2fr);
    grid-template-areas: 'title title' 'picker picker' 'stage details';
    column-gap: clamp(.6rem, 2vw, 1.5rem);
    align-content: start;
    justify-items: center;
  }
  html:not(.fit-embedded) .fit h1 { grid-area: title; font-size: clamp(1.7rem, 4vw, 2.35rem); }
  html:not(.fit-embedded) .model-picker { grid-area: picker; }
  html:not(.fit-embedded) .stage { grid-area: stage; align-self: start; block-size: clamp(12rem, calc(100svh - 9.75rem), 25rem); }
  html:not(.fit-embedded) .details { grid-area: details; align-self: start; grid-template-columns: minmax(0,1fr); }
}

.garment[hidden] { display: none; }

.fit-streetwear { background: #131019; color: #fff4fb; color-scheme: dark; }
.fit-streetwear .fit { background: #131019; }
.fit-streetwear .fit::before {
  display: block;
  background: linear-gradient(145deg,#170e1de8,#16242aab 60%,#3b102ccc),url('/looks/streetwear.webp') center / cover;
}
.fit-streetwear .stage::before { content: 'STREETWEAR'; color: #ffe5f445; font-size: clamp(2.9rem,13vw,10rem); }
.fit-streetwear .glass { background: #291d2c; border-color: #c480ac80; }
@supports (backdrop-filter: blur(12px)) { .fit-streetwear .glass { background: #291d2ceb; } }
.fit-streetwear .garment.glass { background: transparent; border-color: transparent; }
.fit-streetwear .garment.glass:hover, .fit-streetwear .garment.glass:focus-visible { background: #ffc8ee22; }
.fit-streetwear .model-picker button[aria-pressed="true"] { background: #af367a; }
.fit-streetwear .details a { color: #ffc0e4; }
.fit-streetwear .choices button:not(.swatch) { background: #372741; }
.fit-streetwear .choices button[aria-pressed="true"], .fit-streetwear :focus-visible { outline-color: #ffb4df; }
.fit-streetwear .scan { box-shadow: 0 0 22px 5px #f692cb; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: #fff9ef; backdrop-filter: none; }
  .fit-streetwear .glass { background: #291d2c; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { border-color: #775226; }
  .fit-streetwear .glass { border-color: #ffb4df; }
}

#look[src*="/tradicional-"]:is([src$="-0.webp"], [src$="-1.webp"], [src$="-2.webp"], [src$="-3.webp"]) {
  filter: url(#tradicional-matte);
}
