/* Ordinary storefront primitives, measured against Orla. Protected chair styles stay independent. */
body:not(.chair-story-route) {
  --ink:#1b2118; --muted:#555d50; --paper:#f6f6f0; --line:#d9dcd3;
  --sf-primary:#293e25; --sf-focus:#526342; --sf-title:40px; --sf-heading:28px;
  --sf-body:13px; --sf-small:12px; --sf-gap:24px; --sf-radius:24px;
  --storefront-dock-space:94px; color:var(--ink); background:#fefefe;
}

body:not(.chair-story-route) .site-header { position:relative; height:auto; min-height:80px; padding:16px max(var(--gutter),calc(50% - 720px + var(--gutter))); background:#fefefe; gap:24px; }
body:not(.chair-story-route) .brand { font-size:28px; min-height:44px; align-items:center; flex:none; }
body:not(.chair-story-route) .site-header nav { gap:24px; }
body:not(.chair-story-route) .site-header nav a { display:flex; align-items:center; min-height:44px; font-size:13px; }
body:not(.chair-story-route) .site-header nav a[aria-current] { text-decoration:underline; text-underline-offset:7px; }

body:not(.chair-story-route) :is(button,a) { touch-action:manipulation; }
body:not(.chair-story-route) :is(button,.button):active { transform:scale(.98); }
body:not(.chair-story-route) :is(button,a,input,textarea,summary):focus-visible { outline:2px solid var(--sf-focus); outline-offset:3px; }
body:not(.chair-story-route) .button { min-height:44px; padding:10px 18px; border-radius:var(--sf-radius); background:var(--sf-primary); border-color:var(--sf-primary); font-size:var(--sf-body); line-height:1.4; gap:16px; }
body:not(.chair-story-route) .button:hover { background:#344d2e; }

body:not(.chair-story-route) .sf-icon-button { position:static; display:inline-grid; place-items:center; flex:none; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); }
body:not(.chair-story-route) .sf-icon-button:hover { background:#e8ebe2; }
body:not(.chair-story-route) .sf-title-row { display:flex; align-items:center; gap:3px; min-width:0; }
body:not(.chair-story-route) .sf-title-row :is(h1,h2) { margin:0; font-size:var(--sf-title); font-weight:450; letter-spacing:-.05em; line-height:1.12; text-wrap:balance; overflow-wrap:break-word; }
body:not(.chair-story-route) .page { max-width:1440px; margin:auto; padding:40px var(--gutter) 72px; }
body:not(.chair-story-route) :is(.collection-heading,.not-found) h1 { margin:0; font-size:var(--sf-title); font-weight:450; line-height:1.12; letter-spacing:-.05em; }
body:not(.chair-story-route) .section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; margin-bottom:24px; }
body:not(.chair-story-route) .section-heading h2 { font-size:var(--sf-heading); line-height:1.2; letter-spacing:-.04em; }
/* Shared cards keep the photograph, name, price status and purposeful add control. */
body:not(.chair-story-route) .product-grid { gap:32px 24px; }
body:not(.chair-story-route) .product-card { font-family:"Host Grotesk",Arial,sans-serif;display:flex; flex-direction:column; min-width:0; }
body:not(.chair-story-route) .card-photo { aspect-ratio:1;background:#f8f7f2;border-radius:16px;box-shadow:inset 0 0 0 1px #15130f04; }
body:not(.chair-story-route) .card-photo img.product-cutout { padding:22px;transition:none;filter:none; }
body:not(.chair-story-route) .card-photo:hover img { transform:none; }
body:not(.chair-story-route) .card-info { display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:minmax(44px,auto) auto;align-items:center;gap:4px 8px;padding-top:10px; }
body:not(.chair-story-route) .card-info > div { display:contents; }
body:not(.chair-story-route) .card-info h3 { grid-column:1;grid-row:1;min-width:0;font-size:1.3125rem;line-height:1.2;font-weight:550;margin:0; }
body:not(.chair-story-route) .card-info p { grid-column:1/-1;grid-row:2;font-size:.75rem;line-height:1.6;color:var(--muted); }
body:not(.chair-story-route) .add-quick { position:relative;grid-column:2;grid-row:1;justify-self:end;align-self:center;color:inherit;border:0;width:44px;height:44px;margin-top:0;background:transparent; }
body:not(.chair-story-route) .add-quick::before { content:"";position:absolute;inset:11px;border:1px solid var(--line);border-radius:50%;pointer-events:none; }
body:not(.chair-story-route) .add-quick .ui-icon { width:12px;height:12px; }
body:not(.chair-story-route) .add-quick:hover { background:transparent; }
body:not(.chair-story-route) .add-quick:hover::before { background:color-mix(in srgb,currentColor 10%,transparent); }
/* Contextual category disclosure; the same 44px target rhythm as other controls. */
body:not(.chair-story-route) .collection-heading { display:block; }
body:not(.chair-story-route) .collection-toolbar { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:32px 0 0; padding:0; border:0; }
body:not(.chair-story-route) .category-menu { position:relative; border:0; min-width:0; }
body:not(.chair-story-route) .category-menu>summary { display:flex; align-items:center; gap:12px; padding:10px 0; min-height:44px; font-size:13px; line-height:1.4; }
body:not(.chair-story-route) .category-menu>summary::after { content:none; }
body:not(.chair-story-route) summary::-webkit-details-marker { display:none; }
body:not(.chair-story-route) .category-menu[open]>summary svg { transform:rotate(180deg); }
body:not(.chair-story-route) .filters { position:absolute; top:calc(100% + 4px); left:0; z-index:50; display:flex; flex-direction:column; gap:2px; width:220px; max-width:calc(100vw - 44px); padding:8px; border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:0 8px 32px #1b211810; }
body:not(.chair-story-route) .filter { border:0; min-height:44px; padding:10px 12px; font-size:13px; line-height:1.4; text-align:left; border-radius:10px; }
body:not(.chair-story-route) .filter[aria-pressed=true] { background:var(--sf-primary); color:white; }
body:not(.chair-story-route) .filter:hover:not([aria-pressed=true]) { background:#e8ebe2; }
body:not(.chair-story-route) .search-wrap { width:240px; max-width:50%; min-width:0; margin:0; }
body:not(.chair-story-route) .search-field { display:flex; align-items:center; position:relative; gap:8px; border-bottom:1px solid #858b7e; }
body:not(.chair-story-route) .search-field>svg { flex:none; }
body:not(.chair-story-route) .search-field input { min-height:44px; min-width:0; font-size:16px; width:100%; padding:10px 38px 10px 0; border:0; background:transparent; color:var(--ink); border-radius:0; }
body:not(.chair-story-route) .search-field input::-webkit-search-cancel-button { display:none; }
body:not(.chair-story-route) .search-field input::placeholder { color:#62665e; font-size:13px; }
body:not(.chair-story-route) .search-field .clear-search { position:absolute; right:-6px; top:0; font-size:22px; }
body:not(.chair-story-route) [hidden] { display:none!important; }
body:not(.chair-story-route) .result-line { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:44px; margin:8px 0 14px; font-size:12px; color:var(--muted); }
body:not(.chair-story-route) .text-reset { min-height:44px; padding:8px 0; font-size:12px; background:none; text-decoration:underline; text-underline-offset:4px; }
body:not(.chair-story-route) .collection-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
body:not(.chair-story-route) .empty { padding:48px 0; text-align:left; }
body:not(.chair-story-route) .empty h2 { font-size:var(--sf-heading); line-height:1.2; letter-spacing:-.04em; margin:0 0 14px; }
body:not(.chair-story-route) .empty p { font-size:var(--sf-body); line-height:1.6; margin:0 0 24px; max-width:360px; }
body:not(.chair-story-route) .search-empty { width:100%; grid-column:1/-1; min-height:240px; }
/* Ordinary gallery follows the accepted image / title / action composition. */
body:not(.chair-story-route) .product-page { padding-top:20px; }
body:not(.chair-story-route) .product-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:40px; min-height:calc(100svh - 140px); align-items:center; }
body:not(.chair-story-route) .product-controls { position:relative; align-self:start; margin-top:clamp(96px,18svh,190px); grid-column:2; grid-row:1; width:360px; max-width:100%; }
body:not(.chair-story-route) .product-heading { margin:0 0 24px; }
body:not(.chair-story-route) .product-gallery { position:relative; top:auto; grid-column:1; grid-row:1; min-width:0; }
body:not(.chair-story-route) .product-image-wrap { display:block; width:100%; height:clamp(300px,calc(100svh - 260px),740px); max-height:none; aspect-ratio:auto; background:#fefefe; border:0; padding:0; border-radius:6px; }
body:not(.chair-story-route) .product-image-wrap img { object-fit:contain; object-position:center; }
body:not(.chair-story-route) .product-image-wrap img.product-cutout { padding:20px 12px; filter:none; }
body:not(.chair-story-route) .product-gallery>.product-photo-strip { display:flex;margin-top:12px; }
@media(max-width:1099px) {
  body:not(.chair-story-route) .product-gallery>.product-photo-strip { display:flex;margin-top:12px;margin-left:calc(-1 * var(--gutter)); }
}
@media(max-width:700px),(max-width:1050px) and (orientation:portrait) {
  body:not(.chair-story-route) .product-gallery>.product-photo-strip { margin-right:calc(-1 * var(--gutter)); }
}
body:not(.chair-story-route) .product-details { padding:0; min-width:0; }
body:not(.chair-story-route) .product-order { width:360px; max-width:100%; }
body:not(.chair-story-route) .product-quantity { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:0 4px; margin:0 0 12px; font-size:12px; }
body:not(.chair-story-route) .qty-control { display:inline-flex; flex:none; align-items:center; height:auto; min-height:46px; border:1px solid var(--line); border-radius:24px; background:#fefefe; }
body:not(.chair-story-route) .qty-control button { width:44px; height:44px; min-height:44px; border-radius:50%; font-size:18px; }
body:not(.chair-story-route) .qty-control button:hover:not(:disabled) { background:var(--paper); }
body:not(.chair-story-route) .qty-control output { min-width:24px; padding:4px 0; font-size:13px; line-height:1.4; font-variant-numeric:tabular-nums; }
/* One capsule primitive for discovery, product selection and quotation. */
body:not(.chair-story-route) .action-capsule { display:flex; align-items:center; gap:10px; width:360px; max-width:100%; padding:8px; border:1px solid #293e252b; border-radius:30px; background:var(--paper); box-shadow:0 4px 20px #1823140c; }
body:not(.chair-story-route) .purchase-meta { flex:none; min-width:0; max-width:52%; padding:0 4px; font-size:12px; line-height:1.25; overflow-wrap:break-word; }
body:not(.chair-story-route) .purchase-meta small { display:block; margin-top:3px; font-size:10px; line-height:1.25; }
body:not(.chair-story-route) .action-capsule .button { display:flex; flex:1; min-width:0; min-height:44px; padding:6px 12px; gap:7px; justify-content:center; white-space:normal; flex-wrap:wrap; border-radius:24px; font-size:12px; line-height:1.25; font-weight:500; color:#fff; background:var(--sf-primary); border:1px solid #ffffff30; box-shadow:0 4px 17px #1e2a191f; }
body:not(.chair-story-route) .action-capsule .button:hover { background:#344d2e; }
body:not(.chair-story-route) .action-capsule .button svg { flex:none; }
body:not(.chair-story-route) .action-capsule .button .arrow { font-size:16px; }

body:not(.chair-story-route) .product-related { margin-top:56px; padding-top:32px; border-top:1px solid var(--line); }
body:not(.chair-story-route) .product-related .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
body:not(.chair-story-route) .product-related .product-card:last-child { display:flex; }
/* Shared nonmodal information surface; closed content is truly unavailable to focus. */
body:not(.chair-story-route) .storefront-information { position:fixed; z-index:60; left:0; top:calc(100% + 12px); width:360px; max-width:100%; max-height:min(480px,60svh); display:flex; flex-direction:column; border:1px solid #293e252b; border-radius:var(--sf-radius); background:var(--paper); box-shadow:0 8px 24px #1823140c; overflow:hidden; }
body:not(.chair-story-route) .information-heading { display:flex; flex:none; align-items:center; justify-content:space-between; gap:8px; padding:8px 8px 8px 18px; border-bottom:1px solid #24282215; }
body:not(.chair-story-route) .information-heading h2 { margin:0; font-size:18px; font-weight:600; line-height:1.2; letter-spacing:-.025em; }
body:not(.chair-story-route) .information-body { padding:14px 18px 8px; overflow-y:auto; overscroll-behavior:contain; }
body:not(.chair-story-route) .information-body p { padding:0; margin:0 0 12px; font-size:13px; line-height:1.55; color:var(--muted); }
body:not(.chair-story-route) .information-body :is(.information-reference,.information-colour,.information-note) { font-size:11px; line-height:1.5; }
body:not(.chair-story-route) .detail-list { margin-top:18px; border-top:1px solid #24282220; }
body:not(.chair-story-route) .detail-list details { overflow:hidden; border-bottom:1px solid #24282220; }
body:not(.chair-story-route) .detail-list details:last-child { border-bottom:0; }
body:not(.chair-story-route) .detail-list summary { display:flex; align-items:center; gap:12px; min-height:52px; padding:16px 0; font-size:14px; font-weight:600; line-height:1.35; }
body:not(.chair-story-route) .detail-list summary:focus-visible { outline-offset:-2px; }
body:not(.chair-story-route) .detail-list summary::after { content:''; flex:none; width:7px; height:7px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); margin:0 3px 4px; }
body:not(.chair-story-route) .detail-list details[open] summary::after { transform:rotate(225deg); margin-bottom:-4px; }
body:not(.chair-story-route) .detail-answer { padding:0 14px 16px 0; }
body:not(.chair-story-route) .detail-answer p { margin:0; }

/* Selection and form use the same controls, without a second visual vocabulary. */
body:not(.chair-story-route) .selection-heading { position:relative; width:fit-content; max-width:100%; }
body:not(.chair-story-route) .selection-layout { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(40px,8vw,120px); margin-top:40px; align-items:start; }
body:not(.chair-story-route) .selection-review { min-width:0; }
body:not(.chair-story-route) .selection-item { grid-template-columns:120px minmax(0,1fr); gap:24px; padding:24px 0; }
body:not(.chair-story-route) .selection-item:first-child { padding-top:0; border-top:0; }
body:not(.chair-story-route) .selection-photo { display:block; width:120px; height:140px; border-radius:6px; overflow:hidden; background:var(--paper); }
body:not(.chair-story-route) .selection-item img { width:100%; height:100%; object-fit:contain; }
body:not(.chair-story-route) .selection-item img.product-cutout { padding:8px; filter:none; }
body:not(.chair-story-route) .selection-item img.chair-film-selection { object-fit:cover; object-position:50% 68%; }
body:not(.chair-story-route) .selection-item h2 { margin:6px 0 8px; font-size:20px; font-weight:450; line-height:1.25; letter-spacing:-.03em; overflow-wrap:break-word; }
body:not(.chair-story-route) .selection-item p { font-size:11px; line-height:1.5; }
body:not(.chair-story-route) .item-controls { display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:12px; }
body:not(.chair-story-route) .remove-item { font-size:11px; min-height:44px; background:none; padding:8px 0; text-underline-offset:4px; }
body:not(.chair-story-route) .quote-summary { gap:16px; font-size:12px; }
body:not(.chair-story-route) .request-form { width:360px; max-width:100%; padding:0; background:transparent; }
body:not(.chair-story-route) .request-form h2 { font-size:24px; font-weight:450; letter-spacing:-.04em; line-height:1.2; margin:0 0 24px; }
body:not(.chair-story-route) .field { font-size:12px; line-height:1.5; gap:5px; margin:0 0 22px; }
body:not(.chair-story-route) .field :is(input,textarea) { min-height:44px; padding:9px 0; font-size:16px; line-height:1.5; border-bottom-color:#858b7e; }
body:not(.chair-story-route) .field textarea { min-height:90px; }
body:not(.chair-story-route) .field :is(input,textarea)::placeholder { color:#62665e; font-size:13px; }
body:not(.chair-story-route) .field [aria-invalid=true] { border-color:#9b352a; }
body:not(.chair-story-route) .field-error { margin:-14px 0 20px; font-size:12px; color:#9b352a; }
body:not(.chair-story-route) .quote-options { border:0; margin:0 0 24px; }
body:not(.chair-story-route) .quote-options>summary { min-height:44px; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:4px 6px; padding:10px 0; font-size:12px; line-height:1.5; }
body:not(.chair-story-route) .quote-options>summary span { color:var(--muted); }
body:not(.chair-story-route) .quote-options>summary::after { content:none; }
body:not(.chair-story-route) .quote-options>summary .disclosure-icon { margin-left:auto; }
body:not(.chair-story-route) .quote-options[open]>summary .icon-vertical { display:none; }
body:not(.chair-story-route) .quote-options>div { padding-top:16px; }
body:not(.chair-story-route) .form-note { margin-top:12px; font-size:11px; line-height:1.5; }
body:not(.chair-story-route) .success { padding:0; }
body:not(.chair-story-route) .success-mark { margin-bottom:18px; font-size:24px; }
body:not(.chair-story-route) .success p { font-size:13px; line-height:1.6; }
body:not(.chair-story-route) .selection-empty { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
body:not(.chair-story-route) .selection-empty img { width:100%; max-height:420px; object-fit:contain; }
body:not(.chair-story-route) .selection-empty-link { display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:13px;line-height:1.4;color:var(--sf-primary);text-decoration:underline;text-underline-offset:4px; }
body:not(.chair-story-route) .selection-empty-link .arrow { width:16px;height:16px; }
body:not(.chair-story-route) .not-found { min-height:60svh; display:flex; flex-direction:column; justify-content:center; }
body:not(.chair-story-route) .empty-actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; margin-top:28px; }
body:not(.chair-story-route) .site-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:1440px; margin:auto; padding:40px var(--gutter); border-top:1px solid var(--line); background:#fefefe; }

body:not(.chair-story-route) .toast { border-radius:16px; line-height:1.5; font-size:13px; padding:12px 18px; min-width:0; max-width:calc(100% - 32px); }
body:not(.chair-story-route) .toast a { display:inline-flex; align-items:center; min-height:44px; }
@supports (backdrop-filter:blur(20px)) {
  body:not(.chair-story-route) .action-capsule { background:#f6f6f0d9; backdrop-filter:blur(20px) saturate(1.15); -webkit-backdrop-filter:blur(20px) saturate(1.15); }
}
@media(min-width:1100px) and (min-height:651px) and (orientation:landscape) {

  body:not(.chair-story-route) .product-purchase .button { font-size:11px; padding-inline:10px; }

}
@media(max-width:1050px) {
  body:not(.chair-story-route) .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.chair-story-route) .product-layout { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:28px; }
  body:not(.chair-story-route) .selection-layout { gap:40px; }
  body:not(.chair-story-route) .selection-item { grid-template-columns:100px minmax(0,1fr); gap:18px; }
  body:not(.chair-story-route) .selection-photo { width:100px; height:128px; }
}
@media(max-width:700px) {
  body:not(.chair-story-route) { --sf-title:28px; --sf-heading:24px; --gutter:22px; }
  body:not(.chair-story-route) .site-header { min-height:72px; padding:12px var(--gutter); align-items:center; gap:12px; flex-wrap:wrap; }
  body:not(.chair-story-route) .brand { font-size:25px; }
  body:not(.chair-story-route) .site-header nav { gap:14px; padding:0; }
  body:not(.chair-story-route) .site-header nav a { font-size:12px; }
  body:not(.chair-story-route) .page { padding:26px var(--gutter) 48px; }
  body:not(.chair-story-route) .product-grid { gap:26px 16px; }
  body:not(.chair-story-route) .card-photo { border-radius:12px; }
  body:not(.chair-story-route) .card-photo img.product-cutout { padding:13px; }
  body:not(.chair-story-route) .card-info { gap:4px 8px;padding-top:8px; }
  body:not(.chair-story-route) .card-info > div { min-width:0; }
  body:not(.chair-story-route) .card-info h3 { font-size:1.125rem;margin:0; }
  body:not(.chair-story-route) .card-info p { font-size:.6875rem;line-height:1.5; }
  body:not(.chair-story-route) .add-quick { justify-self:end;width:44px;height:44px;margin-left:auto; }
  body:not(.chair-story-route) .collection-toolbar { gap:20px; margin-top:24px; }
  body:not(.chair-story-route) .search-wrap { width:150px; }
  body:not(.chair-story-route) .category-menu>summary { font-size:12px; gap:8px; }
  body:not(.chair-story-route) .product-layout { display:flex; flex-direction:column; gap:18px; min-height:0; align-items:stretch; padding-bottom:calc(var(--product-dock-space,94px) + env(safe-area-inset-bottom)); }
  body:not(.chair-story-route) .product-controls { display:contents; margin:0; }
  body:not(.chair-story-route) .product-heading { order:1; margin:0; }
  body:not(.chair-story-route) .product-gallery { order:2; }
  /* Match Orla's 20px clearance above the dock; the strip keeps its natural height. */
  body:not(.chair-story-route) .product-gallery { display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:calc(100svh - var(--sf-gallery-top,164px) - var(--product-dock-space,94px) - env(safe-area-inset-bottom));min-height:240px; }
  body:not(.chair-story-route) .product-image-wrap { grid-column:1;height:100%;min-height:0; }
  body:not(.chair-story-route) .product-image-wrap img.product-cutout { padding:12px 0; }
  body:not(.chair-story-route) .product-details { order:3; }
  body:not(.chair-story-route) .product-order { width:350px; max-width:100%; margin:auto; }
  body:not(.chair-story-route) .product-quantity { justify-content:space-between; margin:0 0 16px; }
  body:not(.chair-story-route) .product-related { margin-top:48px; padding-top:24px; }
  body:not(.chair-story-route) .product-related .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.chair-story-route) .storefront-information { position:fixed; left:50%; top:auto; bottom:calc(94px + env(safe-area-inset-bottom)); width:350px; max-width:calc(100% - 24px); max-height:calc(100svh - 112px - env(safe-area-inset-bottom)); transform:translateX(-50%); }
  body:not(.chair-story-route) .selection-heading .storefront-information { bottom:16px; max-height:calc(100svh - 32px); }
  body:not(.chair-story-route) .selection-layout { grid-template-columns:minmax(0,1fr); gap:40px; margin-top:28px; }
  body:not(.chair-story-route) .selection-item { grid-template-columns:94px minmax(0,1fr); gap:18px; padding:20px 0; }
  body:not(.chair-story-route) .selection-photo { width:94px; height:122px; }
  body:not(.chair-story-route) .selection-item h2 { font-size:20px; margin-top:0; }
  body:not(.chair-story-route) .selection-item p { font-size:11px; }
  body:not(.chair-story-route) .item-controls { gap:0 12px; margin-top:12px; }
  body:not(.chair-story-route) .request-form { width:100%; padding-top:28px; border-top:1px solid var(--line); }
  body:not(.chair-story-route) .selection-empty { grid-template-columns:1fr; gap:24px; padding-top:24px; }
  body:not(.chair-story-route) .selection-empty img { max-height:300px; }
  body:not(.chair-story-route) .site-footer { padding:28px var(--gutter); flex-wrap:wrap; gap:12px 24px; }
}
@media(min-width:701px) and (max-width:1050px) and (orientation:portrait) {
  body:not(.chair-story-route) .product-layout { display:flex; flex-direction:column; align-items:stretch; gap:18px; min-height:0; }
  body:not(.chair-story-route) .product-controls { display:contents; margin:0; }
  body:not(.chair-story-route) .product-heading { order:1; margin:0; }
  body:not(.chair-story-route) .product-gallery { order:2; }
  body:not(.chair-story-route) .product-image-wrap { height:clamp(420px,54svh,620px); }
  body:not(.chair-story-route) .product-details { order:3; }
  body:not(.chair-story-route) .product-order { margin:auto; }
  body:not(.chair-story-route) .product-quantity { justify-content:space-between; }
  body:not(.chair-story-route) :is(.home-shop,.product-page) .storefront-information { left:50%; top:auto; bottom:94px; width:360px; max-width:calc(100% - 24px); max-height:calc(100svh - 112px); transform:translateX(-50%); }
}
@media(max-width:360px) {
  body:not(.chair-story-route) .site-header nav { gap:10px; }

}
@media(max-width:700px) and (min-height:500px) {
  body.storefront-product-route { padding-bottom:calc(var(--storefront-dock-space) + env(safe-area-inset-bottom)); }
  body.storefront-product-route .product-page .product-purchase { position:fixed; z-index:45; left:50%; transform:translateX(-50%); bottom:calc(12px + env(safe-area-inset-bottom)); width:350px; max-width:calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
  body.storefront-product-route .toast { bottom:calc(var(--storefront-dock-space) + env(safe-area-inset-bottom)); }
  body.storefront-product-route :is(a,button,summary,input) { scroll-margin-bottom:calc(var(--storefront-dock-space) + env(safe-area-inset-bottom)); }
  body.storefront-product-route .storefront-information { bottom:calc(var(--storefront-dock-space) + env(safe-area-inset-bottom)); max-height:calc(100svh - var(--storefront-dock-space) - 20px - env(safe-area-inset-bottom)); }
}
@media(max-height:650px) and (min-width:701px) {
  body:not(.chair-story-route) .product-layout { min-height:0; }
  body:not(.chair-story-route) .product-controls { margin-top:24px; }
  body:not(.chair-story-route) .product-image-wrap { height:max(140px,calc(100svh - 238px)); }
  body:not(.chair-story-route) .product-image-wrap img.product-cutout { padding-block:8px; }
}
@media(max-height:500px) {
  body:not(.chair-story-route) .storefront-information { position:fixed; top:12px; bottom:auto; left:auto; right:12px; transform:none; max-width:calc(100% - 24px); max-height:calc(100svh - 24px); }
}
@media(prefers-reduced-motion:reduce) {
  body:not(.chair-story-route) :is(button,a,img) { transition:none; }
  body:not(.chair-story-route) :is(button,.button):active { transform:none; }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  body:not(.chair-story-route) .action-capsule { background:#f6f6f0; backdrop-filter:none; -webkit-backdrop-filter:none; border-color:#58634f; }
  body:not(.chair-story-route) .storefront-information { border-color:#58634f; }
}

/* Direct categories reuse the disclosure's four buttons on roomy screens. */
body:not(.chair-story-route) .category-menu[data-inline=true] { flex:1; }
body:not(.chair-story-route) .category-menu[data-inline=true] .filters { position:static;width:auto;max-width:none;flex-direction:row;flex-wrap:wrap;gap:4px;padding:0;border:0;border-radius:0;background:none;box-shadow:none; }
body:not(.chair-story-route) .category-menu[data-inline=true] .filter { border-radius:24px;padding-inline:16px; }
@media(min-width:1100px) and (min-height:651px) and (orientation:landscape) {
  body:not(.chair-story-route) .product-controls { margin-top:clamp(36px,9svh,100px); }
  body:not(.chair-story-route) .product-page .product-order { width:100%; }
  body:not(.chair-story-route) .product-page .product-dock { width:100%; }
}

/* All product pages share one contextual toolbar; ordinary pages reserve its space. */
.storefront-product-route>.site-header { display:none; }
.storefront-product-route .chair-story__toolbar { position:relative;top:auto;left:auto;right:auto;margin:22px var(--gutter) 14px; }
.storefront-product-route .chair-story__back { color:#182016;background:linear-gradient(145deg,#ffffff30,#ffffff0c);border:1px solid #ffffff63;box-shadow:inset 0 1px 0 #ffffff65,inset 0 -1px 0 #0000000d,0 6px 22px #15201314;backdrop-filter:blur(18px) saturate(1.25);-webkit-backdrop-filter:blur(18px) saturate(1.25); }
.storefront-product-route .chair-story__back svg { stroke-width:1.9; }
@media(max-width:700px) {
  .storefront-product-route .chair-story__toolbar { margin-top:max(14px,env(safe-area-inset-top));margin-inline:18px; }
}
@media(max-width:380px) {
  .storefront-product-route .chair-story__toolbar { margin-inline:14px; }
}
