/* =====================================================
   DOUBTLESS — theme.css
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 0; }

::selection { background: var(--color-text); color: var(--color-bg); }

.skip-link { position: absolute; left: -9999px; top: 0; padding: .75rem 1rem; background: #000; color: #fff; z-index: 9999; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 120px) 0; }
.section--flush { padding: 0; }
.stack > * + * { margin-top: var(--space, 1rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}
.display {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(56px, 13vw, 220px);
  line-height: .85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.h1 { font-size: clamp(40px, 7vw, 96px); line-height: .9; }
.h2 { font-size: clamp(32px, 5vw, 64px); }
.h3 { font-size: clamp(24px, 3vw, 36px); }
.h4 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 14px 28px;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border: 1px solid var(--color-button-bg);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--ghost:hover { background: var(--color-text); color: var(--color-bg); }
.btn--inverse { background: var(--color-bg); color: var(--color-text); border-color: var(--color-bg); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 18px 36px; font-size: 14px; }

.link-underline { position: relative; padding-bottom: 2px; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.link-underline:hover { background-size: 0 1px; }

/* ---------- Forms ---------- */
.field {
  display: block; width: 100%;
  padding: 14px 16px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color .2s var(--ease);
}
.field:focus { outline: none; border-color: var(--color-text); }
.field--lg { padding: 18px 18px; }
label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 8px; }

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px var(--gutter);
}
.announcement a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.site-header--transparent { background: transparent; color: #fff; border-bottom-color: transparent; }
.site-header--transparent + main > .hero:first-child,
.template-index .site-header--transparent ~ main > .hero:first-child { margin-top: calc(-1 * var(--header-height)); }
.site-header--scrolled { background: var(--color-bg); color: var(--color-text); border-bottom-color: var(--color-border); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  height: var(--header-height);
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.site-header__nav { display: flex; gap: 28px; align-items: center; }
.site-header__nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  position: relative;
}
.site-header__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.site-header__nav a:hover::after { right: 0; }
.site-header__logo { text-align: center; font-family: var(--font-heading); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; }
.site-header__logo img { max-height: 32px; margin: 0 auto; }
.site-header__actions { display: flex; gap: 18px; justify-content: flex-end; align-items: center; }
.site-header__icon { width: 22px; height: 22px; display: inline-flex; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--color-accent); color: var(--color-bg);
  border-radius: 999px; font-size: 10px; font-weight: 700;
  margin-left: 6px;
}
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-header__nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--color-bg); color: var(--color-text);
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
  padding: 24px var(--gutter);
}
.mobile-drawer[aria-hidden="false"] { transform: translateX(0); }
.mobile-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-drawer__nav a { display: block; font-family: var(--font-heading); font-size: 38px; line-height: 1.2; padding: 6px 0; letter-spacing: -0.01em; }
.mobile-drawer__nav a:hover { font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero--short { min-height: 60vh; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.0) 30%, rgba(0,0,0,.55) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 8vw, 96px); width: 100%; max-width: var(--container); margin: 0 auto; }
.hero__title { font-size: clamp(60px, 14vw, 220px); line-height: .82; letter-spacing: -0.04em; text-transform: uppercase; margin: 0 0 .3em; }
.hero__title em { font-style: italic; font-weight: 300; }
.hero__sub { max-width: 540px; font-size: clamp(15px, 1.4vw, 18px); margin: 0 0 28px; opacity: .9; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll-line { width: 32px; height: 1px; background: currentColor; transform-origin: right; animation: scroll-pulse 2s var(--ease) infinite; }
@keyframes scroll-pulse { 0%,100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.4); opacity: .4; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 18px 0;
  border-block: 1px solid var(--color-text);
}
.marquee--inverse { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }
.marquee__track {
  display: inline-flex; gap: 48px; align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-left: 48px;
}
.marquee__track > * { display: inline-flex; align-items: center; gap: 48px; }
.marquee__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Editorial split ---------- */
.editorial {
  display: grid; gap: clamp(24px, 4vw, 64px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.editorial--reverse { direction: rtl; }
.editorial--reverse > * { direction: ltr; }
.editorial__media { aspect-ratio: 4/5; overflow: hidden; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.editorial:hover .editorial__media img { transform: scale(1.04); }
.editorial__title { font-size: clamp(32px, 5vw, 72px); margin: 12px 0 20px; }
.editorial__body { max-width: 46ch; font-size: 16px; line-height: 1.7; color: var(--color-muted); }
.editorial__cta { margin-top: 28px; }
@media (max-width: 760px) { .editorial { grid-template-columns: 1fr; } }

/* ---------- Featured collection / product grid ---------- */
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}
.section-head__title { font-size: clamp(36px, 5vw, 72px); }
.product-grid {
  display: grid; gap: clamp(20px, 2.5vw, 40px);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .product-grid--4 { grid-template-columns: repeat(2, 1fr); } .product-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product card ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: transparent;
  isolation: isolate;
}
.card__media {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: var(--color-border);
  border-radius: calc(var(--radius) * .5);
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1s var(--ease); }
.card__img--hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__img--primary { opacity: 0; }
.card:hover .card__img--hover { opacity: 1; }
.card:hover .card__img { transform: scale(1.03); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--color-bg); color: var(--color-text);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: 6px 10px; border-radius: 99px;
}
.card__quickadd {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 6px; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card__quickadd { opacity: 1; transform: translateY(0); }
.card__quickadd button {
  flex: 1; padding: 10px 8px;
  background: var(--color-bg); color: var(--color-text);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border-radius: 4px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.card__quickadd button:hover { background: var(--color-text); color: var(--color-bg); }
.card__info { padding: 16px 4px 4px; display: flex; justify-content: space-between; gap: 12px; }
.card__title { font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.card__price { font-size: 14px; font-variant-numeric: tabular-nums; }
.price--sale { color: var(--color-accent); }
.price--compare { text-decoration: line-through; color: var(--color-muted); margin-right: 6px; }
@media (hover: none) { .card__quickadd { display: none; } }

/* ---------- Lookbook ---------- */
.lookbook { position: relative; }
.lookbook__media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.lookbook__media img { width: 100%; height: 100%; object-fit: cover; }
.hotspot {
  position: absolute; transform: translate(-50%,-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: hotspot-pulse 2s var(--ease) infinite;
}
@keyframes hotspot-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
.hotspot__pop {
  position: absolute; left: 50%; top: 130%;
  transform: translateX(-50%) translateY(8px);
  width: 240px; padding: 12px;
  background: var(--color-bg); color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.hotspot[aria-expanded="true"] .hotspot__pop { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.hotspot__pop img { aspect-ratio: 1/1; object-fit: cover; margin-bottom: 8px; border-radius: 4px; }
.hotspot__pop .card__title { font-size: 13px; }

/* ---------- Countdown ---------- */
.countdown { text-align: center; padding: clamp(48px, 8vw, 120px) var(--gutter); background: var(--color-text); color: var(--color-bg); }
.countdown__eyebrow { color: var(--color-bg); opacity: .6; }
.countdown__title { font-size: clamp(40px, 7vw, 96px); margin: 12px 0 32px; }
.countdown__grid { display: inline-flex; gap: clamp(16px, 4vw, 48px); }
.countdown__cell { min-width: 80px; }
.countdown__num { font-family: var(--font-heading); font-size: clamp(40px, 6vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: 8px; }

/* ---------- Press strip ---------- */
.press { padding: clamp(32px, 4vw, 56px) 0; border-block: 1px solid var(--color-border); }
.press__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; opacity: .8; }
.press__row > * { font-family: var(--font-heading); font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.01em; opacity: .7; transition: opacity .3s var(--ease); }
.press__row > *:hover { opacity: 1; }

/* ---------- Newsletter ---------- */
.newsletter { padding: clamp(64px, 10vw, 160px) var(--gutter); text-align: center; background: var(--color-bg); }
.newsletter--inverse { background: var(--color-text); color: var(--color-bg); }
.newsletter__title { font-size: clamp(40px, 8vw, 120px); line-height: .9; letter-spacing: -0.03em; text-transform: uppercase; margin: 0 0 24px; }
.newsletter__form { display: flex; gap: 0; max-width: 520px; margin: 0 auto; border: 1px solid currentColor; border-radius: var(--radius); overflow: hidden; }
.newsletter__form input { flex: 1; background: transparent; border: 0; padding: 18px 20px; font-size: 14px; color: inherit; }
.newsletter__form input::placeholder { color: currentColor; opacity: .55; }
.newsletter__form button { padding: 0 28px; background: currentColor; }
.newsletter__form button span { color: var(--color-bg); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.newsletter--inverse .newsletter__form button span { color: var(--color-text); }
.newsletter__small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 16px; }

/* ---------- Image with text ---------- */
.iwt { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 8vw, 120px) 0; }
.iwt__media { aspect-ratio: 4/5; overflow: hidden; }
.iwt__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .iwt { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text); color: var(--color-bg);
  padding: clamp(64px, 8vw, 120px) var(--gutter) 32px;
}
.site-footer__big {
  font-family: var(--font-heading);
  font-size: clamp(64px, 18vw, 320px); line-height: .8; letter-spacing: -0.05em;
  text-transform: uppercase; margin: 0 0 64px;
}
.site-footer__cols { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr 1fr; padding-block: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.site-footer__col h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; opacity: .6; }
.site-footer__col a { display: block; padding: 4px 0; opacity: .85; }
.site-footer__col a:hover { opacity: 1; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); margin-top: 24px; opacity: .6; font-size: 12px; }
@media (max-width: 760px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
}
.drawer__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; transition: opacity .3s var(--ease);
}
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%);
  background: var(--color-bg); color: var(--color-text);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
}
.drawer[aria-hidden="false"] { pointer-events: auto; }
.drawer[aria-hidden="false"] .drawer__overlay { opacity: 1; }
.drawer[aria-hidden="false"] .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--color-border); }
.drawer__title { font-family: var(--font-heading); font-size: 28px; letter-spacing: -0.01em; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.drawer__progress { height: 4px; background: var(--color-border); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.drawer__progress-fill { height: 100%; background: var(--color-accent); transition: width .5s var(--ease); }
.drawer__shipping { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 12px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.drawer__total strong { font-weight: 600; }

.line {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.line:last-child { border-bottom: 0; }
.line__img { aspect-ratio: 1/1; object-fit: cover; }
.line__title { font-size: 14px; font-weight: 500; }
.line__variant { font-size: 12px; color: var(--color-muted); margin-top: 2px; }
.line__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 99px; margin-top: 8px; }
.line__qty button { width: 26px; height: 26px; }
.line__qty input { width: 28px; text-align: center; background: transparent; border: 0; padding: 0; font-size: 13px; }
.line__price { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.line__remove { display: block; font-size: 11px; color: var(--color-muted); text-decoration: underline; margin-top: 6px; }

.cart-empty { padding: 64px 24px; text-align: center; }
.cart-empty p { color: var(--color-muted); margin-bottom: 20px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 80px); padding: clamp(24px, 5vw, 80px) var(--gutter); max-width: var(--container); margin: 0 auto; }
.product__gallery { display: grid; gap: 8px; align-self: start; position: sticky; top: calc(var(--header-height) + 12px); }
.product__media { aspect-ratio: 4/5; background: var(--color-border); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__gallery--multi { grid-template-columns: repeat(2, 1fr); }
.product__info { display: flex; flex-direction: column; gap: 18px; }
.product__title { font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.product__price { font-size: 22px; font-variant-numeric: tabular-nums; }
.product__desc { color: var(--color-muted); font-size: 15px; line-height: 1.7; }
.product__variants { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.product__variants fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  min-width: 48px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px; letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.swatch:hover { border-color: var(--color-text); }
.swatch-row input:checked + .swatch { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.swatch--soldout { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.swatch--color { padding: 0; width: 36px; height: 36px; border-radius: 50%; position: relative; }
.swatch-row input:focus-visible + .swatch { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.swatch-row input:checked + .swatch--color { box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3px var(--color-text); border: 0; background: transparent; }

.product__actions { display: grid; gap: 10px; margin-top: 8px; }
.product__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius); height: 50px; width: fit-content; }
.product__qty button { width: 44px; height: 44px; }
.product__qty input { width: 44px; text-align: center; background: transparent; border: 0; height: 44px; }

.accordion details { border-top: 1px solid var(--color-border); padding: 16px 0; }
.accordion details:last-child { border-bottom: 1px solid var(--color-border); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; font-weight: 200; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding-top: 14px; color: var(--color-muted); font-size: 14px; line-height: 1.7; }

.share { display: flex; gap: 12px; align-items: center; padding-top: 12px; }
.share span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.share a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__gallery { position: static; }
}

/* ---------- Collection / search ---------- */
.collection-hero { padding: clamp(40px, 6vw, 100px) var(--gutter) clamp(24px, 4vw, 56px); max-width: var(--container); margin: 0 auto; }
.collection-hero__title { font-size: clamp(48px, 9vw, 160px); line-height: .9; letter-spacing: -0.04em; text-transform: uppercase; margin: 0; }
.collection-hero__desc { max-width: 60ch; color: var(--color-muted); margin-top: 16px; font-size: 16px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); border-block: 1px solid var(--color-border); max-width: var(--container); margin: 0 auto; flex-wrap: wrap; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.collection-toolbar select { background: transparent; border: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 64px 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pagination a, .pagination span { padding: 6px 10px; border-bottom: 1px solid transparent; }
.pagination a:hover, .pagination .current { border-bottom-color: var(--color-text); }

/* ---------- Rich text / Page ---------- */
.rich { max-width: 64ch; margin: 0 auto; padding: clamp(48px, 8vw, 120px) var(--gutter); font-size: 17px; line-height: 1.75; }
.rich h1, .rich h2, .rich h3 { margin: 1.4em 0 .5em; letter-spacing: -0.02em; }
.rich h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.rich h2 { font-size: clamp(28px, 4vw, 48px); }
.rich p, .rich ul, .rich ol { margin: 0 0 1.2em; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 40px)); background: var(--color-text); color: var(--color-bg); padding: 14px 22px; border-radius: 99px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; z-index: 250; transition: transform .4s var(--ease); pointer-events: none; }
.toast--show { transform: translateX(-50%) translateY(0); }
.toast:empty { visibility: hidden; }
.sticky-atc.is-visible ~ .toast, body:has(.sticky-atc.is-visible) .toast { bottom: 96px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* =====================================================
   Showcase layer — motion, carousel, edit grid, sticky ATC
   ===================================================== */

/* Header: Shopify wraps sections in a div, so the wrapper must be the sticky element */
.shopify-section:has(> .site-header) { position: sticky; top: 0; z-index: 50; }
.site-header { position: relative; }
.site-header--transparent:not(.site-header--scrolled) .cart-count { background: #fff; color: #0E0E0E; }
body:has(.site-header--transparent) main > .shopify-section:first-child .hero { margin-top: calc(-1 * var(--header-height)); min-height: 100vh; min-height: 100svh; }
body:has(.site-header--transparent) main > .shopify-section:first-child .hero__content { padding-top: calc(var(--header-height) + 32px); }

/* Hero entrance + slow zoom */
.hero__media img, .hero__media video { transform-origin: 50% 40%; animation: hero-zoom 2.6s var(--ease) both; will-change: transform; }
.hero__content > * { animation: rise 1.1s var(--ease) both; }
.hero__content > :nth-child(1) { animation-delay: .25s; }
.hero__content > :nth-child(2) { animation-delay: .4s; }
.hero__content > :nth-child(3) { animation-delay: .6s; }
.hero__content > :nth-child(4) { animation-delay: .75s; }
.hero__title { text-wrap: balance; }
@keyframes hero-zoom { from { transform: scale(1.14); filter: brightness(.6); } to { transform: scale(1); filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Staggered reveals inside grids */
.product-grid > .reveal:nth-child(4n+2), .carousel__slide:nth-child(4n+2) .reveal { transition-delay: .08s; }
.product-grid > .reveal:nth-child(4n+3), .carousel__slide:nth-child(4n+3) .reveal { transition-delay: .16s; }
.product-grid > .reveal:nth-child(4n+4), .carousel__slide:nth-child(4n+4) .reveal { transition-delay: .24s; }

/* Card polish */
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18)); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.card:hover .card__media::after { opacity: 1; }
.card:hover .card__img { transform: scale(1.06); }
.card__title { transition: opacity .3s var(--ease); }

/* Product carousel */
.carousel-section .section-head { align-items: end; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn { width: 52px; height: 52px; border: 1px solid var(--color-text); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .25s var(--ease), color .25s var(--ease), opacity .25s; }
.carousel__btn:hover { background: var(--color-text); color: var(--color-bg); }
.carousel__btn:disabled { opacity: .25; pointer-events: none; }
.carousel__btn--prev svg { transform: scaleX(-1); }
.carousel {
  --inset: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset);
  padding: 0 var(--inset) 8px;
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging a { pointer-events: none; }
.carousel__slide { flex: 0 0 clamp(240px, 28vw, 420px); scroll-snap-align: start; }
.carousel__slide .card__img { -webkit-user-drag: none; user-select: none; }
.carousel__progress { position: relative; height: 2px; background: var(--color-border); margin-top: clamp(24px, 3vw, 40px); overflow: hidden; }
.carousel__progress span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--color-text); transition: transform .2s linear; }
@media (max-width: 760px) { .carousel__slide { flex-basis: 72vw; } .carousel__nav { display: none; } }

/* The edit — asymmetric image grid */
.edit-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 340px); gap: clamp(8px, 1vw, 14px); }
.edit-grid__item { position: relative; overflow: hidden; background: var(--color-border); display: block; }
.edit-grid__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.edit-grid__item:nth-child(6n+4) { grid-row: span 2; }
.edit-grid__item img, .edit-grid__item svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.edit-grid__item:hover img { transform: scale(1.06); }
.edit-grid__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; transform: translateY(101%); transition: transform .5s var(--ease); }
.edit-grid__item:hover .edit-grid__label, .edit-grid__item:focus-visible .edit-grid__label { transform: none; }
@media (hover: none) { .edit-grid__label { transform: none; } }
@media (max-width: 760px) { .edit-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; } .edit-grid__item:nth-child(6n+4) { grid-row: span 1; } }

/* Product page: image swap + sticky add-to-bag */
[data-gallery-main] img { transition: opacity .35s var(--ease); }
[data-gallery-main].is-swapping img { opacity: 0; }
.sticky-atc { position: fixed; left: 50%; bottom: 16px; z-index: 60; width: min(560px, calc(100% - 24px)); transform: translate(-50%, 140%); transition: transform .5s var(--ease); }
.sticky-atc.is-visible { transform: translate(-50%, 0); }
.sticky-atc__inner { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 8px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.sticky-atc__inner img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.sticky-atc__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sticky-atc__title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__price { font-size: 13px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.sticky-atc .btn { border-radius: 999px; padding: 14px 22px; flex: none; }

/* Custom cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--color-text); color: var(--color-bg); display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .35s var(--ease), opacity .3s; }
.cursor.is-active { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Cross-page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
::view-transition-group(product-image) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }

/* ---------- Scroll-lit statement ---------- */
.scroll-text { padding: clamp(96px, 16vw, 220px) 0; }
.scroll-text--inverse { background: var(--color-text); color: var(--color-bg); }
.scroll-text__eyebrow { display: block; margin-bottom: clamp(24px, 3vw, 40px); opacity: .7; }
.scroll-text__body { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: clamp(34px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 18ch; text-wrap: pretty; }
.scroll-text__body .w { opacity: .14; transition: opacity .35s var(--ease); }
.scroll-text__body .w.is-lit { opacity: 1; }
.scroll-text__sig { margin: clamp(32px, 5vw, 64px) 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.no-js .scroll-text__body .w, .scroll-text__body:not(.is-split) { opacity: 1; }

/* ---------- Principles ---------- */
.principles__list { border-top: 1px solid var(--color-border); counter-reset: none; }
.principles__row { border-bottom: 1px solid var(--color-border); position: relative; }
.principles__row > a, .principles__row:not(:has(> a)) { display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(28px, 4vw, 52px) 0; }
.principles__num { font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--color-muted); }
.principles__title { font-size: clamp(32px, 5vw, 76px); line-height: .95; letter-spacing: -0.035em; margin: 0; text-transform: uppercase; transition: transform .6s var(--ease), color .3s var(--ease); }
.principles__text p { margin: 0; color: var(--color-muted); font-size: 16px; line-height: 1.65; max-width: 42ch; }
.principles__piece { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.principles__row:hover .principles__title { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.principles__row:hover .principles__piece, .principles__row:focus-within .principles__piece { opacity: 1; transform: none; }
.principles__list:hover .principles__row:not(:hover) .principles__title { color: var(--color-muted); }
.principles__thumb { display: none; }
.principles__float { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(200px, 18vw, 280px); aspect-ratio: 4/5; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .35s var(--ease), transform .45s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.principles__float.is-active { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1) rotate(-3deg); }
.principles__float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .principles__float { display: none; }
  .principles__piece { opacity: 1; transform: none; }
  .principles__row > a, .principles__row:not(:has(> a)) { grid-template-columns: 1fr 88px; grid-template-areas: "num thumb" "title thumb" "text text"; row-gap: 10px; }
  .principles__num { grid-area: num; } .principles__title { grid-area: title; } .principles__text { grid-area: text; }
  .principles__thumb { display: block; grid-area: thumb; width: 88px; aspect-ratio: 4/5; object-fit: cover; align-self: start; border-radius: 2px; }
}

/* ---------- Feature list ---------- */
.features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-text); }
.features__item { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px) 0 0; }
.features__item + .features__item { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--color-border); }
.features__index { font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--color-muted); }
.features__title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; margin: clamp(40px, 6vw, 96px) 0 12px; }
.features__text { margin: 0; color: var(--color-muted); font-size: 15px; line-height: 1.65; }
.features__grid > .reveal:nth-child(2) { transition-delay: .08s; } .features__grid > .reveal:nth-child(3) { transition-delay: .16s; } .features__grid > .reveal:nth-child(4) { transition-delay: .24s; }
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .features__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .features__item { padding-bottom: 32px; }
}
@media (max-width: 480px) { .features__grid { grid-template-columns: 1fr; } .features__item, .features__item + .features__item { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--color-border); } .features__title { margin-top: 24px; } }

