@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  --bg:          #080808;
  --panel:       #111111;
  --line:        #222222;
  --text:        #F5F5F5;
  --muted:       #6A6A6A;
  --accent:      #B89A6A;
  --accent2:     #D4B896;
  --panel-soft:  rgba(14, 14, 14, 0.88);
  --glass:       rgba(8, 8, 8, 0.82);
  --sticky-offset: 124px;
  --header-progress: 0;
  --hero-image: none;
  --hero-media-opacity: 0.38;
  --hero-dark-overlay: 0.72;
  --hero-focal-x: 50%;
  --hero-focal-y: 50%;
  --hero-media-scale: 1.08;
  --topbar-height: 124px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  cursor: none;
  overflow-x: clip;
}

button, input, select, textarea { font: inherit; }

/* ── CURSOR ── */
#cursor {
  position: fixed; width: 7px; height: 7px;
  background: var(--text); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: width .18s, height .18s;
}
#cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.25,.46,.45,.94), height .3s cubic-bezier(.25,.46,.45,.94);
}

/* ── ORDER INTRO ── */
.order-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background: var(--bg);
  transition: opacity .75s ease, visibility .75s ease;
}
.order-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.order-loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  animation: orderLoaderFadeUp .8s .25s forwards;
}
.order-loader-line {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  animation: orderLoaderGrowLine 1.1s .7s cubic-bezier(.77,0,.18,1) forwards;
}
.order-loader-sub {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: orderLoaderFadeUp .6s 1.35s forwards;
}
@keyframes orderLoaderFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orderLoaderGrowLine {
  from { width: 0; }
  to { width: 120px; }
}
@media (max-width: 520px) {
  .order-loader-logo { font-size: 44px; letter-spacing: .28em; }
  .order-loader-sub { font-size: 8px; letter-spacing: .24em; }
}
@media (prefers-reduced-motion: reduce) {
  .order-loader { transition: none; }
  .order-loader-logo,
  .order-loader-line,
  .order-loader-sub { animation: none; opacity: 1; }
}

/* ── TOPBAR / HERO ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--topbar-height);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(18px);
  overflow: hidden;
  contain: layout paint;
  transform: translateZ(0);
}
/* Frosted glass + dark overlay layer */
.topbar::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(184,154,106,0.1) 0%, transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,calc(var(--hero-dark-overlay)*0.9)), rgba(0,0,0,calc(var(--hero-dark-overlay)*0.55)));
}
/* Gold top rule */
.topbar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(184,154,106,0.5) 30%, rgba(184,154,106,0.5) 70%, transparent);
  opacity: calc(1 - var(--header-progress));
  will-change: opacity;
}

.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; width: 100%; position: relative; z-index: 1;
}

.hero-video, .hero-bg {
  position: absolute; inset: 0;
}
.hero-video {
  z-index: -3; width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--hero-focal-x) var(--hero-focal-y);
  opacity: calc(var(--hero-media-opacity) * 0.56);
  filter: saturate(0.6) contrast(1.1) brightness(0.85);
  transform: scale(var(--hero-media-scale));
}
.hero-bg {
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-focal-x) var(--hero-focal-y);
  opacity: calc(var(--hero-media-opacity) * 0.42);
  transform: scale(var(--hero-media-scale));
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { background-position: center 44%; }
  to   { background-position: center 58%; }
}

.hero-copy {
  min-width: 0; position: relative; z-index: 1;
  max-width: min(820px, 68vw);
}
.eyebrow {
  margin: 0 0 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0 0 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 300; line-height: 1.0; letter-spacing: -1px;
}
.hero-title-brand { display: none; }
#heroSubtitle {
  margin: 0 0 4px;
  line-height: 1.25;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--accent);
}

/* Subtitle/eyebrow collapse */
.topbar #heroSubtitle, .store-meta, .eyebrow {
  overflow: hidden;
  max-height: 42px;
  opacity: 1;
  transition: max-height 280ms ease, opacity 180ms ease, margin 280ms ease;
}
.store-meta {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 0;
}

.status {
  position: relative; z-index: 1; flex-shrink: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(184,154,106,0.3);
  border-radius: 40px;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(8px);
  transition: color 400ms, border-color 400ms;
}

