:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --soft: #eef2f7;
  --line: #e6e8ef;
  --blue: #009cde;
  --blue-dark: #0b2f86;
  --blue-soft: #eaf7fd;
  --whatsapp: #16a34a;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 10px 24px rgba(16, 24, 40, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1120px;
  --header: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -220px, rgba(0, 156, 222, 0.14), transparent 420px),
    var(--bg);
}

body.locked { overflow: hidden; }

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; }

.noscript {
  padding: 14px;
  color: white;
  text-align: center;
  background: var(--ink);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 232, 239, 0.9);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: var(--header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: 0;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  background: transparent;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.cart-btn {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  padding: 0 13px 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cart-btn b {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: white;
  font-size: 13px;
}

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(0, 156, 222, 0.22);
}

.btn--outline {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.btn--whatsapp {
  color: white;
  background: var(--whatsapp);
}

.btn--full { width: 100%; }

.link-btn,
.back-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  background: white;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.link-btn:hover,
.back-btn:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.back-btn { margin-bottom: 18px; }

.section,
.screen {
  padding: 28px 0;
}

.section-head,
.screen-head {
  margin-bottom: 16px;
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.section-head span,
.screen-head span,
.drawer__head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.screen-head h1 {
  margin: 5px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.screen-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.restaurant-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: cardIn 0.32s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.restaurant-card__top {
  min-height: 132px;
  padding: 18px;
  color: white;
  background: var(--blue-dark);
}

.restaurant-card__badges {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.restaurant-card__badge {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.restaurant-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--ink);
  font-size: 30px;
}

.restaurant-card__body { padding: 18px; }

.restaurant-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.restaurant-card p {
  min-height: 46px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

.restaurant-meta {
  margin: 15px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.restaurant-meta span {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.restaurant-card__button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--blue);
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.restaurant-card__button:hover {
  transform: translateY(-1px);
  background: #008dcc;
}

.footer { padding: 18px 0 42px; }

.footer__inner {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer__inner strong {
  color: var(--ink);
  font-size: 15px;
}

.footer a {
  color: var(--blue-dark);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 32px 18px;
  color: var(--muted);
  background: white;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
}

.skeleton {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s infinite;
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.drawer__overlay,
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.56);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.drawer__panel,
.checkout {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 460px);
  height: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.drawer.is-open,
.modal.is-open { pointer-events: auto; }

.drawer.is-open .drawer__overlay,
.modal.is-open .modal__overlay { opacity: 1; }

.drawer.is-open .drawer__panel,
.modal.is-open .checkout { transform: translateX(0); }

.drawer__head {
  padding: 18px 20px 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--soft);
  font-size: 26px;
}

.cart-store {
  width: fit-content;
  min-height: 40px;
  margin: 16px 20px 0;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-weight: 800;
}

.cart-empty {
  margin: auto 20px;
  border-radius: 22px;
  padding: 26px 18px;
  background: var(--soft);
  text-align: center;
}

.cart-empty strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.03em;
}

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

.cart-items {
  padding: 14px 20px 10px;
  display: grid;
  gap: 12px;
  overflow: auto;
}

.cart-item {
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  background: var(--soft);
}

.cart-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.cart-item__right {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.qty {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
}

.qty button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 99px;
  color: white;
  background: var(--ink);
}

.cart-summary {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 20px 24px;
  display: grid;
  gap: 12px;
}

.cart-summary > div,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.cart-summary span,
.checkout-total span {
  color: var(--muted);
  font-weight: 700;
}

.cart-summary strong { font-size: 18px; }

.cart-total strong,
.checkout-total strong {
  font-size: 30px;
  letter-spacing: -0.055em;
}

.form-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  overflow: auto;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.form-grid label.wide { grid-column: 1 / -1; }

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: white;
}

.form-grid textarea {
  min-height: 100px;
  padding-top: 12px;
  resize: vertical;
}

.checkout-total {
  min-height: 64px;
  margin: auto 20px 14px;
  border-radius: 18px;
  padding: 0 16px;
  background: var(--blue-soft);
}

.checkout > .btn { margin: 0 20px 22px; }

.mobile-cart {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 65;
}

.mobile-cart button {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: white;
  background: var(--ink);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 120;
  width: min(92vw, 380px);
  border-radius: 15px;
  padding: 14px 16px;
  color: white;
  background: var(--ink);
  box-shadow: 0 18px 42px rgba(17, 24, 40, 0.22);
  text-align: center;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal { animation: fadeUp 0.42s ease both; }

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

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 720px) {
  :root { --header: 66px; }

  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .header__inner { min-height: var(--header); }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong { font-size: 18px; }

  .cart-btn {
    min-height: 46px;
    padding: 0 10px 0 12px;
    font-size: 0;
  }

  .cart-btn b { font-size: 13px; }

  .section-head--row,
  .footer__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .restaurant-card p { min-height: auto; }

  .screen { padding-top: 20px; }

  .drawer__panel,
  .checkout { width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
}
