/* =========================================================
   IM ART — Premium shirts & trousers
   ========================================================= */
:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --ink: #f2ede4;
  --muted: rgba(242, 237, 228, .56);
  --faint: rgba(242, 237, 228, .32);
  --line: rgba(255, 255, 255, .13);
  --line-2: rgba(255, 255, 255, .28);
  --sand: #ebe4d8;
  --sand-2: #f7f3ec;
  --sand-ink: #1b1916;
  --accent: #d8c7a6;
  --red: #e0383b;
  --serif: 'Cormorant Garamond', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .7, .12, 1);
  --hdr: 92px;
  --gutter: 16px;
}
@media (min-width: 1000px) {
  :root { --hdr: 104px; --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.eyebrow { font: 400 10px/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 300; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 30px; border-radius: 999px;
  font: 400 11.5px var(--sans); letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: .25s; white-space: nowrap; background: none;
}
.chip:hover, .chip.active { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) calc(var(--gutter) - 8px) 10px;
  background: rgba(10, 10, 11, .78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.page-home .site-header { position: absolute; left: 0; right: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font: 400 clamp(26px, 7.6vw, 44px)/1 var(--serif); letter-spacing: .3em; margin-right: -.3em; }
.brand-tag { margin-top: 9px; font: 300 8.5px/1 var(--sans); letter-spacing: .44em; margin-right: -.44em; text-transform: uppercase; color: var(--muted); }
.header-actions { justify-self: end; display: flex; }
.search-field {
  justify-self: start; min-width: 0; width: 100%; max-width: 280px; height: 38px;
  display: inline-flex; align-items: center; gap: 9px; padding: 0 12px 0 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(242, 237, 228, .72); font: 300 12px var(--sans); letter-spacing: .06em; text-align: left; cursor: text;
  transition: border-color .3s, background .3s, color .3s;
}
.search-field:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: var(--ink); }
.search-field svg { width: 17px; height: 17px; flex: none; }
.search-field .sf-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-field kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; font: 400 10px var(--sans); color: var(--muted); }
@media (max-width: 699px) {
  .search-field { height: 34px; gap: 6px; padding: 0 10px; font-size: 11px; }
  .search-field .sf-long, .search-field kbd { display: none; }
}
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; border-radius: 50%; transition: background .25s;
}
.icon-btn:hover { background: rgba(255,255,255,.06); }
.icon-btn svg { width: 25px; height: 25px; }
.bag-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff; font: 500 10px/18px var(--sans); text-align: center;
}


/* =========================================================
   HOME — zero scroll · New Arrivals on a fixed runway
   ========================================================= */
