/* ==================================================================== *
 * "Try the Look.": the lineup, the "In this look" panel, the full-look sheet.
 * A light chapter. Separated by space, not rules; one orange action.
 * Loads after main.css and uses its tokens.
 * ==================================================================== */
.looks {
  --ink: #0e0e0d; --mute: rgba(14,14,13,0.58); --faint: rgba(14,14,13,0.1); --line: rgba(14,14,13,0.18);
  --stage-h: clamp(540px, 76vh, 800px);
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 13vh, 150px);
}
.looks :focus-visible { outline-color: var(--ink); }
.looks--compact { --stage-h: clamp(460px, 62vh, 620px); padding: clamp(80px, 11vh, 120px) 0 clamp(70px, 10vh, 110px); }
.shop .looks { margin: clamp(60px, 9vh, 100px) calc(-1 * var(--gut)); }
@media (max-width: 699px) { .shop .looks { margin-left: 0; margin-right: 0; } } /* the shop has no side padding on phones */
.looks__head { padding: 0 var(--gut); }
.looks__title { font-size: clamp(56px, 7.6vw, 132px); }
.looks--compact .looks__title { font-size: clamp(44px, 5.6vw, 96px); }
.looks__text { margin-top: 18px; max-width: 42ch; font-size: 17px; color: var(--mute); }

.looks__body {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 400px);
  gap: clamp(24px, 3vw, 56px); padding: 0 var(--gut); margin-top: clamp(20px, 4vh, 48px);
}

/* Stage and lineup */
.looks__stage {
  position: relative; height: var(--stage-h); overflow: hidden; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.looks__stage:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.looks.is-dragging .looks__stage { cursor: grabbing; }
.looks__floor {
  position: absolute; left: 6%; right: 6%; bottom: 58px; height: 34%;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(14,14,13,0.07), transparent 70%);
  pointer-events: none;
}
.looks__track { position: absolute; inset: 0; }
.looks__track .look {
  position: absolute; left: 50%; bottom: 84px; height: calc(100% - 120px); aspect-ratio: var(--ar, 0.45);
  translate: -50% 0; transform-origin: 50% 100%; will-change: transform, opacity;
}
.looks:not(.is-ready) .looks__track .look { opacity: 0; }
.looks__track .look::after {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -20px; height: 40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(14,14,13,0.26), rgba(14,14,13,0.08) 60%, transparent);
}
.look__fig { display: block; width: 100%; height: 100%; padding: 0; cursor: inherit; }
.look__fig img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; }
.looks.show-cursor .look__fig { cursor: none; }

/* hotspots: no dots. An invisible zone over each piece on the model, only on the look in focus;
   hovering it (or its row in the panel) shows the piece's tag beside it, a click opens quick add. */
.look__spot {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; outline: none; cursor: pointer;
}
.look__spot i { display: none; }
.looks__track .look.is-focus .look__spot { pointer-events: auto; }
.look__spot:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.look__spot > .look__tip { left: calc(50% + 30px); }
.look__spot > .look__tip.is-left { left: auto; right: calc(50% + 30px); }
@media (max-width: 699px) { .look__spot { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .look__spot > .look__tip { left: calc(50% + 18px); } .look__spot > .look__tip.is-left { right: calc(50% + 18px); } }

/* "Styled with" tags: no dot. An invisible zone over the accessory itself; the tag appears only
   when the pointer is over it (or its chip in the panel, or a tap / keyboard focus). */
.look__tag {
  position: absolute; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); pointer-events: none; cursor: default; outline: none;
}
.look__tag i { display: none; }
.looks__track .look.is-focus .look__tag { pointer-events: auto; }
.look__tag:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.look__spot, .look__tag { z-index: 2; }
.look__spot:hover, .look__spot.is-hot, .look__spot:focus-visible, .look__tag.is-open, .look__tag.is-hot, .look__tag:focus-visible { z-index: 6; }

