:root {
  color-scheme: dark;
  --ink: #f6f5ef;
  --muted: rgba(246, 245, 239, .58);
  --line: rgba(246, 245, 239, .24);
  --mono: "DM Mono", monospace;
  --sans: Manrope, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100svh;
  overflow-x: hidden;
  isolation: isolate;
  background-color: #111311;
  background: #111311;
  color: var(--ink);
  font-family: var(--sans);
}
.ambient-canvas, .ambient-video, .ambient-wash { position: fixed; inset: 0; pointer-events: none; }
.ambient-canvas { z-index: 0; width: 100%; height: 100%; }
.ambient-video { z-index: -1; width: 1px; height: 1px; opacity: 0; }
.ambient-wash { z-index: 1; background: linear-gradient(100deg, rgba(7, 9, 8, .47), rgba(8, 10, 9, .34) 45%, rgba(7, 8, 8, .68)); }
.topbar, .product-view, .catalog-view { position: relative; z-index: 2; }
.topbar {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.header-logo { display: block; width: min(180px, 34vw); height: 52px; object-fit: cover; object-position: center; filter: invert(1); mix-blend-mode: screen; }
.topbar__right { display: flex; align-items: center; gap: 24px; }
.edition, .cart-trigger, .stage-mark, .ambient-caption, .product-info__eyebrow, .product-meta, .size-picker legend, .product-footnote, .support-link, .drawer-kicker, .shipping-row, .subtotal-row, .checkout-button, .checkout-note { font: 9px var(--mono); letter-spacing: .105em; }
.edition { color: var(--muted); }
.offer-trigger { padding: 10px 0; border: 0; color: var(--ink); background: none; cursor: pointer; font: 10px var(--mono); letter-spacing: .105em; white-space: nowrap; }
.offer-trigger:hover { color: rgba(246, 245, 239, .7); }
.cart-trigger { display: flex; align-items: center; gap: 12px; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: 10px; }
.cart-count { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.product-view { min-height: calc(100svh - 78px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 5vw; align-items: center; padding: 0 5vw; }
.catalog-view { min-height: calc(100svh - 78px); padding: 30px 5vw 68px; }
.catalog-heading, .catalog-foot { display: flex; justify-content: space-between; color: var(--muted); font: 8px var(--mono); letter-spacing: .11em; }
.catalog-heading { padding: 5px 0 17px; border-bottom: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.product-card { min-width: 0; color: var(--ink); text-decoration: none; }
.product-card + .product-card { border-left: 0; }
.product-card__image-wrap { height: min(68vh, 690px); min-height: 390px; position: relative; display: grid; place-items: center; overflow: hidden; }
.product-image-link { width: min(72%, 300px); height: 58%; display: block; cursor: pointer; }
.product-image-link img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 25px rgba(0,0,0,.4)); transition: transform .6s cubic-bezier(.2,.75,.25,1); animation: shirt-float 7s ease-in-out infinite; }
.product-image-link[data-product^="running-tights"] img { scale: .72; }
.product-image-link--tank { display: grid; place-items: center; }
.product-image-link--tank img { width: 68%; height: 68%; }
.product-card:nth-child(2) .product-image-link img { animation-delay: -2.5s; }
.product-image-link:hover img { transform: translateY(-5px) scale(1.04); }
.catalog-foot { display: none; }
.catalog-empty { grid-column: 1 / -1; padding: 80px 0; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-align: center; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; font: 8px var(--mono); letter-spacing: .11em; }
.back-link:hover { color: var(--ink); }
.view-enter { animation: view-enter .45s cubic-bezier(.2,.7,.2,1) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .42s; }
::view-transition-old(root) { animation-timing-function: ease; }
::view-transition-new(root) { animation-timing-function: cubic-bezier(.2,.7,.2,1); }
[hidden] { display: none !important; }
.product-stage { height: min(760px, calc(100svh - 125px)); min-height: 510px; position: relative; display: flex; align-items: center; justify-content: center; }
.product-image-button { position: relative; z-index: 1; width: min(76%, 650px); height: 86%; padding: 0; border: 0; background: transparent; cursor: zoom-in; filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .46)); animation: shirt-float 7s ease-in-out infinite; }
.product-image { width: 100%; height: 100%; object-fit: contain; transition: transform .7s cubic-bezier(.2, .75, .25, 1); }
.product-image-button:hover .product-image { transform: scale(1.035); }
.stage-mark { position: absolute; color: rgba(246, 245, 239, .72); font-size: 8px; }
.stage-mark--top { top: 44px; left: 0; }
.stage-mark--bottom { bottom: 32px; left: 0; right: 0; display: flex; justify-content: space-between; }
.ambient-caption { position: absolute; right: 0; bottom: 32px; color: rgba(246, 245, 239, .68); display: flex; align-items: center; gap: 8px; font-size: 8px; }
.ambient-caption i { width: 5px; height: 5px; border-radius: 50%; background: #c7dc99; box-shadow: 0 0 10px #c7dc99; animation: pulse 1.8s ease-in-out infinite; }
.product-info { width: 100%; max-width: 420px; justify-self: center; padding: 12px 0 38px; }
.product-info__eyebrow { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.product-info h1 { margin: 30px 0 24px; font-size: clamp(48px, 6vw, 82px); line-height: .96; letter-spacing: -.035em; font-weight: 500; }
.product-info h1 em { color: rgba(246, 245, 239, .45); font-style: normal; }
.product-headline { margin: -8px 0 12px; color: var(--muted); font: 8px var(--mono); letter-spacing: .055em; line-height: 1.65; }
.product-description { max-width: 300px; margin: 0 0 15px; color: rgba(246, 245, 239, .74); font-size: 13px; line-height: 1.8; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 0 0 23px; font: 12px var(--mono); }
.price-line small { color: var(--muted); font: 7px var(--mono); letter-spacing: .1em; }
.price-note { min-height: 14px; margin: -14px 0 18px; color: var(--muted); font: 8px var(--mono); letter-spacing: .06em; }
.product-meta { display: flex; gap: 22px; color: var(--muted); font-size: 8px; border-top: 1px solid var(--line); padding-top: 17px; }
.product-color-note { margin: 10px 0 0; color: var(--muted); font: 8px var(--mono); letter-spacing: .04em; line-height: 1.6; }
.product-details { display: grid; gap: 7px; margin: 15px 0 0; padding: 0; color: rgba(246, 245, 239, .62); list-style: none; font: 8px/1.65 var(--mono); letter-spacing: .015em; }
.product-details li::before { content: "— "; color: rgba(246, 245, 239, .4); }
.size-picker { border: 0; padding: 0; margin: 35px 0 22px; }
.size-picker legend { width: 100%; display: flex; justify-content: space-between; padding: 0; margin-bottom: 13px; color: var(--muted); font-size: 9px; }
.size-picker legend span { color: var(--ink); }
.size-options { display: flex; gap: 8px; }
.size-option { width: 48px; height: 40px; color: var(--ink); background: transparent; border: 1px solid var(--line); font: 10px var(--mono); cursor: pointer; transition: background .2s, border .2s; }
.size-option:hover, .size-option.is-selected { border-color: var(--ink); background: rgba(255, 255, 255, .12); }
.add-button, .checkout-button { width: 100%; height: 52px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--ink); color: #111311; cursor: pointer; font: 10px var(--mono); letter-spacing: .12em; transition: background .2s, transform .2s; }
.add-button:hover, .checkout-button:not(:disabled):hover { background: #d7dbcb; transform: translateY(-1px); }
.product-footnote { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.product-footnote b { padding-left: 5px; color: var(--ink); }
.support-link { margin-top: 23px; color: var(--muted); text-align: right; font-size: 8px; }
.support-link a { padding-left: 8px; color: var(--ink); text-decoration: none; }
.support-link a:hover { text-decoration: underline; }
.cart-scrim { position: fixed; z-index: 3; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-drawer { position: fixed; z-index: 4; top: 0; right: 0; bottom: 0; width: min(440px, 100%); padding: 30px; display: flex; flex-direction: column; background: #f1f0eb; color: #171918; transform: translateX(102%); transition: transform .38s cubic-bezier(.22, .7, .2, 1); }
.cart-open .cart-drawer { transform: translateX(0); }
.cart-open .cart-scrim { opacity: 1; visibility: visible; }
.cart-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(20, 22, 20, .18); }
.drawer-kicker { color: #73766e; font-size: 8px; }
.cart-drawer h2 { margin: 8px 0 0; font-size: 36px; font-weight: 500; letter-spacing: -.06em; }
.cart-drawer h2 span { color: #777; font: 10px var(--mono); letter-spacing: 0; }
.close-button { border: 0; background: none; color: #222; font-size: 30px; font-weight: 300; cursor: pointer; }
.cart-items { flex: 1; padding: 25px 0; }
.empty-cart { color: #73766e; font-size: 13px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; }
.cart-line img { width: 76px; height: 92px; object-fit: contain; background: #dfdfd8; }
.cart-line__name { font-size: 12px; font-weight: 600; }
.cart-line__size { margin-top: 8px; color: #74766f; font: 9px var(--mono); }
.cart-line__quantity { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #74766f; font: 9px var(--mono); letter-spacing: .08em; }
.cart-line__quantity select { min-width: 48px; padding: 5px 22px 5px 8px; border: 1px solid rgba(20, 22, 20, .24); border-radius: 0; background: transparent; color: #171918; font: 11px var(--mono); cursor: pointer; }
.cart-line__price { font: 10px var(--mono); }
.remove-item { display: block; border: 0; background: none; padding: 10px 0 0; color: #73766e; text-align: left; text-decoration: underline; font: 9px var(--mono); cursor: pointer; }
.cart-bottom { padding-top: 18px; border-top: 1px solid rgba(20, 22, 20, .18); }
.shipping-row, .subtotal-row { display: flex; justify-content: space-between; margin-bottom: 17px; color: #696c65; font-size: 8px; }
.subtotal-row { align-items: center; color: #171918; font-size: 10px; }
.subtotal-row strong { font: 15px var(--mono); }
.checkout-button { height: 52px; background: #171918; color: #f4f3ed; }
.checkout-button:disabled { opacity: .38; cursor: not-allowed; }
.checkout-note { margin: 13px 0 0; color: #777; text-align: center; font-size: 8px; letter-spacing: .02em; }
.discount-note { margin: 7px 0 0; color: #777; text-align: center; font: 8px var(--mono); letter-spacing: .02em; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 27px; padding: 13px 18px; background: #f1f0eb; color: #171918; font: 9px var(--mono); letter-spacing: .07em; opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes shirt-float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }
@keyframes view-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .42; box-shadow: 0 0 3px #c7dc99; } }
@media (max-width: 850px) {
  .topbar { height: 66px; padding: 0 22px; }
  .edition { display: none; }
  .product-view { min-height: calc(100svh - 66px); grid-template-columns: 1fr; gap: 0; padding: 0 22px 62px; }
  .catalog-view { min-height: calc(100svh - 66px); padding: 24px 22px 60px; }
  .product-card__image-wrap { height: 58svh; min-height: 350px; }
  .product-image-link { width: min(72%, 300px); height: 56%; }
  .product-stage { height: 52svh; min-height: 360px; max-height: 560px; }
  .product-image-button { width: 80%; height: 91%; }
  .stage-mark--top { top: 24px; }
  .stage-mark--bottom, .ambient-caption { bottom: 14px; }
  .product-info { max-width: 520px; justify-self: stretch; padding: 6px 0 0; }
  .product-info h1 { margin: 21px 0 14px; font-size: 56px; }
  .product-description { margin-bottom: 13px; }
  .size-picker { margin: 24px 0 17px; }
  .support-link { margin-top: 17px; }
}
@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card + .product-card { border-left: 0; border-top: 0; }
  .product-card__image-wrap { height: 42svh; min-height: 280px; }
  .product-image-link { width: min(62%, 260px); height: 50%; }
  .product-image-link[data-product="running-shorts-black"] img { scale: 1.75; }
  .product-image-link[data-product^="running-tights"] img { scale: 1; }
  .catalog-heading, .catalog-foot { font-size: 7px; }
  .catalog-view { padding-left: 20px; padding-right: 20px; }
  .product-stage { min-height: 280px; height: 38svh; }
  .product-image-button { width: 74%; height: 74%; }
  .product-image[data-product-id="running-shorts-black"] { scale: 1.7; }
  .stage-mark, .ambient-caption { font-size: 7px; }
  .stage-mark--bottom span:last-child { max-width: 50%; text-align: right; }
  .product-info h1 { font-size: 48px; }
  .product-details { font-size: 7px; }
  .cart-drawer { padding: 25px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
