:root {
  color-scheme: light;
  --page: #f4f2eb;
  --surface: #fbfaf6;
  --raised: #ffffff;
  --ink: #20312c;
  --muted: #65736d;
  --soft: #8a948e;
  --line: #d8ddd6;
  --forest: #18382f;
  --forest-deep: #122b25;
  --accent: #a23f31;
  --accent-dark: #823126;
  --accent-wash: #f0e2dc;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Aptos, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font-family: var(--sans); }
button, input, select, textarea { font-size: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b65342; outline-offset: 3px; }
a { color: inherit; }
svg { display: block; }
.page-width { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--raised); color: var(--ink); transform: translateY(-150%); transition: transform 160ms var(--ease); }
.skip-link:focus { transform: translateY(0); }

/* Header and catalogue navigation */
.site-header { position: sticky; z-index: 10; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-main { min-height: 76px; display: grid; grid-template-columns: 180px auto minmax(210px, 300px) auto; gap: 28px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--forest); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font: 700 21px/1 var(--sans); letter-spacing: -.055em; }
.brand-copy > span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1; letter-spacing: .08em; }
.primary-nav { display: flex; justify-content: center; gap: 26px; white-space: nowrap; }
.primary-nav a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 150ms ease; }
.primary-nav a:hover { color: var(--forest); }
.header-search { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); }
.header-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.header-search input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.header-search input:focus-visible { outline: 0; }
.header-search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 2px rgb(24 56 47 / 12%); }
.header-search kbd { color: var(--soft); font: 13px var(--sans); }
.bag-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.bag-button svg { width: 21px; height: 21px; }
.bag-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding-inline: 5px; border-radius: 11px; background: var(--forest); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.category-nav { min-height: 44px; display: flex; align-items: center; gap: 22px; overflow: hidden; }
.category-nav-label { flex: 0 0 auto; color: var(--soft); font-size: 12px; }
.category-nav-items { min-width: 0; display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.category-nav-items::-webkit-scrollbar, .category-chip-list::-webkit-scrollbar { display: none; }
.category-nav-items a { flex: 0 0 auto; color: var(--muted); font-size: 12px; text-decoration: none; text-transform: capitalize; transition: color 150ms ease; }
.category-nav-items a:hover { color: var(--accent); }
.nav-loading { color: var(--soft); font-size: 12px; }

/* The request-to-product moment */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: 54px 60px; }
.hero-copy { padding-block: 12px; }
.section-eyebrow { margin: 0; color: var(--accent-dark); font-size: 13px; }
.hero h1 { max-width: 650px; margin: 0 0 20px; font: 400 clamp(42px, 4.7vw, 62px)/.99 var(--serif); letter-spacing: -.045em; }
.hero h1 span { color: var(--forest); }
.hero-deck { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms var(--ease); }
.button:active, .bag-button:active, .icon-button:active { transform: scale(.98); }
.button-dark { background: var(--forest); color: #fff; }
.button-dark:hover { background: var(--forest-deep); }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover { background: var(--accent-dark); }
.button-outline { border-color: var(--line); background: var(--raised); color: var(--ink); }
.button-outline:hover { border-color: var(--forest); color: var(--forest); }
.button:disabled { opacity: .62; cursor: wait; }
.text-link { color: var(--forest); font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.store-facts { display: flex; gap: clamp(22px, 4vw, 44px); margin: 42px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.store-facts div { display: grid; gap: 2px; }
.store-facts dt { font: 400 25px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.store-facts dd { margin: 0; color: var(--muted); font-size: 12px; }
.agent-panel { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-top: 3px solid var(--forest); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 18px 42px rgb(24 56 47 / 7%); transition: border-color 220ms ease, box-shadow 220ms ease; }
.agent-panel.has-recommendation { border-top-color: var(--accent); box-shadow: 0 22px 50px rgb(24 56 47 / 10%); }
.agent-panel-top, .agent-kicker, .agent-title-row, .agent-response-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-panel-top { margin-bottom: 20px; }
.agent-kicker { justify-content: flex-start; gap: 9px; }
.agent-kicker-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #cbd6ce; border-radius: 50%; color: var(--forest); font-size: 10px; font-variant-numeric: tabular-nums; }
.agent-label { margin: 0; color: var(--forest); font-size: 12px; font-weight: 650; }
.agent-local { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 99px; background: #edf2ec; color: var(--forest); font-size: 10px; }
.agent-local span { width: 7px; height: 7px; border-radius: 50%; background: #408362; box-shadow: 0 0 0 3px rgb(64 131 98 / 12%); }
.agent-title-row { align-items: flex-end; margin-bottom: 18px; }
.agent-panel h2 { margin: 0; font: 400 clamp(24px, 2.5vw, 31px)/1.08 var(--serif); letter-spacing: -.03em; }
.agent-intro { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.agent-step { flex: 0 0 auto; padding-bottom: 2px; color: var(--soft); font-size: 9px; letter-spacing: .11em; }
.request-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 600; }
.agent-panel textarea { width: 100%; min-height: 86px; display: block; resize: vertical; padding: 12px 13px; border: 1px solid #d5dbd4; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.55; transition: border-color 160ms ease, box-shadow 160ms ease; }
.agent-panel textarea::placeholder { color: #8b9690; }
.agent-panel textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgb(24 56 47 / 9%); outline: none; }
.agent-panel textarea:disabled { background: #f1f2ed; color: var(--muted); }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.sample-link { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; transition: color 160ms ease; }
.sample-link:hover { color: var(--accent-dark); }
.request-hint { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.agent-response { margin-top: 19px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f6f5ef; }
.agent-response-heading { color: var(--forest); font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.agent-response-note { color: var(--soft); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.agent-progress { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: #e1e5df; }
.agent-progress span { width: 100%; height: 100%; display: block; transform: scaleX(0); transform-origin: left; border-radius: inherit; background: var(--accent); transition: transform 260ms var(--ease); }
.agent-stream { padding: 10px 0 11px; border-bottom: 1px solid var(--line); }
.stream-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.stream-count { color: var(--ink); font-variant-numeric: tabular-nums; }
.stream-tape { min-height: 35px; max-height: 58px; overflow-y: auto; margin-top: 6px; color: var(--ink); font-size: 13px; line-height: 1.55; scrollbar-width: thin; }
.stream-placeholder { color: var(--soft); }
.word-token { display: inline; }
.word-token.is-current { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.agent-reading { padding: 12px 0 4px; }
.reading-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.reading-head h3 { margin: 0; font-size: 11px; font-weight: 650; }
.reading-head span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.reading-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 9px 0 0; }
.reading-list div { min-width: 0; }
.reading-list div { min-height: 49px; padding: 7px 8px; border: 1px solid #e1e4dd; border-radius: 7px; background: var(--surface); }
.reading-list dt { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.reading-list dd { overflow-wrap: anywhere; margin: 0; color: var(--ink); font-size: 11px; line-height: 1.3; }
.reading-list dd.is-empty { color: #8c9690; }
.agent-match { margin-top: 11px; }
.match-empty, .agent-product { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.match-rule { width: 3px; height: 42px; flex: 0 0 auto; background: var(--accent); }
.match-title { margin: 0 0 3px; font: 400 18px/1.2 var(--serif); }
.match-empty p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.agent-product { align-items: stretch; min-height: 106px; }
.agent-product-art { width: 82px; min-height: 80px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--art-bg, #e8e7df); }
.agent-product-art svg { width: 85%; height: 85%; }
.agent-product-body { min-width: 0; display: flex; flex: 1; flex-direction: column; justify-content: center; }
.agent-product-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.agent-product h3 { margin: 4px 0; font: 400 18px/1.16 var(--serif); }
.agent-product-copy { margin: 0; color: var(--muted); font-size: 11px; }
.agent-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.agent-product-bottom strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.agent-product-bottom span { color: var(--muted); font-size: 11px; }
.agent-add { min-height: 30px; align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.agent-add:hover { color: var(--accent-dark); }
.agent-feedback { min-height: 15px; margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.agent-feedback.is-error { color: var(--accent-dark); }

/* Browse and filtering */
.shop-section { padding-block: 52px 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-eyebrow { margin-bottom: 7px; }
.section-heading h2, .benchmark h2 { margin: 0; font: 400 42px/1.05 var(--serif); letter-spacing: -.035em; }
.section-heading > p { max-width: 400px; margin: 0 0 3px; color: var(--muted); font-size: 14px; }
.category-shelf { min-height: 62px; display: flex; align-items: center; gap: 10px; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.category-chip, .category-chip-list button { min-height: 36px; flex: 0 0 auto; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; text-transform: capitalize; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.category-chip-list { min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.category-chip:hover, .category-chip-list button:hover { color: var(--forest); }
.category-chip.is-active, .category-chip-list button.is-active { border-color: #c7d4cc; background: #eaf0ea; color: var(--forest); }
.chips-loading { color: var(--soft); font-size: 12px; }
.shop-controls { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 20px; }
.filter-selects { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.filter-selects label, .sort-filter { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.filter-selects select, .sort-filter select { min-width: 124px; height: 42px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; }
.filter-selects select:focus-visible, .sort-filter select:focus-visible, #budget-filter:focus-visible { outline-offset: 2px; }
.budget-filter { width: 160px; }
.budget-filter output { color: var(--ink); font-variant-numeric: tabular-nums; }
.budget-filter input { width: 100%; height: 20px; margin: 0; accent-color: var(--forest); cursor: pointer; }
.sort-filter { flex: 0 0 auto; }
.clear-filters { min-height: 42px; padding: 0 4px; border: 0; background: none; color: var(--forest); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.results-line { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 13px; }
.results-line p { margin: 0; color: var(--muted); font-size: 12px; }
.results-line #results-count { color: var(--ink); font-variant-numeric: tabular-nums; }
.results-note { text-align: right; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--raised); transition: border-color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease; }
.product-card:hover { transform: translateY(-3px); border-color: #aebdb3; box-shadow: 0 12px 24px rgb(24 56 47 / 8%); }
.product-art { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; background: var(--art-bg, #e7e8e1); }
.product-art svg { width: 74%; height: 74%; overflow: visible; transition: transform 240ms var(--ease); }
.product-card:hover .product-art svg { transform: translateY(-2px); }
.product-art::after { position: absolute; right: 12px; bottom: 12px; color: rgb(32 49 44 / 55%); content: attr(data-product-id); font-size: 10px; font-variant-numeric: tabular-nums; }
.product-card-info { padding: 14px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.product-card h3 { min-height: 42px; margin: 7px 0 6px; font: 400 19px/1.1 var(--serif); }
.product-card h3 button { display: -webkit-box; overflow: hidden; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; text-align: left; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card h3 button:hover { color: var(--accent-dark); }
.product-card-description { min-height: 35px; display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-options { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.colour-dot { width: 10px; height: 10px; display: inline-block; flex: 0 0 auto; border: 1px solid rgb(32 49 44 / 20%); border-radius: 50%; background: var(--swatch); }
.product-card-footer { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; border-top: 1px solid #e9ece7; }
.product-card-footer strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.add-button { min-height: 38px; padding: 0 10px; border: 1px solid var(--forest); border-radius: 6px; background: transparent; color: var(--forest); cursor: pointer; font-size: 11px; transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease); }
.add-button:active { transform: scale(.97); }
.add-button:hover { background: var(--forest); color: #fff; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.empty-results { padding: 54px 20px; text-align: center; }
.empty-results h3 { margin: 0 0 5px; font: 400 28px var(--serif); }
.empty-results p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.empty-results[hidden], .load-more-wrap [hidden] { display: none; }

/* Explanation and public benchmark */
.how-section { padding-block: 56px; background: var(--forest); color: #f7f6ef; }
.how-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.how-section .section-eyebrow { color: #d5a99e; }
.how-section h2 { margin: 0; font: 400 40px/1.08 var(--serif); letter-spacing: -.025em; }
.how-steps { margin: 0; padding: 0; list-style: none; }
.how-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid rgb(255 255 255 / 22%); }
.step-no { color: #d5a99e; font: 400 18px/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.how-steps h3 { margin: 0; font-size: 15px; font-weight: 500; }
.how-steps p { max-width: 450px; margin: 4px 0 0; color: #c6d2ca; font-size: 13px; }
.benchmark { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px; }
.benchmark h2 { font-size: 34px; }
.benchmark-copy > p:last-child { max-width: 490px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.benchmark-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.benchmark-stats div { padding-left: 14px; border-left: 1px solid var(--line); }
.benchmark-stats dt { font: 400 21px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.benchmark-stats dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
/* Native dialogs keep keyboard focus inside while open */
dialog { max-height: min(90dvh, 780px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgb(18 43 37 / 22%); }
dialog::backdrop { background: rgb(18 31 27 / 55%); }
.detail-dialog[open], .bag-dialog[open] { animation: dialog-in 240ms var(--ease) both; }
.detail-dialog[open]::backdrop, .bag-dialog[open]::backdrop { animation: backdrop-in 200ms ease both; }
.detail-dialog { width: min(820px, calc(100vw - 32px)); }
.bag-dialog { width: min(520px, calc(100vw - 32px)); margin: auto 20px auto auto; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font: 400 29px/1.1 var(--serif); }
.dialog-head .section-eyebrow { margin-bottom: 4px; }
.icon-button { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; }
.detail-content { display: grid; grid-template-columns: minmax(220px, .9fr) 1.1fr; gap: 24px; padding: 24px; }
.detail-art { min-height: 300px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--art-bg, #e8e7df); }
.detail-art svg { width: 76%; height: 76%; }
.detail-info { align-self: center; }
.detail-brand { margin: 0; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.detail-info h3 { margin: 5px 0 8px; font: 400 32px/1.08 var(--serif); }
.detail-price { display: block; margin: 0 0 13px; font-size: 19px; font-variant-numeric: tabular-nums; }
.detail-description { margin: 0; color: var(--muted); font-size: 13px; }
.detail-attributes { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 16px 0; font-size: 12px; }
.detail-attributes dt { color: var(--muted); }
.detail-attributes dd { margin: 0; text-transform: capitalize; }
.detail-size-label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: 12px; }
.detail-size-select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--ink); }
.detail-add { width: 100%; margin-top: 12px; }
.detail-note { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.bag-items { max-height: 48dvh; overflow-y: auto; padding: 0 24px; }
.bag-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.bag-item-art { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 7px; background: var(--art-bg, #e8e7df); }
.bag-item-art svg { width: 82%; height: 82%; }
.bag-item-info { min-width: 0; }
.bag-item-info p { margin: 0 0 3px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.bag-item-info h3 { overflow-wrap: anywhere; margin: 0; font: 400 17px/1.1 var(--serif); }
.bag-item-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.bag-item-price { font-size: 13px; font-variant-numeric: tabular-nums; }
.bag-item-controls { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.quantity-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--raised); cursor: pointer; }
.quantity-number { min-width: 24px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.remove-item { min-height: 32px; margin-left: 5px; padding: 0 5px; border: 0; background: none; color: var(--accent-dark); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.bag-empty { padding: 24px; text-align: center; }
.bag-empty p { margin: 0 0 8px; color: var(--muted); }
.text-link-button { min-height: 40px; border: 0; background: none; color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bag-summary { padding: 19px 24px 22px; border-top: 1px solid var(--line); background: #f2f1e9; }
.bag-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bag-total span { color: var(--muted); font-size: 13px; }
.bag-total strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.bag-summary > p { margin: 4px 0 14px; color: var(--muted); font-size: 11px; }
.checkout-demo { width: 100%; }
.checkout-notice { margin: 12px 0 0 !important; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink) !important; font-size: 12px !important; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 7px; background: var(--forest-deep); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .header-main { grid-template-columns: 150px auto minmax(180px, 250px) auto; gap: 18px; }
  .primary-nav { gap: 16px; }
  .hero { grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); gap: 30px; }
  .hero h1 { font-size: clamp(42px, 4.7vw, 54px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 110px; }
  .page-width { width: min(100% - 40px, 680px); }
  .header-main { grid-template-columns: 1fr auto; gap: 10px 14px; padding-block: 10px; }
  .brand { grid-column: 1; grid-row: 1; }
  .bag-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .primary-nav { display: none; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .category-nav { min-height: 40px; gap: 13px; }
  .category-nav-items { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 46px 58px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 620px; font-size: clamp(44px, 8.5vw, 62px); }
  .hero-deck { max-width: 620px; }
  .store-facts { margin-top: 30px; }
  .agent-panel { max-width: 680px; }
  .shop-section { padding-block: 44px 64px; }
  .shop-controls { align-items: flex-start; flex-direction: column; }
  .filter-selects { width: 100%; }
  .filter-selects label { flex: 1 1 130px; }
  .filter-selects select { width: 100%; }
  .budget-filter { min-width: 160px; }
  .sort-filter { width: 100%; grid-template-columns: auto minmax(150px, 1fr); align-items: center; }
  .sort-filter select { width: 100%; }
  .clear-filters { min-height: 34px; }
  .how-layout { grid-template-columns: 1fr; gap: 28px; }
  .benchmark { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .page-width { width: calc(100% - 32px); }
  .category-nav-label { display: none; }
  .category-nav-items { gap: 16px; }
  .hero { gap: 26px; padding-block: 36px 46px; }
  .hero h1 { margin: 0 0 14px; font-size: clamp(39px, 10vw, 53px); }
  .hero-deck { font-size: 15px; }
  .hero-links { gap: 15px; margin-top: 22px; }
  .store-facts { gap: 18px; margin-top: 26px; }
  .store-facts dt { font-size: 22px; }
  .store-facts dd { max-width: 86px; font-size: 10px; }
  .agent-panel { padding: 18px; border-radius: 13px; }
  .agent-panel-top { align-items: flex-start; }
  .agent-panel h2 { font-size: 25px; }
  .agent-title-row { align-items: flex-start; }
  .agent-step { padding-top: 5px; }
  .request-row { align-items: stretch; flex-direction: column; gap: 4px; }
  .sample-link { align-self: flex-start; }
  .request-row .button { width: 100%; }
  .reading-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 7px; }
  .agent-product { gap: 10px; padding: 10px; }
  .agent-product-art { width: 76px; min-height: 84px; }
  .agent-product h3 { font-size: 17px; }
  .agent-product-copy { display: block; font-size: 10px; }
  .agent-product-bottom { align-items: center; flex-wrap: wrap; gap: 4px 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > p { font-size: 13px; }
  .category-shelf { margin-top: 20px; }
  .filter-selects { gap: 8px; }
  .filter-selects label { flex-basis: calc(50% - 4px); }
  .budget-filter { flex-basis: 100% !important; }
  .results-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .results-note { text-align: left; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-art { height: 164px; }
  .product-card-info { padding: 10px; }
  .product-meta { font-size: 10px; }
  .product-card h3 { min-height: 40px; font-size: 17px; }
  .product-card-description { min-height: 32px; font-size: 10px; }
  .product-options { gap: 5px; font-size: 10px; }
  .product-card-footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 8px; }
  .product-card-footer strong { font-size: 14px; }
  .add-button { width: 100%; min-height: 36px; }
  .how-section { padding-block: 42px; }
  .how-section h2 { font-size: 34px; }
  .benchmark { gap: 22px; padding-block: 42px; }
  .benchmark h2 { font-size: 29px; }
  .benchmark-stats { gap: 9px; }
  .benchmark-stats div { padding-left: 8px; }
  .benchmark-stats dt { font-size: 17px; }
  .benchmark-stats dd { font-size: 10px; }
  .detail-content { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .detail-art { min-height: 190px; }
  .detail-info h3 { font-size: 28px; }
  .bag-dialog { margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .dialog-head { padding: 18px 16px 14px; }
  .dialog-head h2 { font-size: 25px; }
  .bag-items { padding-inline: 16px; }
  .bag-summary { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes settle-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes word-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes field-in { from { opacity: .6; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes match-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes bag-pop { 50% { transform: scale(1.16); } }
  .motion-ready .hero-copy { animation: settle-in 620ms var(--ease) both; }
  .motion-ready .agent-panel { animation: settle-in 680ms var(--ease) 90ms both; }
  .motion-ready .brand-mark { transition: transform 260ms var(--ease); }
  .motion-ready .brand:hover .brand-mark { transform: rotate(-8deg); }
  .will-reveal { opacity: 0; transform: translateY(16px); transition: opacity 560ms ease, transform 560ms var(--ease); }
  .will-reveal.is-visible { opacity: 1; transform: translateY(0); }
  .product-card { animation: card-in 420ms var(--ease) var(--card-delay, 0ms) both; }
  .word-token.is-current { display: inline-block; animation: word-in 180ms ease both; }
  .reading-list dd.is-new { animation: field-in 200ms ease both; }
  .agent-match.match-arrived .agent-product { animation: match-in 300ms var(--ease) both; }
  .bag-count.is-popped { animation: bag-pop 300ms var(--ease); }
}
