:root {
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
  --bg: #111918;
  --bar: #141e1d;
  --panel: #1b2624;
  --panel-raised: #22302d;
  --ink: #f7f4e9;
  --muted: #b4c0b9;
  --line: #36453f;
  --accent: #ff705d;
  --accent-ink: #201812;
  --lime: #d7ef72;
  --hero: #121c1b;
  --hero-ink: #f7f4e9;
  --hero-muted: #d0d9cf;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1eee3;
  --bar: #fffdf5;
  --panel: #fffdf5;
  --panel-raised: #e9e7db;
  --ink: #192620;
  --muted: #465850;
  --line: #c9d1c4;
  --accent: #f56550;
  --lime: #416518;
}
:root[data-theme="holiday"] {
  --bg: #0d2019;
  --bar: #11291f;
  --panel: #183229;
  --panel-raised: #244036;
  --line: #365b49;
  --accent: #ff766f;
  --lime: #f0d685;
  --hero: #122821;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { color: inherit; }
[hidden], body:not(.kiosk) .kiosk-only, body.kiosk .storefront-only, body.kiosk .nav, body.kiosk .kiosk-link, body.kiosk .staff-control { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 5; top: .6rem; left: .6rem; padding: .7rem 1rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shell { width: min(1344px, calc(100% - 100px)); margin-inline: auto; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.15rem; height: 1.15rem; color: inherit; }
.icon svg { width: 100%; height: 100%; }
.topbar { background: var(--bar); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .72rem; line-height: 1.02; font-weight: 900; letter-spacing: -.018em; }
.brand > span { font-size: 1.02rem; }
.brand > span > span { display: block; margin-top: .28rem; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.7rem); }
.nav a, .nav button { color: var(--muted); font-size: .93rem; font-weight: 660; white-space: nowrap; border: 0; background: none; padding: .55rem 0; }
.nav .current { color: var(--ink); border-bottom: 2px solid var(--accent); }
.nav a:hover, .nav button:hover { color: var(--ink); }
.top-actions, .catalog-actions, .footer-actions { display: flex; align-items: center; gap: .65rem; }
.button, .theme-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; padding: .65rem .95rem; min-height: 44px; border-radius: .6rem; font-size: .9rem; font-weight: 750; white-space: nowrap; transition: background .18s, transform .18s, border-color .18s; }
.button:active { transform: translateY(1px); }
.button-quiet, .theme-trigger { border-color: var(--line); background: var(--panel); color: var(--ink); }
.button-quiet:hover, .theme-trigger:hover { border-color: var(--muted); background: var(--panel-raised); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: color-mix(in srgb, var(--accent), white 15%); }
.theme-trigger { padding: .55rem; min-width: 44px; font-size: 1.2rem; line-height: 1; }
.theme-menu { position: fixed; inset: 66px max(18px, calc((100vw - 1344px) / 2 + 7rem)) auto auto; margin: 0; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: .5rem; min-width: 148px; box-shadow: 0 16px 40px #0006; }
.theme-menu p { margin: .3rem .6rem; color: var(--muted); font-size: .8rem; }
.theme-menu button { display: block; width: 100%; text-align: left; padding: .55rem .62rem; border-radius: .4rem; background: transparent; border: 0; }
.theme-menu button:hover, .theme-menu button[aria-pressed="true"] { background: var(--panel-raised); }
.hero { padding-top: 1.55rem; }
.hero-card { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; min-height: clamp(390px, 35vw, 500px); background: var(--hero); border: 1px solid var(--line); border-radius: 1.15rem; }
.hero-copy { position: relative; z-index: 1; padding: clamp(2rem, 4.25vw, 4.55rem); width: max(51%, 410px); }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--lime); font-size: .77rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy .eyebrow { color: #d7ef72; }
.hero-spark { font-size: 1.2rem; line-height: 1; }
.hero h1 { font-size: clamp(3.4rem, 6.4vw, 6.5rem); font-weight: 900; letter-spacing: -.082em; line-height: .94; margin: .32em 0 .25em; color: var(--hero-ink); text-wrap: nowrap; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 320px; color: var(--hero-muted); margin: 1.1rem 0 1.35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-actions .button { min-height: 46px; padding-inline: 1rem; }
.hero-actions .button-quiet { background: #182324; color: #f7f4e9; border-color: #465453; }
.hero-actions .button-quiet:hover { background: #253534; }
.hero-art { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 52%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero), transparent 33%), linear-gradient(0deg, #10181644, transparent 48%); }
.catalog { padding-top: 2.5rem; padding-bottom: 4rem; scroll-margin-top: 1rem; min-height: 55vh; }
.catalog-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.catalog-title h2 { margin: .15rem 0 0; font-size: clamp(2.1rem, 4.2vw, 3.25rem); font-weight: 880; line-height: 1; letter-spacing: -.062em; }
.catalog-status { color: var(--muted); font-size: .84rem; text-align: right; }
.catalog-status[data-state] { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.catalog-status[data-state="live"]::before, .catalog-status[data-state="offline"]::before { content: ""; width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: var(--lime); }
.catalog-status[data-state="offline"]::before { background: var(--accent); }
.live-dot { width: .52rem; height: .52rem; border-radius: 50%; background: var(--lime); }
.category-tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.12rem; }
.category-tabs button { display: inline-flex; align-items: center; gap: .55rem; min-height: 43px; padding: .53rem .88rem; background: var(--panel); border: 1px solid var(--line); border-radius: .55rem; white-space: nowrap; font-size: .9rem; font-weight: 720; transition: background .18s, border-color .18s; }
.category-tabs button:hover { border-color: var(--muted); }
.category-tabs button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.tools-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .65rem; }
.search-wrap, .sort-wrap { display: flex; align-items: center; gap: .58rem; min-height: 48px; background: var(--panel); border: 1px solid var(--line); border-radius: .56rem; padding-inline: .8rem; }
.search-wrap > .icon, .sort-wrap > span { color: var(--muted); }
.search-wrap:focus-within { border-color: var(--lime); }
.search-wrap input { padding: .65rem 0; min-width: 0; flex: 1; border: 0; outline: 0; background: none; color: var(--ink); }
.search-wrap input::-webkit-search-cancel-button { display: none; }
input::placeholder { color: var(--muted); }
.clear-search { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; }
.sort-wrap > span { font-size: .83rem; white-space: nowrap; }
select { appearance: none; padding-right: 1.35rem; background: linear-gradient(45deg,transparent 50%,currentColor 50%) calc(100% - 7px) 50%/5px 5px no-repeat, linear-gradient(135deg,currentColor 50%,transparent 50%) calc(100% - 2px) 50%/5px 5px no-repeat; }
.sort-wrap select { color: var(--ink); font-size: .9rem; border: 0; max-width: 100%; }
select option { background: var(--panel); color: var(--ink); }
#filter-count { display: inline-grid; place-items: center; min-width: 1.2rem; min-height: 1.2rem; padding-inline: .2rem; background: var(--accent); color: var(--accent-ink); border-radius: 1rem; font-size: .75rem; }
.filters { margin-top: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.filter-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.filters label, .access-dialog label { display: grid; gap: .32rem; color: var(--muted); font-size: .88rem; }
.filters select, .filters input[type="number"], .access-dialog input { width: 100%; border: 1px solid var(--line); border-radius: .35rem; background-color: var(--bg); color: var(--ink); padding: .55rem .65rem; min-height: 42px; }
.filters select { padding-right: 1.4rem; background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; }
.price-fields { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-top: .7rem; }
.price-fields label:not(.check-field) { width: 8rem; }
.price-fields .check-field { display: flex; align-items: center; gap: .45rem; min-height: 42px; }
.check-field input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.results-line { display: flex; align-items: center; gap: .7rem; min-height: 55px; color: var(--muted); font-size: .88rem; }
.results-line p { margin: 0; white-space: nowrap; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.active-filters button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: .18rem .48rem; border-radius: .35rem; font-size: .8rem; }
.text-button { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; padding: .4rem .15rem; }
.text-button:hover { color: var(--ink); }
.inventory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.product { position: relative; width: 100%; padding: 0; background: var(--panel); color: var(--ink); text-align: left; overflow: hidden; border: 1px solid var(--line); border-radius: .82rem; transition: transform .2s, border-color .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); border-color: var(--muted); box-shadow: 0 12px 26px #0004; }
.product-photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.19; background: var(--panel-raised); color: var(--muted); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-photo.uploaded-photo img { object-fit: contain; }
.product:hover img { transform: scale(1.035); }
.product-photo .icon { width: 2.8rem; height: 2.8rem; }
.product-info { display: block; padding: .8rem .92rem .92rem; }
.product-franchise { display: block; color: var(--lime); font-size: .72rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; overflow-wrap: anywhere; }
.product-title { display: block; font-size: 1.06rem; line-height: 1.25; margin-top: .25rem; font-weight: 760; overflow-wrap: anywhere; }
.product-meta { display: block; color: var(--muted); font-size: .83rem; margin: .35rem 0 .6rem; overflow-wrap: anywhere; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .2rem .5rem; }
.product-price { font-size: 1.2rem; font-weight: 820; letter-spacing: -.035em; }
.product-qty { font-size: .76rem; color: var(--muted); }
.product-tag { position: absolute; top: .65rem; left: .65rem; padding: .25rem .43rem; border: 1px solid #ffffff48; border-radius: .3rem; background: #111918e8; color: #f7f4e9; text-transform: uppercase; letter-spacing: .07em; font-size: .67rem; font-weight: 800; }
.more-results { display: flex; margin: 1.5rem auto 0; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: .7rem; padding: clamp(2rem, 5vw, 4rem) 1rem; border: 1px dashed var(--line); background: color-mix(in srgb, var(--panel), transparent 35%); border-radius: .7rem; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state p { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: var(--bar); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; padding-block: 1rem; }
#footer-status { color: var(--muted); font-size: .88rem; }
.kiosk .catalog { padding-top: clamp(1.4rem, 5vw, 3.75rem); }
.kiosk .catalog-title h2 { font-size: clamp(2.75rem, 6vw, 4.7rem); }
.kiosk .category-tabs button, .kiosk .button { min-height: 50px; font-size: 1rem; }
.kiosk .catalog-status { font-size: .92rem; }
.kiosk .product-title { font-size: 1.17rem; }
.item-dialog { position: relative; width: min(760px, calc(100% - 1.6rem)); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 0; max-height: 90dvh; }
dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 1; top: .6rem; right: .6rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 50%; font-size: 1.45rem; line-height: 1; }
.item-layout { display: grid; grid-template-columns: .96fr 1fr; align-items: stretch; }
.item-layout img { width: 100%; height: 100%; min-height: 280px; object-fit: contain; background: var(--panel-raised); }
.item-layout > div { padding: 2rem; }
.item-layout h2, .access-dialog h2 { margin: .55rem 0 .8rem; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.05; letter-spacing: -.045em; }
.item-layout p { color: var(--muted); }
.item-layout dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1rem 0; font-size: .88rem; overflow-wrap: anywhere; }
.item-layout dt { color: var(--muted); }
.item-layout dd { margin: 0; }
.item-layout strong { font-size: 1.65rem; }
.item-layout .text-button { display: inline-block; margin-block: .4rem; }
.access-dialog { width: min(410px, calc(100% - 1.6rem)); }
.access-dialog form { padding: 1.6rem; }
.access-dialog input { margin-top: .32rem; }
#access-message { min-height: 1.4rem; color: var(--accent); }
.stock-editor { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.stock-editor summary { color: var(--lime); cursor: pointer; min-height: 44px; }
.stock-editor label { display: grid; gap: .28rem; color: var(--muted); }
.stock-editor form { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.stock-editor input, .stock-editor select, .stock-editor textarea { min-width: 0; width: 100%; min-height: 44px; padding: .4rem; color: var(--ink); background-color: var(--bg); border: 1px solid var(--line); border-radius: .35rem; font: inherit; }
.stock-editor textarea { resize: vertical; }
.stock-editor .editor-wide { grid-column: 1 / -1; }
.stock-editor form button { justify-self: start; grid-column: 1 / -1; }
.stock-editor .stock-status { grid-column: 1 / -1; margin: 0; }
.product-market { margin-top: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.product-market summary { min-height: 44px; color: var(--lime); font-weight: 700; cursor: pointer; }
.share-dialog { width: min(445px, calc(100% - 1.6rem)); }
.share-copy { padding: 1.5rem; }
.share-copy h2 { margin: .6rem 0 .85rem; line-height: 1.08; font-size: 2.2rem; letter-spacing: -.05em; }
.share-kind { display: grid; gap: .32rem; color: var(--muted); }
.share-kind select, #share-url { width: 100%; min-height: 44px; padding: .55rem .7rem; color: var(--ink); border: 1px solid var(--line); border-radius: .45rem; background-color: var(--bg); }
.share-kind select { background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; }
.share-qr { width: min(225px, 65vw); margin: .95rem auto; background: white; border-radius: .65rem; overflow: hidden; }
.share-qr svg { display: block; width: 100%; }
#share-url { margin-block: .6rem; color: var(--muted); font-size: .85rem; }
.share-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-status { min-height: 1.5rem; margin: .7rem 0 0; color: var(--muted); }
.mobile-dock { display: none; }
.button:disabled { cursor: default; opacity: .6; }
.toast { position: fixed; z-index: 10; bottom: 1.2rem; right: 1.2rem; max-width: min(420px, calc(100% - 2.4rem)); background: var(--ink); color: var(--bg); border-radius: .7rem; padding: .82rem 1.1rem; box-shadow: 0 12px 36px #0006; font-weight: 720; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy, .toast, .item-dialog[open] { animation: settle .35s ease-out both; }
@media(max-width: 1050px) {
  .shell { width: calc(100% - 56px); }
}
@media(max-width: 850px) {
  .nav { display: none; }
  .inventory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-art { left: 32%; }
  .filter-fields { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media(max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 66px; gap: .5rem; }
  .top-actions { gap: .35rem; }
  .brand { gap: .48rem; }
  .brand > img { width: 34px; height: 34px; }
  .brand > span { font-size: .84rem; }
  .brand > span > span { font-size: .58rem; }
  .top-actions .button { padding-inline: .53rem; }
  .top-actions .button .icon { display: none; }
  .top-actions .button-share { width: 44px; min-width: 44px; }
  .top-actions .button-share .icon { display: inline-flex; }
  .top-actions .button-share span:last-child { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .hero { padding-top: .8rem; }
  .hero-card { min-height: 0; grid-template-rows: auto 230px; }
  .hero-copy { padding: 1.45rem 1.2rem .85rem; width: 100%; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.45rem); }
  .hero-art { inset: auto 0 0; height: 235px; }
  .hero-art::after { background: linear-gradient(var(--hero), transparent 26%); }
  .hero-art img { object-position: center 51%; }
  .hero p { margin-block: .9rem; }
  .catalog { padding-top: 1.75rem; }
  .catalog-title { align-items: start; }
  .catalog-actions { flex-direction: column; align-items: end; }
  .catalog-status { font-size: .74rem; }
  .catalog-actions .button { padding-inline: .55rem; }
  .catalog-actions .staff-control { display: none; }
  .tools-row { grid-template-columns: auto 1fr; }
  .search-wrap { grid-column: 1 / -1; }
  .sort-wrap { justify-content: space-between; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inventory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .product-info { padding: .6rem; }
  .product-title { font-size: .98rem; }
  .footer-inner { align-items: start; }
  .footer-actions { flex-wrap: wrap; }
  .item-layout { grid-template-columns: 1fr; }
  .item-layout img { max-height: 260px; min-height: 0; }
  .item-layout > div { padding: 1.2rem; }
  body:not(.kiosk) { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .mobile-dock { position: fixed; z-index: 4; bottom: 0; left: 0; right: 0; min-height: 62px; padding: .36rem .55rem calc(.36rem + env(safe-area-inset-bottom)); display: flex; align-items: stretch; justify-content: center; gap: .5rem; background: var(--bar); border-top: 1px solid var(--line); }
  .mobile-dock > * { min-width: 76px; min-height: 48px; display: grid; place-items: center; flex: 1; gap: .2rem; font-size: .8rem; border: 0; border-radius: .5rem; background: transparent; color: var(--ink); font-weight: 730; }
  .mobile-dock #mobile-intake { background: var(--accent); color: var(--accent-ink); }
  body:not(.kiosk) .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
