:root {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --accent: #ff4f5f;
  --accent-dark: #f03d4d;
  --ink: #202531;
  --muted: #667085;
  --line: #e5e8ef;
  --pink-soft: linear-gradient(140deg, #f9ced7 0%, #ffd9e2 50%, #fff3f7 100%);
  --blue-soft: linear-gradient(140deg, #a4daf7 0%, #d5ecff 55%, #f3f9ff 100%);
  --sand-soft: linear-gradient(140deg, #ffcf9f 0%, #ffe4c7 50%, #fff7ee 100%);
}

html {
  scroll-behavior: smooth;
  /* Prevent Chromium "font boosting" on narrow layouts (mobile Chrome). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  touch-action: pan-x pan-y;
}

body.cart-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  width: 100%;
  min-width: 0;
}

.site-footer {
  margin-top: 28px;
}

.site-footer__card {
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.site-footer__eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.site-footer__block {
  min-width: 0;
}

.site-footer__label {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
}

.site-footer__line {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer__line + .site-footer__line {
  margin-top: 4px;
}

.site-footer__docs {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer__link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__socials {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__social:hover {
  color: var(--accent);
  border-color: rgba(255, 79, 95, 0.35);
  box-shadow: 0 12px 24px rgba(15, 21, 35, 0.08);
  transform: translateY(-1px);
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  line-height: 1.55;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-consent span {
  min-width: 0;
}

.form-consent a {
  color: var(--accent);
  font-weight: 700;
}

.privacy-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner__content {
  width: min(920px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(246, 98, 109, 0.2);
  background: rgba(20, 26, 38, 0.92);
  box-shadow: 0 22px 60px rgba(15, 21, 35, 0.24);
  pointer-events: auto;
}

.privacy-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 0.95rem;
}

.privacy-banner__text a {
  color: #fff;
  font-weight: 700;
}

.privacy-banner__button {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.policy-shell {
  width: min(980px, calc(100% - 32px));
}

.policy-main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.policy-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.policy-card h1,
.policy-card h2 {
  margin: 0 0 14px;
}

.policy-card--hero {
  padding-top: 24px;
}

.policy-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.94rem;
  color: var(--muted);
}

.policy-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.policy-breadcrumbs a:hover {
  text-decoration: underline;
}

.policy-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.policy-card h2 {
  font-size: 1.2rem;
}

.policy-lead {
  font-size: 1.02rem;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.policy-card p + p,
.policy-card ul + p,
.policy-card p + ul,
.policy-card ul + ul {
  margin-top: 12px;
}

.policy-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-list li + li {
  margin-top: 6px;
}

.policy-card a {
  color: var(--accent);
  font-weight: 700;
}

.policy-meta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(180px, 230px) minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow: 0 16px 30px rgba(9, 21, 44, 0.06);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

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

.brand-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-logo {
  color: var(--accent);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: lowercase;
}

.city-panel p {
  margin: 0;
  font-weight: 700;
}

.city-panel span {
  color: var(--muted);
  font-size: 0.85rem;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #fbfcfe;
  font: inherit;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.profile-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #99a1b3;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-top: none;
  position: relative;
}

.profile-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #99a1b3;
  border-radius: 50%;
  top: -10px;
  left: 2px;
  background: var(--surface);
}

.phone-pop {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-icon {
  color: #99a1b3;
}

.icon-btn:hover .phone-icon {
  color: #3b4558;
}

.popover {
  position: absolute;
  top: 54px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 190px;
  box-shadow: 0 18px 36px rgba(20, 33, 56, 0.14);
  z-index: 40;
}

.popover[hidden] {
  display: none;
}

.popover-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.popover-phone:hover {
  color: var(--accent-dark);
}

.cart-pill {
  border: none;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), #ff7a55);
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  cursor: pointer;
}

.cart-pill span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-pill small {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 2px 8px;
}

.cart-pill strong {
  font-family: "Rubik", sans-serif;
}

.layout {
  margin-top: 20px;
  display: grid;
  gap: 24px;
  grid-template-columns: 240px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.category-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 16px;
  max-height: calc(100vh - 120px);
  position: sticky;
  top: 18px;
  overflow: auto;
  min-width: 0;
  max-width: 100%;
}

.content {
  min-width: 0;
  max-width: 100%;
}

.category-sidebar h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.category-sidebar nav {
  display: grid;
  gap: 3px;
}

.category-sidebar a {
  color: #3b4558;
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  padding: 10px 12px;
  transition: 0.2s ease;
}

.category-sidebar a:hover {
  background: #f4f6fb;
}

.category-sidebar a.active {
  color: var(--accent);
  background: #ffeef0;
}

.promo-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}

.promo-row::-webkit-scrollbar {
  height: 10px;
}

.promo-row::-webkit-scrollbar-track {
  background: transparent;
}

.promo-row::-webkit-scrollbar-thumb {
  background: rgba(32, 40, 57, 0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.promo-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 79, 95, 0.25);
  flex: 0 0 360px;
  min-height: 160px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  animation: reveal 0.65s ease both;
  scroll-snap-align: start;
}

.promo-card:nth-child(2) {
  animation-delay: 0.08s;
}

.promo-card:nth-child(3) {
  animation-delay: 0.16s;
}

.promo-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.promo-card p {
  margin: 12px 0 0;
  max-width: 280px;
  color: #3b4558;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.promo-card--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.08) 0%, rgba(10, 14, 22, 0.18) 34%, rgba(10, 14, 22, 0.62) 100%);
  backdrop-filter: blur(2.5px);
  pointer-events: none;
}

.promo-card--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0.04) 100%);
  pointer-events: none;
}

.promo-card--has-image h3,
.promo-card--has-image p {
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.promo-card--has-image h3 {
  color: #fff;
  max-width: 300px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.promo-card--has-image p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 292px;
  margin-top: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.promo-card--pink {
  background: var(--pink-soft);
}

.promo-card--blue {
  background: var(--blue-soft);
}

.promo-card--sand {
  background: var(--sand-soft);
}

.section-header {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.menu-grid.no-reveal .food-card {
  animation: none;
}

.menu-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 4px;
}

.order-section {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(20, 33, 56, 0.05);
  scroll-margin-top: 24px;
}

.order-section .section-header {
  margin-top: 0;
}

.order-section h2 {
  margin: 0;
  font-size: 1.55rem;
}

.checkout-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form__wide {
  grid-column: 1 / -1;
}

#delivery-map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #f6f7fb;
}

#delivery-map.checkout-map--fallback {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: #556070;
  font-weight: 700;
}

.address-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.address-grid__street {
  grid-column: 1 / -1;
}

.address-suggest {
  position: fixed;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(20, 33, 56, 0.12);
  overflow: hidden;
  z-index: 50;
  max-height: 240px;
  overflow: auto;
}

.address-suggest__item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.address-suggest__item:hover,
.address-suggest__item:focus-visible {
  background: #fff5f6;
  outline: none;
}

.address-suggest__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #556070;
  font-weight: 600;
}

.address-grid__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.address-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.address-search:hover {
  background: #fff5f6;
}

.address-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #556070;
}

.address-status--ok {
  color: #2f9e6b;
}

.address-status--warn {
  color: #c26b0d;
}

.address-status--bad {
  color: #c81d31;
}

.checkout-form__footer {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-totals {
  display: grid;
  gap: 4px;
}

.checkout-totals p {
  margin: 0;
  font-weight: 700;
}

.checkout-form__footer p {
  margin: 0;
  font-weight: 700;
}

.checkout-submit {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-head {
  grid-template-columns: 1fr auto;
}

.back-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid #ffd2d8;
  border-radius: 999px;
  padding: 10px 14px;
}

.checkout-main {
  margin-top: 20px;
}

.order-section--page {
  max-width: 860px;
  margin: 0 auto;
}

.checkout-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.field-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.order-summary {
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.order-summary__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.order-summary__item p {
  margin: 0;
  font-weight: 600;
}

.order-summary__item span {
  color: var(--muted);
}

.order-summary__empty {
  margin: 0;
  color: var(--muted);
}

.checkout-note {
  margin: 0;
  min-height: 22px;
  color: #2f9e6b;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 35, 0.45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: min(92vw, 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 60px rgba(20, 33, 56, 0.22);
  animation: modalIn 0.22s ease both;
}

.modal-card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.modal-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 35, 0.45);
  z-index: 22;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 400px);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(20, 33, 56, 0.18);
  z-index: 24;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

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

.cart-drawer__header,
.cart-drawer__footer {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__footer {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-close {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  background: var(--surface);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.cart-item__top h4 {
  margin: 0;
  font-size: 0.98rem;
}

.cart-item__sum {
  white-space: nowrap;
  font-weight: 700;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
  overflow: hidden;
}

.qty-btn {
  border: none;
  background: #f3f6fb;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
}

.qty-value {
  width: 36px;
  text-align: center;
  font-weight: 700;
}

.cart-drawer__footer {
  border-bottom: none;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.cart-drawer__footer p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.checkout-btn {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.food-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(20, 33, 56, 0.05);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  animation: reveal 0.45s ease both;
}

.food-card.has-options .food-body {
  padding-bottom: 44px;
}

.food-image {
  height: 150px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.food-image--1 {
  background-image:
    radial-gradient(circle at 10% 20%, #ffd08a 0%, rgba(255, 208, 138, 0) 35%),
    radial-gradient(circle at 80% 25%, #ff8f99 0%, rgba(255, 143, 153, 0) 32%),
    linear-gradient(130deg, #f9f9f9 0%, #e8edf3 100%);
}

.food-image--2 {
  background-image:
    radial-gradient(circle at 20% 20%, #ffcfb7 0%, rgba(255, 207, 183, 0) 30%),
    radial-gradient(circle at 78% 55%, #ffd44e 0%, rgba(255, 212, 78, 0) 35%),
    linear-gradient(130deg, #f6f8fb 0%, #eaedf3 100%);
}

.food-image--3 {
  background-image:
    radial-gradient(circle at 25% 25%, #f0ceff 0%, rgba(240, 206, 255, 0) 34%),
    radial-gradient(circle at 80% 60%, #94dbc6 0%, rgba(148, 219, 198, 0) 32%),
    linear-gradient(130deg, #f5f8fd 0%, #ecf0f6 100%);
}

.food-image--4 {
  background-image:
    radial-gradient(circle at 22% 20%, #ffc080 0%, rgba(255, 192, 128, 0) 30%),
    radial-gradient(circle at 78% 50%, #ff6f76 0%, rgba(255, 111, 118, 0) 35%),
    linear-gradient(130deg, #fff3e6 0%, #fff8f0 100%);
}

.food-image--5 {
  background-image:
    radial-gradient(circle at 20% 25%, #b9d0ff 0%, rgba(185, 208, 255, 0) 35%),
    radial-gradient(circle at 70% 58%, #ffbc84 0%, rgba(255, 188, 132, 0) 34%),
    linear-gradient(130deg, #f7fafe 0%, #eff3f9 100%);
}

.food-image--6 {
  background-image:
    radial-gradient(circle at 20% 15%, #ffe27d 0%, rgba(255, 226, 125, 0) 30%),
    radial-gradient(circle at 80% 55%, #ff9ca2 0%, rgba(255, 156, 162, 0) 35%),
    linear-gradient(130deg, #fff8f1 0%, #fff0f1 100%);
}

.food-card h4 {
  margin: 0;
  font-size: 1.08rem;
}

.food-body {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.food-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.food-weight {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 800;
  color: #3b4558;
}

.food-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.food-price {
  white-space: nowrap;
}

.food-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.food-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  background: var(--surface);
  width: 90px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.food-card.has-options .food-actions {
  position: relative;
}

.food-card.has-options .food-option {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
}

.order-btn {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.order-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.order-btn:active {
  transform: translateY(1px);
}

.order-btn.added {
  background: #2f9e6b;
}

/* Food details modal (scoped so it doesn't affect checkout modal) */
#food-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 19, 28, 0.42);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 80;
}

#food-modal[hidden] {
  display: none;
}

#food-modal .modal-panel {
  width: min(920px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(15, 22, 38, 0.28);
  position: relative;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

#food-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  display: grid;
  place-items: center;
}

#food-modal .modal-close:hover {
  background: #f3f6fb;
}

.food-modal-card {
  animation: none;
  box-shadow: none;
  border: none;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  grid-template-rows: auto;
  gap: 16px;
}

.food-modal-card .food-image {
  height: 280px;
  border-radius: 18px;
}

.food-modal-card.has-options .food-actions {
  position: static;
}

.food-modal-card.has-options .food-option {
  position: static;
  width: 140px;
}

.food-modal-meta {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.food-modal-title {
  margin: 4px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.food-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border: 1px solid var(--line);
  background: #f7f9fd;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}

.food-modal-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.food-modal-desc br {
  content: "";
  display: block;
  margin-top: 6px;
}

.food-modal-card .food-footer {
  margin-top: 6px;
}

/* Promo modal content (rendered inside #food-modal) */
.promo-modal {
  display: grid;
  grid-template-rows: 220px auto;
}

.promo-modal--noimage {
  grid-template-rows: 96px auto;
}

.promo-modal__hero {
  border-bottom: 1px solid var(--line);
  background: #f7f9fd;
}

.promo-modal__body {
  padding: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.promo-modal__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.promo-modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.promo-modal__text br {
  content: "";
  display: block;
  margin-top: 8px;
}

@media (max-width: 780px) {
  #food-modal .modal-panel {
    border-radius: 18px;
  }

  .food-modal-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .food-modal-card .food-image {
    height: 210px;
  }

  .promo-modal {
    grid-template-rows: 180px auto;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 12px;
  }

  .search {
    grid-column: 1 / -1;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
    max-height: none;
  }

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

@media (max-width: 780px) {
  .page-shell {
    padding: 14px 12px 26px;
  }

  .site-footer {
    margin-top: 20px;
  }

  .site-footer__card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer__docs {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-consent {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .privacy-banner {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .privacy-banner__content {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 16px;
  }

  .privacy-banner__button {
    width: 100%;
  }

  .policy-shell {
    width: min(100%, calc(100% - 20px));
  }

  .policy-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .layout {
    gap: 14px;
  }

  .topbar {
    border-radius: 16px;
    padding: 12px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand brand"
      "city city"
      "search search"
      "phone cart";
    align-items: center;
  }

  .brand {
    grid-area: brand;
  }

  .city-panel {
    grid-area: city;
    min-width: 0;
  }

  .search {
    grid-area: search;
  }

  .phone-pop {
    grid-area: phone;
    justify-self: start;
  }

  .cart-pill {
    grid-area: cart;
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
  }

  .brand-logo {
    font-size: 1.65rem;
  }

  .city-panel p {
    font-size: 1.05rem;
  }

  .promo-row {
    padding-bottom: 10px;
  }

  .promo-card {
    flex-basis: min(84vw, 420px);
  }

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

  .food-card {
    padding: 14px;
    border-radius: 18px;
  }

  .food-image {
    height: 130px;
    border-radius: 14px;
  }

  .section-header h1 {
    font-size: 1.6rem;
  }

  .food-option {
    width: 72px;
  }

  .food-card.has-options .food-body {
    padding-bottom: 42px;
  }

  .category-sidebar {
    padding: 12px 12px 10px;
    border-radius: 18px;
  }

  .category-sidebar h2 {
    display: none;
  }

  .category-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
  }

  .category-sidebar nav a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fbfcfe;
    border-radius: 999px;
    padding: 10px 12px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .category-sidebar nav a:hover {
    background: #f4f6fb;
  }

  .category-sidebar nav a.active {
    background: #ffeef0;
    border-color: #ffd2d8;
    color: var(--accent);
  }

  .cart-pill {
    justify-content: center;
  }

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

  .checkout-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-head {
    grid-template-columns: 1fr;
  }

  .back-link {
    text-align: center;
  }

  .order-summary__item {
    flex-direction: column;
  }

  .cart-drawer {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .promo-card {
    flex-basis: min(88vw, 360px);
    min-height: 140px;
  }
}