.page-home { height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; background: #050506; }
.page-home .site-header { position: absolute; left: 0; right: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.hero { position: absolute; inset: 0; overflow: hidden; background: #050506; touch-action: none; -webkit-user-select: none; user-select: none; }

/* fixed runway backdrop — scaled by JS so its floor meets the hems */
.hero-bg { position: absolute; background: url('../img/bg-runway.jpg') center / 100% 100% no-repeat; pointer-events: none; }
/* side fades sit above the lights (::after paints after children) */
.hero-bg::after {
  content: ''; position: absolute; inset: 0 -1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #050506, rgba(5, 5, 6, 0) 16%, rgba(5, 5, 6, 0) 84%, #050506);
}
.hero.bg-narrow .hero-bg::after { opacity: 1; }

/* blinking runway lights: ::before dims the light in the photo, ::after adds glow */
.lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lt { position: absolute; }
.lt::before, .lt::after {
  content: ''; position: absolute; border-radius: 999px;
  animation-delay: var(--d, 0s); animation-iteration-count: infinite; animation-timing-function: linear;
}
.lt::before { background: #060607; opacity: 0; filter: blur(3px); }
.lt::after {
  opacity: .45; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 249, 238, .85), rgba(255, 249, 238, .25) 45%, rgba(255, 249, 238, 0));
}
/* tall bars: soft glow, occasional double flicker */
.lt-bar::before { inset: -6% -45%; animation-name: barOff; animation-duration: 7s; }
.lt-bar::after { inset: -14% -260%; animation-name: barGlow; animation-duration: 7s; }
.lt-bar.lt-dim::after { inset: -12% -200%; }
@keyframes barOff { 0%, 60%, 64.5%, 66%, 69%, 100% { opacity: 0; } 61%, 64% { opacity: .9; } 66.5%, 68.5% { opacity: .8; } }
@keyframes barGlow {
  0%, 100% { opacity: .45; } 30% { opacity: .7; } 60% { opacity: .55; }
  61%, 64%, 66.5%, 68.5% { opacity: 0; } 70% { opacity: 1; } 82% { opacity: .5; }
}
/* round lamps: slow breathe with a rare blink */
.lt-lamp::before { inset: -25%; animation-name: lampOff; animation-duration: 5s; }
.lt-lamp::after { inset: -180%; animation-name: lampGlow; animation-duration: 5s; }
@keyframes lampOff { 0%, 84%, 92%, 100% { opacity: 0; } 85%, 87%, 89%, 91% { opacity: .85; } 86%, 90% { opacity: .3; } }
@keyframes lampGlow { 0%, 100% { opacity: .3; } 45% { opacity: .9; } 84% { opacity: .5; } 85%, 91% { opacity: 0; } 93% { opacity: .8; } }
/* far end of the runway: gentle breathing */
.lt-strip::after { inset: -150% -25%; animation-name: stripGlow; animation-duration: 6s; }
@keyframes stripGlow { 0%, 100% { opacity: .25; } 50% { opacity: .75; } }
/* edge lights: chase from the far end toward the camera */
.lt-edge::before { inset: -45%; filter: blur(5px); animation-name: edgeOff; animation-duration: 2.8s; }
.lt-edge::after { inset: -150%; animation-name: edgeGlow; animation-duration: 2.8s; }
@keyframes edgeOff { 0%, 21%, 100% { opacity: 0; } 4%, 15% { opacity: .92; } }
@keyframes edgeGlow { 0% { opacity: .35; } 4%, 15% { opacity: 0; } 21% { opacity: 1; } 42%, 100% { opacity: .35; } }
/* floor reflections: dimmer, same rhythm as their light */
.lt-refl::before { inset: -4% -60%; filter: blur(6px); }
.lt-refl::after { inset: -6% -150%; }
.lt-refl.lt-edge::before, .lt-refl.lt-bar::before { opacity: 0; }
.lt-refl::after { mix-blend-mode: screen; filter: blur(2px); }
.lt-strip.lt-refl::after { inset: -6% -40%; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0), rgba(5, 5, 6, .92) 80%);
}

/* side copy */
.hero-copy {
  position: absolute; top: calc(var(--hdr) + 14px); z-index: 4;
  display: flex; flex-direction: column; gap: 3px; pointer-events: none;
  font: 300 10.5px/1.5 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: rgba(242, 237, 228, .78);
  padding: 2px 0 18px;
}
.hero-copy.left { left: 22px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.hero-copy.right { right: 22px; padding-right: 14px; border-right: 1px solid var(--line-2); text-align: right; margin-right: -.34em; }

/* looks */
.slides { position: absolute; inset: 0; z-index: 2; overflow: hidden; cursor: grab; }
.slides:active { cursor: grabbing; }
.track { position: relative; height: 100%; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.active { visibility: visible; }
.look-fig { position: absolute; inset: 0; will-change: transform, opacity; }
.slide .hs-dot, .slide .hs-chip, .slide .hs-lines { transition: opacity .6s ease .1s; }
.slide.arriving .hs-dot, .slide.arriving .hs-chip, .slide.arriving .hs-lines,
.slide.leaving .hs-dot, .slide.leaving .hs-chip, .slide.leaving .hs-lines { opacity: 0; transition: opacity .2s ease; }
.look-img, .look-reflect { position: absolute; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.look-img { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); }
.look-reflect {
  opacity: .28; transform: scaleY(-1); filter: blur(1.5px) brightness(.85);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, 0) 34%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, 0) 34%);
}

