@font-face {
  font-family: Vazirmatn;
  src: url('/assets/vazirmatn.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* A storefront theme supplies these primitives. Both discovery and buying surfaces
   read the same semantic aliases, including an embedded seller's own theme. */
:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --paper-light: #fffbf5;
  --paper-deep: #eae0d2;
  --type-strong: #291f1a;
  --type-soft: #62564e;
  --rule: #c7b9aa;
  --brand: #49263f;
  --brand-pressed: #37182f;
  --brand-tint: #eee5e9;
  --story-color: #803e29;
  --mineral: #dcd4de;
  --purchase-ground: #eee9ed;
  --purchase-object: var(--mineral);
  --purchase-paper: #faf7fa;
  --purchase-line: #c9bec8;
  --font: 'Vazirmatn', 'Geeza Pro', Tahoma, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-signature: Baskerville, Georgia, serif;
  --bg: var(--paper);
  --surface: var(--paper-light);
  --surface-subtle: var(--paper-deep);
  --ink: var(--type-strong);
  --muted: var(--type-soft);
  --line: var(--rule);
  --accent: var(--brand);
  --accent-hover: var(--brand-pressed);
  --accent-soft: var(--brand-tint);
  --on-accent: #ffffff;
  --copper: var(--story-color);
  --warn: #775017;
  --warn-soft: #faf0da;
  --danger: #8e3039;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-sheet: 14px;
  --shadow-sheet: 0 12px 62px #291e2826;
  --shadow-card: 0 2px 8px #291e280a;
  --veil: rgb(41 31 26 / .40);
  --glass: rgb(255 251 245 / .94);
  --motion-fast: 145ms;
  --motion-normal: 225ms;
  --motion-sheet: 285ms;
  --ease: cubic-bezier(.22,.76,.24,1);
  --target: 44px;
  --max-store: 1680px;
  --sheet-width: 480px;
  --gutter: clamp(16px, 5vw, 84px);
  --safe-bottom: env(safe-area-inset-bottom,0px);
}
:root[data-theme="ink"] {
  --paper: #eff1f5; --paper-light: #fbfcfe; --paper-deep: #e2e7ef;
  --type-strong: #1e2637; --type-soft: #4c596b; --rule: #b3becd;
  --brand: #334d70; --brand-pressed: #223955; --brand-tint: #e1e9f2;
  --story-color: #37516e; --mineral: #d5dfed;
  --purchase-ground: #e9edf4; --purchase-paper: #f8fafe; --purchase-line: #b9c4d3;
}
:root[data-theme="clay"] {
  --paper: #f6eee6; --paper-light: #fffbf5; --paper-deep: #e9daCB;
  --type-strong: #362820; --type-soft: #69564c; --rule: #c8b7a8;
  --brand: #794532; --brand-pressed: #583020; --brand-tint: #f1ded3;
  --story-color: #783f2c; --mineral: #e5d4c7;
  --purchase-ground: #f0e7df; --purchase-paper: #fdf8f3; --purchase-line: #cbbaab;
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-normal: 0ms; --motion-sheet: 0ms; }
}

:root[data-theme="forest"] {
  --paper: #f1f2e8;
  --paper-light: #fcfcf5;
  --paper-deep: #e5e8d9;
  --type-strong: #222e25;
  --type-soft: #505f51;
  --rule: #b8c1ad;
  --brand: #315a42;
  --brand-pressed: #214331;
  --brand-tint: #dae9da;
  --story-color: #694b2f;
  --mineral: #d4dfcc;
  --purchase-ground: var(--paper-deep); --purchase-paper: var(--paper-light); --purchase-line: var(--rule);
}

:root[data-theme="marine"] {
  --paper: #eaf4f5;
  --paper-light: #f8fdfd;
  --paper-deep: #dbe9eb;
  --type-strong: #142f38;
  --type-soft: #435e65;
  --rule: #a9bcc2;
  --brand: #165368;
  --brand-pressed: #103f50;
  --brand-tint: #d2e9ed;
  --story-color: #574975;
  --mineral: #ccdee0;
  --purchase-ground: var(--paper-deep); --purchase-paper: var(--paper-light); --purchase-line: var(--rule);
}

:root[data-theme="rose"] {
  --paper: #fbf0f4;
  --paper-light: #fffafb;
  --paper-deep: #f0dee5;
  --type-strong: #392530;
  --type-soft: #6b5260;
  --rule: #cdb6c0;
  --brand: #743350;
  --brand-pressed: #57243e;
  --brand-tint: #f2dce7;
  --story-color: #744b32;
  --mineral: #e8d5df;
  --purchase-ground: var(--paper-deep); --purchase-paper: var(--paper-light); --purchase-line: var(--rule);
}

:root[data-theme="graphite"] {
  --paper: #f1f0ed;
  --paper-light: #fcfbf8;
  --paper-deep: #e2e0dc;
  --type-strong: #262622;
  --type-soft: #595951;
  --rule: #bdbab1;
  --brand: #383b37;
  --brand-pressed: #252824;
  --brand-tint: #e0e3da;
  --story-color: #69432c;
  --mineral: #d5d3ce;
  --purchase-ground: var(--paper-deep); --purchase-paper: var(--paper-light); --purchase-line: var(--rule);
}

:root[data-theme="saffron"] {
  --paper: #fcf4dc;
  --paper-light: #fffaf0;
  --paper-deep: #f2e6bd;
  --type-strong: #342b18;
  --type-soft: #67593a;
  --rule: #caba92;
  --brand: #72500a;
  --brand-pressed: #523905;
  --brand-tint: #efdfa8;
  --story-color: #783c23;
  --mineral: #e9ddbe;
  --purchase-ground: var(--paper-deep); --purchase-paper: var(--paper-light); --purchase-line: var(--rule);
}

