:root {
  --ink: #1b352a;
  --paper: #f4efe7;
  --card: #fffdfb;
  --line: #e6d9cb;
  --chili: #f05a28;
  --chili-dark: #b4431e;
  --muted: #6f6258;
  --shadow: 0 22px 50px rgba(48, 28, 14, 0.1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, #ffe4d4 0%, transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 6vw;
  background: rgba(27, 53, 42, 0.94);
  color: #fffaf6;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 250, 246, 0.35);
  border-radius: 14px;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 560; }
.brand-text small { color: #f0c2b0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.68rem; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.ghost, .cart-btn, .btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
}
.ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 250, 246, 0.25);
}
.drawer .ghost, dialog .ghost { border-color: var(--line); background: transparent; }
.cart-btn, .btn.solid {
  background: var(--chili);
  color: white;
  border-color: var(--chili);
  font-weight: 650;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 8px 8px 12px;
}
.cart-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.cart-btn span, .dock strong {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
}
.btn.line {
  background: transparent;
  border-color: var(--ink);
  text-decoration: none;
}
.btn.wide { width: 100%; }
.btn:hover, .cart-btn:hover { background: var(--chili-dark); color: white; }
.btn.line:hover { background: var(--ink); color: white; }

.menu, .site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 4px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--chili-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.98; margin: 0 0 14px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
h3 { margin: 0 0 8px; font-size: 1.35rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.fulfillment {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.fulfillment button {
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  background: transparent;
}
.fulfillment button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.drawer-mode { margin-top: 4px; }
.hero-frame {
  position: relative;
  width: 100%;
  height: calc(100vh - 190px);
  height: calc(100svh - 190px);
  min-height: 420px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide figcaption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 128px 22px 22px;
  background: linear-gradient(to top, rgba(27, 53, 42, 0.84), rgba(27, 53, 42, 0));
  color: #fffaf6;
}
.slide figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}
.slide figcaption span {
  display: block;
  max-width: 36rem;
  margin-top: 4px;
  color: rgba(255, 250, 246, 0.9);
}
.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 253, 251, 0.92);
  font-size: 1.6rem;
  line-height: 1;
}
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }
.slide-dots {
  position: absolute;
  z-index: 2;
  left: auto;
  right: 22px;
  bottom: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.55);
}
.slide-dots button[aria-selected="true"] { width: 22px; background: white; }

.menu { padding: 28px 0 80px; }
.menu-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.search input, label input, label textarea, label select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}
.search { min-width: min(320px, 100%); }
.chips {
  position: sticky;
  top: 76px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0;
  padding: 10px 0 12px;
  background: rgba(244, 239, 231, 0.96);
  backdrop-filter: blur(12px);
}
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.chip[aria-selected="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.featured { margin: 18px 0 28px; }
.featured h3 { margin-bottom: 12px; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 24%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.group { margin-top: 28px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.card, .mini {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.card img, .mini img, #detailImage {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f7f1ea;
}
.card-body, .mini-body { padding: 12px 14px 14px; }
.card h3, .mini strong { font-family: var(--sans); font-size: 0.98rem; letter-spacing: 0; font-weight: 650; }
.card p, .mini p { color: var(--muted); margin: 6px 0 10px; font-size: 0.92rem; }
.desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.price { font-weight: 650; margin: 0; }
.card-foot, .mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.add {
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
}
.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.site-footer a { color: var(--chili-dark); }

.dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(27, 53, 42, 0.46);
  z-index: 30;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  background: #fffdfb;
  padding: 18px 18px 32px;
  box-shadow: var(--shadow);
}
.drawer-bar, .line, .line-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.drawer-bar { position: sticky; top: -18px; background: #fffdfb; padding-bottom: 10px; }
.line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.qty { display: flex; align-items: center; gap: 8px; }
.qty button, .icon-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
}
.choice-note { margin: 0; color: var(--muted); font-size: 0.88rem; }
.fine { color: var(--muted); font-size: 0.9rem; }
label { display: block; margin: 12px 0; font-size: 0.92rem; }
.subtotal { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 14px 0; }
.error { color: #9d1c1c; min-height: 1.2em; }
.success {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8efe4;
}
.history { margin-top: 22px; }
.order-card {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.login-prompt { margin-top: 12px; }

dialog {
  width: min(460px, calc(100% - 24px));
  border: 0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(27, 53, 42, 0.5); }
#authDialog {
  background: var(--ink);
  color: #fffaf6;
}
#authDialog .eyebrow { color: var(--chili); }
#authDialog h2,
#authDialog label { color: #fffaf6; }
#authDialog input {
  color: var(--ink);
  background: white;
}
#authDialog .ghost { color: #fffaf6; border-color: rgba(255, 250, 246, 0.35); }
#authDialog .error { color: #ffc7bc; }
#productDialog { padding: 0 0 18px; }
#productDialog img { border-radius: 24px 24px 0 0; }
#productDialog h2, #productDialog p, #productDialog label, #detailAdd { margin-left: 18px; margin-right: 18px; }
.icon-close { position: absolute; top: 12px; right: 12px; background: white; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero-frame {
    height: calc(100vh - 250px);
    height: calc(100svh - 250px);
    min-height: 280px;
  }
  .rail { grid-auto-columns: 72%; }
  .menu-head { flex-direction: column; align-items: stretch; }
  .slide figcaption { padding: 56px 18px 46px; }
  .slide-dots { right: 16px; bottom: 14px; }
}
@media (min-width: 861px) {
  .dock { display: none !important; }
  .topbar,
  .hero-frame {
    width: min(1120px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
  }
  .topbar { padding-left: 20px; padding-right: 20px; }
  .hero-frame {
    margin-top: 16px;
    border-radius: 22px;
    height: calc(100vh - 210px);
    height: calc(100svh - 210px);
  }
}
