.product-visual figure{margin:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;min-height:0}.product-visual figure img{min-height:0;flex:1;object-fit:contain}.product-visual figcaption{font-size:11px;padding:6px;text-align:center}#productDetail figure{margin:0}#productDetail .reference-image{display:block;width:100%;height:340px;object-fit:contain}
:root {
  --customer-brand-accent: var(--accent);
  --forest: #1f2e21;
  --sage: #66845f;
  --stone: #cfc2a8;
  --ember: #8b3a3a;
  --line: color-mix(in srgb, var(--accent) 24%, transparent);
  --surface-raised: color-mix(in srgb, var(--surface) 88%, var(--forest));
  --semantic-success: color-mix(in srgb, var(--sage) 74%, white);
  --semantic-warning: color-mix(in srgb, var(--accent) 78%, white);
  --semantic-error: color-mix(in srgb, var(--ember) 58%, white);
  --shadow: 0 18px 44px #0008;
  --nav-height: 76px;
}

html { background: var(--background); scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--forest) 70%, transparent), transparent 34rem), var(--background);
  padding: max(14px, env(safe-area-inset-top)) 14px calc(var(--nav-height) + max(26px, env(safe-area-inset-bottom)));
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent) 38%, transparent) 0 1px, transparent 1.5px), radial-gradient(circle at 82% 9%, color-mix(in srgb, var(--text) 28%, transparent) 0 1px, transparent 1.5px);
  background-size: 93px 93px, 137px 137px;
}
main { position: relative; width: min(720px, 100%); }
#appHeader { position: relative; min-height: 76px; margin: 0 2px 18px; padding: 2px 54px 16px 2px; gap: 12px; border-bottom: 1px solid var(--line); }
#appHeader::after { content: none; }
#appHeader img { width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 60%, transparent), 0 0 24px color-mix(in srgb, var(--sage) 20%, transparent); }
#appHeader > div { min-width: 0; flex: 1; }
#appHeader h1 { font-size: clamp(20px, 5.4vw, 30px); line-height: 1.08; letter-spacing: .005em; text-wrap: balance; overflow-wrap: anywhere; }
#appHeader .sub { margin-top: 7px; font-size: 9px; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; }
main:has(> #appHeader:not([hidden])) > .appearance-controls { position: absolute; top: 3px; right: 2px; z-index: 2; margin: 0; }
.card, .screen-card { border: 1px solid var(--line); background: linear-gradient(155deg, var(--surface-raised), var(--surface)); box-shadow: 0 12px 30px #0005; }
.card { border-radius: 22px; }
.entrance { position: relative; overflow: hidden; min-height: min(690px, calc(100dvh - 64px)); display: grid; align-content: center; }
.entrance::before { content: "☾  ·  ✦"; display: block; color: var(--accent); font: 24px var(--heading-font); letter-spacing: .18em; margin-bottom: 8px; }
.entrance img { width: 148px; height: 148px; margin: auto; border: 1px solid var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--forest) 70%, transparent), 0 0 50px color-mix(in srgb, var(--sage) 30%, transparent); }
h1, h2, h3 { color: var(--text); }
h2 { font-size: clamp(25px, 7vw, 38px); line-height: 1.08; margin: 8px 0 10px; }
h3 { font-family: var(--heading-font); font-size: 21px; }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.page-heading { margin: 6px 2px 18px; }
.page-heading p:last-child { margin: 4px 0 0; }
.section-heading { margin-bottom: 12px; }
.section-heading h2 { font-size: 25px; margin: 0; }
.section-heading .quiet { width: auto; min-width: 92px; }
.screen { min-height: 60dvh; }
.screen-card { border-radius: 22px; padding: 16px; margin: 12px 0; }
.home-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.home-status .badge { background: color-mix(in srgb, var(--sage) 16%, transparent); border-color: color-mix(in srgb, var(--sage) 54%, transparent); color: var(--text); font-weight: 700; }
.stage { min-height: 220px; border-color: var(--line); box-shadow: var(--shadow); }
.banner { min-height: 220px; padding: 22px; }
.banner .copy { max-width: 90%; }
.banner .copy h2 { font-size: clamp(27px, 8vw, 42px); }
.home-section { margin: 24px 0; }
.category-rail, .deal-strip { display: flex; gap: 10px; overflow: auto; padding: 2px 1px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.category-rail::-webkit-scrollbar, .deal-strip::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.category-chip { scroll-snap-align: start; min-width: 132px; min-height: 76px; display: grid; align-content: end; text-align: left; color: var(--text); background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 80%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.category-chip span { display: block; color: var(--stone); font-size: 11px; font-weight: 500; margin-top: 4px; }
.deal { scroll-snap-align: start; min-width: min(84vw, 280px); padding: 16px; border-color: var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); box-shadow: 0 10px 22px #0004; }
.deal span { display: block; margin-top: 6px; color: var(--stone); line-height: 1.4; }
.deal-list { display: grid; gap: 12px; }
.deal-list .deal { width: 100%; min-width: 0; }
.shop-tools { top: max(4px, env(safe-area-inset-top)); border-color: var(--line); background: color-mix(in srgb, var(--background) 91%, transparent); box-shadow: 0 10px 24px #0008; }
.shop-tools input, .shop-tools select, .beta-form textarea, .beta-form select, input, select { min-height: 48px; border-color: color-mix(in srgb, var(--stone) 26%, transparent); background: color-mix(in srgb, var(--background) 84%, var(--surface)); color: var(--text); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 78%, white); outline-offset: 3px; }
.field-requirement { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.field-error { min-height: 1.25em; margin-top: 5px; color: var(--semantic-error); font-size: 12px; font-weight: 700; }
input[aria-invalid="true"] { border-color: var(--semantic-error); box-shadow: 0 0 0 1px var(--semantic-error); }
.submission-reference { color: var(--semantic-success); font: 800 12px ui-monospace, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.notice.show { border: 1px solid color-mix(in srgb, var(--semantic-success) 54%, transparent); color: var(--text); background: color-mix(in srgb, var(--sage) 22%, var(--surface)); }
.error.show { border: 1px solid color-mix(in srgb, var(--semantic-error) 52%, transparent); color: var(--text); background: color-mix(in srgb, var(--ember) 24%, var(--surface)); }
.tabs { gap: 9px; }
.tabs button { min-height: 44px; border-color: var(--line); background: var(--surface); }
.tabs button.active { background: var(--accent); color: #090b0a; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product { min-width: 0; min-height: 100%; border-radius: 17px; border-color: var(--line); box-shadow: 0 10px 24px #0004; }
.product img, .product > .placeholder { aspect-ratio: 1 / 1; object-fit: contain; background: color-mix(in srgb, var(--surface) 84%, white); }
.product-copy { display: grid; align-content: space-between; min-height: 96px; padding: 12px; overflow-wrap: anywhere; }
.product-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.exploration-label { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .08em; line-height: 1.25; overflow-wrap: anywhere; }
.price { font-size: 16px; }
.placeholder { min-height: 110px; border-radius: 14px; padding: 18px; text-align: center; }
.simulation-notice { border-color: color-mix(in srgb, var(--accent) 70%, transparent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); line-height: 1.35; }
.nav { position: fixed; left: 50%; right: auto; bottom: 0; transform: translateX(-50%); z-index: 20; width: min(720px, 100%); height: calc(var(--nav-height) + env(safe-area-inset-bottom)); margin: 0; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; background: color-mix(in srgb, var(--background) 92%, transparent); box-shadow: 0 -14px 36px #000a; backdrop-filter: blur(18px); }
.nav button { min-width: 0; min-height: 58px; padding: 5px 2px; display: grid; place-items: center; gap: 2px; color: var(--stone); border-radius: 13px; font-size: 10px; font-weight: 700; line-height: 1; background: transparent; }
.nav button[aria-current="page"] { color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--forest) 88%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.nav-icon { width: 22px; height: 22px; display: block; }
.nav-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-nav-label { position: relative; }
.cart-badge { position: absolute; transform: translate(11px, -8px); min-width: 18px; height: 18px; padding: 3px; border-radius: 99px; background: var(--accent); color: #090b0a; font-size: 10px; line-height: 12px; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.danger-action { background: color-mix(in srgb, var(--ember) 78%, #000); color: #fff; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
button { min-height: 44px; touch-action: manipulation; transition: transform .14s ease, background-color .14s ease, border-color .14s ease; }
button:active { transform: scale(.985); }
button.quiet { padding: 10px 12px; background: transparent; color: var(--accent); border: 1px solid var(--line); }
dialog { width: min(620px, calc(100% - 20px)); max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))); border-color: var(--line); background: linear-gradient(155deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow); padding: 16px; }
.product-gallery > img, .product-detail-missing { width: 100%; aspect-ratio: 1 / 1; max-height: 56dvh; object-fit: contain; border-radius: 14px; background: color-mix(in srgb, var(--surface) 82%, white); }
.product-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 10px 1px; }
.product-thumbnails button { flex: 0 0 72px; width: 72px; height: 72px; padding: 3px; border: 1px solid var(--line); background: var(--surface); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: color-mix(in srgb, var(--surface) 82%, white); }
#productDetail h2, #productDetail p, #productDetail strong { overflow-wrap: anywhere; }
.variant { grid-template-columns: minmax(0, 1fr) minmax(140px, auto); }
.variant-actions { min-width: 0; }
.add-variant { min-height: 48px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
footer { padding: 16px 0 8px; }
.beta-entry { border-color: var(--line); box-shadow: 0 10px 24px #0004; }
#betaHomeEntry { grid-template-columns: minmax(0, 1fr) auto; }

@media (max-width: 430px) {
  body { padding-left: 10px; padding-right: 10px; }
  .card { padding: 17px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-copy { min-height: 104px; padding: 10px; }
  .shop-tools { grid-template-columns: 1fr 1fr; }
  .home-status { grid-template-columns: 1fr; }
  .home-status .badge { justify-self: start; }
  .page-heading { align-items: start; }
  .section-heading { align-items: center; }
  .variant { grid-template-columns: 1fr; }
  .variant-actions { text-align: left; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line .controls { justify-content: flex-start; flex-wrap: wrap; }
  .account-actions { grid-template-columns: 1fr; }
  .nav { overflow: visible; }
  .nav button { white-space: normal; flex: initial; }
}

@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
  .shop-tools { grid-template-columns: 1fr; }
  .shop-tools input, .shop-tools .result-count { grid-column: 1; }
  .nav button { font-size: 9px; }
  .nav-icon { width: 20px; height: 20px; }
}

@media (min-width: 680px) {
  body { padding-left: 22px; padding-right: 22px; }
  .home-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

html[data-customer-theme="dark"] { color-scheme: dark; }
html[data-customer-theme="light"] { background: #fff1db; color-scheme: light; }
html[data-customer-theme="light"] body {
  --background: #fff1db;
  --surface: #fff8eb;
  --text: #2c241b;
  --muted: #705b45;
  --stone: #705b45;
  --forest: #f5dcb7;
  --sage: #56633c;
  --ember: #8b3030;
  --danger: #912b2b;
  --accent: color-mix(in srgb, var(--customer-brand-accent, #d5b77a) 16%, #75421d);
  --line: color-mix(in srgb, #a36930 34%, transparent);
  --surface-raised: color-mix(in srgb, var(--surface) 88%, var(--forest));
  --shadow: 0 12px 32px #75421d16;
  --semantic-success: #405a2e;
  --semantic-warning: #745009;
  --semantic-error: #912b2b;
  background: radial-gradient(ellipse at 80% 0%, #f8c89490, transparent 35rem), radial-gradient(ellipse at 0% 30%, #ffe2b860, transparent 28rem), var(--background);
}
html[data-customer-theme="light"] body::before { opacity: .12; }
html[data-customer-theme="light"] :is(.card, .screen-card, .deal, .product, .shop-tools, .beta-entry) { box-shadow: var(--shadow); }
html[data-customer-theme="light"] #appHeader img { box-shadow: 0 0 0 3px #f4d5a9, 0 4px 16px #75421d18; }
html[data-customer-theme="light"] :is(.stage, .stage > .placeholder) { background: #f3e5cf; }
html[data-customer-theme="light"] .home-status .badge { background: #f7d6a2; border-color: #b58a51; }
html[data-customer-theme="light"] .simulation-notice { background: #f9d8bb; border-color: #ba824c; }
html[data-customer-theme="light"] .nav { background: #fff5e5ed; box-shadow: 0 -8px 28px #75421d18; }
html[data-customer-theme="light"] .nav button[aria-current="page"] { background: linear-gradient(145deg, #ffe3b6, #f3c98e); }
html[data-customer-theme="light"] .banner .copy { color: #fff; }
html[data-customer-theme="light"] .banner .copy h2 { color: #fff; }
html[data-customer-theme="light"] button { color: #fffdf7; }
html[data-customer-theme="light"] :is(.secondary, .quiet, .product, .category-chip, .theme-toggle, .beta-entry, .tabs button) { color: var(--text); }
html[data-customer-theme="light"] .tabs button.active { color: #fffdf7; }
html[data-customer-theme="light"] .nav button { color: var(--text); }
html[data-customer-theme="light"] .nav button[aria-current="page"] { color: var(--accent); }
html[data-customer-theme="light"] .category-chip { background: var(--surface-raised); }
html[data-customer-theme="light"] .maintenance-screen { background: var(--background); }
html[data-customer-theme="light"] .image-fallback { background: var(--surface-raised); }
.appearance-controls { display: flex; justify-content: flex-end; align-items: center; margin: 0 0 14px; }
.appearance-controls .theme-toggle { width: 44px; min-width: 44px; min-height: 44px; padding: 4px; font-size: 26px; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 9%, transparent); }
.image-fallback { display: grid; place-items: center; }
.image-fallback[hidden], img[hidden] { display: none !important; }
.customer-update-notice { position: fixed; z-index: 10001; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px)); padding: 14px; border: 1px solid var(--accent); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.customer-update-notice button { margin-top: 10px; display: block; width: 100%; }

/* Image-first catalog: keep tenant imagery intact, with the mockup's quiet gold framing. */
.product { display: flex; flex-direction: column; padding: 0; text-align: left; background: linear-gradient(150deg, var(--surface-raised), var(--background)); border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent); border-radius: 16px; }
.product-visual { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 8px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 65%, color-mix(in srgb, var(--sage) 22%, var(--background)), var(--background)); }
.product .product-visual img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: transparent; }
.product-visual :is(.placeholder, .image-fallback) { width: 100%; height: 100%; min-height: 0; margin: 0; border: 1px dashed var(--line); background: transparent; font-size: 12px; line-height: 1.5; }
.product-copy { width: 100%; flex: 1; gap: 8px; padding: 13px; align-content: start; }
.product-copy strong { font-family: var(--heading-font); font-size: 18px; font-weight: 500; line-height: 1.2; }
.product-copy .price { margin: auto 0 0; padding-top: 2px; font-size: 17px; }
.product-discover { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--stone); font-size: 10px; letter-spacing: .06em; }
.product-discover > span { color: var(--accent); font-size: 17px; line-height: 1; }
.product:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* A focused product sheet, not a second checkout or invented variant selector. */
#productDialog { padding: 0; border-radius: 22px; border-color: color-mix(in srgb, var(--accent) 60%, transparent); overscroll-behavior: contain; }
#productDialog::backdrop { background: #030806d9; backdrop-filter: blur(6px); }
.product-detail-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.product-detail-toolbar .eyebrow { margin: 0; font-size: 10px; }
.product-detail-toolbar #closeProduct { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; padding: 8px 12px; border-color: var(--line); font-size: 12px; }
.product-detail-toolbar #closeProduct span { font-size: 22px; font-weight: 400; }
#productDetail { padding: 16px; }
#productDetail .simulation-notice { font-size: 10px; letter-spacing: .03em; }
.product-gallery { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at 50% 65%, color-mix(in srgb, var(--sage) 22%, var(--background)), var(--background)); }
.product-gallery > img { display: block; max-height: 42dvh; background: transparent; }
.product-gallery :is(.product-detail-missing, .image-fallback) { max-height: 42dvh; margin: 0; border: 1px dashed var(--line); color: var(--stone); background: transparent; }
.product-thumbnails { padding: 12px 0 0; }
.product-thumbnails button { flex-basis: 58px; width: 58px; height: 58px; border-radius: 10px; }
.product-thumbnails img { background: transparent; }
.product-thumbnails button:hover, .product-thumbnails button:focus-visible { border-color: var(--accent); }
#productDetail h2 { margin: 20px 0 12px; font-size: clamp(27px, 7vw, 36px); line-height: 1.1; }
#productDetail > p { margin: 0 0 20px; color: var(--stone); font-size: 14px; line-height: 1.65; white-space: pre-line; }
#productDetail .variant { margin: 10px 0 0; padding: 14px; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-raised) 75%, transparent); }
#productDetail .variant > div > strong { display: block; font-size: 14px; line-height: 1.45; }
#productDetail .variant-actions > strong { color: var(--accent); font-size: 20px; }
#productDetail .variant-unavailable { margin-top: 6px; font-size: 12px; }
#productDetail .add-variant { min-height: 48px; border: 1px solid var(--accent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--background)); box-shadow: inset 0 0 12px color-mix(in srgb, var(--accent) 9%, transparent), 0 0 12px color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); }
html[data-customer-theme="light"] :is(.product-visual, .product-gallery) { background: radial-gradient(ellipse at 50% 65%, #ffe4bb, #fff5e5); }
html[data-customer-theme="light"] #productDetail .add-variant { background: linear-gradient(145deg, #ffe3b6, #f3c98e); border-color: #ad7137; color: #2c241b; box-shadow: 0 3px 12px #75421d12; }
@media (max-width: 430px) {
  .product-copy { padding: 11px; }
  .product-copy strong { font-size: 17px; }
  #productDialog { width: calc(100% - 16px); }
  #productDetail { padding: 12px; }
  #productDetail .variant-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, auto); align-items: center; text-align: left; }
}
@media (max-width: 340px) {
  #productDetail .variant-actions { grid-template-columns: 1fr; }
}

/* Approved Shop-first system: one family of surfaces, type and controls. */
body { --background:#090b0a;--surface:#111512;--surface-raised:#1f2e21;--accent:#d5b77a;--text:#f4e8cf;--muted:#cfc2a8;--stone:#cfc2a8;--line:#716345;background:var(--background);font-family:Arial,sans-serif; }
html[data-customer-theme="light"] body { --background:#fff1db;--surface:#fff8eb;--surface-raised:#f5dcb7;--accent:#81542c;--text:#2c241b;--muted:#705b45;--stone:#705b45;--line:#b78a56;background:var(--background); }
body::before { display:none; }
main { max-width:760px; }
h1,h2,h3 { font-family:Georgia,serif;font-weight:400; }
.card,.screen-card,.deal,.product,.beta-entry,.shop-tools { border-radius:16px;border-color:var(--line);background:var(--surface);box-shadow:none!important; }
button,input,select,.secondary { border-radius:10px; }
button { min-height:44px;font-weight:500; }
.storefront-hero button,html[data-customer-theme="light"] .storefront-hero button { background:var(--accent);color:var(--background); }
button:disabled { opacity:.55; }
#appHeader { gap:12px;align-items:center; }
#appHeader>div { min-width:0;flex:1; }
#brandName { font:italic 29px/1.05 Georgia,serif;letter-spacing:-.6px;color:var(--accent); }
#liveState { font-size:11px;letter-spacing:.1em;text-transform:uppercase; }
#appHeader img { width:49px;height:49px;box-shadow:none!important; }
#appHeader .appearance-controls { flex:none;margin:0; }
.appearance-controls .theme-toggle { border:0;box-shadow:none;background:transparent; }
.customer-icon { display:inline-block;width:24px;height:24px;flex-shrink:0;vertical-align:middle; }
.home-search { display:flex;align-items:center;gap:8px;margin-bottom:16px; }
.home-search input { flex:1;min-width:0;background:var(--surface);border-color:var(--line); }
.home-search button { flex-shrink:0;border-color:var(--line); }
.storefront-hero { display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;padding:24px 20px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,var(--surface-raised),var(--surface)); }
.storefront-hero .eyebrow { margin:0;color:var(--accent); }
.storefront-hero h2 { font:400 36px/1.12 Georgia,serif;margin:12px 0 20px; }
.storefront-hero button { text-align:left; }
.hero-moon { font-size:78px;color:var(--accent);text-align:center;line-height:1; }
.home-promotions { border-left:2px solid var(--accent);padding:16px;margin:16px 0 24px;background:var(--surface); }
.home-promotions h2 { font-size:24px; }
.home-promotions .section-heading { align-items:center; }
.home-promotions .placeholder { min-height:44px;aspect-ratio:auto;border:0;display:block;background:transparent;text-align:left;padding:0; }
.category-rail { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;margin-bottom:20px; }
.category-chip { display:grid;align-content:start;justify-items:center;gap:8px;min-width:0;width:100%;padding:4px;border:0;background:transparent!important;box-shadow:none;color:var(--text); }
.category-chip strong { font:400 12px/1.4 Arial,sans-serif;overflow-wrap:anywhere; }
.category-chip .category-glyph { display:grid;place-items:center;width:45px;height:45px;margin:0;border:1px solid var(--line);border-radius:50%;color:var(--accent);background:var(--surface); }
.category-chip .category-glyph .customer-icon { display:block;margin:0; }
.storefront-hero button,#homeFeaturedAll { display:inline-flex;align-items:center;justify-content:center;gap:8px; }
.hero-moon { display:grid;place-items:center; }
.hero-moon .customer-icon { width:72px;height:72px;stroke-width:1.2; }
.product-discover>.customer-icon { width:20px;height:20px; }
.entrance::before { content:none; }
.grid,.home-featured { grid-template-columns:repeat(2,minmax(0,1fr)); }
.product { background:var(--surface);min-width:0; }
.product-visual,html[data-customer-theme="light"] .product-visual { padding:0;background:var(--surface-raised); }
.product .product-visual img { border-radius:0; }
.product-visual :is(.placeholder,.image-fallback) { border:0;background:transparent;aspect-ratio:auto;min-width:0;max-width:100%; }
.no-photo { display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:center;text-align:center;padding:12px; }
.no-photo svg { color:var(--accent); }
.product-copy,.product-copy strong { font-size:16px;font-weight:400; }
.product-copy .price { font:400 14px Arial,sans-serif;color:var(--text); }
.product-copy .unavailable { color:var(--semantic-error); }
.product-discover { font-size:11px;letter-spacing:0; }
.product-gallery,html[data-customer-theme="light"] .product-gallery { background:var(--surface-raised); }
#productDetail .add-variant,html[data-customer-theme="light"] #productDetail .add-variant { background:var(--accent);color:var(--background);box-shadow:none; }
.nav,html[data-customer-theme="light"] .nav { background:var(--background);border:1px solid var(--line);border-radius:24px;box-shadow:none; }
.nav button { color:var(--muted)!important;background:transparent!important; }
.nav button[aria-current="page"],html[data-customer-theme="light"] .nav button[aria-current="page"] { background:var(--surface-raised)!important;color:var(--accent)!important;border-color:var(--accent); }
.nav-icon svg { stroke-width:1.65; }
@media(max-width:430px) { .grid,.home-featured { grid-template-columns:repeat(2,minmax(0,1fr)); } #brandName { font-size:25px; } #appHeader img { width:40px;height:40px; } .home-status { grid-template-columns:1fr; } }
@media(max-width:340px) { .storefront-hero { grid-template-columns:minmax(0,1fr) 42px;padding:20px 14px; } .storefront-hero h2 { font-size:32px; } .hero-moon .customer-icon { width:40px;height:40px; } }
/* Honest empty collection: same brand, no illustrative stock or invented prices. */
.collection-empty{width:100%;box-sizing:border-box;min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);gap:0}
.collection-empty .empty-emblem{display:grid;place-items:center;width:54px;height:54px;margin:0 0 20px;color:var(--accent);border:1px solid var(--line);border-radius:50%}
.collection-empty .empty-emblem .customer-icon{width:26px;height:26px}
.collection-empty .eyebrow{font-size:10px;letter-spacing:.16em;line-height:1.6;margin:0 0 12px}
.collection-empty h2{font:normal 29px/1.14 Georgia,serif;max-width:360px;margin:0 0 14px;color:var(--text)}
.collection-empty .empty-copy{font-size:14px;line-height:1.7;color:var(--muted);max-width:340px;margin:0}
.grid.is-empty{display:block}
.empty-category-note{text-align:center;color:var(--muted);font-size:12px;line-height:1.6;margin:18px auto 26px}
.empty-offers{color:var(--muted);font-size:14px;line-height:1.7;margin:0}
.home-promotions{border-left:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;background:transparent}
#dealList:has(.collection-empty){display:block}
#cartLines>.collection-empty{margin:18px 0}
.collection-empty[hidden],#homeCategories[hidden],#featuredHeading[hidden],#categoryTabs[hidden],#categorySelect[hidden],#catalogSort[hidden],#catalogResultCount[hidden],#cartPromotion[hidden],#cartTotals[hidden]{display:none}
@media(max-width:360px){.collection-empty{padding:30px 18px}.collection-empty h2{font-size:26px}}
.price-filters{min-width:0;margin:0 0 18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.price-filters legend{padding:0 8px;font-family:var(--heading-font);font-size:19px;color:var(--text)}
.price-filters>p{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 10px}
.price-filter-fields{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px}
.price-filter-fields>div{min-width:0}.price-filter-fields label{margin:0 0 6px}.price-filter-fields input{width:100%;min-width:0;min-height:48px}
.price-filter-fields button{min-height:48px}.price-filters #priceFilterError{color:var(--semantic-error);margin:10px 0 0}.price-filters #priceFilterError:empty{display:none}
.filter-message{grid-column:1/-1;color:var(--muted);line-height:1.6;padding:18px 0}
.price-filters[hidden]{display:none}
@media(max-width:540px){.price-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.price-filter-fields button{grid-column:1/-1}}

/* Tester-ready workflow surfaces: the approved shop palette, without new behavior. */
main > .card { padding:24px; }
main > :is(.card,.screen) p { line-height:1.65; }
main > .card > h2 { margin:8px 0 18px; }
main > .card > h3 { margin:24px 0 14px; }
main > :is(.card,.screen) button.secondary,
#shippingDialog button.secondary { border:1px solid var(--line);background:transparent;color:var(--text); }
main > .card input,main > .card select,main > .card textarea,
#shippingDialog :is(input,select,textarea) { width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:10px;background:var(--background);color:var(--text);font:400 16px/1.4 Arial,sans-serif;padding:12px; }
main > .card input::placeholder,#shippingDialog input::placeholder { color:var(--muted);opacity:.8; }
main > .card input[aria-invalid="true"] { border-color:var(--semantic-error);box-shadow:0 0 0 1px var(--semantic-error); }
main > .card label,#shippingDialog label { color:var(--muted);line-height:1.5; }
main > .card .actions { gap:12px;margin-top:20px; }
main > .card button,#shippingDialog button { overflow-wrap:anywhere; }
main > .card button:disabled,#shippingDialog button:disabled { cursor:not-allowed; }
main > .card :is(.notice,.error) { padding:14px;line-height:1.6;overflow-wrap:anywhere; }
#profile .home-status { padding:18px;margin:0 0 20px;background:var(--surface-raised); }
#profile .home-status .eyebrow { font-size:10px;line-height:1.5; }
#profile #customerName { display:block;font:400 24px/1.25 Georgia,serif;margin:7px 0;overflow-wrap:anywhere; }
#profile #customerState { font-size:13px;line-height:1.6; }
#profile .beta-entry { display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:16px;align-items:center;padding:18px;margin:12px 0;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:16px; }
#profile .beta-entry > span { min-width:0;margin:0; }
#profile .beta-entry > span > strong { display:block;color:var(--text);font:400 20px/1.25 Georgia,serif; }
#profile .beta-entry > span > span { display:block;margin-top:7px;color:var(--muted);font:400 12px/1.6 Arial,sans-serif; }
#profile .beta-entry > strong { display:grid;place-items:center;color:var(--accent); }
#profile .beta-entry .customer-icon { display:block;width:22px;height:22px;margin:0;color:var(--accent); }
#profile .account-actions { margin-top:24px;padding-top:20px;border-top:1px solid var(--line); }
#profile #emailConfirm { margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised); }
#profile #emailConfirm button { width:100%;margin-top:12px; }
#cart .cart-line { grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--line); }
#cart .cart-line > div { min-width:0;overflow-wrap:anywhere; }
#cart .cart-line > div:first-child > strong { display:block;font:400 20px/1.3 Georgia,serif; }
#cart .cart-line .controls { flex-wrap:wrap;gap:8px; }
#cart .cart-line .controls button { min-width:44px;min-height:44px;border:1px solid var(--line);background:var(--background);color:var(--text); }
#cart .cart-line .controls :is(span,strong) { min-width:24px;text-align:center;font-variant-numeric:tabular-nums; }
#cartPromotion { margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--background); }
#cartPromotion label { margin:0 0 10px; }
#cartPromotion .actions { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;margin:0; }
#cart .totals,#checkout .totals,#confirmation .totals { gap:12px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);line-height:1.5;font-variant-numeric:tabular-nums; }
#cart .totals > :nth-child(even),#checkout .totals > :nth-child(even),#confirmation .totals > :nth-child(even) { text-align:right; }
#cart .totals strong,#checkout .totals strong,#confirmation .totals strong { color:var(--text);font-size:18px; }
#checkout .checkout-grid { gap:0; }
#checkout .checkout-scheduling { margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--background); }
#checkout .checkout-scheduling label:first-child { margin-top:0; }
#checkout #scheduleAvailability { margin:14px 0 0;font-size:13px; }
#confirmation .confirmation-mark { display:grid;place-items:center;width:64px;height:64px;margin:20px auto;border:1px solid var(--line);border-radius:50%;background:var(--surface-raised);font-size:32px; }
#confirmation > h2 { text-align:center; }
#confirmation #confirmationDetails { overflow-wrap:anywhere; }
#confirmation #confirmationDone { width:100%;margin-top:16px; }
#orders .order-row { grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--background);color:var(--text);line-height:1.5;overflow-wrap:anywhere; }
#orders .order-row > :first-child { min-width:0; }
#orders .order-row small { line-height:1.6; }
#orderDetail :is(.order-line,.timeline-row) { border-color:var(--line);line-height:1.6;overflow-wrap:anywhere; }
main :is(.status-pill,.badge) { border-color:var(--line);line-height:1.4; }
#betaCenter .beta-hero { padding:20px;border:1px solid var(--line);background:var(--surface-raised); }
#betaCenter .beta-grid button { padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--background);color:var(--text); }
#betaCenter .beta-grid button strong { font:400 20px/1.3 Georgia,serif; }
#betaCenter .beta-grid button span { margin-top:8px;color:var(--muted);line-height:1.6; }
#betaCenter :is(.beta-assignment,.beta-observation) { border-color:var(--line);overflow-wrap:anywhere; }
#betaCenter .topline { align-items:start;flex-wrap:wrap; }
#betaCenter .placeholder { min-height:110px;aspect-ratio:auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--background);font-size:13px;line-height:1.6; }
#betaFeedback .beta-media { border-color:var(--line);background:var(--background); }
#betaFeedback textarea { min-height:160px;resize:vertical; }
#betaFeedback input[type="file"] { font-size:12px;padding:8px; }
#betaFeedback input[type="file"]::file-selector-button { min-height:36px;margin-right:10px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-raised);color:var(--text);font:inherit; }
#shippingDialog { border-color:var(--line);border-radius:20px; }
#shippingDialog :is(article,details) { border-color:var(--line);overflow-wrap:anywhere; }
#shippingDialog summary { min-height:44px;padding:12px 0;color:var(--accent);cursor:pointer; }
#shippingDialog p { line-height:1.65; }
@media(max-width:540px) {
  main > .card { padding:20px 16px; }
  #profile .home-status { padding:16px; }
  #cart .cart-line { grid-template-columns:1fr;gap:12px; }
  #cart .cart-line .controls { justify-content:flex-start; }
  #orders .order-row { grid-template-columns:1fr; }
  #betaCenter .beta-grid { grid-template-columns:1fr; }
}
@media(hover:hover) {
  #profile .beta-entry:hover,#orders .order-row:hover,#betaCenter .beta-grid button:hover { border-color:var(--accent);background:var(--surface-raised); }
}
/* Optional iPhone welcome/help, using the same Night/Sunrise palette. */
.home-screen-guide { padding:18px 0;margin:0 0 20px;border-bottom:1px solid var(--line);color:var(--text);overflow-wrap:anywhere; }
.home-screen-guide summary { min-height:44px;padding:12px 0;color:var(--accent);font-weight:600; }
.home-screen-guide p,.home-screen-guide li { line-height:1.6; }
.home-screen-guide ol { padding-left:24px; }
.home-screen-guide li + li { margin-top:10px; }
.home-screen-guide[hidden] { display:none; }
/* Bulk preferences retain the established form and touch-target treatment. */
#bulkPreference,#bulkNotes{display:block;width:100%;max-width:100%;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--accent);border-radius:10px;padding:12px;min-height:44px}#bulkNotes{resize:vertical}
