:root {
  --red: #e42132;
  --red-dark: #c91427;
  --indigo: #27276f;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --white: #fff;
  --cream: #f8f3e9;
  --hero-red: #c52e30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }

.container { width: min(100% - 40px, 980px); margin-inline: auto; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 5px; }
#menu, #how-it-works { scroll-margin-top: 28px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #eee9e0;
}
.header-inner {
  width: min(100% - 80px, 1120px);
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand { justify-self: start; }
.brand img { width: 166px; height: auto; }
.header-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 600; color: var(--indigo); }
.header-nav a { padding-block: 12px; }
.header-nav a:hover, .site-footer a:hover { color: var(--red); }
.header-cart {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #dfdee7;
  border-radius: 30px;
  background: transparent;
  color: var(--indigo);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px 8px 16px;
  white-space: nowrap;
}
.header-cart:hover { background: var(--cream); border-color: var(--indigo); }
.header-cart span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 5px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
}

.hero {
  background: var(--cream);
  border-bottom: 1px solid #e9e2d6;
}
.hero-inner {
  width: min(100% - 80px, 1120px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 54px 42px;
}
.hero-copy { padding-block: 12px; }
.hero h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 6.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -.055em;
  color: var(--indigo);
  font-weight: 400;
}
.hero h1 em { color: var(--hero-red); font-weight: 400; }
.hero-description {
  max-width: 365px;
  margin: 0 0 29px;
  color: #625e59;
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero .hero-cta {
  gap: 24px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 5px;
  background: var(--hero-red);
  font-size: 14px;
}
.hero .hero-cta:hover { background: #a92327; }
.hero-secondary {
  padding-block: 8px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #aaa5b4;
}
.hero-secondary:hover { color: var(--hero-red); text-decoration-color: currentColor; }
.hero-order-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #716b63;
  font-size: 12px;
}
.hero-order-note .ui-icon { width: 16px; height: 16px; }
.hero-visual { position: relative; min-width: 0; }
.hero-dish { position: relative; margin: 0; }
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.12;
  object-fit: cover;
  object-position: 52% 55%;
  border-radius: 48% 48% 10px 10px;
}
.hero-dish-caption {
  position: absolute;
  bottom: 25px;
  left: -22px;
  min-width: 176px;
  padding: 16px 24px;
  border-left: 3px solid var(--hero-red);
  border-radius: 0 4px 4px 0;
  background: #fffdf8;
  box-shadow: 0 6px 22px #3323150d;
}
.hero-dish-caption > strong {
  color: var(--indigo);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}
.hero-seal {
  position: absolute;
  top: 16px;
  right: -16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100px;
  height: 100px;
  border: 5px solid var(--cream);
  border-radius: 50%;
  background: var(--hero-red);
  color: #fff9ec;
  transform: rotate(12deg);
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}
.hero-seal svg { width: 17px; height: 17px; }
.hero-details {
  width: min(100% - 80px, 1120px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding-block: 16px;
  border-top: 1px solid #e1d9cb;
}
.hero-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 600;
}
.hero-details .ui-icon { color: var(--hero-red); width: 18px; height: 18px; }
.branch-divider { color: #b6aa99; margin-inline: 5px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
}
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); }
.button:disabled { background: #d7d7df; color: #fff; cursor: not-allowed; }

.menu-section { padding: 48px 0 64px; }
.menu-section h2, .how-section h2 {
  margin: 0 0 8px;
  color: var(--indigo);
  font-size: 32px;
  line-height: 1.15;
}
.section-intro { margin: 0 0 20px; color: var(--muted); }
.category-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }
.category-button {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
}
.category-button.active { color: var(--ink); border-bottom-color: var(--red); }