.topbar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-link,
.store-choice-back {
  border: 1px solid rgba(184,154,106,0.3);
  color: var(--accent);
  background: rgba(8,8,8,0.6);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  backdrop-filter: blur(8px);
}

.store-choice-back {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 12px 16px;
}

.topbar-link:hover,
.store-choice-back:hover {
  background: var(--accent);
  color: var(--bg);
}
/* Compact state */
.topbar.is-compact .status {
  color: var(--accent); border-color: rgba(184,154,106,0.5);
}
.topbar.is-compact {
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(8,8,8,0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.topbar.is-compact h1 {
  margin: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: clamp(26px, 3vw, 34px);
}
.topbar.is-compact .hero-title-brand { display: inline; }
.topbar.is-compact #heroSubtitle,
.topbar.is-compact .store-meta,
.topbar.is-compact .eyebrow {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.topbar.is-compact .status { display: none; }

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr) 360px;
  gap: 2px;
  width: min(1520px, calc(100% - 0px));
  margin: 2px auto 0;
  align-items: start;
}

body.store-picker .layout {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

body.store-picker .categories,
body.store-picker .cart,
body.store-picker .cart-fab {
  display: none;
}

.store-choice-grid {
  display: grid;
  gap: 2px;
  padding: 2px;
}

.store-choice-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: #101010;
  border-left: 2px solid transparent;
}

.store-choice-card:hover {
  border-left-color: var(--accent);
  background: #151515;
}

.store-choice-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.store-choice-card strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
}

.store-choice-card small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.store-choice-card a,
.store-choice-card > span {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 22px;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-choice-card a:hover {
  background: var(--accent);
  color: var(--bg);
}

.store-choice-card a.store-map-link {
  border-color: rgba(255,255,255,0.2);
  color: var(--muted);
}

.store-choice-card a.store-map-link:hover {
  border-color: var(--accent);
  background: transparent;
  color: var(--text);
}

.store-choice-card > span,
.store-choice-actions > span {
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}

/* ── CATEGORIES ── */
.categories {
  position: sticky; top: var(--sticky-offset);
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,10,0.95);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  backdrop-filter: blur(12px);
  padding: 24px 0;
}
.categories button {
  width: 100%; min-height: 44px;
  padding: 0 20px;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s, padding-left 0.2s;
  position: relative;
}
.categories button::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--accent);
  transition: width 0.2s;
}
.categories button:hover { color: rgba(255,255,255,0.7); padding-left: 24px; }
.categories button.active {
  color: var(--accent); padding-left: 28px;
}
.categories button.active::before { width: 2px; }

/* ── MENU ── */
.menu {
  display: grid; gap: 2px;
  background: rgba(255,255,255,0.03);
}

.section {
  scroll-margin-top: calc(var(--sticky-offset) + 8px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
  box-shadow: none;
}
.section-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent;
}
.section h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300; letter-spacing: 0px;
  color: var(--text);
}
.section h2::after {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--accent); margin-top: 8px;
}
.section-header p { color: var(--muted); margin: 8px 0 0; font-size: 13px; font-weight: 300; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px; padding: 2px;
  background: rgba(255,255,255,0.03);
}

