/* Commerce studio — fictional inventory, real interaction. */
.demo-root {
  --demo-ink: var(--ink, #151512);
  --demo-paper: var(--ice, #f3efe6);
  --demo-copper: var(--green, #996b48);
  --demo-light-copper: var(--leaf, #bc8b61);
  --demo-muted: var(--muted, #68645d);
  --demo-line: var(--line, #d8d1c5);
  color: var(--demo-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  min-width: 0;
  isolation: isolate;
  container-type: inline-size;
}
.demo-root * { box-sizing: border-box; }
.demo-root h3, .demo-root p { margin: 0; }
.demo-root button { font: inherit; cursor: pointer; }
.demo-root button:focus-visible { outline: 3px solid var(--demo-light-copper); outline-offset: 4px; }
.demo-root button:disabled { cursor: default; }
.demo-frame { overflow: hidden; border: 1px solid #b5a795; border-radius: 16px; background: var(--demo-paper); box-shadow: 0 28px 85px #15151218, 0 2px 10px #1515120b; }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 50px; padding: 10px 25px; border-bottom: 1px solid #ffffff13; background: #23231f; }
.demo-concept-label { display: flex; align-items: center; gap: 9px; color: #e5dfd3; font-size: 11px; font-weight: 500; letter-spacing: .035em; }
.demo-concept-label i { width: 5px; height: 5px; background: #c79a73; border-radius: 50%; box-shadow: 0 0 0 4px #c79a7314; flex-shrink: 0; }
.demo-reset { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 6px 0; color: #d2bdab; font-size: 12px !important; }
.demo-reset:hover { color: #fff4e6; }
.demo-industry-tabs { display: flex; align-items: center; gap: 5px; padding: 12px 22px; border-bottom: 1px solid var(--demo-line); background: #eee8dd; }
.demo-industry-tabs button { border: 1px solid transparent; background: transparent; border-radius: 6px; color: #686157; padding: 8px 18px; min-height: 38px; font-size: 12px; font-weight: 550; transition: color .2s, background .2s; }
.demo-industry-tabs button:hover { background: #e3d9cb; color: #4d3323; }
.demo-industry-tabs button[aria-pressed="true"] { background: #292923; color: #f4eee4; border-color: #292923; box-shadow: 0 2px 5px #1515120d; }
.demo-workspace { display: grid; grid-template-columns: 182px minmax(0, 1fr); min-height: 420px; }
.demo-sidebar { display: flex; flex-direction: column; background: #1e1f1b; color: #f4eee4; padding: 28px 13px; border-right: 1px solid #c3aa8533; }
.demo-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 35px; font-size: 13px; font-weight: 550; letter-spacing: -.03em; }
.demo-brand-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #bc8b6177; border-radius: 7px; color: #d6b391; background: #b6865b12; font-size: 24px; font-family: Georgia, serif; letter-spacing: -2px; padding-right: 2px; }
.demo-sidebar-subtitle { display: block; font-size: 9px; color: #a9a89b; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.demo-view-nav { display: grid; gap: 7px; }
.demo-view-nav button { display: flex; align-items: center; gap: 10px; min-height: 60px; border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 12px 8px; color: #c0bcb0; text-align: left; font-size: 12px; }
.demo-view-nav button small { display: block; color: #a09e91; font-size: 9px; margin-top: 4px; }
.demo-view-nav button:hover { background: #34332c; }
.demo-view-nav button[aria-pressed="true"] { background: #3a332b; border-color: #a783604d; color: #fff2e5; }
.demo-view-nav button[aria-pressed="true"] small { color: #c4b9a9; }
.demo-nav-step { color: #c39a73; font-size: 10px; font-variant-numeric: tabular-nums; }
.demo-nav-arrow { margin-left: auto; color: #b49374; font-size: 13px; }
.demo-sidebar-footer { color: #b3ac9b; margin-top: auto; padding: 30px 7px 0; font-size: 9px; line-height: 1.6; }
.demo-sidebar-footer small { display: block; color: #929083; font-size: 9px; margin-top: 5px; }
.demo-sidebar-dot { display: inline-block; width: 5px; height: 5px; background: #b88b61; border-radius: 50%; margin-right: 5px; }
.demo-stage { background: #fbf8f2; min-width: 0; }
.demo-shop-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 23px 30px; border-bottom: 1px solid var(--demo-line); }
.demo-shop-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 23px; letter-spacing: -.7px; color: #332a20; }
.demo-shop-nav-links { display: flex; align-items: center; gap: 18px; font-size: 11px; color: #746a5c; }
.demo-shop-nav-links span { color: #b1a89a; }
.demo-shop-bag { color: #594d3e; font-size: 24px; line-height: 1; }
.demo-shop-product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 33px; align-items: center; padding: 30px; }
.demo-product-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; border: 1px solid #cbbca650; border-radius: 3px; background: #e5dcc9; aspect-ratio: 1; }
.demo-product-tag { position: absolute; z-index: 1; top: 14px; left: 14px; max-width: calc(100% - 28px); background: #f9f5eddd; color: #544939; padding: 6px 8px; border: 1px solid #a9967840; border-radius: 2px; font-size: 8px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.demo-art { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.demo-art-small { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.demo-art-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 17px 9px 9px; text-align: center; background: linear-gradient(transparent, #f3ede0e8); font-size: 8px; line-height: 1.3; color: #5c5242; letter-spacing: .035em; }
.demo-product-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 5px 0; }
.demo-eyebrow { display: block; color: #8a6240; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 600; }
.demo-product-copy h3 { font-family: Georgia, "Times New Roman", serif; color: #27251e; font-size: clamp(27px, 3cqi, 39px); font-weight: 400; line-height: 1.07; letter-spacing: -1.1px; margin: 13px 0; }
.demo-product-copy p { color: #736b5e; font-size: 12px; line-height: 1.6; max-width: 260px; }
.demo-product-price { color: #44362a; font-size: 21px; letter-spacing: -.6px; margin: 19px 0 13px; }
.demo-product-detail { color: #73604b; font-size: 11px; padding: 7px 10px; border: 1px solid #d6cbbb; border-radius: 3px; }
.demo-availability { display: flex; align-items: center; gap: 7px; color: #6a624f; font-size: 11px; margin: 18px 0; }
.demo-availability i { width: 5px; height: 5px; border-radius: 50%; background: #8b7553; }
.demo-availability i.is-sold { background: #af7247; }
.demo-button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 43px; padding: 12px 15px; border: 1px solid #8a5d3d; border-radius: 5px; color: #fffaf4; background: #8a5d3d; font-size: 12px !important; font-weight: 550 !important; line-height: 1.35; transition: background .18s ease, transform .18s ease; }
.demo-button:hover { background: #6c442b; border-color: #6c442b; transform: translateY(-1px); }
.demo-button:active { transform: translateY(0); }
.demo-product-copy .demo-button { width: 100%; margin-top: 2px; }
.demo-product-copy .demo-product-footnote { margin-top: 13px; font-size: 10px; color: #746c5f; }
.demo-status { display: flex; align-items: flex-start; gap: 10px; min-height: 46px; padding: 14px 24px; border-top: 1px solid var(--demo-line); background: #eee8dc; color: #6c5c48; font-size: 11px; line-height: 1.5; }
.demo-status > span:first-child { color: #98643d; font-size: 13px; line-height: 1.25; flex-shrink: 0; }
.demo-counter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 28px; padding: 30px; }
.demo-view-heading h3, .demo-office-heading h3 { color: #27251e; font-size: 24px; font-weight: 500; line-height: 1.23; letter-spacing: -.8px; margin-top: 9px; }
.demo-view-heading p { color: #746b5c; font-size: 12px; line-height: 1.65; margin-top: 12px; max-width: 320px; }
.demo-line-item { display: flex; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--demo-line); margin-top: 14px; }
.demo-line-art { width: 68px; height: 74px; overflow: hidden; border-radius: 4px; background: #e5dcc9; flex-shrink: 0; }
.demo-line-item > div:nth-child(2) { min-width: 0; }
.demo-line-item strong { color: #413729; font-size: 12px; font-weight: 550; }
.demo-line-item > strong { margin-left: auto; white-space: nowrap; }
.demo-line-item span, .demo-line-item small { display: block; color: #746d60; font-size: 10px; margin-top: 5px; }
.demo-line-item small { font-size: 9px; letter-spacing: .04em; }
.demo-counter-details { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.demo-counter-details span { display: block; }
.demo-counter-details small { color: #817665; font-size: 10px; }
.demo-counter-details strong { display: block; color: #665540; font-size: 11px; font-weight: 500; margin-top: 5px; }
.demo-tip { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #cbbb9f; background: #eee6d9; padding: 14px; margin-top: 25px; border-radius: 2px; }
.demo-tip > span { color: #936441; }
.demo-tip p { color: #75634a; font-size: 11px; line-height: 1.6; }
.demo-receipt { align-self: start; border: 1px solid #d6cbbb; border-radius: 5px; background: #f1ecdf; padding: 25px 20px; text-align: center; box-shadow: 0 9px 20px #68513808; }
.demo-receipt-brand { font-family: Georgia, serif; color: #4b3a29; font-size: 22px; letter-spacing: -.55px; margin-top: 13px; }
.demo-receipt-rule { border-top: 1px dashed #c9b99e; margin: 22px 0; }
.demo-receipt-line { display: flex; justify-content: space-between; gap: 12px; text-align: left; color: #756650; font-size: 11px; line-height: 1.6; }
.demo-receipt-line span:last-child { white-space: nowrap; }
.demo-receipt-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #685640; font-size: 11px; margin: 18px 0 23px; }
.demo-receipt-total strong { color: #443321; font-size: 26px; font-weight: 500; letter-spacing: -1px; }
.demo-receipt .demo-button { width: 100%; }
.demo-receipt .demo-button + .demo-button { margin-top: 10px; color: #77543a; background: transparent; border-color: #c5ae94; }
.demo-receipt .demo-button + .demo-button:hover { background: #e7dccb; }
.demo-receipt-note { color: #7f715e; font-size: 10px; line-height: 1.65; margin-top: 17px !important; }
.demo-completed { color: #715337; font-size: 12px; margin-bottom: 18px; }
.demo-completed span { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e2d4bd; margin-right: 6px; }
.demo-return-note { font-size: 11px; color: #776046; margin-top: 13px !important; }
.demo-office { padding: 30px; }
.demo-office-heading { display: flex; align-items: center; justify-content: space-between; gap: 17px; }
.demo-local-badge { color: #806349; background: #eee5d5; border: 1px solid #dbc9ae; font-size: 10px; padding: 5px 8px; border-radius: 3px; white-space: nowrap; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 25px 0 22px; }
.demo-metrics > div { min-width: 0; padding: 16px 14px; border: 1px solid #d9cebc; background: #f4eee2; border-radius: 5px; }
.demo-metrics span { display: block; color: #76654d; font-size: 11px; }
.demo-metrics strong { display: block; color: #503922; font-size: clamp(25px, 3cqi, 35px); font-weight: 450; line-height: 1.1; letter-spacing: -1.2px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.demo-metrics small { display: block; color: #8a7b65; font-size: 9px; line-height: 1.5; }
.demo-office-item { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--demo-line); }
.demo-office-art { width: 50px; height: 54px; overflow: hidden; border-radius: 3px; background: #e5dcc9; flex-shrink: 0; }
.demo-office-item > div:nth-child(2) { min-width: 0; }
.demo-office-item strong { display: block; color: #594935; font-size: 12px; font-weight: 550; }
.demo-office-item > div > span { display: block; color: #7e735f; font-size: 10px; margin-top: 4px; }
.demo-stock-badge { margin-left: auto; padding: 5px 9px; border: 1px solid #d3c3a8; border-radius: 3px; background: #ece2d0; color: #7e6040; font-size: 10px; white-space: nowrap; }
.demo-stock-badge.is-sold { color: #8a5c36; background: #ead8c1; border-color: #ceb498; }
.demo-ledger-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.demo-ledger-heading strong { color: #554731; font-size: 12px; font-weight: 550; }
.demo-ledger-heading > span { color: #897b63; font-size: 9px; text-align: right; }
.demo-table-wrap { overflow-x: auto; }
.demo-ledger { width: 100%; border-collapse: collapse; color: #6a573d; font-size: 11px; font-variant-numeric: tabular-nums; }
.demo-ledger th { text-align: right; padding: 10px; color: #837057; font-size: 10px; font-weight: 450; background: #f0e9db; border-bottom: 1px solid #d9cbb4; }
.demo-ledger td { text-align: right; padding: 12px 10px; border-bottom: 1px solid #e1d7c5; color: #6a553b; white-space: nowrap; }
.demo-ledger th:first-child, .demo-ledger td:first-child { text-align: left; }
.demo-ledger td small { color: #8d7f68; font-size: 9px; }
.demo-ledger .demo-ledger-empty { padding: 25px 12px; text-align: center; color: #8a775a; white-space: normal; }
.demo-ledger-dot { display: inline-block; width: 5px; height: 5px; background: #9f7952; border-radius: 50%; margin-right: 6px; }
.demo-ledger-dot.is-return { background: #655c4b; }
.demo-office-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }
.demo-office-bottom p { max-width: 340px; color: #8a7b61; font-size: 10px; line-height: 1.6; }
.demo-office-bottom .demo-button { min-height: 39px; padding: 10px 13px; font-size: 11px !important; white-space: nowrap; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* The compact variation scales spacing before it scales text. */
.demo-compact .demo-workspace { grid-template-columns: 160px minmax(0, 1fr); min-height: 360px; }
.demo-compact .demo-sidebar { padding: 23px 10px; }
.demo-compact .demo-sidebar-brand { padding-bottom: 25px; font-size: 12px; gap: 8px; }
.demo-compact .demo-view-nav button { gap: 7px; padding: 10px 7px; font-size: 11px; }
.demo-compact .demo-shop-nav { padding: 20px 23px; }
.demo-compact .demo-shop-product { padding: 23px; gap: 24px; }
.demo-compact .demo-product-copy h3 { font-size: 30px; }
.demo-compact .demo-product-price { margin: 14px 0 10px; }
.demo-compact .demo-availability { margin: 14px 0; }
.demo-compact .demo-counter, .demo-compact .demo-office { padding: 23px; }
.demo-compact .demo-counter { gap: 21px; grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr); }
.demo-compact .demo-view-heading h3, .demo-compact .demo-office-heading h3 { font-size: 22px; }
.demo-compact .demo-receipt { padding: 21px 16px; }
.demo-compact .demo-metrics { gap: 9px; }
.demo-compact .demo-metrics > div { padding: 14px 11px; }

@container (max-width: 860px) {
  .demo-workspace, .demo-compact .demo-workspace { grid-template-columns: 1fr; min-height: 0; }
  .demo-sidebar, .demo-compact .demo-sidebar { padding: 9px 13px; border-right: 0; border-bottom: 1px solid #d0b39133; }
  .demo-sidebar-brand, .demo-sidebar-footer { display: none; }
  .demo-view-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .demo-view-nav button, .demo-compact .demo-view-nav button { gap: 10px; padding: 11px 13px; min-height: 54px; font-size: 12px; }
  .demo-view-nav button small { font-size: 9px; }
  .demo-nav-arrow { display: none; }
  .demo-product-copy h3 { font-size: 34px; }
}
@container (max-width: 600px) {
  .demo-topbar { padding: 10px 16px; gap: 10px; }
  .demo-concept-label { font-size: 10px; gap: 7px; letter-spacing: 0; }
  .demo-reset { font-size: 11px !important; }
  .demo-industry-tabs { padding: 10px; gap: 3px; }
  .demo-industry-tabs button { flex: 1; padding: 8px 7px; font-size: 11px; }
  .demo-sidebar, .demo-compact .demo-sidebar { padding: 8px; }
  .demo-view-nav button, .demo-compact .demo-view-nav button { padding: 10px 9px; gap: 7px; font-size: 11px; }
  .demo-view-nav button small { font-size: 8px; }
  .demo-nav-step { font-size: 9px; }
  .demo-shop-nav, .demo-compact .demo-shop-nav { padding: 19px 20px; }
  .demo-shop-wordmark { font-size: 22px; }
  .demo-shop-nav-links { font-size: 9px; gap: 10px; }
  .demo-shop-product, .demo-compact .demo-shop-product { padding: 22px; gap: 24px; }
  .demo-product-copy h3, .demo-compact .demo-product-copy h3 { font-size: 29px; }
  .demo-product-copy p { font-size: 11px; }
  .demo-product-price { font-size: 20px; margin: 15px 0 11px; }
  .demo-product-detail, .demo-availability { font-size: 10px; }
  .demo-product-tag { top: 10px; left: 10px; font-size: 7px; padding: 5px 7px; }
  .demo-product-copy .demo-button { font-size: 11px !important; padding: 11px 10px; }
  .demo-product-copy .demo-product-footnote { font-size: 9px; }
  .demo-counter, .demo-compact .demo-counter { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .demo-counter-product { min-width: 0; }
  .demo-line-item { margin-top: 8px; padding: 17px 0; }
  .demo-view-heading p { max-width: none; }
  .demo-counter-details { gap: 25px; }
  .demo-tip { margin-top: 18px; }
  .demo-receipt { padding: 24px; }
  .demo-office, .demo-compact .demo-office { padding: 22px; }
  .demo-office-heading h3, .demo-compact .demo-office-heading h3 { font-size: 23px; }
  .demo-metrics { gap: 8px; margin-top: 22px; }
  .demo-metrics > div, .demo-compact .demo-metrics > div { padding: 13px 10px; }
  .demo-metrics strong { font-size: 27px; }
  .demo-metrics span { font-size: 10px; }
  .demo-metrics small { font-size: 8px; }
  .demo-office-bottom { gap: 18px; }
  .demo-office-bottom p { font-size: 9px; }
  .demo-office-bottom .demo-button { white-space: normal; min-width: 118px; }
  .demo-ledger-heading > span { font-size: 8px; max-width: 150px; }
  .demo-status { padding: 13px 16px; font-size: 10px; }
}
@container (max-width: 440px) {
  .demo-frame { border-radius: 11px; }
  .demo-topbar { min-height: 48px; padding: 9px 13px; }
  .demo-concept-label { font-size: 9px; gap: 6px; }
  .demo-reset { font-size: 10px !important; gap: 6px; }
  .demo-industry-tabs { padding: 9px 6px; }
  .demo-industry-tabs button { font-size: 10px; padding: 8px 3px; }
  .demo-view-nav { gap: 3px; }
  .demo-view-nav button, .demo-compact .demo-view-nav button { font-size: 10px; padding: 9px 7px; gap: 5px; }
  .demo-view-nav button small { font-size: 8px; }
  .demo-nav-step { font-size: 8px; }
  .demo-shop-nav-links { display: none; }
  .demo-shop-product, .demo-compact .demo-shop-product { grid-template-columns: 1fr; padding: 19px; gap: 22px; }
  .demo-product-art { width: 100%; aspect-ratio: 1.14; }
  .demo-product-art .demo-photo { object-fit: contain; }
  .demo-product-tag { font-size: 8px; }
  .demo-art-credit { font-size: 9px; }
  .demo-product-copy h3, .demo-compact .demo-product-copy h3 { font-size: 34px; margin: 12px 0; }
  .demo-product-copy p { font-size: 12px; max-width: none; }
  .demo-product-price { font-size: 23px; margin: 15px 0; }
  .demo-product-detail, .demo-availability { font-size: 11px; }
  .demo-product-copy .demo-button { min-height: 46px; font-size: 12px !important; }
  .demo-product-copy .demo-product-footnote { font-size: 10px; }
  .demo-office, .demo-compact .demo-office { padding: 18px; }
  .demo-office-heading { align-items: flex-start; gap: 10px; }
  .demo-office-heading h3, .demo-compact .demo-office-heading h3 { font-size: 22px; }
  .demo-local-badge { font-size: 8px; padding: 5px; margin-top: 2px; }
  .demo-metrics, .demo-compact .demo-metrics { gap: 5px; }
  .demo-metrics > div, .demo-compact .demo-metrics > div { padding: 12px 8px; }
  .demo-metrics strong { font-size: 25px; }
  .demo-metrics span { font-size: 9px; }
  .demo-metrics small { font-size: 8px; }
  .demo-office-item { gap: 9px; }
  .demo-office-item > div > span { font-size: 9px; }
  .demo-office-item strong { font-size: 11px; }
  .demo-stock-badge { font-size: 9px; padding: 5px 6px; }
  .demo-ledger-heading { align-items: flex-start; }
  .demo-ledger-heading strong { font-size: 11px; }
  .demo-ledger-heading > span { max-width: 125px; }
  .demo-ledger th, .demo-ledger td { padding-left: 6px; padding-right: 6px; }
  .demo-ledger th { font-size: 9px; }
  .demo-ledger { font-size: 10px; }
  .demo-office-bottom { flex-direction: column; align-items: stretch; gap: 15px; }
  .demo-office-bottom p { max-width: none; font-size: 10px; }
  .demo-office-bottom .demo-button { min-height: 43px; font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-root button { transition: none; }
  .demo-button:hover { transform: none; }
}