/* the tip beside a dot: piece (thumb, price, name) or accessory (icon, "Styled with", name) */
.look__tip {
  position: absolute; left: calc(50% + 16px); top: 50%; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: 230px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,0.96); color: var(--ink); text-align: left; white-space: normal;
  box-shadow: 0 10px 30px rgba(14,14,13,0.18), 0 0 0 1px rgba(14,14,13,0.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-6px, -50%) scale(0.94); transform-origin: 0 50%;
  transition: opacity 0.22s var(--out), transform 0.45s var(--pop), visibility 0s 0.45s;
}
.look__tip.is-left { left: auto; right: calc(50% + 16px); flex-direction: row-reverse; padding: 6px 6px 6px 14px; text-align: right; transform: translate(6px, -50%) scale(0.94); transform-origin: 100% 50%; }
.look__tag > .look__tip { left: calc(50% + 24px); }
.look__tag > .look__tip.is-left { left: auto; right: calc(50% + 24px); }
.look__tip-ico, .look__tip-img { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); overflow: hidden; }
.look__tip-img img { width: 100%; height: 100%; object-fit: cover; }
.look__tip-img.is-cut img { object-fit: contain; padding: 3px; }
.look__tip-ico .look__ico { width: 19px; height: 19px; }
.look__tip-text { display: grid; gap: 1px; min-width: 0; }
.look__tip-text small { font-size: 11px; line-height: 1.2; color: var(--mute); }
.look__tip-text b { font: 600 13.5px/1.2 var(--body); letter-spacing: -0.01em; }
.look__tip-add { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.look__tip-add::before, .look__tip-add::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -0.75px 0 0 -4.5px; background: var(--paper); }
.look__tip-add::after { transform: rotate(90deg); }
.look__tag.is-open .look__tip, .look__tag.is-hot .look__tip, .look__tag:focus-visible .look__tip,
.look__spot.is-hot .look__tip, .look__spot:focus-visible .look__tip {
  opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.22s var(--out), transform 0.45s var(--pop), visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .look__tag:hover .look__tip, .look__spot:hover .look__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.22s var(--out), transform 0.45s var(--pop), visibility 0s; }
}
.looks.is-dragging .look__tip { opacity: 0 !important; visibility: hidden !important; }

/* "Styled with" chips under the pieces */
.looks__extras { margin-top: 22px; }
.looks__extras[hidden] { display: none; }
.looks__extras-title { font-size: 13px; color: var(--mute); }
.looks__chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.looks__acc[hidden], .looks__chips[hidden] { display: none; }
/* accessories and shoes: the same rows as the pieces, just shorter */
.looks__acc { margin-top: 8px; gap: 2px; }
.lp--sm { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 6px 12px 6px 10px; border-radius: 14px; }
.lp--sm .lp__img { width: 56px; aspect-ratio: 1; border-radius: 10px; }
.lp--sm .lp__info h4 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp--sm .lp__img.is-cut img { padding: 5px; }
.lp--sm .lp__info h4 { font-size: 13.5px; line-height: 1.2; }
.lp--sm .lp__info p { margin-top: 2px; font-size: 12.5px; }
.lp--sm .lp__add { width: 32px; height: 32px; }
.lp--sm .lp__add span::before, .lp--sm .lp__add span::after { width: 11px; margin-left: -5.5px; }
.lp--sm:hover, .lp--sm.is-hot { background: rgba(255,255,255,0.72); }
.looks__chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.looks__chip .look__ico { width: 17px; height: 17px; flex: none; }
button.looks__chip:hover, a.looks__chip:hover, .looks__chip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
span.looks__chip { color: var(--mute); }
.looks__chip.is-link span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* controls */
.looks__ctrl { position: absolute; left: 7%; right: 7%; bottom: 0; height: 56px; display: flex; align-items: center; gap: 12px; z-index: 150; }
.looks__arrow, .looks__play { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.looks__arrow:hover, .looks__play:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.looks__arrow .icon { width: 18px; height: 18px; }
.looks__arrow:not(.looks__arrow--next) .icon { transform: scaleX(-1); }
.looks__progress { flex: 1; height: 2px; max-width: 420px; margin-right: auto; background: var(--faint); overflow: hidden; border-radius: 2px; }
.looks__progress i { display: block; height: 100%; background: var(--ink); will-change: transform; }
.looks__pause { position: relative; width: 10px; height: 12px; }
.looks__pause::before, .looks__pause::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 1px; background: currentColor; }
.looks__pause::before { left: 0; }
.looks__pause::after { right: 0; }
.looks__play.is-paused .looks__pause::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.looks__play.is-paused .looks__pause::after { display: none; }