.item-card {
  display: grid; grid-template-rows: auto 1fr;
  overflow: hidden; border: 0; border-radius: 0;
  background: var(--bg);
  cursor: pointer;
  transition: background 200ms;
  position: relative;
}
.item-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,154,106,0) );
  transition: background 0.25s;
}
.item-card:hover { background: #0F0F0F; }
.item-card:hover::after {
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.item-image {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; background: #0A0A0A;
  filter: brightness(0.92) saturate(0.9);
  transition: filter 0.3s, transform 0.4s;
}
.item-card:hover .item-image { filter: brightness(1) saturate(1); transform: scale(1.03); }
.item-card.is-sold-out { cursor: not-allowed; background: #121212; }
.item-card.is-sold-out .item-image,
.item-card.is-sold-out .item-copy { filter: grayscale(1); opacity: .58; }
.item-card.is-sold-out:hover { background: #121212; }
.availability-stamp {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 5px 8px; border: 1px solid rgba(255,255,255,.42);
  background: rgba(20,20,20,.82); color: rgba(255,255,255,.86);
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .16em;
}
.item-image-wrap { overflow: hidden; }

.empty-image {
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300; letter-spacing: 0.2em;
  color: rgba(184,154,106,0.2);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0D0D0D, #080808);
}

.item-copy {
  display: grid; grid-template-rows: auto minmax(30px,1fr) auto;
  align-content: start; gap: 6px; min-width: 0;
  padding: 18px 20px 16px;
}
.item-card h3 {
  min-height: 38px; margin-bottom: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 400; line-height: 1.15;
  letter-spacing: 0.01em;
}
.item-card p { color: var(--muted); margin-bottom: 0; }
.item-card .description {
  min-height: 34px; font-size: 12px; line-height: 1.5;
  font-weight: 300; color: rgba(255,255,255,0.35);
}
.item-footer {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 10px;
  min-height: 38px; margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.price {
  color: var(--accent) !important;
  font-family: 'DM Mono', monospace;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.04em;
}

/* Stepper */
.item-stepper {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  gap: 4px; align-items: center;
}
.item-stepper button, #submitOrder, dialog button {
  min-height: 36px;
  border: 1px solid rgba(184,154,106,0.5);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 400; padding: 0 12px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  transition: background 0.2s, color 0.2s;
}
.item-stepper button:hover, #submitOrder:hover, dialog button:hover {
  background: var(--accent); color: var(--bg);
}
.item-stepper button { min-height: 30px; padding: 0; }
.item-stepper .qty-minus {
  border-color: rgba(255,100,100,0.3);
  background: rgba(255,100,100,0.05);
  color: rgba(255,140,140,0.8);
}
.item-stepper .qty-minus:hover { background: rgba(255,100,100,0.12); color: #ff8a8a; }
.item-stepper .qty-minus:disabled { display: none; }

.qty-count {
  display: none; min-height: 30px; min-width: 34px;
  place-items: center; border: 1px solid rgba(184,154,106,0.2);
  border-radius: 0; background: rgba(184,154,106,0.06);
  color: var(--accent);
  font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500;
}
.item-stepper.has-count .qty-count { display: grid; }
.item-stepper:not(.has-count) { grid-template-columns: 30px; }

/* ── CART ── */
.cart {
  position: sticky; top: var(--sticky-offset);
  border: 0; border-left: 1px solid rgba(255,255,255,0.05);
  background: #0A0A0A;
  border-radius: 0; padding: 32px 28px;
  display: grid; gap: 20px;
  backdrop-filter: blur(12px);
  box-shadow: none;
}

/* Gold top accent bar */
.cart::before {
  content: '';
  display: block; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: -32px -28px 0; margin-bottom: 0;
}

.cart-heading {
  display: flex; justify-content: space-between;
  gap: 10px; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300; letter-spacing: 0.05em;
  color: var(--text); margin: 0;
}
.cart-heading button {
  display: none; min-height: 30px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0;
  background: transparent; color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0 12px;
  transition: color 0.2s, border-color 0.2s;
}
.cart-heading button:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.cart-items { display: grid; gap: 12px; max-height: 220px; overflow: auto; }
.cart-items::-webkit-scrollbar { width: 2px; }
.cart-items::-webkit-scrollbar-thumb { background: rgba(184,154,106,0.3); }

.cart-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas:
    "main price"
    "actions actions";
  gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}
.cart-line-main {
  grid-area: main;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.cart-line-image {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #f4f4f4;
}
.cart-line-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.cart-line-image-empty {
  color: rgba(8,8,8,0.4);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.cart-line-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: start;
}
.cart-line strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 400;
}
.cart-line-copy strong { line-height: 1.2; }
.cart-line-qty {
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  white-space: nowrap;
}
.cart-line small { color: var(--muted); font-size: 11px; font-weight: 300; display: block; margin-top: 2px; }
.cart-line-price {
  grid-area: price;
  align-self: start;
  color: var(--accent);
  font-family: 'DM Mono', monospace !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cart-line-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
  margin-top: 2px;
}
.cart-line-actions button {
  min-height: 26px; border-radius: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: 11px;
  padding: 0 8px; font-weight: 400;
  transition: color 0.2s, border-color 0.2s;
}
.cart-line-actions button:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.cart-line-actions .cart-minus { border-color: rgba(255,100,100,0.2); color: rgba(255,140,140,0.6); }
.cart-line-actions .cart-minus:hover { color: #ff8a8a; border-color: rgba(255,100,100,0.4); }
.cart-line-actions .cart-plus { border-color: rgba(184,154,106,0.3); color: var(--accent); }
.cart-line-actions .cart-plus:hover { background: rgba(184,154,106,0.1); }
.remove { border-color: rgba(180,60,60,0.25) !important; color: rgba(255,120,120,0.5) !important; }
.remove:hover { color: #ff8888 !important; border-color: rgba(255,100,100,0.4) !important; }

.totals { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.totals div { display: flex; justify-content: space-between; align-items: center; }
.totals span { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.totals strong { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 400; }
.total { padding-top: 12px; border-top: 1px solid rgba(184,154,106,0.2); }
.total span { color: var(--accent) !important; }
.total strong { font-size: 20px; color: var(--accent); }

label {
  display: grid; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 0;
  background: rgba(255,255,255,0.02); color: var(--text);
  padding: 11px 14px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(184,154,106,0.5);
}
select option { background: #111; }

.website-field { position: absolute; left: -9999px; }

#submitOrder {
  width: 100%; min-height: 48px;
  background: var(--accent); color: var(--bg);
  border: 0; border-radius: 0;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}
#submitOrder:hover { background: var(--accent2); transform: translateY(-1px); }

.result {
  min-height: 18px;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; color: var(--accent);
  line-height: 1.5; text-align: center;
}

/* ── DIALOG ── */
dialog {
  border: 0; padding: 0; background: transparent;
  color: var(--text); width: min(1040px, calc(100% - 24px));
  max-height: calc(100dvh - 16px);
}
dialog::backdrop { background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); }

.dialog-card {
  position: relative;
  max-height: min(88dvh, 820px); overflow: hidden;
  background: #080808;
  border: 1px solid rgba(184,154,106,0.18);
  border-radius: 0; padding: 0;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
}

/* Gold top rule on dialog */
.dialog-card::before {
  content: '';
  display: block; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent 60%);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0,1fr);
  gap: 28px;
  align-items: start;
  min-height: 0;
  padding: 28px;
}
.dialog-item-media {
  position: sticky;
  top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(135deg, rgba(184,154,106,0.08), transparent 42%),
    #050505;
  aspect-ratio: var(--dialog-image-ratio, 4 / 3);
  max-height: min(340px, calc(88vh - 96px));
  min-height: 240px;
}
.dialog-item-media img,
.dialog-item-media .empty-image {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.dialog-item-media .empty-image {
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  letter-spacing: 0.3em; color: rgba(184,154,106,0.2);
  background: linear-gradient(160deg, #0D0D0D, #050505);
}

.dialog-config {
  display: grid; align-content: start; gap: 4px;
  max-height: calc(min(88vh, 820px) - 56px); overflow: auto;
  padding: 0 4px 88px 0;
  scrollbar-width: thin; scrollbar-color: rgba(184,154,106,0.2) transparent;
}
.dialog-card h2 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300; line-height: 1.05;
  color: var(--text);
}
.dialog-item-price {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
}

fieldset {
  border: 0; border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 0; padding: 20px 0 12px; margin: 0;
  background: transparent;
}
.modifier-group-invalid { border-top-color: rgba(255,92,92,0.78); }
.modifier-group-invalid legend,
.modifier-legend-invalid { color: #ff6b6b; }
.modifier-group-revealed {
  position: relative;
  animation: modifierGroupReveal 420ms cubic-bezier(.22,.8,.28,1) both;
}
.modifier-group-revealed::before {
  content: '';
  position: absolute;
  inset: 0 auto 12px 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top;
  animation: modifierRevealRule 560ms ease-out both;
}
legend {
  padding: 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}
.group-base-price {
  margin: 6px 0 0;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
@keyframes modifierGroupReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modifierRevealRule {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modifier-group-revealed,
  .modifier-group-revealed::before,
  .cart-add-feedback,
  .cart-fab.cart-add-feedback strong { animation: none; }
}
.option-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
  gap: 6px; margin: 14px 0 0;
}
.group-context {
  margin: 6px 0 0;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; color: var(--muted);
}
.option-row label {
  display: inline-flex; flex-direction: row;
  align-items: center; gap: 12px;
  min-height: 70px; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0; padding: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.option-row label:hover {
  border-color: rgba(184,154,106,0.35);
  background: rgba(184,154,106,0.05);
}
.option-row label:has(input:checked),
.option-row label.is-selected {
  border-color: rgba(184,154,106,0.7);
  background: rgba(184,154,106,0.1);
}
.option-row label.is-sold-out { cursor: not-allowed; opacity: .52; filter: grayscale(1); }
.option-row label.is-sold-out:hover { background: transparent; }
.option-status-stamp { display: inline-block; margin-left: 7px; color: #b7b7b7; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .12em; font-style: normal; }
.modifier-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 12px; border: 1px dashed rgba(255,255,255,.14); }
.option-row input {
  width: 14px; height: 14px; flex: 0 0 14px;
  accent-color: var(--accent);
}
.option-copy { display: grid; gap: 2px; min-width: 0; }
.option-copy strong { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 400; }
.option-copy small { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--accent); }
.option-quantity {
  margin-left: auto;
  width: 48px !important;
  height: 34px !important;
  flex: 0 0 48px !important;
  border: 1px solid rgba(184,154,106,0.35);
  background: #101010;
  color: var(--text);
  padding: 4px;
}
.modifier-validation {
  min-height: 18px;
  margin: 0 0 10px;
  color: #ff6b6b;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}
.modifier-validation-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cartAddFeedback {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 rgba(184,154,106,0); }
  18% { filter: brightness(1.36); box-shadow: 0 0 0 10px rgba(184,154,106,0.3), 0 0 34px rgba(184,154,106,0.36); }
  42% { filter: brightness(1.12); box-shadow: 0 0 0 5px rgba(184,154,106,0.16), 0 12px 40px rgba(0,0,0,0.5); }
  68% { filter: brightness(1.22); box-shadow: 0 0 0 8px rgba(184,154,106,0.2), 0 0 24px rgba(184,154,106,0.24); }
}
.cart-add-feedback { animation: cartAddFeedback 920ms ease-out both; }
.cart-fab.cart-add-feedback strong { animation: cartCountPop 520ms cubic-bezier(.22,.8,.28,1) both; }
@keyframes cartCountPop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.22); }
}

menu {
  display: flex; justify-content: flex-end;
  gap: 8px; padding: 16px 0 0; margin: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
menu.dialog-actions {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(170px, 1.25fr);
  gap: 10px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 20px 0 0;
  padding: 16px 0 max(4px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(184,154,106,0.2);
  background: linear-gradient(to bottom, rgba(8,8,8,0.72), #080808 28%);
}
menu.dialog-actions button {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
}
menu.dialog-actions button[value="cancel"] {
  color: #ff9a9a;
  border-color: rgba(255,100,100,0.5);
  background: rgba(130,35,35,0.14);
}
menu.dialog-actions button#addConfiguredItem {
  min-height: 58px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}
menu.dialog-actions button#addConfiguredItem:hover {
  border-color: var(--accent2);
  background: var(--accent2);
}
menu button {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
menu button[value="cancel"] {
  background: transparent; color: var(--muted);
  border-color: rgba(255,255,255,0.1);
}
menu button[value="cancel"]:hover { color: #ffd4d4; border-color: #ff6b6b; background: rgba(170,45,45,0.28); }
menu.dialog-actions button[value="cancel"]:hover {
  color: #ffd4d4;
  border-color: #ff6b6b;
  background: rgba(170,45,45,0.28);
}

/* ── CART FAB ── */
.cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 5;
  min-height: 52px; min-width: 96px;
  border: 1px solid var(--accent); border-radius: 0;
  background: var(--accent); color: var(--bg);
  display: none; gap: 10px;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: opacity 0.22s, transform 0.22s;
}
.cart-fab strong {
  min-width: 24px; min-height: 24px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--bg);
  color: var(--accent);
  font-family: 'DM Mono', monospace; font-size: 11px;
}
.cart-add-notice {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 8;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
  box-shadow: 0 16px 44px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.cart-add-notice.is-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .cart-add-notice,
  .cart-add-notice.is-visible { transition: none; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  :root { --sticky-offset: 124px; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .topbar {
    min-height: var(--topbar-height);
    gap: 12px;
    padding: 12px 16px;
  }
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }
  .hero-copy {
    max-width: none;
  }
  h1 {
    font-size: clamp(26px, 8vw, 38px);
  }
  .topbar #heroSubtitle {
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  .store-meta {
    max-width: calc(100vw - 168px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .topbar-link {
    min-height: 30px;
    justify-content: center;
    padding: 0 9px;
    font-size: 8px;
  }
  .topbar.is-compact {
    min-height: 68px;
    padding: 8px 16px;
  }
  .status { max-width: 116px; min-height: 30px; padding: 5px 9px; font-size: 8px; text-align: center; }
  .layout {
    grid-template-columns: 1fr;
    width: 100%; gap: 0; margin-top: 0;
  }
  .categories {
    position: sticky; top: var(--sticky-offset); z-index: 2;
    display: flex; gap: 6px; overflow-x: auto;
    padding: 10px 14px; border-radius: 0;
    border: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(8,8,8,0.95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .categories button {
    flex: 0 0 auto; width: auto; min-height: 34px;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 0;
    white-space: nowrap; background: rgba(255,255,255,0.02);
    padding: 0 14px;
  }
  .categories button::before { display: none; }
  .categories button.active { background: rgba(184,154,106,0.1); }
  .menu { width: 100%; }
  .cart {
    position: static; border: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%; border-radius: 0;
  }
  body.cart-drawer-open {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.cart-drawer-open .cart {
    position: fixed;
    inset: 0;
    z-index: 30;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background: #0A0A0A;
    box-shadow: 0 0 0 1px rgba(184,154,106,0.25), 0 0 80px rgba(0,0,0,0.72);
    border: 0;
  }
  body.cart-drawer-open .cart::before { margin: -24px -18px 0; }
  body.cart-drawer-open .cart-items {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
  .cart-heading button { display: none; align-items: center; }
  body.cart-drawer-open .cart-heading button { display: inline-flex; }
  body.cart-drawer-open::after {
    content: ''; position: fixed; inset: 0; z-index: 25;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    pointer-events: auto;
  }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 2px; padding: 2px; }
  dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .dialog-card {
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .dialog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 20px;
    padding-top: 20px;
  }
  .dialog-item-media {
    position: relative;
    top: auto;
    width: min(100%, 360px);
    min-height: 0;
    max-height: none;
    justify-self: center;
  }
  .dialog-item-media img, .dialog-item-media .empty-image { height: 100%; }
  .dialog-config { max-height: none; overflow: visible; padding: 0 0 84px; }
  menu.dialog-actions {
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.5fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
  }
  menu.dialog-actions button { min-height: 56px; padding: 0 12px; }
  menu.dialog-actions button#addConfiguredItem { min-height: 60px; }
  .cart-fab { display: inline-flex; }
  .cart-add-notice { right: 14px; bottom: 88px; max-width: calc(100vw - 28px); }
  .cart-fab:not(.has-items) { opacity: 0.7; }
  body.cart-in-view .cart-fab, body.cart-drawer-open .cart-fab { opacity: 0; transform: translateY(14px); pointer-events: none; }
}

@media (max-width: 520px) {
  :root { --topbar-height: 128px; }
  :root { --sticky-offset: 128px; }
  .topbar { padding: 12px 14px; }
  .eyebrow { font-size: 9px; }
  .eyebrow::before { display: none; }
  .item-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; padding: 2px; }
  .item-card h3 { min-height: 46px; font-size: 16px; }
  .item-card .description { font-size: 11px; }
  .item-copy { padding: 14px 14px 12px; }
  .item-stepper { grid-template-columns: 28px 32px 28px; gap: 4px; }
  .item-stepper:not(.has-count) { grid-template-columns: 28px; }
  .item-stepper button, .qty-count { min-height: 28px; min-width: 28px; }
  dialog { width: calc(100% - 8px); }
  .dialog-card { max-height: calc(100dvh - 8px); }
  .option-row { grid-template-columns: 1fr; }
  .section-header { padding: 22px 16px 14px; }
  .cart { padding: 24px 16px; }
  .topbar.is-compact {
    min-height: 62px;
    padding: 8px 14px;
  }
  .topbar.is-compact h1 { font-size: 26px; }
}