.store-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark:has(.store-logo), .mini-mark:has(.store-logo) { background: transparent; padding: 0; overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font);
  -webkit-text-size-adjust: 100%; scrollbar-gutter: stable;
}
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .44; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 16px; }
.icon { display: inline-grid; place-items: center; width: 21px; height: 21px; flex: none; }
.icon svg { width: 100%; height: 100%; }
.muted, .currency { color: var(--muted); }
.store {
  --page-padding: clamp(16px, 3.5vw, 62px);
  width: min(100%, 1572px); margin-inline: auto; padding: 0 var(--page-padding) 20px;
}
.topbar, .brand, .top-actions, .surface-brand, .surface-controls { display: flex; align-items: center; }
.topbar { justify-content: space-between; gap: 22px; min-height: 82px; }
.brand { gap: 10px; min-width: 0; }
.brand-mark, .mini-mark {
  display: grid; place-items: center; width: 40px; aspect-ratio: 1; flex: none;
  color: var(--accent); border: 1px solid currentColor; border-radius: 50%;
  font: italic 29px/.95 Baskerville, Georgia, serif; letter-spacing: -.12em; padding-right: .12em;
}
.brand-lockup, .brand > span:last-child { min-width: 0; }
.brand strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.6; }
.brand small { display: block; width: fit-content; color: var(--muted); font: 10px/1.3 Georgia, serif; letter-spacing: .17em; }
.brand strong, .brand small { overflow-wrap: anywhere; }
.top-actions { gap: clamp(10px, 1.4vw, 24px); }
.top-actions > a, .order-entry {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; font-size: 13px; white-space: nowrap;
}
.top-actions .icon { width: 17px; height: 17px; }
.seller-entry { color: var(--accent); }
.seller-entry:hover, .order-entry:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-button, .nav-button {
  position: relative; display: grid; place-items: center; width: var(--target); height: var(--target);
  flex: none; border-radius: 50%; transition: background var(--motion-fast);
}
.icon-button:hover { background: var(--accent-soft); }
.cart-toggle { color: var(--accent); border: 1px solid var(--line); }
.cart-toggle .icon { width: 20px; height: 20px; }
.count {
  position: absolute; top: -2px; left: -3px; min-width: 18px; height: 18px; padding: 0 3px;
  display: grid; place-content: center; background: var(--accent); color: white; border-radius: 20px; font-size: 10px;
}
.collection-row, .filter-row { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.collection-row::-webkit-scrollbar, .filter-row::-webkit-scrollbar { display: none; }
.collection-row { gap: clamp(12px, 2vw, 32px); }
.collection-chip {
  position: relative; align-content: center; flex: none; min-height: 44px; color: var(--muted); font-size: 13px;
}
.collection-chip[aria-pressed=true], .collection-chip:hover { color: var(--ink); }
.collection-chip[aria-pressed=true]::after {
  content: ''; position: absolute; bottom: 4px; height: 1px; inset-inline: 0; background: currentColor;
}
.intro {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  min-height: clamp(355px, 31.2vw, 485px); overflow: hidden; isolation: isolate;
  background: var(--accent); color: var(--on-accent);
}
.intro-copy { align-self: center; position: relative; z-index: 2; padding: clamp(30px, 4.1vw, 70px); }
.intro .eyebrow { display: flex; align-items: center; justify-content: end; gap: 15px; width: fit-content;
  font: 12px/1.5 Georgia, serif; letter-spacing: .23em; color: #eee8d7; }
.intro .eyebrow::before { content: ''; width: 32px; height: 1px; background: #ded6ba; opacity: .7; }
.intro h1 {
  margin: 18px 0 4px; font-size: clamp(40px, 4.5vw, 76px); line-height: 1.5;
  font-weight: 520; letter-spacing: -.045em; overflow-wrap: anywhere;
}
.intro p { font-size: clamp(14px, 1.1vw, 18px); font-weight: 380; color: #f3f0e6; line-height: 1.9; overflow-wrap: anywhere; }
.intro-photo { min-width: 0; position: relative; background: #b69d7d; }
.intro-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 42% 26%; }
.intro-monogram { display: grid; place-items: center; color: var(--on-accent); opacity: .13; font: italic clamp(128px, 22vw, 345px)/1 Georgia, serif; }
.hero-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; min-height: 45px;
  color: var(--ink); background: #fcf9ee; padding: 8px 19px; font-size: 14px; font-weight: 650; transition: background var(--motion-fast); }
.hero-link:hover { background: #eae4d5; }
.hero-link .icon { width: 19px; }
.hero-link:focus-visible { outline-color: #fff; }
.entry-context { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.browse { padding-top: clamp(28px, 3.3vw, 55px); }
.catalog-head, .section-title { display: flex; align-items: center; }
.catalog-head { justify-content: space-between; gap: 14px; }
.section-title { align-items: baseline; gap: 12px; }
.section-title h2 { font-size: clamp(24px, 2.3vw, 39px); font-weight: 560; letter-spacing: -.055em; line-height: 1.5; }
.section-title .muted { white-space: nowrap; font-size: 12px; }
.search { display: flex; align-items: center; gap: 8px; width: min(245px, 100%); min-height: 44px;
  border-bottom: 1px solid var(--line); }
.search:focus-within { border-color: var(--accent); }
.search .icon { width: 18px; color: var(--muted); }
.search input { width: 100%; min-width: 0; padding: 6px 0; border: 0; outline: 0; background: none; font-size: 14px; }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.search input::-webkit-search-cancel-button { display:none; }
.clear-search { width: 44px; }
.filter-row { gap: 8px; padding: 10px 0 16px; }
.chip { display: inline-grid; place-items: center; flex: none; min-width: 44px; min-height: 44px; padding-inline: 14px;
  font-size: 13px; position: relative; isolation: isolate; }
.chip::before { content: ''; position: absolute; z-index: -1; inset: 5px 0; border: 1px solid var(--line); border-radius: 40px; }
.chip[aria-pressed=true] { color: #fff; }
.chip[aria-pressed=true]::before { border-color: var(--ink); background: var(--ink); }
.chip:hover:not([aria-pressed=true])::before { border-color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(10px, 1.5vw, 24px); }
.product-card { display: block; min-width: 0; text-align: start; }
.card-image { display: block; overflow: hidden; background: #ded5c5; aspect-ratio: 1; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms var(--ease); }
@media (hover:hover) { .product-card:hover .card-image img { transform: scale(1.035); } }
.card-info { display: grid; gap: 1px; padding: 12px 1px 0; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.card-colors { display: flex; gap: 4px; }
.micro-swatch { display: block; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px #392e201b; }
.swatch-sand { background: #c9b99f; } .swatch-olive { background: #777957; } .swatch-charcoal { background: #434340; }
.swatch-ivory { background: #e5ddca; } .swatch-cocoa { background: #795c4a; }
.card-name { font-size: clamp(15px, 1.25vw, 20px); font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.price, .product-price { font-variant-numeric: tabular-nums; }
.price { font-size: 14px; color: var(--ink); }
.currency { font-size: .74em; margin-inline-start: 2px; font-weight: 400; }
.store-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-top: 45px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.store-footer b { font: 600 15px/1.5 Georgia, serif; color: var(--ink); }
.dock { display: none; }
.empty { grid-column: 1/-1; margin-block: 30px; text-align: center; color: var(--muted); }
.surface-layer { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow: hidden; }
.scrim { position: absolute; inset: 0; background: #171b19; opacity: 0; transition: opacity var(--motion-sheet) var(--ease); }
.surface {
  --panel-gap: clamp(18px, 2.5vw, 32px);
  position: relative; display: flex; flex-direction: column; width: min(635px, calc(100% - 32px));
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: hidden;
  background: var(--bg); border-radius: 5px; box-shadow: 0 24px 96px #171b1940;
  transform: translateY(24px); opacity: 0; transition: transform var(--motion-sheet) var(--ease), opacity var(--motion-normal);
}
.surface[data-panel=product] { width: min(900px, calc(100% - 44px)); }
.surface:focus { outline: none; }
.surface-layer.open .scrim { opacity: .52; }
.surface-layer.open .surface { opacity: 1; transform: none; }
.surface-layer.expanding { pointer-events: none; align-items: end; }
.surface-layer.expanding .surface { width: 100%; height: 100%; max-width: none; max-height: none; transition: none; transform: none; transform-origin: top left; }
.surface-layer.expanding .scrim { opacity: 0; }
.surface-header { padding: 8px var(--panel-gap); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex: none; }
.surface-brand { gap: 9px; font-size: 14px; font-weight: 600; }
.mini-mark { width: 29px; font-size: 20px; direction: ltr; }
.surface-controls { gap: 3px; }
.panel-seller { display: none; }
.surface[data-panel=product] .panel-seller { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; color: var(--muted); font-size: 12px; }
.panel-seller:hover { text-decoration: underline; text-underline-offset: 3px; }
.surface-controls .icon { width: 18px; height: 18px; }
.surface-controls .cart-toggle { border: 0; }
.grab-area { display: none; flex: none; touch-action: none; cursor: grab; }
.grab-handle { display: block; height: 4px; width: 36px; border-radius: 20px; background: var(--line); }
.surface-content { overflow: auto; overscroll-behavior: contain; min-height: 0; padding: 20px var(--panel-gap); scrollbar-width: thin; }
.surface-footer { padding: 12px var(--panel-gap) calc(12px + var(--safe-bottom)); flex: none; border-top: 1px solid var(--line); background: var(--bg); }
.surface-footer[aria-busy=true] { opacity: .76; }
.product-presentation { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.18fr); gap: clamp(16px, 3vw, 42px); align-items: start; }
.product-visual { grid-column: 2; grid-row: 1; min-width: 0; }
.product-detail { grid-row: 1; grid-column: 1; min-width: 0; }
.gallery { position: relative; isolation: isolate; overflow: hidden; background: #ddd4c7; aspect-ratio: 1; touch-action: pan-y; }
.gallery > img { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav-button { position: absolute; top: 50%; transform: translateY(-50%); width: var(--target); height: var(--target); background: #faf8f0ee; }
.gallery .prev { right: 8px; } .gallery .next { left: 8px; }
.nav-button .icon { width: 16px; height: 16px; }
.gallery-counter { position: absolute; inset: auto auto 10px 10px; direction: ltr; padding: 2px 9px; color: #282723; background: #faf8f1ee; font-size: 11px; border-radius: 20px; }
.gallery-dots { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 8px; overflow-x: auto; }
.dot { display: grid; place-items: center; width: 48px; height: 48px; padding: 2px; border: 1px solid transparent; flex: none; }
.dot img { width: 100%; height: 100%; object-fit: cover; }
.dot[aria-pressed=true] { border-color: var(--accent); }
.product-head { padding-bottom: 16px; }
.product-category { display: block; color: var(--muted); font-size: 12px; }
.product-head h2 { margin: 3px 0 1px; font: 610 clamp(27px, 2.8vw, 41px)/1.55 var(--font); letter-spacing: -.05em; overflow-wrap: anywhere; }
.product-price { font-size: clamp(18px, 1.7vw, 23px); font-weight: 550; }
.product-head p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.option, .quantity-row { border-top: 1px solid var(--line); padding: 10px 0; }
.option-header, .quantity-row, .cart-line-bottom, .summary-row, .receipt-amounts > div, .order-status, .checkout-lines li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.option-header, .quantity-row { font-size: 14px; }
.option-value, .cart-meta { font-size: 12px; color: var(--muted); }
.color-options, .size-options { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.color-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.color-button .micro-swatch { width: 30px; height: 30px; }
.color-button[aria-pressed=true] .micro-swatch { outline: 1px solid var(--accent); outline-offset: 3px; }
.tick { position: absolute; bottom: 3px; left: 1px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: white; background: var(--accent); }
.tick .icon { width: 10px; height: 10px; }
.size-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); padding: 4px 9px; font-size: 13px; }
.size-button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.size-button:disabled { text-decoration: line-through; }
.stock-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent); }
.stock-status.low { color: var(--warn); } .stock-status.out { color: var(--danger); }
.stock-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stepper { direction: ltr; display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); }
.stepper button { display: grid; place-items: center; min-width: 44px; height: 44px; }
.stepper .icon { width: 15px; height: 15px; } .stepper output { min-width: 20px; text-align: center; font-size: 14px; }
.buy-actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 9px; }
.primary, .secondary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; min-height: 48px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--accent); transition: background var(--motion-fast); }
.primary { color: white; background: var(--accent); }
.primary:not(:disabled):hover { background: var(--accent-hover); } .secondary { color: var(--accent); }
.secondary:not(:disabled):hover { background: var(--accent-soft); }
.primary .icon, .secondary .icon { width: 17px; height: 17px; }
.full-button { width: 100%; }
.store-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; gap: 7px; color: var(--muted); font-size: 13px; }
.store-link .icon { width: 14px; height: 14px; }
.toast { position: fixed; z-index: 20; bottom: calc(90px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 88%; padding: 11px 16px; background: var(--ink); color: white; font-size: 13px; text-align: center; box-shadow: var(--shadow-sheet); }
.panel-heading { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.045em; margin: 1px 0 12px; }
.cart-list { display: grid; }
.cart-item { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item > img { width: 82px; height: 95px; object-fit: cover; background: var(--surface-subtle); }
.cart-info h3 { font-size: 15px; }
.cart-line-bottom { gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.cart-line-bottom .icon-button { color: var(--muted); }
.cart-line-bottom .icon-button .icon { width: 16px; }
.summary-row { margin: 0 0 12px; font-size: 14px; }
.panel-note, .reserve-message { margin-block: 10px; padding: 10px 13px; font-size: 13px; color: var(--muted); background: var(--surface-subtle); }
.panel-note.warning, .reserve-message.warning { color: var(--warn); background: var(--warn-soft); }
.reserve-message { color: var(--accent); background: var(--accent-soft); }
.reserve-message strong { display: block; }
.reserve-timer { display: inline-block; direction: ltr; font-variant-numeric: tabular-nums; }
.checkout-fields { display: grid; gap: 12px 16px; margin-block: 16px; }
.checkout-field { display: grid; align-content: start; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink); }
.checkout-field :is(input,select,textarea) { width: 100%; min-width: 0; min-height: 47px; border: 1px solid var(--line);
  border-radius: 3px; background-color: var(--surface); color: var(--ink); padding: 8px 10px; font: 400 16px/1.45 var(--font); }
.checkout-field:has(select) { position: relative; }
.checkout-field select {
  appearance: none;
  -webkit-appearance: none;
  block-size: 47px;
  padding-inline-end: 32px;
  cursor: pointer;
}
.checkout-field:has(select)::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-end: 14px;
  bottom: 21px;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.checkout-field select:disabled { color: var(--muted); opacity: .7; cursor: default; }
.checkout-field textarea { resize: vertical; }
.delivery-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .delivery-wide, .delivery-fields .checkout-field:last-child { grid-column: 1/-1; }
.checkout-summary { margin-block-start: 18px; border-top: 1px solid var(--line); }
.checkout-summary summary, .checkout-receipt summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-size: 13px; font-weight: 600; }
.checkout-summary summary span { margin-inline-start: 5px; color: var(--muted); font-weight: 400; }
.receipt-amounts { font-size: 14px; margin: 3px 0; padding: 10px 14px; background: var(--surface-subtle); }
.receipt-amounts > div { padding-block: 3px; align-items: baseline; }
.receipt-amounts dt { color: var(--muted); } .receipt-amounts dd { margin: 0; font-variant-numeric: tabular-nums; }
.receipt-amounts > div:last-child { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 7px; font-weight: 650; }
.checkout-actions, .checkout-minor { display: grid; gap: 7px; }
.checkout-minor { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
.checkout-minor button { font-size: 13px; }
.checkout-error { color: var(--danger); font-size: 13px; }
.checkout-error:not(:empty) { margin-block: 8px; }
.checkout-lines, .price-changes { list-style: none; margin: 0; padding: 0; }
.checkout-lines li, .order-status { padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-status b { overflow-wrap: anywhere; }
.price-changes li { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 12px; }
.price-changes li strong { grid-column: 1/-1; } .price-changes li :is(span,s,b) { display: block; }
.store.revealing { animation: reveal var(--motion-sheet) var(--ease); }
@keyframes reveal { from { opacity: .82; } to { opacity: 1; } }
@media (max-width: 980px) {
  .top-actions > .order-entry { display: none; }
  .collection-row { gap: 13px; }
  .intro { min-height: 320px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dock { position: fixed; inset: auto 0 0; z-index: 4; display: grid; grid-template-columns: repeat(3,1fr);
    background: var(--bg); border-top: 1px solid var(--line); padding: 3px max(12px, env(safe-area-inset-right)) calc(3px + var(--safe-bottom)) max(12px, env(safe-area-inset-left)); }
  .dock-item { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
  .dock-item.active { color: var(--accent); font-weight: 700; } .dock-item .icon { width: 18px; height: 18px; }
  .store { padding-bottom: calc(65px + var(--safe-bottom)); }
}
@media (max-width: 700px) {
  .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 10px; min-height: 66px; }
  .top-actions { justify-content: end; gap: 12px; }
  .brand { min-height: 62px; } .brand-mark { width: 35px; font-size: 24px; }
  .collection-row { grid-column: 1/-1; grid-row: 2; border-top: 1px solid var(--line); gap: 21px; }
  .collection-chip { font-size: 12px; }
  .intro { grid-template-columns: 1fr 1fr; min-height: 270px; }
  .intro-copy { padding: 20px; }
  .intro h1 { font-size: 36px; margin-top: 10px; } .intro p { font-size: 14px; }
  .hero-link { margin-top: 16px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 23px; }
  .catalog-head { flex-wrap: wrap; } .search { width: 175px; }
  .surface-layer { align-items: end; }
  .surface, .surface[data-panel=product] { width: min(100%, 570px); max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); border-radius: 15px 15px 0 0; transform: translateY(103%); }
  .grab-area { display: grid; place-items: center; height: 12px; }
  .surface-header { padding-block: 0 4px; }
  .surface-content { padding-block: 14px; }
  .product-presentation { display: flex; flex-direction: column; gap: 10px; }
  .product-presentation > * { width: 100%; }
  .gallery { height: clamp(196px, 29vh, 300px); aspect-ratio: auto; background: var(--surface-subtle); }
  .gallery > img { object-fit: contain; }
  .gallery-dots { margin-top: 0; gap: 0; }
  .dot { width: 44px; height: 44px; border: 0; position: relative; }
  .dot img { display: none; }
  .dot::before { content: ''; width: 6px; height: 6px; border-radius: 12px; background: #bab7a9; }
  .dot[aria-pressed=true]::before { width: 20px; background: var(--accent); }
  .product-head { padding-bottom: 10px; }
  .product-head h2 { font-size: 27px; line-height: 1.45; }
  .product-head p { margin-top: 4px; }
  .surface-footer { padding-block: 8px calc(4px + var(--safe-bottom)); }
}
@media (max-width: 540px) {
  .intro.with-photo { display: grid; grid-template-columns: 1fr; align-items: end; min-height: clamp(267px, 72vw, 365px); }
  .with-photo .intro-copy { align-self: end; padding: 20px; }
  .with-photo .intro-photo { position: absolute; z-index: -1; inset: 0; background: #584b3b; }
  .with-photo .intro-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#161b16df,transparent 78%),linear-gradient(270deg,#181e194d,transparent 63%); }
  .with-photo .intro-photo img { object-position: 40% 19%; }
  .intro .eyebrow { font-size: 10px; gap: 10px; } .intro .eyebrow::before { width: 22px; }
  .intro h1 { font-size: 35px; line-height: 1.5; margin: 5px 0 0; }
  .intro p { font-size: 13px; }
  .hero-link { min-height: 44px; margin-top: 10px; font-size: 13px; gap: 16px; padding-inline: 14px; }
  .catalog-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, .75fr); gap: 10px; }
  .search { width: 100%; }
  .section-title { gap: 8px; }
  .section-title h2 { font-size: 26px; }
  .filter-row { padding-block: 4px 8px; gap: 5px; } .chip { padding-inline: 12px; }
  .card-info { padding-top: 8px; } .card-name { font-size: 15px; } .price { font-size: 13px; }
  .surface { --panel-gap: 16px; }
  .primary, .secondary { font-size: 14px; padding-inline: 8px; }
  .delivery-fields { gap: 10px; }
}
@media (max-width: 355px) {
  .store { --page-padding: 12px; }
  .brand { gap: 7px; } .brand strong { font-size: 14px; } .brand small { font-size: 9px; }
  .top-actions { gap: 6px; } .seller-entry { font-size: 12px; }
  .delivery-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 600px) and (max-width: 700px) {
  .gallery { height: 175px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.link-workspace{max-width:880px;margin:auto;padding:24px 18px 50px}.link-workspace h1{font-size:24px}.link-list{display:grid;gap:10px;margin-top:18px}.link-record{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--r-md);padding:14px;background:var(--surface)}.link-record h3{font-size:14px;overflow-wrap:anywhere}.link-record code{display:block;direction:ltr;text-align:left;overflow-wrap:anywhere;color:var(--muted);font-size:11px;line-height:1.6}.link-actions{display:flex;align-items:center;gap:8px}.link-actions a,.link-actions button{padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-sm);min-height:44px;display:grid;place-items:center;color:var(--accent);font-size:12px}.link-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.link-tools button{min-height:44px;padding:8px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm)}.link-tools button[aria-pressed=true]{background:var(--accent);color:#fff}.link-feedback{min-height:26px;color:var(--accent);font-size:12px;margin-top:8px}@media(max-width:520px){.link-record{grid-template-columns:1fr}.link-actions{justify-content:flex-end}}

.store {
  --page-padding: var(--gutter);
  width: min(100%, var(--max-store));
  padding-inline: var(--page-padding);
}
.topbar {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  gap: clamp(12px, 2.6vw, 44px);
}
.topbar .brand { flex-shrink: 0; }
.brand-mark, .mini-mark { color: var(--ink); }
.brand strong { font-weight: 750; font-size: 19px; }
.top-actions { flex: none; gap: clamp(8px, 1.3vw, 22px); }
.header-search, .topbar .seller-entry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--target); font-size: 13px; }
.topbar .cart-toggle { border-color: transparent; color: var(--ink); }
.topbar .collection-row { min-width: 0; max-width: 40%; }
.collection-chip { max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-chip[aria-pressed=true] { color: var(--accent); font-weight: 720; }
.surface-lockup { display: grid; min-width: 0; }
.surface-lockup small { display: block; width: fit-content; color: var(--muted); font: 9px/1.3 var(--font-signature); letter-spacing: .16em; }

.intro.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 6%;
  isolation: auto;
  overflow: visible;
  min-height: 0;
  color: var(--ink);
  background: transparent;
  padding-block: clamp(22px, 3vw, 42px) 14px;
}
.story-copy { min-width: 0; padding-inline-start: 12%; }
.story-kicker { color: var(--story-color); font-size: 15px; font-weight: 640; }
.story-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.story-price { display: inline-flex; align-items: baseline; gap: 6px; font-size: clamp(19px, 1.7vw, 26px); font-weight: 660; font-variant-numeric: tabular-nums; }
.story-price small, .related-price small { font-size: .64em; font-weight: 430; }
.story-copy p { color: var(--muted); font-size: clamp(14px, 1.18vw, 18px); line-height: 1.72; margin: 4px 0 20px; }
.story-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 12px 20px; min-height: 48px; background: var(--accent); color: var(--on-accent);
  font-weight: 640; border-radius: 2px; transition: background var(--motion-fast);
}
.story-action:hover { background: var(--accent-hover); }
.story-action .icon { width: 19px; }
.story-image-stage { position: relative; min-width: 0; }
.story-photo { position: relative; margin: 0; height: clamp(355px, 61svh, 640px); background: var(--surface-subtle); }
.story-photo img { width: 100%; height: 100%; object-fit: contain; }
.story-photo.campaign img { object-fit: cover; object-position: center 35%; }
.story-photo figcaption {
  position: absolute; left: 11px; bottom: 10px; padding: 1px 7px;
  background: var(--glass); color: var(--ink); font-size: 11px;
}
.story-inset {
  position: absolute; inset-inline-start: 0; bottom: 12px; margin: 0;
  width: clamp(98px, 11.5vw, 180px); transform: translateX(48%);
  padding: 6px 6px 0; background: var(--bg);
}
.story-inset img { width: 100%; height: auto; aspect-ratio: 1.22; object-fit: cover; }
.story-inset figcaption { font-size: 12px; padding: 4px 3px; color: var(--story-color); font-weight: 560; }
.related-strip { margin-block: 18px 0; padding-block: 18px 5px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: clamp(20px, 6vw, 90px); }
.related-strip h2 { font-size: clamp(17px, 1.6vw, 25px); font-weight: 700; }
#related-items { display: flex; gap: clamp(18px, 4vw, 72px); }
.related-item { min-width: 0; display: flex; gap: 12px; align-items: center; min-height: var(--target); }
.related-item > img { width: 65px; height: 73px; object-fit: cover; background: var(--surface-subtle); }
.related-item > span { display: grid; }
.related-item b { font-size: 15px; overflow-wrap: anywhere; }
.related-price { font-size: 14px; white-space: nowrap; }
.related-item:hover b, .product-card:hover .card-name { text-decoration: underline; text-underline-offset: 4px; }
.browse { scroll-margin-top: 12px; margin-top: clamp(28px, 3.3vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); }
.section-title h2 { font-weight: 720; }
#catalog .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card-image { aspect-ratio: 6/5; }
.card-image img { object-fit: contain; background: var(--surface-subtle); }
.mobile-collection { display: none; }
.store-footer a, .store-footer button { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 980px) {
  .topbar .collection-row { max-width: 36%; gap: 14px; }
  .top-actions .order-entry { display: none; }
}
@media (max-width: 700px) {
  .store { --page-padding: clamp(14px, 4.1vw, 22px); padding-bottom: 20px; }
  .topbar { min-height: 58px; display: flex; gap: 8px; }
  .topbar .brand { min-height: 54px; flex: 0 1 auto; }
  .topbar .brand strong { font-size: 16px; }
  .topbar .brand small { font-size: 9px; }
  .topbar .brand-mark { width: 31px; font-size: 23px; }
  .topbar .collection-row { display: none; }
  .top-actions { gap: 1px; }
  .topbar .header-search, .topbar .seller-entry { min-width: 44px; }
  .topbar .header-search > span:last-child, .topbar .seller-entry > span:last-child { display: none; }
  .topbar .top-actions .icon { width: 19px; height: 19px; }
  .intro.editorial-hero { grid-template-columns: minmax(0,1fr); gap: 0; padding: 14px 0 0; }
  .story-image-stage { grid-row: 1; }
  .story-photo { margin-inline-start: 30px; height: clamp(218px, 38svh, 355px); }
  .story-photo figcaption { font-size: 10px; bottom: 6px; left: 6px; }
  .story-inset { width: clamp(76px, 23.3vw, 108px); bottom: 10%; inset-inline-start: 0; transform: none; padding: 5px 5px 0; }
  .story-inset img { aspect-ratio: 1.08; }
  .story-inset figcaption { font-size: 10px; padding: 2px; }
  .story-copy { padding: 15px 4px 0; }
  .story-kicker { font-size: 12px; }
  .story-copy h1 { font-size: clamp(33px, 11vw, 48px); margin: 4px 0; line-height: 1.35; }
  .story-price { font-size: 19px; }
  .story-copy p { margin: 1px 0 12px; font-size: 13px; }
  .story-action { display: flex; min-height: 48px; }
  .related-strip { margin-top: 19px; display: block; padding: 9px 0 0; }
  .related-strip h2 { font-size: 16px; margin-bottom: 8px; }
  #related-items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .related-item { gap: 7px; }
  .related-item > img { width: clamp(39px, 11.6vw, 58px); height: 52px; }
  .related-item b { font-size: 13px; }
  .related-price { font-size: 12px; }
  .browse { margin-top: 32px; padding-top: 12px; }
  .mobile-collection { margin: 7px 0 3px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
  .mobile-collection > span { color: var(--muted); }
  .mobile-collection select { height: 44px; max-width: 180px; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 620; }
  #catalog .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dock { position: static; padding-bottom: calc(4px + var(--safe-bottom)); }
}
@media (max-height: 650px) and (max-width: 700px) {
  .story-photo { height: clamp(168px, 32svh, 216px); }
  .story-copy { padding-top: 8px; }
}
.shelf-store { min-height: var(--target); padding-inline: 8px; font-size: 13px; color: var(--accent); }
.shelf-store:hover { text-decoration: underline; text-underline-offset: 4px; }

.empty-story { padding: var(--space-8) 0; }
.empty-story h1 { font-size: clamp(32px,4vw,60px); }
.empty-story p { color: var(--muted); }
.assistive-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shelf-return { display: none; }
.surface:is([data-panel=checkout],[data-panel=cart]) .shelf-close { width: auto; min-width: 44px; padding-inline: 7px; border-radius: var(--r-sm); }
.surface:is([data-panel=checkout],[data-panel=cart]) .shelf-close > .icon,
.surface:is([data-panel=checkout],[data-panel=cart]) .shelf-dismiss { display: none; }
.surface:is([data-panel=checkout],[data-panel=cart]) .shelf-return { display: inline; font-size: 13px; }
.editorial-hero[data-no-photo] { display: block; padding-block: clamp(28px, 5vw, 80px); }
.editorial-hero[data-no-photo] .story-copy { padding: 0; max-width: 62ch; }
.editorial-hero[data-no-photo] .story-image-stage { display: none; }
.photo-note { display: block; color: var(--muted); font-size: 12px; }
.story-copy > .photo-note { margin-block: -8px 16px; }
.text-product { border-block-start: 1px solid var(--line); align-self: start; }

.story-photo picture {display:block;width:100%;height:100%;}
.story-photo[data-focus="top"] img {object-position:top}
.story-photo[data-focus="center"] img {object-position:center}
.story-photo[data-focus="bottom"] img {object-position:bottom}
.story-photo[data-focus="left"] img {object-position:left}
.story-photo[data-focus="right"] img {object-position:right}
@media(max-width:700px){
.story-photo[data-mobile-focus="top"] img {object-position:top}
.story-photo[data-mobile-focus="center"] img {object-position:center}
.story-photo[data-mobile-focus="bottom"] img {object-position:bottom}
.story-photo[data-mobile-focus="left"] img {object-position:left}
.story-photo[data-mobile-focus="right"] img {object-position:right}
}

@media(max-width:700px){.topbar .top-actions>.order-entry {display:inline-flex;align-items:center;gap:4px;min-height:var(--target);font-size:12px}}

/* The purchase desk uses the storefront's brand and two quieter material surfaces. */
.surface {
  --desk-ground: var(--purchase-ground, #eee9ed);
  --desk-object: var(--purchase-object, #dcd4de);
  --desk-paper: var(--purchase-paper, #faf7fa);
  --desk-rule: var(--purchase-line, #c9bec8);
  --desk-inset: clamp(16px, 4vw, 76px);
  --deck-inset: clamp(20px, 2.3vw, 36px);
  --gallery-ratio: 1.9;
  background: var(--desk-ground);
  color: var(--ink);
}
.surface :is(.primary,.secondary) { border-radius:4px; }
.surface .primary { background:var(--accent); color:var(--on-accent); }
.surface .primary:disabled { opacity:.55; }
.surface .secondary { border-color:var(--desk-rule); }
.surface :is(.product-price,.portrait-price,.summary-row strong,.receipt-amounts dd) {font-variant-numeric:tabular-nums;}
.surface [hidden] {display:none!important;}
.surface .surface-header {
  background:var(--bg); flex-shrink:0; padding:0 var(--desk-inset); min-height:62px;
  border-bottom:1px solid var(--desk-rule);
}
.surface .surface-controls {gap:8px;}
.surface .surface-content {overscroll-behavior:contain;}
.product-visual {background:var(--desk-object);}
.product-visual .gallery {
  display:grid; place-items:center; width:100%; height:clamp(310px,65vh,635px); aspect-ratio:auto;
  background:var(--desk-object);
}
.product-visual .gallery>img {
  display:block; width:100%; height:100%; min-height:0; object-fit:contain;
}
.gallery .nav-button, .gallery .zoom-trigger {
  display:grid;place-items:center;background:var(--desk-paper);color:var(--ink);
  border:1px solid var(--desk-rule);border-radius:50%;width:44px;height:44px;
}
.gallery .zoom-trigger {position:absolute;inset-block-start:8px;inset-inline-start:8px;}
.gallery .zoom-trigger .icon {width:17px;height:17px;}
.gallery .nav-button {opacity:0;transition:opacity var(--motion-fast) var(--ease);}
.gallery:focus-within .nav-button,.gallery:hover .nav-button {opacity:1;}
.gallery-counter {display:none;}
.gallery-dots {
  display:flex;justify-content:start;gap:12px;margin:0;min-height:62px;
  padding:6px 15px;background:var(--desk-object);
}
.gallery-dots .dot {
  display:inline-flex;align-items:center;gap:8px;width:auto;min-width:44px;height:auto;
  min-height:44px;padding:3px;border:0;color:var(--ink);
}
.gallery-dots .dot::before {display:none;}
.gallery-dots .dot img {display:block;width:40px;height:40px;border:1px solid var(--desk-rule);}
.gallery-dots .dot[aria-pressed=true] img {outline:1.5px solid var(--accent);outline-offset:2px;}
.frame-caption {font-size:12px;}
.product-detail {background:var(--desk-paper);padding:var(--deck-inset) var(--deck-inset) 0;}
.product-detail .product-head {padding:0 0 20px;}
.product-category {font-size:14px;font-weight:600;color:var(--accent);}
.product-name-row h2 {
  color:var(--ink);font-weight:810;font-size:clamp(32px,3.55vw,64px);line-height:1.35;
  letter-spacing:-.05em;margin:8px 0 2px;
}
.product-head .product-price {font-size:clamp(18px,1.85vw,26px);font-weight:650;}
.product-head p {font-size:15px;line-height:1.7;margin-top:7px;}
.product-detail .option, .product-detail .quantity-row {
  display:flex;align-items:center;justify-content:space-between;gap:8px 14px;
  padding:10px 0;min-height:70px;border-top:1px solid var(--desk-rule);
}
.option-header {justify-content:flex-start;align-items:baseline;gap:7px;flex-wrap:wrap;}
.option :is(.color-options,.size-options) {justify-content:flex-end;align-items:center;margin:0;gap:4px;}
.option .size-options {justify-content:flex-start;}
.product-detail :is(.quantity-row,.option-header) strong {font-size:15px;}
.product-detail .option-value {font-size:13px;}
.color-button .tick {display:none;}
.color-button .micro-swatch {height:29px;width:29px;border:1px solid #746c6380;box-shadow:none;}
.color-button[aria-pressed=true] .micro-swatch {outline:1.5px solid var(--ink);}
.size-button {padding:4px 8px;border-color:var(--desk-rule);color:var(--ink);font-size:15px;}
.size-button[aria-pressed=true] {background:var(--ink);color:var(--desk-paper);border-color:var(--ink);}
.size-button:disabled {opacity:.55;}
.product-detail .stepper,.cart-line-bottom .stepper {border-color:var(--desk-rule);background:transparent;}
.product-detail .stock-status {font-size:11px;line-height:1.5;margin-top:2px;max-width:23em;}
.surface-footer .buy-actions {grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);}
.buy-actions .primary, .surface[data-panel=cart] [data-action=cart-checkout] {justify-content:space-between;padding-inline:16px;}
.photo-inspector {
  margin:auto;inset:0;border:1px solid var(--desk-rule);padding:12px;background:var(--desk-paper);
  color:var(--ink);width:min(960px,calc(100% - 20px));max-width:none;
  max-height:94vh;max-height:94dvh;border-radius:6px;
}
.photo-inspector::backdrop {background:rgb(26 20 24 / .78);}
.inspector-bar {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;}
.inspector-bar strong {overflow-wrap:anywhere;font-size:14px;}
.inspector-view {direction:ltr;overflow:auto;height:min(67vh,720px);overscroll-behavior:contain;background:var(--desk-object);}
.inspector-view img {display:block;width:100%;height:100%;object-fit:contain;max-width:none;}
.photo-inspector.is-enlarged .inspector-view img {width:190%;height:190%;}
.inspector-scale {margin-block-start:8px;}
.inspector-scale[aria-pressed=true] {border-color:var(--accent);background:var(--accent-soft);}

.purchase-layout {min-width:0;}
.order-portrait {
  display:flex;min-width:0;flex-direction:column;gap:16px;align-self:start;background:var(--desk-object);
  padding:clamp(15px,1.65vw,26px);border-radius:20px;color:var(--ink);
}
.portrait-head,.portrait-foot {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.portrait-head {font-size:14px;}
.portrait-count {font-size:12px;border:1px solid var(--desk-rule);border-radius:30px;padding:2px 10px;}
.portrait-photos {display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--desk-paper);}
.portrait-photos img {width:100%;height:min(47vh,460px);object-fit:contain;background:var(--desk-object);}
.portrait-photos .portrait-fabric {display:none;}
.portrait-foot>div,.cart-info {min-width:0;}
.portrait-foot h3,.cart-info h3 {overflow-wrap:anywhere;}
.portrait-foot h3 {margin:0;font-size:clamp(18px,2vw,29px);font-weight:720;line-height:1.45;}
.portrait-spec {color:var(--muted);font-size:14px;}
.portrait-price {white-space:nowrap;font-size:15px;}
.choice-deck {min-width:0;}
.choice-deck .panel-heading {
  font-size:clamp(31px,3.65vw,56px);font-weight:760;line-height:1.42;margin:0 0 16px;
}
.cart-list {border-top:1px solid var(--desk-rule);}
.cart-item {border-color:var(--desk-rule);grid-template-columns:78px minmax(0,1fr);align-items:center;}
.cart-item>img {height:82px;width:78px;object-fit:cover;border-radius:5px;}
.cart-info h3 {font-weight:680;}
.cart-unit-label {display:none;font-size:15px;font-weight:650;}
.cart-list[data-single] .cart-item {display:block;}
.cart-list[data-single] .cart-info {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.cart-list[data-single] :is(.cart-line-title,.cart-item>img) {display:none;}
.cart-list[data-single] .cart-unit-label {display:block;}
.cart-line-bottom {justify-content:start;gap:12px;margin-top:3px;}
.cart-remove {display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:12px;color:var(--muted);}
.cart-remove .icon {width:15px;height:15px;}
.cart-remove:hover {color:var(--danger);}
.cart-ledger .summary-row {font-size:14px;align-items:baseline;margin:0;padding:6px 0;}
.cart-ledger .summary-row span,.receipt-amounts dt {color:var(--muted);}
.cart-ledger .cart-total {margin:6px 0 10px;padding:11px 0 0;border-top:1px solid var(--desk-rule);}
.cart-total strong {font-size:1.12em;}
.cart-empty .empty {text-align:start;}
.choice-deck .checkout-fields {margin-block:10px 12px;gap:9px 15px;}
.choice-deck .checkout-field {gap:3px;font-size:13px;font-weight:560;}
.choice-deck .checkout-field :is(input,select,textarea) {border-color:var(--desk-rule);background:var(--desk-paper);border-radius:6px;}
.choice-deck .checkout-field textarea {min-height:48px;}
.choice-deck .checkout-summary {margin-top:12px;border-top:1px solid var(--desk-rule);}
.choice-deck .receipt-amounts {border-radius:9px;background:var(--desk-paper);margin:0;padding:6px 14px;}
.choice-deck .receipt-amounts>div {padding-block:4px;}
.choice-deck .receipt-amounts>div:last-child {border-color:var(--desk-rule);}
.choice-deck .checkout-summary summary {color:var(--muted);font-size:12px;}
.choice-deck .panel-note {font-size:12px;padding:7px 10px;}
.choice-deck .checkout-error:empty {display:none;}
.surface[data-panel=checkout] .checkout-actions .primary,.surface[data-panel=cart] [data-action=cart-checkout] {border-radius:8px;}
.surface[data-panel=checkout] :is(.order-status,.checkout-lines li) {padding-block:10px;}
.surface[data-panel=checkout] .surface-footer {max-height:36dvh;overflow-y:auto;}
.surface[data-panel=checkout] .surface-content {scroll-padding-block-end:18px;}
.surface[data-panel=checkout] :is(.checkout-field input,.checkout-field textarea,.checkout-field select) {scroll-margin-block:10px;}

@media(min-width:761px) {
  .surface-layer {align-items:stretch;}
  .surface-layer .surface:is([data-panel=product],[data-panel=cart],[data-panel=checkout]) {
    width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;
    overflow-y:auto;overscroll-behavior-y:contain;
  }
  .surface .surface-header {min-height:80px;}
  .surface:is([data-panel=product],[data-panel=cart]),.surface[data-panel=checkout]:has(.purchase-layout) {
    display:grid;grid-template-columns:minmax(340px,1fr) minmax(0,var(--gallery-column,1.9fr));
    grid-template-rows:auto auto auto;align-content:start;align-items:start;
    column-gap:clamp(18px,2vw,30px);padding:0 var(--desk-inset) 32px;
  }
  .surface:is([data-panel=cart],[data-panel=checkout]) {--gallery-column:.94fr;}
  .surface:is([data-panel=product],[data-panel=cart])>.surface-header,
  .surface[data-panel=checkout]:has(.purchase-layout)>.surface-header {
    grid-row:1;grid-column:1/-1;margin:0 calc(-1 * var(--desk-inset)) clamp(18px,2.1vw,34px);
  }
  .surface:is([data-panel=product],[data-panel=cart])>.surface-content,
  .surface[data-panel=checkout]:has(.purchase-layout)>.surface-content,
  .surface .product-presentation,.surface .purchase-layout {display:contents;}
  .surface .product-visual,.surface .order-portrait {grid-row:2/4;grid-column:2;}
  .surface .product-detail,.surface .choice-deck {grid-row:2;grid-column:1;}
  .surface .product-detail {align-self:stretch;}
  .surface[data-panel=product]>.surface-footer, .surface[data-panel=cart]>.surface-footer,
  .surface[data-panel=checkout]:has(.purchase-layout)>.surface-footer {
    grid-row:3;grid-column:1;align-self:start;border:0;background:var(--desk-paper);
    padding:14px var(--deck-inset) 24px;
  }
  .surface[data-panel=product]>.surface-footer {align-self:stretch;}
  .surface[data-panel=cart]>.surface-footer {align-self:end;margin-top:20px;border-radius:14px;}
  .surface[data-panel=checkout]:has(.purchase-layout)>.surface-footer {align-self:end;margin-top:15px;padding:14px var(--deck-inset);border-radius:14px;}
  .surface[data-panel=checkout]:not(:has(.purchase-layout))>.surface-content,
  .surface[data-panel=checkout]:not(:has(.purchase-layout))>.surface-footer {
    width:min(670px,100%);align-self:center;padding:24px;background:var(--desk-paper);
  }
  .surface[data-panel=checkout]:not(:has(.purchase-layout))>.surface-content {margin-top:32px;flex:0 0 auto;}
  .surface[data-panel=checkout]:not(:has(.purchase-layout))>.surface-footer {border-top-color:var(--desk-rule);}
  .surface[data-panel=cart]:has(.cart-empty) {grid-template-columns:minmax(0,580px);justify-content:center;}
  .surface[data-panel=cart]:has(.cart-empty)>.surface-header {margin-inline:calc((100vw - 580px)/-2);}
}
@media(max-width:760px) {
  .surface-layer {align-items:end;}
  .surface-layer .surface:is([data-panel=product],[data-panel=cart],[data-panel=checkout]) {
    width:100%;height:100vh;height:100dvh;max-height:none;max-width:none;display:flex;
    border-radius:0;box-shadow:none;
  }
  .surface .grab-area {display:none;}
  .surface .surface-header {min-height:57px;padding-inline:16px;gap:8px;}
  .surface .surface-controls {gap:3px;}
  .surface>.surface-content {flex:1;min-height:0;padding:14px 16px;overflow:auto;}
  .surface>.surface-footer {flex:none;background:var(--desk-paper);padding:9px 16px calc(9px + var(--safe-bottom));border-color:var(--desk-rule);}
  .surface .product-presentation {display:flex;flex-direction:column;gap:0;}
  .product-visual .gallery {height:clamp(170px,29vh,268px);height:clamp(170px,29dvh,268px);}
  .gallery .zoom-trigger {inset:6px 6px auto auto;opacity:.9;}
  .gallery-dots {padding:3px 10px;min-height:48px;gap:8px;}
  .gallery-dots .dot img {width:30px;height:30px;}
  .gallery-dots .frame-caption {font-size:11px;}
  .product-detail {padding:14px 14px 5px;}
  .product-category {font-size:12px;}
  .product-name-row {display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;}
  .product-name-row h2 {font-size:clamp(25px,7.9vw,34px);margin:4px 0;}
  .product-head .product-price {font-size:clamp(15px,4.2vw,19px);}
  .product-head p {font-size:12px;margin:0;}
  .product-detail .product-head {padding-bottom:12px;}
  .product-detail .option,.product-detail .quantity-row {min-height:55px;padding:5px 0;gap:4px 8px;}
  .option .color-options,.option .size-options {gap:2px;}
  .product-detail .option-header {gap:5px;}
  .product-detail .option-header strong,.product-detail .quantity-row strong {font-size:13px;}
  .product-detail .option-value {font-size:12px;}
  .product-detail .color-button .micro-swatch {width:25px;height:25px;}
  .product-detail .stepper output {min-width:16px;}
  .surface-footer .buy-actions {gap:8px;}
  .surface-footer .buy-actions button {min-height:48px;}
  .purchase-layout {display:flex;flex-direction:column;gap:12px;}
  .order-portrait {padding:10px 12px;gap:7px;width:100%;border-radius:13px;}
  .portrait-head {font-size:12px;}
  .portrait-count {font-size:10px;}
  .portrait-photos {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-rows:100%;gap:2px;height:clamp(118px,20vh,175px);}
  .portrait-photos:not(:has(.portrait-fabric:not([hidden]))) {grid-template-columns:minmax(0,1fr);}
  .portrait-photos img {width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;background:var(--desk-object);}
  .portrait-photos .portrait-fabric {display:block;object-fit:cover;}
  .portrait-foot h3 {font-size:17px;}
  .portrait-spec,.portrait-price {font-size:12px;}
  [data-panel=checkout] .order-portrait {display:grid;grid-template-columns:60px minmax(0,1fr);grid-template-rows:auto auto;gap:0 12px;}
  [data-panel=checkout] .portrait-photos {grid-column:1;grid-row:1/3;height:64px;align-self:center;}
  [data-panel=checkout] .portrait-head {grid-column:2;grid-row:1;}
  [data-panel=checkout] .portrait-foot {grid-column:2;grid-row:2;}
  [data-panel=checkout] .portrait-foot h3 {font-size:15px;}
  [data-panel=checkout] .portrait-price,[data-panel=checkout] .portrait-spec {font-size:11px;}
  .choice-deck .panel-heading {font-size:clamp(27px,7.6vw,34px);margin-bottom:9px;}
  .choice-deck .checkout-fields {gap:8px 10px;margin:8px 0;}
  .choice-deck .checkout-field {font-size:12px;}
  .choice-deck .checkout-field textarea {height:48px;}
  .choice-deck .checkout-summary summary {font-size:12px;}
  .surface[data-panel=cart] .store-link {min-height:44px;}
  .surface[data-panel=cart] .cart-total {margin-bottom:9px;}
  .cart-list[data-single] .cart-info {gap:4px;flex-wrap:wrap;}
  .cart-line-bottom {gap:10px;}
}
@media(max-height:620px) and (max-width:760px){
  .product-visual .gallery {height:clamp(135px,29vh,175px);}
  .surface[data-panel=cart] .cart-ledger .summary-row {padding-block:1px;}
  .surface[data-panel=checkout] .surface-footer {max-height:28dvh;}
  .surface[data-panel=checkout] .surface-header {min-height:45px;}
}
@media(min-width:761px) and (max-width:980px){
  .surface:is([data-panel=product],[data-panel=cart]),.surface[data-panel=checkout]:has(.purchase-layout) {
    grid-template-columns:minmax(315px,1.05fr) minmax(0,1fr);
    --desk-inset:24px;--deck-inset:18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .surface .gallery .nav-button {transition:none;}
}

.surface:is([data-panel=cart],[data-panel=checkout]) #surface-cart {display:none;}
.surface-footer>.receipt-amounts {background:transparent;margin:0 0 9px;padding:0;}
.surface-footer>.receipt-amounts>div {padding-block:4px;}
.surface-footer>.receipt-amounts>div:last-child {border-color:var(--desk-rule);}
.sandbox-note {margin:4px 0 0;font-size:12px;color:var(--muted);}
@media(max-width:760px){
  .surface[data-panel=cart]:has(.cart-ledger:not([hidden]))>.surface-footer,
  .surface[data-panel=checkout]:has(.purchase-layout)>.surface-footer {
    background:var(--desk-paper);margin:0 16px calc(12px + var(--safe-bottom));padding:9px 14px 12px;border:0;border-radius:13px;
  }
  .surface[data-panel=checkout] .receipt-amounts {font-size:13px;}
}
@media(max-width:760px) and (max-height:660px){
  .surface[data-panel=checkout]:has(.purchase-layout)>.surface-footer {max-height:none;overflow:visible;}
  .surface[data-panel=checkout] .surface-footer>.receipt-amounts {font-size:12px;margin-bottom:4px;}
  .surface[data-panel=checkout] .surface-footer>.receipt-amounts>div {padding:0;}
}
@media(max-width:760px) and (max-height:490px){
  .surface[data-panel=checkout]:has(.checkout-field :focus) .surface-footer>.receipt-amounts,
  .surface[data-panel=checkout]:has(.checkout-field :focus) .surface-header {display:none;}
}

.missing-photo {font-size:13px;color:var(--muted);}
.product-visual[data-no-photo] .gallery {height:auto;min-height:0;padding:16px;display:block;}
.cart-item[data-no-photo] {grid-template-columns:minmax(0,1fr);}
[data-panel=checkout] .order-portrait[data-no-photo] {display:flex;}
.order-portrait[data-no-photo] .missing-photo {padding:4px 0;}
@media(min-width:761px){
  .surface[data-panel=product]:has(.product-visual[data-no-photo]) {
    grid-template-columns:minmax(0,640px);grid-template-rows:auto auto auto auto;justify-content:center;
  }
  .surface[data-panel=product]:has(.product-visual[data-no-photo]) .surface-header {margin-inline:calc((100vw - 640px)/-2);}
  .surface[data-panel=product] .product-visual[data-no-photo] {grid-column:1;grid-row:2;}
  .surface[data-panel=product]:has(.product-visual[data-no-photo]) .product-detail {grid-column:1;grid-row:3;}
  .surface[data-panel=product]:has(.product-visual[data-no-photo]) .surface-footer {grid-column:1;grid-row:4;}
}

.delivery-preferences{border-block-start:1px solid var(--line,#d6ccd1);padding-block:.6rem;margin-block:.35rem}
.delivery-preferences summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:.88rem;font-weight:650}
.delivery-preferences label{display:flex;gap:.55rem;align-items:center;min-height:44px;font-size:.85rem}
.delivery-preferences input[type=checkbox]{width:1.15rem;height:1.15rem;flex:none}
.destination-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.destination-actions button{min-height:44px;padding:.4rem .65rem}

.choice-select{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:8px}.choice-select select{max-width:65%;min-height:44px;padding-inline:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px}.product-specs{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:13px}.product-specs dd{margin:0;color:var(--muted)}

.checkout-complement[hidden] { display: none; }
.checkout-complement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  margin-block: 0 .85rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.checkout-complement:has([aria-pressed="true"]) { border-color: var(--accent); background: var(--accent-soft); }
.complement-offer-copy { display: flex; align-items: center; gap: .65rem; min-inline-size: 0; }
.complement-offer-copy img { display: block; flex: none; object-fit: cover; border-radius: var(--r-sm); }
.complement-offer-copy p { margin: 0 0 .18rem; font-size: .72rem; line-height: 1.4; }
.complement-offer-copy strong { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.complement-offer-copy small { display: block; margin-block-start: .15rem; color: var(--muted); font-size: .76rem; }
.complement-toggle {
  min-block-size: 44px;
  min-inline-size: 4rem;
  padding: .38rem .55rem;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: .83rem;
  font-weight: 650;
}
.complement-toggle:disabled { opacity: .55; }
.complement-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-discount-row dd { color: var(--accent); }
@media (max-width: 360px) {
  .complement-offer-copy img { inline-size: 36px; block-size: 36px; }
  .checkout-complement { gap: .45rem; padding-inline: .55rem; }
}

#sheet-size {display:none}
.buyer-guide {padding-block:8px;border-block-end:1px solid var(--desk-rule);font-size:14px}
.buyer-guide summary {cursor:pointer;color:var(--accent);padding-block:6px}
.buyer-guide p {white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:760px){
 body[data-direct-entry] .surface[data-panel=product] #sheet-size {display:block;flex:none;order:0;background:var(--desk-paper);color:var(--accent);border:0;min-height:var(--target);width:100%}
 body[data-direct-entry] .surface-layer .surface[data-panel=product]:not([data-expanded]) {height:58vh;height:58dvh;border-radius:var(--r-sheet) var(--r-sheet) 0 0;box-shadow:var(--shadow-sheet)}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .surface-content {padding:4px 12px}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .surface-header {min-height:42px}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-presentation {display:grid;grid-template-columns:minmax(0,1fr) minmax(75px,28%);align-items:start;gap:10px}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-visual .gallery {height:auto;aspect-ratio:1/1}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-detail {padding:2px}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) :is(.product-head p,.product-category,.gallery-dots,.gallery-counter,.gallery .nav-button,.product-specs) {display:none}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-name-row h2 {font-size:18px}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-name-row {gap:2px 8px}
}

@media(max-width:760px){
 body[data-direct-entry] .story-image-stage .story-photo {margin-inline:0}
 body[data-direct-entry] .story-image-stage .story-photo img {object-fit:cover;object-position:50% 35%}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .gallery .zoom-trigger {display:none}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-detail .option {min-height:44px}
 body[data-direct-entry] .surface[data-panel=product]:not([data-expanded]) .product-detail .quantity-row {min-height:44px}
}