/* ---------- Story teaser ---------- */
.story-teaser { padding: clamp(72px, 11vw, 160px) 0; overflow: hidden; }
.story-teaser--inverse { background: var(--color-text); color: var(--color-bg); }
.story-teaser--inverse .eyebrow, .story-teaser--inverse .story-teaser__text { color: inherit; opacity: .7; }
.story-teaser__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.story-teaser__title { font-size: clamp(56px, 9vw, 150px); line-height: .86; letter-spacing: -0.045em; text-transform: uppercase; margin: 16px 0 24px; text-wrap: balance; }
.story-teaser__text { max-width: 44ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; margin: 0 0 clamp(28px, 4vw, 44px); }
.story-teaser__points { display: flex; flex-wrap: wrap; border-top: 1px solid currentColor; margin-bottom: clamp(32px, 4vw, 48px); }
.story-teaser__points li { flex: 1 1 auto; padding: 16px 20px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.story-teaser__points li span { font-size: 10px; opacity: .55; }
.story-teaser__media { position: relative; display: block; aspect-ratio: 4/5; }
.story-teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.story-teaser__media > img { clip-path: inset(0); } /* keeps the zoom inside the frame while the badge overhangs */
.story-teaser__media:hover > img { transform: scale(1.04); }
.story-badge { position: absolute; left: 0; bottom: 0; width: clamp(120px, 12vw, 168px); aspect-ratio: 1; transform: translate(-40%, 30%); border-radius: 50%; background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .6s var(--ease); }
.story-teaser__media:hover .story-badge { transform: translate(-40%, 30%) scale(1.08); }
.story-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 16s linear infinite; }
.story-badge__ring text { fill: currentColor; font-size: 15px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; font-family: var(--font-body); }
.story-badge__arrow { transform: rotate(-45deg); transition: transform .5s var(--ease); }
.story-teaser__media:hover .story-badge__arrow { transform: rotate(0deg); }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .story-teaser__grid { grid-template-columns: 1fr; }
  .story-teaser__media { order: -1; margin-left: clamp(40px, 12vw, 80px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__content > *, .hero__media img { opacity: 1; filter: none; }
  @view-transition { navigation: none; }
  .scroll-text__body .w { opacity: 1; }
}
