:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-warm: #f8f2e9;
  --hero: #64454f;
  --hero-deep: #553a42;
  --brand: #d61f5c;
  --brand-soft: #f2a0bf;
  --accent: #f4a127;
  --ink: #211a18;
  --muted: #7e6f68;
  --line: #e7dfd3;
  --shadow: 0 18px 42px rgba(62, 37, 43, 0.12);
  --menu-image-width: 768px;
  --menu-image-height: 576px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 32px;
  background: var(--surface);
  border-bottom: 1px solid rgba(33, 26, 24, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(33, 26, 24, 0.08);
}

.drawer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(33, 26, 24, 0.08);
}

.brand-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.site-nav button {
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.install-button {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(214, 31, 92, 0.09);
}

.utility-actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.utility-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.utility-link-ghost {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(214, 31, 92, 0.09);
}

main {
  width: 100%;
}

.status-banner {
  max-width: 1160px;
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--accent);
  color: #1e1207;
  font-size: 1rem;
  padding: 0 20px;
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--hero) 0%, var(--hero-deep) 100%);
  color: #fff;
  padding: 92px 40px 36px;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.8rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 20px auto 0;
  max-width: 680px;
  font-size: 1.28rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.95);
}

.pickup-pill {
  width: min(640px, 100%);
  margin: 30px auto 0;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  box-shadow: 0 14px 26px rgba(32, 20, 22, 0.18);
  overflow: hidden;
}

.pickup-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: 12px;
  display: grid;
  place-items: center;
  color: var(--brand);
  border: 2px solid rgba(214, 31, 92, 0.35);
  font-size: 0.9rem;
}

.pickup-label {
  font-weight: 500;
  text-align: center;
}

.pickup-pill strong {
  color: var(--brand);
  padding-right: 16px;
  font-size: 0.98rem;
}

.catalog {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--surface-warm);
  padding: 38px 20px 56px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #ebe5db;
  color: #8b6d5f;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-active {
  background: var(--brand);
  color: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(340px, 100%);
  padding: 0 14px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e7ddcf;
  background: rgba(255, 255, 255, 0.7);
}

.search-icon {
  color: #8f7e75;
  font-size: 1.1rem;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.catalog-main {
  min-width: 0;
}

.menu-section + .menu-section {
  margin-top: 32px;
}

.menu-section-title {
  margin: 0 0 16px;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.03em;
  font-size: 2rem;
  color: #231917;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid #e9dfd1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.menu-image {
  width: 100%;
  height: auto;
  aspect-ratio: var(--menu-image-width) / var(--menu-image-height);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #efeadf, #f8f4ec);
  border-bottom: 1px solid #ece3d6;
  position: relative;
  overflow: hidden;
}

.menu-image::after {
  content: attr(data-label);
  position: absolute;
  inset: 14px auto auto 14px;
  color: rgba(140, 128, 118, 0.48);
  font-size: 0.9rem;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-card.is-sold-out .menu-image img {
  filter: saturate(0.78) brightness(0.93);
}

.menu-body {
  padding: 16px 14px 14px;
}

.menu-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.menu-headline h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.menu-category,
.menu-description {
  margin: 6px 0 0;
  color: #7c726d;
  font-size: 0.95rem;
  line-height: 1.35;
}

.menu-price {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
}

.sold-out-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e73d33;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.inventory-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 161, 39, 0.18);
  color: #8a5d17;
  font-size: 0.84rem;
  font-weight: 700;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 46px;
  border-radius: 10px;
  background: #f1ede4;
  overflow: hidden;
}

.quantity button {
  width: 34px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #3b302e;
  font-size: 1.3rem;
  cursor: pointer;
}

.quantity span {
  width: 36px;
  text-align: center;
  font-weight: 600;
}

.add-button,
.checkout-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.add-button {
  flex: 1;
  min-height: 46px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 18px rgba(214, 31, 92, 0.18);
}

.add-button:disabled {
  background: #d61f5c;
  color: #fff;
  box-shadow: none;
  opacity: 0.72;
  cursor: not-allowed;
}

.add-button:hover,
.chip:hover,
.checkout-button:hover {
  filter: brightness(1.03);
}

.order-summary {
  min-width: 0;
}

.order-card {
  position: sticky;
  top: 86px;
  background: var(--surface);
  border: 1px solid #eadfd2;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card-header h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.03em;
  font-size: 2rem;
}

.order-count {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4ecdd;
  color: #735949;
  font-weight: 700;
  font-size: 0.88rem;
}

.order-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px 0;
  border-top: 1px solid #eee4d8;
}

.order-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.order-item strong {
  font-size: 0.98rem;
}

.order-item small {
  color: var(--muted);
}

.order-price {
  font-weight: 800;
  color: var(--brand);
}

.order-footer {
  margin-top: 16px;
  border-top: 1px solid #eee4d8;
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.totals,
.pickup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.totals span,
.pickup-row span {
  color: var(--muted);
  font-weight: 500;
}

.pickup-row {
  display: grid;
  gap: 6px;
}

.pickup-row label {
  color: var(--muted);
  font-weight: 500;
}

.pickup-row select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #e4d7c8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.pickup-note {
  color: #8a7568;
  font-size: 0.86rem;
  line-height: 1.3;
}

.pickup-row-live {
  grid-template-columns: auto auto;
  align-items: center;
}

.checkout-button {
  min-height: 46px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(214, 31, 92, 0.18);
}

.mobile-menu-button,
.cart-fab,
.overlay,
.drawer,
.modal {
  display: none;
}