/* the "View" cursor */
.looks__cursor {
  position: absolute; left: 0; top: 0; z-index: 200; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper);
  font: 600 13px/1 var(--body); pointer-events: none; opacity: 0; scale: 0.4;
  transition: opacity 0.25s var(--out), scale 0.45s var(--pop);
}
.looks.show-cursor .looks__cursor { opacity: 1; scale: 1; }

/* "In this look" */
.looks__panel { display: flex; flex-direction: column; min-height: var(--stage-h); padding-top: 6px; }
.looks__panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.looks__panel-head h3 { font: 600 18px/1.2 var(--body); letter-spacing: -0.01em; }
.looks__panel-head span { font-size: 14px; color: var(--mute); }
.looks__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.lp {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 10px 12px 10px 10px; border-radius: 18px; transition: background-color 0.3s;
}
.lp:hover, .lp.is-hot { background: rgba(255,255,255,0.72); }
.lp.is-current { background: #fff; }
.lp.is-out { opacity: 0.45; }
.lp__img { display: grid; place-items: center; width: 84px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.lp__img img { width: 100%; height: 100%; object-fit: cover; }
.lp__img.is-cut img { object-fit: contain; padding: 7px; }
.lp__info h4 { font: 600 15.5px/1.25 var(--body); letter-spacing: -0.01em; }
.lp__info p { margin-top: 5px; font-size: 14px; color: var(--mute); }
.lp__add { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.4s var(--pop); }
.lp__add span::before, .lp__add span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -0.8px 0 0 -7px; background: currentColor; border-radius: 1px; }
.lp__add span::after { transform: rotate(90deg); }
.lp__add:hover, .lp.is-hot .lp__add { background: var(--ink); color: var(--paper); box-shadow: none; }
.lp__add:active { transform: scale(0.92); }
.lp__out { font-size: 13px; color: var(--mute); padding-right: 6px; }

.looks__bundle { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: end; }
.looks__deal-title { font-weight: 600; font-size: 16px; }
.looks__deal-line { margin-top: 3px; font-size: 14px; color: var(--mute); }
.looks__price { white-space: nowrap; text-align: right; }
.looks__price s { font-size: 15px; color: var(--mute); margin-right: 4px; }
.looks__price strong { font: 800 28px/1 var(--display); letter-spacing: -0.04em; }
.looks__add { grid-column: 1 / -1; margin-top: 16px; min-height: 58px; font-size: 16px; }
.looks__sticky { display: none; }

/* full-look sheet */
.fl {
  --ink: #0e0e0d; --mute: rgba(14,14,13,0.58); --line: rgba(14,14,13,0.18);
  position: fixed; z-index: 92; left: 50%; top: 50%; width: min(600px, calc(100vw - 48px)); max-height: min(860px, calc(100vh - 48px));
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden;
  border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.35s var(--out), transform 0.6s var(--spring), visibility 0s 0.6s;
}
body.looks-open .fl { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 0.35s var(--out), transform 0.6s var(--spring), visibility 0s; }
body.looks-open .scrim { opacity: 1; pointer-events: auto; }
.fl :focus-visible { outline-color: var(--ink); }
.fl__handle { display: none; }
.fl__close { position: absolute; top: 14px; right: 14px; z-index: 2; color: var(--ink); }
.fl__close:hover { background: rgba(14,14,13,0.06); }
.fl__head { padding: 36px 36px 8px; }
.fl__title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -0.045em; }
.fl__sub { margin-top: 10px; font-size: 15px; color: var(--mute); }
.fl__items { overflow-y: auto; overscroll-behavior: contain; padding: 8px 36px 4px; display: grid; gap: 6px; align-content: start; }
.fli { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px 0; }
.fli__img { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.fli__img img { width: 100%; height: 100%; object-fit: cover; }
.fli__img.is-cut img { object-fit: contain; padding: 7px; }
.fli__body h3 { font: 600 16px/1.25 var(--body); }
.fli__body p { margin-top: 4px; font-size: 14px; color: var(--mute); }
.fli__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fli__sizes { flex-wrap: nowrap; }
.fli__sizes .qa__sz { flex: 1 1 0; min-width: 0; max-width: 72px; height: 46px; }
.fli.needs-size .fli__sizes { animation: nudge 0.5s var(--out); }
.fl__foot { padding: 18px 36px 28px; }
.fl__total { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.fl__total s { color: var(--mute); font-size: 15px; }
.fl__total s:empty { display: none; }
.fl__total strong { font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.fl [data-fl-add] { min-height: 58px; font-size: 16px; }
.fl [data-fl-add].is-waiting { opacity: 0.62; }
.fl__hint { min-height: 1.4em; margin-top: 10px; font-size: 13.5px; color: #c2410c; }
.fl__vee { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.fl__vee:hover { text-decoration-color: var(--ink); }

/* drawer: the bundle saving */
.drawer__save { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; color: var(--mute); }
.drawer__save strong { color: var(--ink); font-weight: 600; }
.drawer__save[hidden] { display: none; }

@media (max-width: 1100px) and (min-width: 700px) {
  .looks__body { grid-template-columns: minmax(0, 1fr) 300px; }
  .lp { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .lp__img { width: 64px; }
}

@media (max-width: 699px) {
  .looks { --stage-h: clamp(430px, 62vh, 600px); padding: 96px 0 40px; }
  .looks--compact { --stage-h: clamp(400px, 56vh, 540px); }
  .looks__title, .looks--compact .looks__title { font-size: clamp(40px, 12vw, 60px); }
  .looks__text { font-size: 15.5px; margin-top: 12px; }
  .looks__body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0; margin-top: 12px; }
  .looks__stage {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .looks__track .look { bottom: 72px; height: calc(100% - 96px); }
  .looks__floor { bottom: 48px; }
  .looks__ctrl { left: var(--gut); right: var(--gut); height: 48px; }
  .looks__cursor { display: none; }
  .looks__panel { min-height: 0; padding: 0 var(--gut); }
  .looks__list {
    grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 14px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 4px; scrollbar-width: none;
  }
  .looks__list::-webkit-scrollbar { display: none; }
  .lp { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; background: rgba(255,255,255,0.62); scroll-snap-align: start; }
  .lp__img { width: 60px; }
  .looks__extras { margin-top: 16px; }
  .looks__acc { grid-template-columns: none; grid-auto-columns: minmax(200px, 62%); gap: 8px; margin-top: 10px; }
  .lp--sm { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .lp--sm .lp__img { width: 52px; }
  .looks__chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 10px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 2px;
  }
  .looks__chips::-webkit-scrollbar { display: none; }
  .looks__chips li { flex: none; }
  .look__tip { max-width: 168px; gap: 8px; padding: 5px 12px 5px 5px; }
  .look__tip.is-left { padding: 5px 5px 5px 12px; }
  .look__tip-ico, .look__tip-img { width: 30px; height: 30px; }
  .look__tip-text b { font-size: 12.5px; }
  .looks__bundle { padding-top: 18px; }
  .looks__panel .looks__add { display: none; }
  .looks__sticky {
    display: block; position: sticky; z-index: 5; bottom: calc(14px + env(safe-area-inset-bottom));
    margin-top: 18px; padding: 0 86px 0 var(--gut); pointer-events: none;
    transition: transform 0.5s var(--spring), opacity 0.3s;
  }
  .looks__sticky-btn { pointer-events: auto; width: 100%; min-height: 56px; font-size: 15.5px; box-shadow: 0 14px 34px rgba(0,0,0,0.22); }
  body.toast-on .looks__sticky { transform: translateY(-78px); }
  body.cart-open .looks__sticky, body.quick-open .looks__sticky, body.looks-open .looks__sticky,
  body.vee-open .looks__sticky, body.menu-open .looks__sticky { opacity: 0; pointer-events: none; }

  .fl {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: calc(100dvh - 40px);
    border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1;
    transition: transform 0.6s var(--spring), visibility 0s 0.6s;
  }
  body.looks-open .fl { transform: none; transition: transform 0.6s var(--spring), visibility 0s; }
  .fl__handle { display: block; padding: 10px 0 0; touch-action: none; }
  .fl__handle span { display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 4px; background: rgba(14,14,13,0.2); }
  .fl__head { padding: 14px var(--gut) 4px; touch-action: none; }
  .fl__items { padding: 4px var(--gut); }
  .fli { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 10px 0; }
  .fl__foot { padding: 14px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .look__spot, .look__tag, .look__tip, .looks__cursor, .fl, .lp { transition: none; }
}

/* dialogs take focus as a whole on phones: no ring around the sheet itself */
.qa:focus, .fl:focus { outline: none; }
