:root {
  --bg: #fff8f1;
  --bg-soft: #fff2e5;
  --surface: #ffffff;
  --surface-2: #fffaf5;
  --text: #1d1d1f;
  --muted: #686868;
  --muted-2: #8a8a8a;
  --line: rgba(29, 29, 31, 0.1);
  --line-strong: rgba(29, 29, 31, 0.16);
  --primary: #ff6a00;
  --primary-2: #ff8a1f;
  --primary-dark: #d94f00;
  --accent: #101828;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 18px 50px rgba(16, 24, 40, 0.14);
  --shadow-lg: 0 28px 80px rgba(16, 24, 40, 0.22);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --topbar-height: 78px;
  --container: 1180px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(255, 186, 118, 0.22), transparent 30rem),
    var(--bg);
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--topbar-height);
  background: rgba(255, 248, 241, 0.78);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 106, 0, 0.1);
}

.topbar__inner {
  width: min(100% - 32px, var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo-wrap {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 17px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.18);
  display: grid;
  place-items: center;
  position: relative;
}

.brand__logo-wrap--fallback::after {
  content: "MD";
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand__text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__link {
  display: inline-flex;
}

.cart-pill {
  border: 0;
  min-height: 44px;
  border-radius: 999px;
  padding: 8px 10px 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.18);
}

.cart-pill__icon {
  font-size: 1rem;
}

.cart-pill__text {
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-pill__count {
  min-width: 27px;
  height: 27px;
  padding-inline: 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

/* BUTTONS */

.btn {
  border: 0;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.34);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: #fff;
}

.btn--block {
  width: 100%;
}

/* HERO */

.hero {
  position: relative;
  padding: 58px 0 44px;
  overflow: hidden;
}

.hero__bg-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.76;
}

.hero__bg-orb--one {
  width: 320px;
  height: 320px;
  left: -110px;
  top: 40px;
  background: rgba(255, 106, 0, 0.14);
}

.hero__bg-orb--two {
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -50px;
  background: rgba(255, 185, 103, 0.22);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
}

.hero__content h1 {
  margin: 16px 0 18px;
  max-width: 760px;
  font-size: clamp(2.35rem, 7vw, 5.65rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero__content p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero__eyebrow {
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 106, 0, 0.16);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.hero__search {
  margin-top: 28px;
  max-width: 640px;
}

.hero__badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero__badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 24, 40, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.hero__card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 239, 0.78)),
    radial-gradient(circle at top, rgba(255, 106, 0, 0.16), transparent 56%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__logo-card {
  min-height: 270px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 255, 255, 0.7)),
    #fff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 106, 0, 0.12);
  overflow: hidden;
}

.hero__logo-card img {
  width: min(76%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(255, 106, 0, 0.16));
}

.logo-fallback {
  width: 140px;
  height: 140px;
  border-radius: 38px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 3rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.hero__mini-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero__mini-panel span {
  display: block;
  opacity: 0.72;
  font-size: 0.82rem;
}

.hero__mini-panel strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

.hero__mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 17px;
  display: grid !important;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  opacity: 1 !important;
}

.hero__steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero__steps div {
  min-height: 98px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.hero__steps strong {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 106, 0, 0.12);
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.hero__steps span {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.88rem;
  line-height: 1.2;
}

/* SEARCH */

.search-box {
  min-height: 62px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 106, 0, 0.13);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 20px;
}

.search-box--compact {
  min-height: 52px;
  width: min(100%, 360px);
  box-shadow: none;
  border-color: var(--line);
}

.search-box__icon {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box__clear {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.07);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

/* SECTIONS */

.stores-section {
  padding: 34px 0 76px;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.menu-toolbar h2 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-heading__kicker {
  color: var(--primary-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 950;
}

/* STORE GRID */

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.store-card {
  position: relative;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 106, 0, 0.2);
}

.store-card__cover {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(16, 24, 40, 0.08));
}

.store-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card__cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.46), transparent);
  pointer-events: none;
}

.store-card__logo {
  position: absolute;
  left: 18px;
  top: 148px;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 4px solid #fff;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 30px rgba(16, 24, 40, 0.18);
}

.store-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.store-card__body {
  padding: 48px 18px 18px;
}

