@font-face {
  font-family: Store;
  src: url('/assets/store-regular-ux.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Store;
  src: url('/assets/store-bold-ux.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #686866;
  --line: #e6e6e3;
  --control-border: #858583;
  --paper: #f1f0ed;
  --surface: #fff;
  --error: #a12222;
  --hover: #333;
  --active: #505050;
  --text-small: .75rem;
  --text-label: .875rem;
  --text-body: 1rem;
  --page-gutter: clamp(16px, 4.5vw, 72px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: var(--text-body)/1.5 Store, Arial, sans-serif; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button, a, summary, input { scroll-margin: 16px; }
:is(button, a, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.plain { background: transparent; padding: 8px; min-height: 48px; }
.icon { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.header, main, footer { width: calc(100% - var(--page-gutter) * 2); max-width: 1500px; margin-inline: auto; }
.header { min-height: 96px; padding-block: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 48px; font-size: 2rem; font-weight: 700; letter-spacing: -.06em; line-height: 1.3; }
.header-note { font-size: var(--text-small); color: var(--muted); }
.cart-trigger { display: flex; gap: 12px; align-items: center; font-size: var(--text-label); }
.cart-count { font-size: var(--text-small); background: var(--paper); border-radius: 50%; min-width: 24px; min-height: 24px; padding: 2px 4px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: var(--text-small); color: var(--muted); }
.breadcrumb span:last-child { color: var(--ink); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.gallery { min-width: 0; }
.hero-image { display: block; position: relative; background: var(--paper); width: 100%; padding: 0; overflow: hidden; }
.hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; transition: transform .3s ease; }
.image-label { position: absolute; top: 24px; left: 24px; font-size: var(--text-small); letter-spacing: .08em; color: var(--ink); }
.zoom-mark { position: absolute; bottom: 16px; right: 16px; border-radius: 50%; background: var(--surface); width: 48px; height: 48px; display: grid; place-items: center; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: var(--text-small); padding: 12px 0; color: var(--muted); }
.gallery-controls > span { flex: 1 1 180px; }
.detail-trigger { display: flex; align-items: center; gap: 8px; font-size: var(--text-small); flex-shrink: 0; }
.product-info { padding: 24px 0 0; width: 100%; max-width: 480px; min-width: 0; }
.eyebrow { font-size: var(--text-small); letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
h1 { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
.subtitle { color: var(--muted); font-size: var(--text-body); margin: 0; }
.price { font-size: 1.5rem; margin: 24px 0; font-variant-numeric: tabular-nums; }
.description { font-size: var(--text-body); line-height: 1.5; margin: 0 0 24px; }
.color-row { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; font-size: var(--text-label); }
.swatch { display: block; width: 28px; height: 28px; flex-shrink: 0; border: 3px solid var(--surface); outline: 1px solid var(--control-border); background: #e6e2d8; border-radius: 50%; }
.color-code { margin-left: auto; color: var(--muted); font-size: var(--text-small); }
.size-header { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: var(--text-label); }
.text-button { background: transparent; padding: 12px 8px; min-height: 48px; font-size: var(--text-small); text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sizes span { display: grid; place-items: center; min-height: 48px; padding: 8px 4px; border: 1px solid var(--control-border); font-size: var(--text-label); transition: background .15s, color .15s; }
.sizes input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.sizes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.sizes[aria-invalid='true'] span { border-color: var(--error); }
.error { margin: 8px 0; min-height: 20px; color: var(--error); font-size: var(--text-small); }
.add-button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 24px; min-height: 56px; background: var(--ink); color: var(--surface); font-size: var(--text-body); transition: background .15s; text-align: left; }
.add-button:focus-visible { outline-offset: 4px; }
.selection-note { font-size: var(--text-small); color: var(--muted); margin: 12px 0 32px; }
.information { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; list-style: none; cursor: pointer; padding: 16px 0; font-size: var(--text-label); min-height: 56px; }
summary::-webkit-details-marker { display: none; }
details[open] summary .icon { transform: rotate(45deg); }
details p { font-size: var(--text-body); color: var(--muted); margin: 0 0 24px; }
.closing { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end; margin-top: 64px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.closing > span { font-size: var(--text-small); letter-spacing: .08em; color: var(--muted); }
.closing > span:first-child { grid-column: 1 / -1; }
.closing p { font-size: clamp(1.75rem, 4vw, 3.125rem); line-height: 1.2; letter-spacing: -.04em; margin: 24px 0 0; }
.closing-index { white-space: nowrap; }
footer { border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
footer .brand { font-size: 1.5rem; }
footer p, footer > span { font-size: var(--text-small); color: var(--muted); }
footer p { max-width: 440px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { display: block; padding: 16px; }
dialog { border: 0; padding: 24px; width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); color: var(--ink); background: var(--surface); overflow-y: auto; }
dialog::backdrop { background: #0008; backdrop-filter: blur(4px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.025em; line-height: 1.3; margin: 8px 0; overflow-wrap: anywhere; }
.close { display: grid; place-items: center; padding: 12px; width: 48px; height: 48px; flex-shrink: 0; background: var(--surface); }
.muted { color: var(--muted); font-size: var(--text-body); }
.small { font-size: var(--text-small); }
table { width: 100%; border-collapse: collapse; margin: 24px 0; }
td, th { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: var(--text-label); overflow-wrap: anywhere; }
th { font-weight: 400; }
thead { background: var(--paper); }
#image-dialog { padding: 0; width: min(1440px, calc(100% - 24px)); height: calc(100svh - 24px); max-height: none; overflow: hidden; background: var(--paper); }
#image-dialog[open] { display: flex; flex-direction: column; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; flex-shrink: 0; gap: 8px 16px; padding: 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.viewer-heading { font-size: var(--text-label); margin: 0 8px; }
.zoom-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.zoom-button { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 8px; background: var(--paper); }
.zoom-button[aria-disabled='true'] { opacity: .45; cursor: default; }
.zoom-scale { min-width: 4ch; text-align: center; font-size: var(--text-small); font-variant-numeric: tabular-nums; }
.zoom-reset { font-size: var(--text-small); }
.image-viewport { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: var(--paper); scroll-behavior: auto; }
.image-viewport:focus-visible { outline-offset: -4px; }
.image-stage { width: max-content; min-width: 100%; min-height: 100%; display: grid; place-items: center; }
#image-dialog img { display: block; max-width: none; height: auto; user-select: none; }
.viewer-hint { flex-shrink: 0; padding: 8px 16px; margin: 0; font-size: var(--text-small); color: var(--muted); background: var(--surface); }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 80px; object-fit: cover; grid-row: 1 / 3; }
.cart-row p { margin: 0; font-size: var(--text-label); overflow-wrap: anywhere; }
.cart-row .remove { font-size: var(--text-label); text-decoration: underline; text-underline-offset: 3px; background: transparent; padding: 12px 8px; min-height: 48px; color: var(--muted); }
.cart-row strong { font-size: var(--text-body); font-weight: 400; grid-column: 2; }
.cart-total { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin: 24px 0; }
.continue { margin-top: 24px; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 16px); width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--surface); padding: 16px 24px; font-size: var(--text-label); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .hero-image:hover img { transform: scale(1.025); }
  .add-button:hover { background: var(--hover); }
  :is(.plain, .text-button, .zoom-button, .remove):hover { background: var(--paper); color: var(--ink); }
  .sizes label:hover span { border-color: var(--ink); }
}
.add-button:active { background: var(--active); }
:is(.plain, .text-button, .zoom-button, .remove):active { background: #dededb; }
.sizes label:active span { box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 900px) {
  .header { min-height: 80px; padding-block: 12px; }
  .header-note { display: none; }
  .brand { font-size: 1.75rem; }
  .breadcrumb { padding: 16px 0; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-info { max-width: none; padding: 0; }
  .hero-image img { aspect-ratio: 1 / 1.12; }
  .image-label { top: 16px; left: 16px; }
  h1 { font-size: 2rem; }
  .closing { margin-top: 48px; padding-bottom: 40px; grid-template-columns: 1fr; gap: 16px; }
  .closing-index { justify-self: end; }
  footer p { order: 3; width: 100%; max-width: none; margin: 0; }
  .viewer-heading { display: none; }
  .zoom-controls { flex: 1; }
}
@media (max-width: 400px) {
  dialog { padding: 16px; }
  .cart-trigger { gap: 8px; }
  .zoom-controls { gap: 4px; }
  .zoom-button { min-width: 44px; min-height: 48px; }
  .viewer-toolbar { gap: 4px; }
}
@media (max-height: 450px) {
  .viewer-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