/* hotspots: shirt + pants only */
.hs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hs-lines line { stroke: rgba(255, 255, 255, .75); stroke-width: 1; transition: stroke .3s, stroke-width .3s; }
.slide:has(.hs-chip[data-k="shirt"]:hover) line[data-k="shirt"],
.slide:has(.hs-chip[data-k="pant"]:hover) line[data-k="pant"] { stroke: #fff; stroke-width: 1.6; }
.hs-dot {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 14px 3px rgba(255, 255, 255, .6);
}
.hs-chip {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px; max-width: 54vw;
  padding: 3px 12px 3px 3px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(12, 12, 13, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  white-space: nowrap; transition: background .3s, border-color .3s;
}
.hs-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.hs-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .4); }
.hs-ic svg { width: 18px; height: 18px; }
.hs-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hs-label { font: 400 9.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.hs-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.hs-arrow { flex: none; width: 13px; height: 13px; margin-left: -2px; transition: transform .3s var(--ease); }
.hs-chip:hover .hs-arrow { transform: translateX(3px); }

/* look navigation */
.look-nav-wrap { position: absolute; left: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.look-nav-wrap .eyebrow { font-size: 8.5px; padding-left: 6px; color: rgba(242, 237, 228, .7); }
.look-nav { display: flex; align-items: center; gap: 2px; }
.look-nav button {
  position: relative; background: none; border: 0; padding: 8px 6px 10px; font: 300 12.5px var(--sans);
  letter-spacing: .1em; color: var(--faint); transition: color .3s;
}
.look-nav button.active, .look-nav button:hover { color: var(--ink); }
.look-nav i { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 1px; background: rgba(255, 255, 255, .14); }
.look-nav button.active i { background: var(--ink); }
.look-nav .nav-arrow { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: rgba(242, 237, 228, .75); }
.look-nav .nav-arrow svg { width: 16px; height: 16px; }

.swipe-hint {
  position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 6; pointer-events: none;
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px;
  border-radius: 14px; background: rgba(10, 10, 11, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 300 8.5px/1.6 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(242, 237, 228, .8);
}
.swipe-hint svg { width: 26px; height: 26px; }

.cat-handle {
  position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px;
  background: none; border: 0; color: rgba(242, 237, 228, .85);
  font: 300 9px var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em;
  transition: opacity .3s;
}
.cat-handle svg { width: 20px; height: 20px; }
.sheet-open .cat-handle, .sheet-open .swipe-hint { opacity: 0; pointer-events: none; }

.look-info { display: none; }

/* categories sheet (swipe / scroll up) */
.cat-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
  transform: translateY(105%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.home.sheet-open .cat-sheet { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.sheet-grip { width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; }
.sheet-head a { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.sheet-head a:hover { color: var(--ink); }
.cat-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 8px 6px 10px; border-radius: 14px; color: var(--sand-ink);
  background: linear-gradient(to bottom, var(--sand) 0%, var(--sand) 64%, var(--sand-2) 65%);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.cat-img { width: 100%; height: clamp(84px, 15vh, 150px); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; }
.cat-img .photo, .cat-img .ghost { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .2)); transition: transform .6s var(--ease); }
.cat-card:hover .photo, .cat-card:hover .ghost { transform: scale(1.04); }
.cat-card strong { font: 400 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cat-card span { font-size: 10.5px; color: rgba(27, 25, 22, .66); }
.cat-card em { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.cat-card:hover em { transform: translateX(3px); }

@media (max-width: 380px) {
  .hero-copy { font-size: 9.5px; }
  .hs-chip { max-width: 44vw; }
}
@media (min-width: 700px) {
  .hs-chip { padding: 4px 16px 4px 4px; gap: 11px; max-width: none; }
  .hs-ic { width: 44px; height: 44px; }
  .hs-ic svg { width: 22px; height: 22px; }
  .hs-label { font-size: 12px; letter-spacing: .12em; }
  .hs-sub { font-size: 11.5px; }
  .look-nav-wrap { left: var(--gutter); bottom: 22px; }
  .swipe-hint { right: var(--gutter); bottom: 22px; }
  .hero-copy.left { left: var(--gutter); }
  .hero-copy.right { right: var(--gutter); }
  .cat-sheet { left: 50%; right: auto; width: min(980px, calc(100% - 2 * var(--gutter))); transform: translate(-50%, 105%); padding: 12px 18px 22px; }
  .home.sheet-open .cat-sheet { transform: translate(-50%, 0); }
  .cat-strip { gap: 14px; }
}
@media (min-width: 1000px) {
  .hero-copy {
    top: calc(var(--hdr) + 28px); gap: 0; padding-bottom: 22px;
    font: 300 clamp(28px, 2.9vw, 52px)/1.04 var(--serif); letter-spacing: .06em; color: var(--ink);
  }
  .hero-copy.left { padding-left: 22px; }
  .hero-copy.right { padding-right: 22px; margin-right: 0; }
  .hero-copy span:last-child { font-style: italic; color: var(--accent); }
  .look-info {
    position: absolute; right: var(--gutter); bottom: 130px; z-index: 6; max-width: 300px;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right;
  }
  .info-item { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .info-name { font: 300 22px/1.1 var(--serif); transition: color .3s; }
  .info-item:hover .info-name { color: var(--accent); }
  .info-meta { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
  .look-info .plus { color: var(--faint); font-size: 16px; line-height: 1; }
  .look-info .btn { margin-top: 10px; }
  .swipe-hint { display: none; }
}

/* =========================================================
   DRAWERS, SEARCH, TOAST
   ========================================================= */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.has-overlay { overflow: hidden; }
.has-overlay .scrim { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 70; width: min(440px, 90vw);
  display: flex; flex-direction: column; background: #0e0e10; border: 0 solid var(--line);
  transition: transform .6s var(--ease); visibility: hidden;
}
.drawer.is-open { visibility: visible; transform: none; }
.drawer-left { left: 0; transform: translateX(-100%); border-right-width: 1px; transition: transform .6s var(--ease), visibility 0s .6s; }
.drawer-right { right: 0; transform: translateX(100%); border-left-width: 1px; transition: transform .6s var(--ease), visibility 0s .6s; }
.drawer.is-open { transition: transform .6s var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 18px 14px 26px; border-bottom: 1px solid var(--line); }

.menu-list { list-style: none; margin: 0; padding: 18px 26px; flex: 1; overflow: auto; }
.menu-list li { opacity: 0; transform: translateX(-16px); transition: opacity .5s ease, transform .6s var(--ease); }
.drawer.is-open .menu-list li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .06s); }
.menu-list a { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-list span { font: 300 clamp(30px, 8vw, 40px)/1.1 var(--serif); transition: transform .4s var(--ease), color .3s; }
.menu-list small { font-size: 10px; letter-spacing: .2em; color: var(--faint); }
.menu-list a:hover span { transform: translateX(8px); color: var(--accent); }
.menu-foot { padding: 22px 26px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.menu-foot p { margin: 0 0 6px; font-size: 13px; }

.bag-items { flex: 1; overflow: auto; padding: 8px 22px; }
.bag-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.thumb { display: grid; place-items: center; aspect-ratio: 4/5; border-radius: 10px; background: radial-gradient(circle at 50% 40%, var(--sand-2), var(--sand)); }
.thumb .ghost { height: 84%; width: 84%; }
.bag-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bag-info strong, .bag-right strong { font-weight: 400; }
.bag-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: 13px; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; width: max-content; }
.qty button { width: 30px; height: 30px; background: none; border: 0; font-size: 15px; }
.qty span { min-width: 18px; text-align: center; font-size: 13px; }
.bag-empty { padding: 60px 10px; text-align: center; }
.bag-empty .serif { font-size: 30px; margin: 0 0 6px; }
.bag-empty .btn { margin-top: 20px; }
.bag-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ship-meter { font-size: 12px; color: var(--muted); }
.ship-track { height: 2px; background: var(--line); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.ship-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.bag-total strong { font: 400 22px var(--serif); letter-spacing: 0; }
.bag-foot p { margin: 0; }

.search-panel {
  position: fixed; inset: 0; z-index: 80; overflow: auto;
  background: rgba(8,8,9,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.search-inner { max-width: 980px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) var(--gutter) 40px; transform: translateY(-16px); transition: transform .6s var(--ease); }
.search-panel.is-open .search-inner { transform: none; }
.search-bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); padding: 10px 0; }
.search-bar > svg { width: 24px; height: 24px; color: var(--muted); flex: none; }
.search-bar input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 300 clamp(22px, 5vw, 38px) var(--serif); outline: none; }
.search-bar input::placeholder { color: var(--faint); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-chips { display: flex; gap: 8px; margin: 18px 0 30px; overflow-x: auto; scrollbar-width: none; }
.search-results .eyebrow { margin: 0 0 16px; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.search-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; transition: background .25s; }
.search-item:hover { background: rgba(255,255,255,.05); }
.search-item strong { display: block; font-weight: 400; font-size: 14px; }
.search-item span { font-size: 12px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
  padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .link-btn { color: var(--bg); opacity: .7; white-space: nowrap; }

/* =========================================================
   SHOP
   ========================================================= */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.shop-head { padding: 44px 0 26px; display: grid; gap: 18px; }
.shop-head h1 { margin: 0; font: 300 clamp(44px, 9vw, 104px)/.95 var(--serif); letter-spacing: -.01em; }
.shop-head h1 em { color: var(--accent); }
.shop-head p { margin: 0; max-width: 520px; color: var(--muted); }
.shop-bar {
  position: sticky; top: calc(var(--hdr) - 16px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; background: linear-gradient(var(--bg) 70%, transparent);
}
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sort select { background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; height: 36px; padding: 0 12px; font: inherit; letter-spacing: .1em; }
.sort select option { background: var(--bg); }
@media (max-width: 640px) {
  .shop-bar { flex-wrap: wrap; gap: 10px; }
  .filters { width: 100%; }
  .sort { margin-left: auto; }
}
.count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 6px 0 18px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; padding-bottom: 80px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


.p-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px;
  background: radial-gradient(90% 70% at 50% 38%, #f6f2ea, #e3dacb 75%, #d7ccba);
}
.p-float { width: 80%; height: 86%; display: grid; place-items: center; }
.p-float .ghost { max-width: 100%; max-height: 100%; width: auto; height: 100%; filter: drop-shadow(0 18px 16px rgba(0,0,0,.22)); transition: transform .8s var(--ease); }
.p-media:hover .ghost { transform: scale(1.05); }
.p-shadow { position: absolute; bottom: 5%; left: 25%; right: 25%; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent); }
.p-tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: var(--sand-ink); color: var(--sand-2); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; }
.p-body { display: flex; justify-content: space-between; gap: 10px; padding: 14px 2px 0; }
.p-name { display: block; font: 400 clamp(17px, 2.2vw, 22px)/1.15 var(--serif); }
.p-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.p-price { font-size: 14px; white-space: nowrap; }
.p-add { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 10px; letter-spacing: .14em; color: var(--muted); transition: .25s; white-space: nowrap; }
.p-add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 520px) {
  .p-body { flex-direction: column; }
  .p-right { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =========================================================
   PRODUCT
   ========================================================= */
.pdp { display: grid; gap: 28px; padding: 20px 0 60px; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding-top: 34px; } }
.gallery { display: grid; gap: 12px; align-self: start; }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--hdr) + 16px); } }
.g-main {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(80% 70% at 50% 36%, #f8f4ec, #e4dbcc 70%, #d4c8b4);
}
.g-main.dark { background: radial-gradient(80% 70% at 50% 30%, #26262a, #0f0f11 75%); }
.g-view { width: 84%; height: 88%; display: grid; place-items: center; overflow: hidden; transition: opacity .35s ease; }
.g-view.swap { opacity: 0; transform: scale(.97); }
.g-view .ghost { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 26px 22px rgba(0,0,0,.28)); }
.g-main.dark .g-view .ghost { filter: drop-shadow(0 26px 22px rgba(0,0,0,.6)); }
.g-view.detail { width: 100%; height: 100%; }
.g-view.detail .ghost { width: 100%; height: 100%; }
.g-main .p-shadow { bottom: 6%; left: 28%; right: 28%; }
.g-label { position: absolute; left: 18px; bottom: 16px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(27,25,22,.6); }
.g-main.dark .g-label { color: var(--muted); }
.g-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-thumbs button { aspect-ratio: 1; border-radius: 14px; border: 1px solid transparent; padding: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--sand-2), var(--sand)); transition: border-color .25s, opacity .25s; opacity: .6; overflow: hidden; }
.g-thumbs button.dark { background: radial-gradient(circle at 50% 35%, #26262a, #111113); }
.g-thumbs button.active, .g-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.g-thumbs .ghost { height: 80%; width: 80%; }

.info { display: grid; gap: 22px; align-content: start; }
.crumbs { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.crumbs a:hover { color: var(--ink); }
.info h1 { margin: 0; font: 300 clamp(40px, 6vw, 72px)/.98 var(--serif); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-row .price { font: 400 26px var(--serif); }
.price-row small { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.lead { margin: 0; color: var(--muted); max-width: 520px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.opt-head .eyebrow strong { color: var(--ink); font-weight: 400; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .3s var(--ease); }
.swatch::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; transition: border-color .25s; }
.swatch.active::after, .swatch:hover::after { border-color: var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.size { height: 48px; border-radius: 12px; background: none; border: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; transition: .2s; }
.size:hover { border-color: var(--line-2); }
.size.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size.need { animation: shake .4s; border-color: var(--red); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.buy { display: grid; grid-template-columns: 1fr; gap: 10px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 11px; color: var(--muted); text-align: center; }
.perks div { padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; }
.perks strong { display: block; color: var(--ink); font-weight: 400; font-size: 12px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 18px 0; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; line-height: 1; transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.pair {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2);
}
.pair .thumb { aspect-ratio: 1; }
.pair strong { display: block; font: 400 20px/1.1 var(--serif); }
.pair span { font-size: 12px; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 22px; }
.section-title h2 { margin: 0; font: 300 clamp(30px, 4vw, 48px) var(--serif); }
.section-title a { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.section-title a:hover { color: var(--ink); }

/* product photos */
.photo { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.p-float .photo { filter: drop-shadow(0 18px 16px rgba(0,0,0,.22)); transition: transform .8s var(--ease); }
.p-media:hover .photo { transform: scale(1.04); }
.g-view .photo { filter: drop-shadow(0 26px 22px rgba(0,0,0,.28)); }
.g-main.dark .g-view .photo { filter: drop-shadow(0 26px 22px rgba(0,0,0,.6)); }
.g-view .photo.zoom { transform: scale(2.1); transform-origin: var(--focus, 50% 30%); filter: none; }
.thumb .photo { width: 88%; height: 88%; }
.g-thumbs .photo { width: 82%; height: 82%; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 10px; }

/* footer (inner pages) */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid h3 { margin: 0 0 10px; font: 400 10px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.foot-grid a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.foot-brand { font: 400 34px var(--serif); letter-spacing: .3em; }
.foot-note { margin-top: 30px; font-size: 11px; color: var(--faint); letter-spacing: .1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