.mobile-menu-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: rgba(214, 31, 92, 0.12);
  color: var(--brand);
  font-size: 1.6rem;
  box-shadow: 0 12px 30px rgba(38, 19, 24, 0.12);
}

.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(214, 31, 92, 0.26);
}

.cart-fab span {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f14737;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.cart-fab svg {
  width: 22px;
  height: 22px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 19, 20, 0.38);
  z-index: 70;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  background: var(--surface);
  z-index: 80;
  box-shadow: -24px 0 50px rgba(27, 17, 19, 0.16);
  padding: 18px;
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.cart-drawer {
  width: min(88vw, 420px);
  padding: 18px 18px 16px;
}

.cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-drawer-header h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.2rem;
}

.cart-drawer-body {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.cart-line {
  padding: 12px 0;
  border-top: 1px solid #eee4d8;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
}

.cart-line:first-child {
  border-top: 0;
  padding-top: 2px;
}

.cart-line strong {
  font-size: 1rem;
}

.cart-line small {
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

.cart-drawer-footer {
  margin-top: 16px;
  border-top: 1px solid #eee4d8;
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.drawer.is-open,
.modal.is-open,
.overlay.is-open {
  display: block;
}

.drawer.is-open {
  transform: translateX(0);
}

.modal.is-open {
  display: grid;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.drawer-nav a,
.drawer-nav button {
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 14px 12px;
  border-radius: 12px;
  background: #f7f1e7;
  color: #231917;
  font-weight: 600;
  cursor: pointer;
}

.drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.drawer-button,
.modal-button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.drawer-button {
  background: #f1eadf;
  color: #231917;
}

.drawer-button-install {
  background: rgba(214, 31, 92, 0.12);
  color: var(--brand);
}

.drawer-button-primary,
.modal-button {
  background: var(--brand);
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  place-items: center;
  background: rgba(24, 14, 15, 0.45);
  padding: 20px;
}

.modal-card {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-card-wide {
  width: min(100%, 520px);
}

.modal-card h2 {
  margin: 0 0 14px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.03em;
}

.modal-card label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.modal-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #eadfd2;
  border-radius: 12px;
  padding: 0 14px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
}

.modal-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.status-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.status-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee4d8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-result div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #f9f4ea;
}

.status-result strong {
  font-size: 1.1rem;
}

.status-result span {
  color: var(--muted);
}

.install-card {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
}

.install-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #f9f4ea;
}

.install-card strong {
  font-size: 1rem;
}

.install-card span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .order-card {
    position: static;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
    gap: 12px;
    height: auto;
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark,
  .drawer-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 1.5rem;
    line-height: 1;
  }

  .site-nav,
  .utility-actions {
    display: none;
  }

  .status-banner {
    min-height: 48px;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 28px 14px 22px;
  }

  .catalog {
    padding: 18px 12px 92px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 14px;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .menu-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .mobile-menu-button,
  .cart-fab {
    display: grid;
    place-items: center;
  }

  .pickup-pill {
    width: 100%;
    margin-top: 22px;
    padding: 10px 12px;
    min-height: 0;
    border-radius: 22px;
    grid-template-columns: 42px 1fr auto;
    grid-template-areas:
      "icon label time"
      "icon label time";
    row-gap: 4px;
    column-gap: 10px;
  }

  .pickup-icon {
    grid-area: icon;
    margin-left: 0;
  }

  .pickup-label {
    grid-area: label;
    text-align: left;
  }

  .pickup-pill strong {
    grid-area: time;
    padding-right: 0;
    text-align: right;
    font-size: 0.92rem;
  }

  .pickup-label {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero p {
    margin-top: 14px;
    font-size: 1rem;
  }

  .menu-section + .menu-section {
    margin-top: 24px;
  }

  .menu-section-title {
    margin-bottom: 12px;
    font-size: 1.7rem;
  }

  .menu-image {
    aspect-ratio: 16 / 10;
  }

  .menu-body {
    padding: 14px;
  }

  .menu-headline h3 {
    font-size: 1rem;
  }

  .menu-category,
  .menu-description {
    font-size: 0.9rem;
  }

  .menu-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .quantity {
    width: 100%;
  }

  .quantity button {
    width: 44px;
  }

  .quantity span {
    flex: 1;
  }

  .add-button {
    width: 100%;
    min-height: 48px;
  }

  .order-summary {
    margin-top: 4px;
  }

  .order-card {
    padding: 16px;
    border-radius: 18px;
  }

  .order-card-header h2 {
    font-size: 1.8rem;
  }

  .order-count {
    height: 26px;
    padding-inline: 9px;
    font-size: 0.8rem;
  }

  .order-item {
    gap: 4px 10px;
    padding: 10px 0;
  }

  .order-footer {
    gap: 12px;
  }

  .pickup-row select,
  .checkout-button {
    min-height: 48px;
  }

  .drawer {
    width: 100vw;
    max-width: 100vw;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .cart-drawer-body {
    max-height: calc(100vh - 214px);
  }

  .modal {
    padding: 14px;
  }

  .modal-card {
    width: 100%;
    border-radius: 20px;
    padding: 22px 18px 18px;
  }

  .modal-card h2 {
    font-size: 2.2rem;
  }

  .status-form {
    grid-template-columns: 1fr;
  }

  .status-result {
    grid-template-columns: 1fr;
  }

  .mobile-menu-button {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .cart-fab {
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 761px) {
  .utility-actions {
    display: flex;
  }
}