.store-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store-card h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.store-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.93rem;
}

.store-card__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.store-card__action {
  margin-top: 18px;
  width: 100%;
}

.status-badge {
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status-badge--closed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.18), transparent 60%),
    linear-gradient(135deg, #fff4ea, #fff);
  color: var(--primary-dark);
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.06em;
}

/* RESTAURANT VIEW */

.restaurant-section {
  background: #fff;
}

.restaurant-cover {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.52), rgba(16, 24, 40, 0.78)),
    #1f2937;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.restaurant-cover__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 24, 40, 0.88), rgba(16, 24, 40, 0.24), rgba(16, 24, 40, 0.12)),
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.25), transparent 36rem);
}

.restaurant-cover__content {
  position: relative;
  z-index: 1;
  padding: 34px 0;
}

.back-button {
  margin-bottom: 18px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(14px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.restaurant-hero-card {
  max-width: 920px;
  border-radius: 34px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.restaurant-logo {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.restaurant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.restaurant-info {
  min-width: 0;
}

.restaurant-info__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.restaurant-info h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.restaurant-info p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.45;
}

.restaurant-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* MENU */

.menu-layout {
  padding: 34px 0 90px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.menu-sidebar__sticky {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  border-radius: 28px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.menu-sidebar h3 {
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-weight: 900;
}

.category-button:hover {
  background: #fff;
}

.category-button.is-active {
  background: var(--accent);
  color: #fff;
}

.category-button small {
  opacity: 0.7;
  font-weight: 900;
}

.menu-content {
  min-width: 0;
}

.menu-toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.mobile-category-strip {
  display: none;
  margin: 0 -16px 18px;
  padding: 0 16px;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}

.mobile-category-strip::-webkit-scrollbar {
  display: none;
}

.mobile-category-strip .category-button {
  flex: 0 0 auto;
  width: auto;
  border-radius: 999px;
  background: var(--surface-2);
  border-color: var(--line);
}

.mobile-category-strip .category-button.is-active {
  background: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 190px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 160px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(255, 106, 0, 0.18);
}

.product-card__body {
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card h3 {
  margin: 10px 0 7px;
  font-size: 1.12rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__price {
  color: var(--accent);
  font-size: 1.14rem;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.add-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

.product-card__image {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(16, 24, 40, 0.05));
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STATES */

.state-panel {
  padding: 34px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.state-panel__icon {
  margin-inline: auto;
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 1.5rem;
}

.state-panel h3 {
  margin: 14px 0 6px;
  letter-spacing: -0.04em;
}

.state-panel p {
  margin: 0 auto 18px;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.skeleton-card {
  min-height: 340px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)),
    var(--surface-2);
  background-size: 240% 100%;
  animation: shimmer 1.3s infinite linear;
  border: 1px solid var(--line);
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

/* DRAWER */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 24, 40, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer-overlay.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 110;
  width: min(100%, 480px);
  height: 100dvh;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.cart-drawer__panel {
  height: 100%;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  box-shadow: -28px 0 90px rgba(16, 24, 40, 0.24);
}

.cart-drawer__header {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-drawer__header span {
  display: block;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 950;
}

.cart-drawer__header h2 {
  margin: 3px 0 0;
  font-size: 1.8rem;
  letter-spacing: -0.06em;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
}

.cart-drawer__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px 22px;
}

.cart-store {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.cart-store strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.cart-empty {
  padding: 30px 18px;
  border-radius: 26px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.cart-empty__icon {
  font-size: 2rem;
}

.cart-empty h3 {
  margin: 10px 0 6px;
  letter-spacing: -0.04em;
}

.cart-empty p {
  margin: 0;
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.cart-item h4 {
  margin: 0 0 5px;
  font-size: 0.98rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.cart-item__right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cart-item__subtotal {
  font-weight: 950;
  color: var(--accent);
}

.qty-control {
  height: 34px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 950;
  font-size: 1rem;
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 950;
}

.checkout-form {
  margin-top: 18px;
  display: grid;
  gap: 13px;
}

.form-section-title {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  outline: 0;
  padding: 13px 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 106, 0, 0.46);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
}

.cart-drawer__footer {
  padding: 16px 22px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.cart-total-row {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-total-row span {
  color: var(--muted);
  font-weight: 850;
}

.cart-total-row strong {
  font-size: 1.6rem;
  letter-spacing: -0.055em;
}

.checkout-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

/* MOBILE FAB */

.mobile-cart-fab {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 70;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.28);
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-cart-fab strong {
  font-size: 1rem;
}

.mobile-cart-fab small {
  min-width: 25px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 950;
}

/* TOAST */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  display: grid;
  gap: 10px;
  width: min(100% - 36px, 380px);
}

.toast {
  padding: 14px 15px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastIn 180ms ease both;
}

.toast strong {
  display: block;
  margin-bottom: 2px;
}

.toast p {
  margin: 0;
  opacity: 0.86;
  font-size: 0.88rem;
  line-height: 1.35;
}

.toast--success {
  background: #14532d;
}

.toast--error {
  background: #7f1d1d;
}

.toast--warning {
  background: #78350f;
}

@keyframes toastIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* FOOTER */

.footer {
  padding: 34px 0;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 4px 0 0;
}

/* RESPONSIVE */

@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__card {
    max-width: 620px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .menu-sidebar {
    display: none;
  }

  .mobile-category-strip {
    display: flex;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 70px;
  }

  .container,
  .topbar__inner {
    width: min(100% - 28px, var(--container));
  }

  .topbar__link {
    display: none;
  }

  .brand__logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .brand__text small {
    display: none;
  }

  .cart-pill {
    min-height: 42px;
    padding-inline: 12px 8px;
  }

  .cart-pill__text {
    display: none;
  }

  .hero {
    padding: 34px 0 32px;
  }

  .hero__content h1 {
    margin-top: 14px;
    font-size: clamp(2.7rem, 13vw, 4.8rem);
  }

  .hero__content p {
    font-size: 1rem;
  }

  .hero__search {
    margin-top: 22px;
  }

  .search-box {
    min-height: 56px;
    padding-left: 16px;
  }

  .hero__badges {
    gap: 7px;
  }

  .hero__badges span {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .hero__card {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stores-section {
    padding-top: 20px;
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .store-card__cover {
    height: 176px;
  }

  .store-card__logo {
    top: 136px;
  }

  .restaurant-cover {
    min-height: 390px;
  }

  .restaurant-cover__content {
    padding-bottom: 22px;
  }

  .restaurant-hero-card {
    align-items: flex-start;
    border-radius: 28px;
    padding: 14px;
  }

  .restaurant-logo {
    width: 78px;
    height: 78px;
    border-radius: 23px;
  }

  .restaurant-info h2 {
    font-size: 2rem;
  }

  .restaurant-info p {
    font-size: 0.9rem;
  }

  .restaurant-meta {
    display: none;
  }

  .menu-layout {
    padding-top: 24px;
    padding-bottom: 94px;
  }

  .menu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box--compact {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    min-height: 158px;
    grid-template-columns: 1fr 124px;
    border-radius: 24px;
  }

  .product-card__body {
    padding: 15px;
  }

  .product-card h3 {
    font-size: 1.02rem;
  }

  .product-card p {
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
  }

  .product-card__price {
    font-size: 1.02rem;
  }

  .add-button {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  .cart-drawer {
    width: 100%;
  }

  .cart-drawer__panel {
    border-radius: 24px 24px 0 0;
  }

  .cart-drawer__header {
    padding: 18px 18px 13px;
  }

  .cart-drawer__body {
    padding: 16px 18px 18px;
  }

  .cart-drawer__footer {
    padding: 14px 18px calc(14px + var(--safe-bottom));
  }

  .mobile-cart-fab {
    display: flex;
  }

  .footer {
    padding-bottom: 88px;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast-stack {
    right: 14px;
    bottom: calc(78px + var(--safe-bottom));
    width: calc(100% - 28px);
  }
}

@media (max-width: 420px) {
  .brand__text strong {
    font-size: 0.92rem;
  }

  .hero__eyebrow {
    font-size: 0.8rem;
  }

  .restaurant-hero-card {
    gap: 12px;
  }

  .restaurant-logo {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .restaurant-info h2 {
    font-size: 1.7rem;
  }

  .product-card {
    grid-template-columns: 1fr 112px;
  }
}