/* Sunrise Liquor — warm cream base, sunrise orange accent, deep dusk navy for contrast bands. */
:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --surface-2: #F3ECE1;
  --text: #2A2420;
  --muted: #7A6B5E;
  --line: #E8DFD2;
  --accent: #E85D24;
  --accent-ink: #FFFFFF;
  --accent-soft: #FDE6D8;
  --accent-2: #F4A93B;
  --dusk: #1F2A3C;
  --dusk-2: #2C3A52;
  --sale: #C62828;
  --ok: #2E7D4F;
  --warn: #9A6200;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42,36,32,.06), 0 4px 16px rgba(42,36,32,.06);
  --wrap: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .btn and friends set display, which would beat the attribute */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: clamp(21px, 3vw, 27px); }
h3 { font-size: 18px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 10px 16px; font: 600 14px var(--font); cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); transition: filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.dark { background: var(--dusk); }
.btn.danger { background: var(--sale); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
/* 16px keeps iPhones from zooming in when a field is tapped */
input, select, textarea { font: inherit; font-size: 16px; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { width: auto; margin-top: 3px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.two.even { grid-template-columns: 1fr 1fr; }
.two.tight { gap: 12px; padding: 0; }
.two > *, .layout > *, .line > *, .pdp > *, .visit-grid > *, .visit-home > * { min-width: 0; }

/* ---- top bars */
.topbar { background: var(--dusk); color: #F5EEE4; font-size: 13px; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar a { color: #F5EEE4; text-decoration: none; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #E0B44C; }
.topbar .dot.open { background: #5BD08A; }
.topbar .push { margin-left: auto; }
.announce { background: var(--accent-2); color: #3A2400; text-align: center; font-weight: 600; font-size: 14px; padding: 7px 16px; }
header.site { position: sticky; top: 0; z-index: 30; background: rgba(250,246,239,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 40px; height: 40px; }
.logo b { font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.logo small { display: block; font: 600 10px/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { padding-left: 38px; border-radius: 999px; background: var(--surface); height: 42px; }
.search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; color: var(--muted); }
.suggest { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 40; }
.suggest.on { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; }
.suggest a:hover, .suggest a.hl { background: var(--surface-2); }
.suggest .art { width: 34px; height: 42px; flex-shrink: 0; }
.suggest .nm { flex: 1; font-size: 14px; }
.suggest .nm small { display: block; color: var(--muted); font-size: 12px; }
.suggest .pr { font-weight: 700; }
.suggest .all { justify-content: center; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }
.hdr-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14px; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.cart-count[data-n="0"] { display: none; }
nav.cats { border-bottom: 1px solid var(--line); background: var(--surface); }
nav.cats .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.cats .wrap::-webkit-scrollbar { display: none; }
nav.cats a { padding: 12px 14px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; }
nav.cats a:hover, nav.cats a.on { border-color: var(--accent); color: var(--accent); }
nav.cats a.deal { color: var(--sale); }

/* ---- hero */
.hero { background: linear-gradient(160deg, #FFE3C8 0%, #FFC59A 38%, #F78F5A 72%, #D9573A 100%); color: #2A1408; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 12px; }
.hero p { font-size: 17px; max-width: 520px; margin: 0 0 22px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.ghost { border-color: rgba(42,20,8,.35); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.3); }
.hero-art { justify-self: center; width: min(360px, 100%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; }
.step b { font: 700 22px/1 var(--display); color: var(--accent); }
.step h3 { margin: 0 0 2px; font-size: 16px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---- sections & tiles */
section.block { padding: 34px 0 6px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px 10px;
  text-align: center; text-decoration: none; font-weight: 600; font-size: 13px; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .art { height: 70px; margin: 0 auto 6px; width: 50px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto;
  padding: 2px 2px 8px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
/* slide-show arrows (added by site.js) */
.rail-wrap { position: relative; }
.rail-wrap .rail { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 0, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 0, #000 calc(100% - 40px), transparent 100%); }
.rail-wrap.at-end .rail { -webkit-mask-image: none; mask-image: none; }
.rail-wrap:not(.at-start) .rail { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.rail-wrap:not(.at-start).at-end .rail { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px); }
.rail-btn { position: absolute; top: calc(50% - 60px); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); box-shadow: 0 4px 14px rgba(42,36,32,.16); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: opacity .2s, transform .15s, background .15s; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.06); }
.rail-btn.prev { left: -20px; }
.rail-btn.next { right: -20px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-dots { display: flex; gap: 0; justify-content: center; margin-top: -6px; }
.rail-dots button { box-sizing: content-box; width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 10px 4px;
  background: var(--line); background-clip: content-box; cursor: pointer; transition: width .2s, background-color .2s; }   /* padding = bigger tap area */
.rail-dots button.on { width: 22px; background: var(--accent); }

/* ---- product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex;
  flex-direction: column; overflow: hidden; position: relative; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card .pic { aspect-ratio: 1 / 1.08; display: flex; align-items: center; justify-content: center; background: #fff; padding: 14px; text-decoration: none; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.card .pic .art { height: 100%; width: auto; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; border-top: 1px solid var(--line); }
.card .cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card .nm { font-weight: 600; font-size: 14px; line-height: 1.3; text-decoration: none; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .nm:hover { color: var(--accent); }
.card .sz { font-size: 13px; color: var(--muted); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 17px; }
.price s { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 4px; }
.price.sale { color: var(--sale); }
.add { border: 0; background: var(--accent); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.add svg { width: 18px; height: 18px; }
.add:hover { filter: brightness(1.08); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); }
.badge.sale { background: var(--sale); color: #fff; }
.badge.pick { background: var(--accent-2); color: #3A2400; }
.badge.new { background: var(--dusk); color: #fff; }
.avail { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.avail::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail.ok { color: var(--ok); }
.avail.ask { color: var(--warn); }

/* ---- listing */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 4px; }
.crumbs a { color: var(--muted); }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.list-head h1 { margin: 0; }
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.filters h4 { margin: 12px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filters h4:first-child { margin-top: 0; }
.filters a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.filters a:hover { background: var(--surface-2); }
.filters a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.filters a span { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; text-decoration: none; }
.chip:hover { border-color: var(--accent); }
.toolbar { display: flex; gap: 10px; align-items: center; }
.toolbar select { width: auto; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); font-size: 14px; }
.pager .on { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; }
.filter-toggle { display: none; }

/* ---- product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 8px 0 36px; align-items: start; }
.pdp .pic { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center; padding: 30px; position: relative; }
.pdp .pic img { width: 100%; height: 100%; object-fit: contain; }
.pdp .pic .art { height: 88%; }
.pdp .cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.pdp .price { font-size: 30px; margin: 10px 0 4px; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty button { border: 0; background: var(--surface-2); width: 38px; font-size: 18px; cursor: pointer; }
.qty input { width: 48px; text-align: center; border: 0; border-radius: 0; padding: 8px 0; }
.buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.sizes a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 12px; text-decoration: none; font-size: 13px; background: var(--surface); }
.sizes a b { display: block; font-size: 14px; }
.sizes a.on { border-color: var(--accent); background: var(--accent-soft); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }

/* ---- cart & checkout */
.two { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-bottom: 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h2 { font-size: 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line .art, .line img { width: 56px; height: 64px; object-fit: contain; }
.line .nm { font-weight: 600; text-decoration: none; }
.line .ctl { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.line .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.line .amt { font-weight: 700; text-align: right; }
.totals { display: grid; gap: 6px; margin: 4px 0 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.slots { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: var(--surface); }
.slots h5 { margin: 8px 4px 6px; font-size: 13px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.slot-grid label { margin: 0; }
.slot-grid input { position: absolute; opacity: 0; width: 0; }
.slot-grid span { display: block; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 4px; font-weight: 600; font-size: 13px; cursor: pointer; }
.slot-grid input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.slot-grid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.errors { background: #FDECEA; color: #8E1B1B; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--surface-2); }
.st-paid, .st-pay_in_store { background: #E3F2E8; color: var(--ok); }
.st-ready { background: var(--accent); color: #fff; }
.st-pending_payment { background: #FFF2D9; color: var(--warn); }
.st-cancelled, .st-refunded { background: #FDECEA; color: var(--sale); }
.st-picked_up { background: var(--dusk); color: #fff; }

/* ---- visit & map */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.visit-home { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: stretch; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.rating { font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.rating:hover { border-color: var(--accent); }
footer.site .hours-table td { padding: 1px 0; color: #D9CFC2; }
footer.site .hours-table td:first-child { padding-right: 12px; }

/* ---- footer */
footer.site { background: var(--dusk); color: #D9CFC2; margin-top: 40px; font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 36px; padding-bottom: 20px; }
footer.site h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
footer.site a { color: #D9CFC2; text-decoration: none; display: block; padding: 2px 0; }
footer.site a:hover { color: #fff; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid var(--dusk-2); padding-top: 14px; display: flex; gap: 14px;
  flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: 12px; color: #A99C8E; }
.hours-table { border-collapse: collapse; width: 100%; }
.hours-table td { padding: 2px 0; }
.hours-table td:last-child { text-align: right; }
.build-badge { background: none; border: 1px solid var(--dusk-2); color: #A99C8E; border-radius: 999px; padding: 2px 10px; font: 12px var(--font); cursor: pointer; }
.build-badge:hover { color: #fff; }

/* ---- dialogs & toast (centred dialogs only) */
dialog { border: 0; border-radius: 16px; padding: 0; max-width: min(460px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--text); }
dialog::backdrop { background: rgba(31,42,60,.55); backdrop-filter: blur(3px); }
dialog .dlg { padding: 26px; }
dialog .dlg-actions { display: flex; gap: 10px; margin-top: 18px; }
dialog .dlg-actions .btn { flex: 1; }
#age-gate { max-width: 420px; text-align: center; }
#age-gate .sun { width: 64px; margin: 0 auto 10px; }
#age-gate::backdrop { background: rgba(31,42,60,.92); }
#whats-new { max-width: 560px; }
#whats-new .rel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; }
#whats-new .rel ul { margin: 6px 0 0; padding-left: 18px; }
.tag { font-size: 11px; font-weight: 700; margin-right: 4px; }
.tag.NEW { color: var(--ok); } .tag.FIXED { color: var(--sale); } .tag.CHANGED { color: var(--accent); }
#toast { position: fixed; inset: auto auto 24px 50%; transform: translateX(-50%); margin: 0; border: 0; background: var(--dusk); color: #fff;
  border-radius: 999px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow); display: none; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
#toast:popover-open { display: flex; }
#toast a { background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; }

/* ---- bottle placeholder art */
.art { display: block; }

/* ---- admin */
.admin-bar { background: var(--dusk); color: #fff; }
.admin-bar .wrap { display: flex; gap: 6px; align-items: center; min-height: 52px; flex-wrap: wrap; }
.admin-bar a { color: #E5DCD0; text-decoration: none; padding: 7px 11px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.admin-bar a:hover, .admin-bar a.on { background: var(--dusk-2); color: #fff; }
.admin-bar .push { margin-left: auto; }
.admin-bar form { margin: 0; }
.admin-bar .build-badge { margin-left: 4px; }
.admin main { padding: 22px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font: 700 26px/1.1 var(--display); }
.stat span { color: var(--muted); font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: #E3F2E8; color: var(--ok); }
.flash.warn, .warnbox { background: #FFF2D9; color: #6B4500; }
.flash.err { background: #FDECEA; color: #8E1B1B; }
.warnbox { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.sync-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sync-card .info { flex: 1; min-width: 220px; }
.prod-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.prod-form { display: grid; grid-template-columns: 130px 110px 1fr auto; gap: 8px; align-items: end; margin-top: 8px; }
.prod-form label { font-size: 12px; }
.inline-form { display: inline; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.on { display: block; }
  .filter-toggle { display: inline-flex; }
  .two { grid-template-columns: 1fr; }
  .visit-grid, .visit-home { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar a { padding: 7px 0; }
  footer.site a { padding: 6px 0; }
  .build-badge { padding: 6px 12px; }
  .two.even { grid-template-columns: 1fr; }
  .line { grid-template-columns: 48px 1fr; gap: 10px; }
  .line .amt { grid-column: 2; text-align: left; }
  .line .art, .line img { width: 44px; height: 54px; }
  .buy-row .qty { flex: 0 0 auto; }
  .buy-row .btn { flex: 1 1 160px; min-width: 0; white-space: normal; text-align: center; }
  .toolbar { flex-wrap: wrap; width: 100%; }
  .toolbar input, .toolbar select { flex: 1 1 140px; width: auto !important; }
  .list-head { align-items: stretch; }
  .seg button { padding: 8px 12px; }
  .pm-sel input { width: 20px; height: 20px; }
  .pm-dlg .dlg-actions { position: sticky; bottom: -26px; background: var(--surface); padding: 12px 0 14px; margin-bottom: -14px;
    border-top: 1px solid var(--line); flex-wrap: wrap; }
  /* admin tables become stacked cards */
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack tr:first-child:has(th) { display: none; }
  table.data.stack tr { border-bottom: 1px solid var(--line); padding: 8px 12px; }
  table.data.stack tr:last-child { border-bottom: 0; }
  table.data.stack td { border: 0; padding: 3px 0; text-align: left !important; display: flex; gap: 10px; align-items: baseline; }
  table.data.stack td[data-label]::before { content: attr(data-label); flex: 0 0 92px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  table.data.stack td input:not([type=checkbox]) { flex: 1; }
  table.data td { word-break: break-word; }
  header.site .wrap { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-actions { margin-left: auto; }
  .icon-btn .lbl { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 30px; }
  .hero-art { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { grid-auto-columns: 44%; gap: 10px; }
  .rail-btn { width: 38px; height: 38px; }
  .rail-btn.prev { left: -6px; }
  .rail-btn.next { right: -6px; }
  .card .body { padding: 8px 10px 10px; }
  .topbar .hide-sm { display: none; }
  .prod-form { grid-template-columns: 1fr 1fr; }
}
@media print {
  .no-print, header.site, nav.cats, .topbar, footer.site, .admin-bar { display: none !important; }
  body { background: #fff; }
}

/* ---- admin: products */
.pm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pm-head h1 { margin-bottom: 2px; }
.pm-counters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.pm-count { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; text-decoration: none; }
.pm-count b { display: block; font: 700 22px/1.1 var(--display); }
.pm-count span { color: var(--muted); font-size: 12px; }
.pm-count:hover { border-color: var(--accent); }
.pm-count.on { border-color: var(--accent); background: var(--accent-soft); }
.pm-count.warn b { color: var(--warn); }
.pm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; }
.pm-filters select { width: auto; max-width: 220px; padding: 7px 10px; }
.pm-search { position: relative; flex: 1 1 240px; }
.pm-search input { padding-left: 34px; }
.pm-search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.pm-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; margin: 0; white-space: nowrap; }
.pm-check input { width: 18px; height: 18px; }
.pm-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 8px; min-height: 34px; }
.pm-bulk { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border-radius: 999px; padding: 4px 6px 4px 14px; }
.pm-bulk[hidden] { display: none; }
.pm-bulk span { font-weight: 700; font-size: 13px; margin-right: 4px; }
.pm-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pm-row { display: grid; grid-template-columns: 34px minmax(260px, 1fr) 90px 110px 120px 200px 110px; gap: 10px; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pm-row:last-child { border-bottom: 0; }
.pm-row:hover:not(.pm-th) { background: #FFFCF7; }
.pm-th { background: var(--surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pm-sel input { width: 16px; height: 16px; }
.pm-prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pm-thumb { width: 52px; height: 60px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 3px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pm-thumb .art { height: 100%; }
.pm-name { background: none; border: 0; padding: 0; font: 600 14px var(--font); text-align: left; cursor: pointer; color: var(--text); }
.pm-name:hover { color: var(--accent); text-decoration: underline; }
.pm-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.tag-chip { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--surface-2); color: var(--muted); }
.tag-chip.red { background: #FDECEA; color: var(--sale); }
.tag-chip.amber { background: #FFF2D9; color: var(--warn); }
.tag-chip.blue { background: #E6EEFA; color: #2F5FA8; }
.pm-num { font-variant-numeric: tabular-nums; }
.pm-sale { padding: 6px 8px; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 10px; font: 600 12px var(--font); cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--dusk); color: #fff; }
.seg button[data-vis="hide"].on { background: var(--sale); }
.pm-acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.star { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 34px; height: 32px; font-size: 16px; cursor: pointer; color: #C9BCAD; }
.star.on { color: #fff; background: var(--accent-2); border-color: var(--accent-2); }
.pm-nophoto { font-size: 10px; color: var(--muted); text-align: center; }
.pm-nophoto.big { font-size: 14px; }
#pm-edit { max-width: min(880px, calc(100vw - 32px)); }
.pm-dlg { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.pm-dlg-pic { aspect-ratio: 1; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; display: flex; align-items: center;
  justify-content: center; padding: 14px; margin-bottom: 8px; transition: opacity .2s; }
.pm-dlg-pic img { width: 100%; height: 100%; object-fit: contain; }
.pm-dlg-pic.busy { opacity: .4; }
.pm-dlg-pic.drop { border-color: var(--accent); background: var(--accent-soft); }
.pm-photo-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pm-photo-acts label.btn { margin: 0; font-weight: 600; }
.pm-link-row { display: flex; gap: 6px; margin-top: 8px; }
.pm-link-row input { padding: 6px 10px; }
.pm-two { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.pm-dlg .dlg-actions { justify-content: flex-end; }
.pm-dlg .dlg-actions .btn { flex: 0 0 auto; }
.pm-dlg .dlg-actions #pm-view { margin-right: auto; }
#pm-toast { position: fixed; inset: auto auto 24px 50%; transform: translateX(-50%); margin: 0; border: 0; background: var(--dusk); color: #fff;
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
#pm-toast.bad { background: var(--sale); border-radius: 12px; max-width: 520px; }
@media (max-width: 1100px) {
  .pm-counters { grid-template-columns: repeat(3, 1fr); }
  .pm-row { grid-template-columns: 30px 1fr auto; grid-template-areas: none; }
  .pm-th { display: none; }
  .pm-row > [data-label] { grid-column: 2 / -1; display: flex; gap: 10px; align-items: center; }
  .pm-row > [data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); width: 80px; }
  .pm-row > .pm-acts { grid-column: 2 / -1; justify-content: flex-start; }
  .pm-sale { width: 110px; }
  .pm-dlg { grid-template-columns: 1fr; }
}
/* bigger tap areas for small links and controls (phones) */
@media (max-width: 720px) {
  .sec-head a { padding: 10px 0; }
  .pdp .cat { display: inline-block; padding: 8px 0; }
  .line .rm { padding: 8px 4px; }
  .rail-dots button { padding: 10px 7px; }
  .pm-sel input, #pm-all { min-width: 22px; min-height: 22px; }
}

/* ---- sign-in & account */
.auth-wrap { max-width: 460px; padding-top: 28px; padding-bottom: 40px; }
.auth-panel h1 { font-size: 30px; }
.google-btn { gap: 10px; padding: 12px 16px; font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.code-form .btn { margin-top: 12px; }
.code-form #login-code { font-size: 24px; letter-spacing: 8px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.acct-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; }
.acct-order:last-child { border-bottom: 0; }
.acct-order:hover b:first-child { color: var(--accent); }
.acct-order-r { display: flex; gap: 12px; align-items: center; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acct-actions form { margin: 0; }
.danger-text { color: var(--sale); }