.menu-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.menu-item img {
  width: 160px;
  height: 120px;
  object-fit: cover;
}
.menu-item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.menu-item h3 { margin: 0; font-size: 20px; color: var(--indigo); }
.item-price { font-weight: 700; white-space: nowrap; }
.item-meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.item-description { margin: 8px 0 0; color: var(--ink); font-size: 15px; }
.menu-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px;
}
.menu-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.menu-field select {
  min-width: 220px;
  height: 40px;
  padding: 0 44px 0 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
.add-button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.add-button:hover { background: var(--red-dark); }
.menu-footnote { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

.how-section { padding: 48px 0 72px; border-top: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.steps h3 { margin: 0 0 6px; font-size: 17px; color: var(--indigo); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner img { width: 110px; height: auto; }
.footer-inner p { margin: 0; font-size: 14px; color: var(--muted); }
.footer-inner a { margin-left: auto; font-size: 14px; font-weight: 600; }

.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border-top: 1px solid var(--line);
}
.sticky-cart-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.sticky-cart-inner > div { display: flex; align-items: baseline; gap: 14px; }
.sticky-cart-inner span { font-size: 14px; color: var(--muted); }
.sticky-cart-inner strong { font-size: 18px; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 20; }
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 21;
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--line);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 { margin: 0; font-size: 24px; color: var(--indigo); }
.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.drawer-step { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.cart-items { padding: 0 24px; flex: 1; }
.empty-cart { padding: 48px 0; color: var(--muted); }
.empty-cart h3 { color: var(--indigo); margin-bottom: 6px; }
.empty-cart p { margin: 0; font-size: 15px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; }
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item h3 { margin: 0; font-size: 15px; color: var(--indigo); }
.cart-item strong { white-space: nowrap; font-size: 14px; }
.cart-item-detail { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.quantity-controls { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 30px; }
.quantity-controls button { width: 30px; height: 28px; border: 0; background: #fff; font-size: 16px; }
.quantity-controls span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; }
.remove-item { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 13px; margin-left: 10px; padding: 0; }
.drawer-bottom {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
}
.total-row { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
.total-row strong { font-size: 18px; }
.drawer-bottom > p { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.button-full { width: 100%; min-height: 46px; }

#checkout-form { display: flex; flex-direction: column; min-height: 100%; padding: 16px 24px 0; }
.back-button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--indigo); font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.order-type-field { border: 0; padding: 0; margin: 0 0 16px; }
.order-type-field legend, .field { font-size: 13px; font-weight: 700; }
.order-type-field legend { margin-bottom: 8px; }
.type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-options label { position: relative; }
.type-options input { position: absolute; opacity: 0; pointer-events: none; }
.type-options span { display: block; padding: 10px 12px; border: 1px solid var(--line); text-align: center; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.type-options input:checked + span { border-color: var(--indigo); background: #f4f4f8; }
.type-options input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.field { display: block; margin-bottom: 14px; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
.field select { padding-right: 44px; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25L6 6.25L11 1.25' fill='none' stroke='%2327276f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field textarea { resize: vertical; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.optional { color: var(--muted); font-weight: 500; }
.checkout-note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.checkout-bottom { margin: 0 -24px; }
.checkout-bottom p { text-align: center; margin: 8px 0 0; }

@media (min-width: 721px) and (max-width: 1000px) {
  .header-inner, .hero-inner, .hero-details { width: calc(100% - 48px); }
  .hero-inner { gap: 32px; padding-block: 40px 32px; }
  .hero h1 { font-size: clamp(48px, 6.6vw, 66px); }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 16px; }
  .hero .hero-cta { gap: 14px; padding-inline: 16px; }
  .hero-seal { width: 86px; height: 86px; right: -12px; top: 0; font-size: 11px; }
  .hero-dish-caption { bottom: 18px; left: -12px; min-width: 150px; padding: 12px 18px; }
}

@media (max-width: 720px) {
  .header-inner { width: calc(100% - 40px); min-height: 78px; grid-template-columns: 1fr auto; gap: 16px; }
  .brand img { width: 140px; }
  .header-cart { gap: 8px; min-height: 42px; padding: 6px 8px 6px 12px; font-size: 12px; }
  .header-cart .ui-icon { width: 17px; height: 17px; }
  .hero-inner { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 28px; padding-block: 34px 28px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(52px, 9vw, 68px); margin-bottom: 18px; }
  .hero-description { max-width: 390px; margin-bottom: 22px; font-size: 15px; line-height: 1.65; }
  .hero-actions { gap: 22px; }
  .hero .hero-cta { min-height: 50px; padding: 12px 18px; gap: 18px; font-size: 13px; }
  .hero-secondary { font-size: 12px; }
  .hero-order-note { margin-top: 14px; font-size: 11px; }
  .hero-visual { width: 100%; max-width: 480px; justify-self: center; }
  .hero-photo { height: clamp(230px, 58vw, 320px); aspect-ratio: auto; border-radius: 120px 120px 8px 8px; object-position: 50% 57%; }
  .hero-dish-caption { left: 12px; bottom: 14px; min-width: 145px; padding: 11px 16px; }
  .hero-dish-caption > strong { font-size: 23px; }
  .hero-seal { width: 82px; height: 82px; top: 0; right: 0; font-size: 10px; gap: 5px; border-width: 4px; }
  .hero-seal svg { width: 14px; height: 14px; }
  .hero-details { width: calc(100% - 40px); flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 17px; }
  .hero-details p { font-size: 11px; gap: 8px; }
  .branch-divider { margin-inline: 2px; }
  .menu-item { grid-template-columns: 1fr; gap: 12px; }
  .menu-item img { width: 100%; height: 200px; }
  .menu-field select { min-width: 0; width: 100%; }
  .menu-field, .add-button { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .header-nav { display: none; }
  .field-pair { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-inner a { margin-left: 0; }
  .cart-drawer { width: 100%; }
  .sticky-cart-inner > div { display: block; }
}

@media (max-width: 380px) {
  .brand img { width: 124px; }
  .header-inner { gap: 10px; }
  .hero-actions { gap: 14px; }
  .hero .hero-cta { gap: 12px; padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
