/*
 * Estilos publicos da FireDelivery.
 * A tipografia usa uma pilha comercial local para evitar CDN e manter boa leitura em desktops e celulares.
 */
:root {
  --font-body: "Inter", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Inter", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --page: #fff8ef;
  --page-strong: #fff1df;
  --ink: #191411;
  --muted: #6f5f55;
  --card: #fffdf9;
  --card-strong: #fff0d4;
  --border: #ead9cb;
  --brand-red: #ef3f20;
  --brand-red-dark: #b8321d;
  --brand-yellow: #ffb51b;
  --brand-yellow-soft: #ffd968;
  --brand-fire: #c8321e;
  --fire-accent: #c8321e;
  --fire-dark: #3b201a;
  --brand-orange: #ff5a1f;
  --brand-amber: #d97706;
  --brand-burgundy: #b8321d;
  --appetite: #ff6b24;
  --flame: #e94b20;
  --white-rice: #fffaf2;
  --shadow: 0 22px 60px rgba(72, 34, 18, 0.17);
  --shadow-soft: 0 12px 30px rgba(72, 34, 18, 0.11);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 181, 27, 0.3), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(239, 63, 32, 0.14), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(200, 50, 30, 0.1), transparent 30rem),
    linear-gradient(180deg, #fff8ef 0%, #fffdf9 42%, #f3eee8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(90deg, rgba(239, 90, 36, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(239, 90, 36, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(241, 90, 36, .18);
}

a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: #fff;
  background: var(--brand-red);
}

.ajax-updated {
  animation: ajaxPulse .9s ease;
}

.ajax-inline-error {
  margin-top: 1rem;
  color: var(--brand-red-dark);
  font-weight: 700;
}

@keyframes ajaxPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 188, 31, .34); }
  100% { box-shadow: 0 0 0 18px rgba(255, 188, 31, 0); }
}

.page-wrapper {
  min-height: 60vh;
}

.max-w-7xl {
  max-width: 1180px;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 700; }
.font-medium { font-weight: 600; }
.leading-tight { line-height: 1.08; }
.leading-relaxed { line-height: 1.65; }
.text-muted { color: var(--muted); }
.text-black { color: var(--ink); }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-48 { height: 12rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1 1 0; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.hidden { display: none; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: var(--radius); }
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.bg-card { background: var(--card); }
.bg-card\/30 { background: rgba(255, 253, 247, .62); }
.bg-food-warm { background: var(--brand-yellow); }
.bg-secondary { background: #fff1cc; }
.shadow-warm { box-shadow: 0 14px 28px rgba(255, 200, 61, .32); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 239, .92);
  border-bottom: 1px solid rgba(216, 231, 207, .72);
  backdrop-filter: blur(18px);
}

.site-header .max-w-7xl {
  max-width: 1220px;
}

.site-header .py-4 {
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: 0 14px 32px rgba(214, 58, 31, .22);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-city {
  display: block;
  color: var(--brand-fire);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.widget-title,
.account-card__head h2 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
}

.site-nav {
  display: block;
}

.site-header-row {
  align-items: center;
}

.mobile-menu-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  border: 1px solid rgba(214, 58, 31, .22);
  border-radius: 999px;
  padding: .62rem .9rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--fire-dark), var(--brand-fire));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(59, 26, 20, .18);
}

.mobile-menu-toggle .fa {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  margin: 0;
  line-height: 1;
}

.nav-avatar {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  border: 1px solid rgba(214, 58, 31, .18);
  border-radius: 999px;
  padding: .24rem .72rem .24rem .24rem;
  color: var(--ink);
  background: rgba(255, 253, 247, .84);
  box-shadow: 0 12px 26px rgba(59, 26, 20, .12);
  text-decoration: none;
}

.nav-avatar:hover,
.nav-avatar:focus {
  color: var(--fire-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-avatar__image,
.nav-avatar__fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
}

.nav-avatar__image {
  object-fit: cover;
  border: 2px solid rgba(214, 58, 31, .2);
}

.nav-avatar__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-fire), var(--brand-orange));
  font-weight: 900;
  letter-spacing: .02em;
}

.nav-avatar__fallback[hidden] {
  display: none !important;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  border: 1px solid rgba(214, 58, 31, .18);
  border-radius: 999px;
  padding: .38rem .72rem;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(59, 26, 20, .08);
}

.header-cart:hover,
.header-cart:focus-visible {
  color: var(--brand-red);
  text-decoration: none;
  border-color: rgba(214, 58, 31, .42);
}

.header-cart > .fa {
  color: var(--brand-red);
  font-size: 1.05rem;
}

.header-cart__copy {
  display: grid;
  line-height: 1.05;
}

.header-cart__copy strong {
  font-size: .78rem;
}

.header-cart__copy small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .66rem;
}

.header-cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 .35rem;
  color: #fff;
  background: var(--brand-red);
  font-size: .68rem;
  font-weight: 900;
}

.nav-avatar__text {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.menu {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fire-landing-header {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 212, 71, .22), transparent 22rem),
    rgba(255, 253, 247, .92);
}

.fire-landing-header .max-w-7xl {
  max-width: 1280px;
}

.fire-landing-header__container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  min-height: 72px;
}

.fire-landing-header__brand {
  min-width: 236px;
}

.fire-landing-header__brand:hover,
.fire-landing-header__brand:focus {
  color: var(--fire-dark);
  text-decoration: none;
}

.fire-landing-header__nav {
  justify-self: center;
}

.fire-landing-header__links {
  justify-content: center;
  gap: .2rem;
  flex-wrap: nowrap;
}

.fire-landing-header__nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: .7rem .9rem;
  color: #5c4339;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.fire-landing-header__nav-button:hover,
.fire-landing-header__nav-button:focus {
  color: var(--fire-dark);
  background: rgba(214, 58, 31, .08);
  text-decoration: none;
  transform: translateY(-1px);
}

.fire-landing-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  min-width: max-content;
}

.fire-landing-header__actions .btn-outline {
  color: var(--fire-dark);
  background: rgba(255, 255, 255, .72);
}

.fire-landing-header__actions .btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), #ff7a1a);
  box-shadow: 0 14px 28px rgba(241, 90, 36, .2);
}

.fire-mobile-action {
  display: none;
}

.mobile-theme-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  padding: .75rem .9rem;
  color: var(--ink);
  background: var(--card);
  font-weight: 900;
  cursor: pointer;
}

.mobile-theme-control .fa {
  width: 20px;
  margin: 0;
  color: var(--brand-red);
  text-align: center;
}

.account-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  margin-left: auto;
}

.btn-outline,
.btn-primary,
.btn-hero,
.btn-soft,
.theme-btn,
.restaurant-card .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .68rem 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn-outline {
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  border-color: var(--border);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary,
.btn-hero,
.theme-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--appetite));
  box-shadow: 0 14px 32px rgba(241, 90, 36, .27);
}

.btn-primary:hover,
.btn-hero:hover,
.theme-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(241, 90, 36, .36);
}

.btn-hero {
  min-height: 52px;
  padding: .9rem 1.35rem;
}

.btn-soft {
  color: var(--ink);
  background: #fff8cf;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-soft:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero-shell {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-shell > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(90, 38, 27, .82) 0%, rgba(33, 23, 19, .52) 44%, rgba(33, 23, 19, .18) 100%),
    linear-gradient(180deg, rgba(33, 23, 19, .16), rgba(255, 248, 234, .98) 98%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 78vh;
  margin: 0 auto;
  padding: 7rem 1rem 4.5rem;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr);
  gap: 2rem;
}

.hero-copy {
  color: #fff;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  border-radius: 999px;
  padding: .45rem .8rem;
  color: #fff;
  background: rgba(214, 58, 31, .9);
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
}

.section-eyebrow {
  color: #5a261b;
  background: #fff3b0;
}

.hero-title {
  margin: 1rem 0 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: .88;
  letter-spacing: 0;
  max-width: 780px;
}

.hero-desc {
  max-width: 620px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.15rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-panel {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 253, 247, .9);
  border: 1px solid rgba(255, 255, 255, .64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-mini-card {
  display: grid;
  gap: .8rem;
}

.hero-mini-card strong {
  display: block;
  color: var(--brand-fire);
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.hero-mini-card span {
  color: var(--muted);
  font-weight: 700;
}

.hero-steps {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem;
  border-radius: 16px;
  background: #fff8cf;
  color: var(--ink);
  font-weight: 800;
}

.hero-step b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-fire);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-title {
  margin: .55rem 0 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: .98;
}

.section-subtitle {
  max-width: 620px;
  color: var(--muted);
  margin: .6rem 0 0;
  font-weight: 600;
}

.dish-grid,
.restaurant-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.dish-card,
.restaurant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(239, 217, 175, .9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dish-card:hover,
.restaurant-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 27, 35, .38);
  box-shadow: var(--shadow);
}

.dish-card__media,
.restaurant-card__media {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.dish-card__media img,
.restaurant-card__media img,
.restaurant-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-card__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(33, 23, 19, .78);
  font-size: .8rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.dish-card__body,
.restaurant-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.05rem;
}

.dish-card h3,
.restaurant-card h3,
.restaurant-card h5 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.05;
}

.dish-card p,
.restaurant-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-card__footer,
.restaurant-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: auto;
}

.price {
  color: var(--brand-red);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
}

.restaurant-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  margin-bottom: .75rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  color: #5a261b;
  background: #fff0e7;
  font-weight: 900;
  font-size: .78rem;
}

.restaurant-card__wide {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.restaurant-card__wide .restaurant-card__media {
  height: 100%;
  min-height: 220px;
}

.restaurants-page {
  padding: 3.5rem 0 4.5rem;
}

.restaurants-page .restaurant-card {
  min-height: 100%;
}

.inner-page-hero,
.page-hero {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.inner-page-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 23, 19, .78), rgba(33, 23, 19, .2)),
    linear-gradient(180deg, transparent, rgba(255, 248, 234, .24));
}

.inner-page-hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero--food,
.inner-page-hero--food {
  background-image: url("../images/brand/firedelivery-hero.svg");
}

/* Categorias multissegmento: atalhos grandes e tocaveis para uso mobile. */
.category-showcase {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 181, 27, .08));
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .9rem;
}

.segment-card {
  display: flex;
  min-height: 170px;
  padding: 1.15rem;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  border: 1px solid rgba(239, 63, 32, .14);
  border-radius: 24px;
  background: rgba(255, 253, 249, .9);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.segment-card:hover,
.segment-card:focus-visible {
  color: var(--ink);
  transform: translateY(-6px) rotate(-.5deg);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
}

.segment-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  font-size: 1.45rem;
  border-radius: 19px;
  background: linear-gradient(145deg, var(--brand-orange), var(--brand-red));
}

.segment-card:nth-child(even) .segment-card__icon {
  color: var(--ink);
  background: linear-gradient(145deg, var(--brand-yellow), #ffd96a);
}

.segment-card strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.segment-card > span:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-red-dark);
  font-size: .82rem;
  font-weight: 800;
}

.segment-filter {
  display: flex;
  gap: .7rem;
  margin-bottom: 2rem;
  padding: .35rem 0 .8rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.segment-filter__item {
  display: inline-flex;
  min-width: max-content;
  padding: .75rem 1rem;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.segment-filter__item.is-active,
.segment-filter__item:hover {
  color: #fff;
  border-color: var(--brand-red);
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.summary-row--fee {
  margin-top: .7rem;
  padding-top: .8rem;
  color: var(--brand-red-dark);
  border-top: 1px dashed rgba(239, 63, 32, .35);
}

@media (max-width: 1100px) {
  .segment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .segment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segment-card { min-height: 150px; }
}

.page-hero--orders {
  background-image: url("../images/brand/order-tracking-hero.svg");
}

.profile {
  width: 100%;
}

.profile .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.profile-img img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, .84);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.profile-desc h6 {
  margin: 0 0 .5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: .9;
}

.profile-desc p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.1rem;
  font-weight: 700;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(270px, .34fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.widget,
.menu-widget,
.cart-totals,
.payment-option,
.restaurant-entry {
  border-radius: 22px;
  background: rgba(255, 253, 247, .92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.widget-heading,
.widget-title,
.cart-totals-title {
  color: var(--ink);
}

.widget-heading,
.cart-totals-title {
  padding: 1rem 1rem 0;
}

.widget-body {
  padding: 1rem;
}

.widget-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.order-row {
  background: transparent !important;
}

.title-row {
  color: var(--ink);
  font-weight: 900;
  margin-bottom: .4rem;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line strong {
  color: var(--ink);
  font-weight: 900;
}

.cart-line span {
  color: var(--muted);
  font-size: .9rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff4da;
  color: var(--ink);
  transition: transform .18s ease, background .18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button--danger {
  color: var(--brand-red);
  background: rgba(241, 90, 36, .1);
}

.cart-total {
  border-top: 1px solid var(--border);
}

.cart-line--editable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
}

.cart-line__copy {
  min-width: 0;
}

.cart-line__copy strong,
.cart-line__copy span {
  overflow-wrap: anywhere;
}

.cart-line__subtotal {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.cart-line__actions {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.cart-line__actions form {
  display: inline-flex;
  margin: 0;
}

.cart-quantity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-red);
  background: var(--card);
  cursor: pointer;
}

.cart-line__quantity {
  min-width: 1.5rem;
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.4rem;
  align-items: start;
}

.cart-review-card,
.cart-review-total {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.cart-review-card {
  padding: 1.25rem;
}

.cart-review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
}

.cart-review-card__head .section-title {
  margin-bottom: 0;
}

.cart-review-total {
  position: sticky;
  top: 110px;
  display: grid;
  gap: .85rem;
  padding: 1.25rem;
}

.cart-empty-form {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

@media (max-width: 860px) {
  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-review-total {
    position: static;
  }
}

@media (max-width: 620px) {
  .cart-review-card,
  .cart-review-total {
    border-radius: 18px;
    padding: 1rem;
  }

  .cart-review-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-line--editable {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
  }

  .cart-line__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .cart-empty-form,
  .cart-empty-form .btn {
    width: 100%;
  }
}

.price-wrap {
  color: var(--ink);
}

.price-wrap .value {
  color: var(--brand-red);
  font-family: var(--font-display);
}

.food-item {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.food-item:last-child {
  border-bottom: 0;
}

.food-item-form {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.food-item .row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rest-logo img,
.restaurant-logo img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 18px;
  border: 0;
  box-shadow: var(--shadow-soft);
}

.rest-descr h6 {
  margin: 0 0 .45rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.rest-descr p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.item-cart-info {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: flex-end;
}

.item-cart-info input[type="number"],
.item-cart-info input[type="text"],
.form-control {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fffaf1;
  box-shadow: none;
}

.item-cart-info input[type="submit"] {
  margin-left: 0 !important;
  white-space: normal;
}

.quantity-label {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.empty-state {
  border-radius: 24px;
  padding: 2rem;
  background: rgba(255, 253, 247, .9);
  border: 1px dashed rgba(227, 27, 35, .34);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.empty-state.compact {
  padding: 1rem;
  box-shadow: none;
}

.empty-state h2,
.empty-state strong {
  margin: 0 0 .55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
}

.empty-state.compact strong {
  display: block;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.table {
  color: var(--ink);
}

.table th {
  border-top: 0;
  color: var(--ink);
  background: var(--brand-yellow-soft);
}

.table td,
.table th {
  border-color: var(--border);
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.footer-payments img {
  height: 34px;
  width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 6px 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

footer.bg-card {
  margin-top: 4rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 33, 39, .98), rgba(55, 35, 31, .98)),
    url("../images/brand/rio-footer-pattern.svg") center/cover no-repeat;
  border-top: 0;
}

.site-footer .font-bold,
.site-footer .text-xl {
  color: #ffffff;
}

.footer-logo {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 1.45rem;
  letter-spacing: -.035em;
}

footer .text-muted {
  color: rgba(255, 255, 255, .88) !important;
}

footer .border-t {
  border-color: rgba(255, 255, 255, .2);
}

.restaurant-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .85rem;
}

.mobile-cart-bar {
  display: none;
}

.checkout-anchor {
  display: block;
  scroll-margin-top: 110px;
}

.auth-page {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background:
    linear-gradient(90deg, rgba(33, 23, 19, .78), rgba(33, 23, 19, .22)),
    url("../images/brand/firedelivery-hero.svg") center/cover no-repeat;
}

.auth-page--signup {
  background:
    linear-gradient(100deg, rgba(33, 23, 19, .78), rgba(214, 58, 31, .34)),
    url("../images/brand/firedelivery-hero.svg") center/cover no-repeat;
}

.auth-card {
  width: min(100%, 480px);
  border-radius: 26px;
  padding: 2rem;
  background: rgba(255, 253, 247, .94);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.auth-card h1,
.auth-card h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: .95;
}

.auth-card p {
  color: var(--muted);
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-weight: 800;
}

.auth-switch a,
.alert a {
  color: var(--brand-fire);
  font-weight: 900;
}

.form-stack {
  display: grid;
  gap: .9rem;
  margin-top: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.profile-photo-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(214, 58, 31, .14);
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 253, 247, .96), rgba(255, 238, 226, .78));
}

.profile-photo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(214, 58, 31, .12), 0 14px 30px rgba(59, 26, 20, .12);
  overflow: hidden;
}

.profile-photo-preview .nav-avatar__image,
.profile-photo-preview .nav-avatar__fallback {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 1.6rem;
}

.profile-photo-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-photo-copy p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.form-label {
  display: block;
  margin: 0 0 .4rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-label .fa,
.transparent-payment-form label .fa,
.order-chat__form label .fa,
.online-payment-copy span .fa {
  width: 1.15rem;
  margin-right: .35rem;
  color: var(--brand-fire);
  text-align: center;
}

.form-control-icon-hint {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

.form-control-icon-hint .fa {
  color: var(--brand-orange);
}

.btn .fa {
  margin-right: .35rem;
}

.btn .fa:only-child {
  margin-right: 0;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  width: fit-content;
  margin: .2rem 0 .5rem;
  border: 1px solid rgba(214, 58, 31, .16);
  border-radius: 999px;
  padding: .38rem .65rem;
  color: var(--fire-dark);
  background: #fff8d5;
  font-size: .86rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 212, 71, .2);
}

.rating-badge--empty {
  color: #5b3411;
  background: #fff4da;
}

.rating-badge small {
  color: #7a655b;
  font-size: .78rem;
  font-weight: 800;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: .08rem;
  color: #d98200;
}

.rating-stars .fa {
  margin-right: 0;
}

.alert {
  border: 0;
  border-radius: 18px;
  padding: .95rem 1rem;
  font-weight: 800;
}

.alert-danger {
  color: #7f1117;
  background: #ffe1dd;
}

.alert-success {
  color: #9b2d1b;
  background: #ffe9dd;
}

.btn-primary[disabled],
.theme-btn[disabled] {
  opacity: .58;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.4rem;
  align-items: start;
}

.checkout-main,
.checkout-total,
.summary-card,
.order-card {
  border-radius: 24px;
  background: rgba(255, 253, 247, .94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.checkout-main,
.checkout-total {
  padding: 1.25rem;
}

.checkout-total {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}

.checkout-groups {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.summary-card {
  padding: 1rem;
}

.summary-card--fee-carrier {
  border-color: rgba(214, 58, 31, .32);
  box-shadow: 0 16px 36px rgba(91, 35, 25, .12);
}

.checkout-fee-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  color: var(--fire-dark);
  background: #fff0e6;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.restaurant-payment-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.restaurant-payment-block h4 {
  margin: 0 0 .75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.payment-method-grid {
  display: grid;
  gap: .75rem;
}

.payment-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  align-items: flex-start;
  margin: 0;
  padding: .9rem;
  border: 1px solid rgba(214, 58, 31, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 246, 221, .92));
  color: var(--ink);
  cursor: pointer;
}

.payment-method-card input {
  margin-top: .25rem;
  accent-color: var(--fire-accent);
}

.payment-method-card strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--fire-dark);
}

.payment-method-card small {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.online-payment-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(214, 58, 31, .22);
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, .32), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 247, .99), rgba(255, 242, 232, .98));
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(59, 26, 20, .1);
}

.online-payment-block--warning {
  border-color: rgba(238, 112, 74, .42);
  background: rgba(255, 245, 238, .95);
}

.online-payment-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}

.online-payment-block h4 {
  margin: .1rem 0 0;
  color: var(--fire-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.online-payment-block p {
  margin: 0 0 1rem;
  color: #4f3f36;
  line-height: 1.5;
}

.online-payment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .35rem;
  border-radius: 999px;
  background: #fff1e8;
  border: 1px solid rgba(214, 58, 31, .22);
}

.online-payment-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .78rem 1rem;
  background: transparent;
  color: #1f1714;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.online-payment-tab:hover {
  border-color: rgba(214, 58, 31, .32);
  background: rgba(255, 253, 247, .72);
  color: var(--fire-dark);
}

.online-payment-tab.is-active {
  border-color: rgba(59, 26, 20, .92);
  background: linear-gradient(135deg, #3b1a14, #d63a1f);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(59, 26, 20, .18);
}

.online-payment-panel {
  display: none;
}

.online-payment-panel.is-active {
  display: block;
}

.online-payment-sandbox-note {
  margin-bottom: .85rem;
  padding: .75rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(168, 111, 0, .28);
  background: #fff4c4;
  color: #4b3200;
  font-weight: 800;
  line-height: 1.45;
}

.transparent-payment-form {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(214, 58, 31, .18);
  box-shadow: 0 12px 26px rgba(59, 26, 20, .08);
}

.transparent-payment-form--compact {
  gap: .75rem;
}

.transparent-payment-form label {
  display: grid;
  gap: .35rem;
  margin: 0;
  color: #1f1714;
  font-weight: 800;
}

.transparent-payment-form input,
.transparent-payment-form select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(214, 58, 31, .32);
  background: #fff;
  color: var(--ink);
  padding: .7rem .85rem;
  font-weight: 700;
  outline: none;
}

.online-payment-autofill {
  display: grid;
  gap: .25rem;
  padding: .85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 58, 31, .22);
  background: #fff3ea;
  color: #43271E;
}

.online-payment-autofill strong {
  color: #3b1a14;
  font-size: .98rem;
}

.online-payment-autofill span {
  color: #6d574e;
  font-weight: 700;
  line-height: 1.4;
}

.transparent-payment-form input:focus,
.transparent-payment-form select:focus {
  border-color: var(--fire-accent);
  box-shadow: 0 0 0 4px rgba(214, 58, 31, .12);
}

.transparent-payment-grid {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: .75rem;
}

.online-payment-brick {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(214, 58, 31, .14);
  padding: .75rem;
}

.online-payment-result {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
}

.online-payment-result--success,
.online-payment-result--error {
  display: grid;
  gap: .75rem;
}

.online-payment-result--success {
  border-color: rgba(214, 58, 31, .3);
  background: rgba(255, 237, 225, .96);
}

.online-payment-result--error {
  border-color: rgba(238, 112, 74, .35);
  background: rgba(255, 245, 238, .96);
}

.online-payment-result strong {
  color: var(--fire-dark);
}

.online-payment-result small {
  color: var(--muted);
}

.online-payment-qr {
  width: min(220px, 100%);
  height: auto;
  padding: .75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.online-payment-copy {
  display: grid;
  gap: .5rem;
  margin: 0;
}

.online-payment-copy span {
  color: var(--fire-dark);
  font-weight: 800;
}

.online-payment-copy textarea {
  min-height: 110px;
  width: 100%;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: .75rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  font-size: .88rem;
}

.online-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.online-payment-challenge {
  display: grid;
  gap: .65rem;
}

.online-payment-challenge iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.online-payment-debug {
  border-radius: 14px;
  border: 1px dashed rgba(238, 112, 74, .45);
  padding: .75rem;
  background: rgba(255, 255, 255, .78);
}

.online-payment-debug summary {
  cursor: pointer;
  color: var(--brand-red-dark);
  font-weight: 800;
}

.online-payment-debug pre {
  margin: .75rem 0 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: .78rem;
}

.checkout-notice {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(214, 58, 31, .1);
  border: 1px solid rgba(214, 58, 31, .18);
  color: var(--ink);
}

.checkout-notice strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--fire-dark);
}

.checkout-notice p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.45;
}

.summary-card__head,
.summary-row,
.order-card__head,
.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.summary-card__head {
  margin-bottom: .8rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

.summary-card__head h3,
.order-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1;
}

.summary-row {
  padding: .45rem 0;
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
}

.summary-row--total {
  padding-top: .95rem;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.3rem;
}

.orders-list {
  display: grid;
  gap: 1rem;
}

.order-card {
  padding: 1.2rem;
}

.order-card__head {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.order-card__items {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 18px;
  color: var(--muted);
  background: #fff4da;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.order-meta div {
  padding: .85rem;
  border-radius: 16px;
  background: rgba(255, 248, 234, .9);
}

.order-meta span,
.order-meta strong {
  display: block;
}

.order-meta span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.order-meta strong {
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .45rem .85rem;
  border-radius: 999px;
  color: #5b3411;
  background: var(--brand-yellow-soft);
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill--delivered,
.status-pill--closed,
.status-pill--approved {
  color: #9b2d1b;
  background: #ffe9dd;
}

.status-pill--cancelled,
.status-pill--rejected {
  color: #7f1117;
  background: #ffe1dd;
}

.status-pill--preparing,
.status-pill--on_the_way,
.status-pill--in-process {
  color: #8a3b13;
  background: #fff0d8;
}

.order-cancel {
  color: var(--brand-red);
  border-color: rgba(241, 90, 36, .28);
}

.account-page {
  min-height: 70vh;
  padding: 2rem 0 4rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 212, 71, .28), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(214, 58, 31, .14), transparent 24rem),
    linear-gradient(135deg, #fffdf7 0%, #fff7ef 100%);
}

.account-header {
  background: rgba(255, 253, 247, .94);
}

.account-hero {
  margin-bottom: 1.4rem;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(214, 58, 31, .96), rgba(241, 90, 36, .86)),
    url("../images/brand/rio-footer-pattern.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-hero--compact {
  border-radius: 26px;
}

.account-hero h1 {
  max-width: 850px;
  margin: .85rem 0 .55rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: .9;
  letter-spacing: -.05em;
}

.account-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-weight: 800;
  line-height: 1.7;
}

.account-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.account-sidebar,
.account-card,
.account-stat {
  border: 1px solid var(--border);
  background: rgba(255, 253, 247, .94);
  box-shadow: var(--shadow-soft);
}

.account-sidebar {
  position: sticky;
  top: 110px;
  border-radius: 28px;
  padding: 1rem;
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  border-radius: 22px;
  background: #fff4da;
}

.account-user-card strong,
.account-user-card span {
  display: block;
}

.account-user-card strong {
  color: var(--ink);
}

.account-user-card span {
  color: var(--muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.account-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-fire), var(--brand-orange));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(214, 58, 31, .18);
}

.account-nav {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: .7rem .85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.account-nav__link i {
  color: var(--brand-fire);
}

.account-nav__link:hover,
.account-nav__link--active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-fire), var(--brand-orange));
  text-decoration: none;
}

.account-nav__link:hover i,
.account-nav__link--active i {
  color: #fff;
}

.account-content {
  display: grid;
  gap: 1rem;
}

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

.account-stat,
.account-card {
  border-radius: 26px;
  padding: 1.2rem;
}

.account-stat {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, .34), transparent 8rem),
    rgba(255, 253, 247, .96);
}

.account-stat span,
.account-detail-grid span,
.account-last-order span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-stat strong {
  display: block;
  margin-top: .35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
}

.account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-card__head h2 {
  margin: .45rem 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.account-last-order,
.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
}

.account-last-order {
  justify-content: space-between;
  padding: 1rem;
  border-radius: 20px;
  background: #fff4da;
}

.account-last-order strong,
.account-detail-grid strong {
  display: block;
  color: var(--ink);
}

.account-last-order small {
  color: var(--muted);
  font-weight: 800;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.account-detail-grid div {
  padding: .85rem;
  border-radius: 18px;
  background: #fff4da;
  overflow-wrap: anywhere;
}

.account-items {
  display: grid;
  gap: .35rem;
}

.account-actions form {
  margin: 0;
}

.order-chat {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(214, 58, 31, .12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 247, 239, .92));
}

.order-chat--priority {
  border-color: rgba(214, 58, 31, .28);
  box-shadow: 0 18px 44px rgba(91, 35, 25, .12);
  scroll-margin-top: 7rem;
}

.order-chat--priority .account-card__head {
  margin-bottom: 0;
}

.order-chat__intro {
  margin: -.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-chat__messages {
  min-height: 210px;
  max-height: 430px;
  overflow-y: auto;
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(214, 58, 31, .16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 71, .16), transparent 9rem),
    rgba(255, 255, 255, .82);
  -webkit-overflow-scrolling: touch;
}

.order-chat__message {
  display: flex;
  justify-content: flex-start;
}

.order-chat__message--own {
  justify-content: flex-end;
}

.order-chat__bubble {
  max-width: min(78%, 560px);
  border-radius: 18px 18px 18px 6px;
  padding: .9rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(214, 58, 31, .14);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(59, 26, 20, .08);
}

.order-chat__message--own .order-chat__bubble {
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #b8321d, #d63a1f);
  border-color: transparent;
  color: #ffffff;
}

.order-chat__bubble span {
  display: block;
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.order-chat__message--own .order-chat__bubble span {
  color: rgba(255, 255, 255, .78);
}

.order-chat__bubble p {
  margin: 0;
  color: inherit;
  font-size: .98rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.order-chat__empty,
.order-chat__locked {
  padding: 1rem;
  border-radius: 18px;
  background: #fff4da;
  color: #5b3411;
  font-weight: 900;
  line-height: 1.45;
}

.order-chat__form {
  display: grid;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid rgba(214, 58, 31, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
}

.order-chat__form label {
  display: grid;
  gap: .45rem;
  margin: 0;
  color: var(--fire-dark);
  font-weight: 900;
}

.order-chat__form textarea {
  min-height: 112px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  resize: vertical;
  color: var(--ink);
  background: #fffefb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.order-chat__form textarea:focus,
.review-form textarea:focus {
  outline: none;
  border-color: rgba(214, 58, 31, .55);
  box-shadow: 0 0 0 4px rgba(214, 58, 31, .1);
}

.order-chat--locked .order-chat__form {
  opacity: .58;
}

.order-finalization-card {
  border-color: rgba(214, 58, 31, .2);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 212, 71, .22), transparent 13rem),
    #ffffff;
}

.confirmation-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .6rem .85rem;
  color: var(--fire-dark);
  background: #fff0e6;
  font-weight: 900;
}

.review-form {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
}

.review-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.review-form legend,
.review-comment span {
  display: block;
  margin-bottom: .45rem;
  color: var(--fire-dark);
  font-weight: 900;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: .18rem;
  border-radius: 999px;
  padding: .35rem .55rem;
  background: #fff8d5;
}

.rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-input label {
  margin: 0;
  cursor: pointer;
  color: #b7a67a;
  font-size: 1.65rem;
  line-height: 1;
  transition: color .16s ease, transform .16s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: #d98200;
  transform: translateY(-1px);
}

.review-comment textarea {
  min-height: 112px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  resize: vertical;
  color: var(--ink);
  background: #fffefb;
}

.account-footer {
  padding-top: 1.2rem;
}

.result-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  background:
    linear-gradient(90deg, rgba(33, 23, 19, .76), rgba(33, 23, 19, .2)),
    url("../images/brand/order-tracking-hero.svg") center/cover no-repeat;
}

.result-page--success {
  background:
    linear-gradient(90deg, rgba(155, 45, 27, .76), rgba(33, 23, 19, .18)),
    url("../images/brand/firedelivery-hero.svg") center/cover no-repeat;
}

.result-page--failure {
  background:
    linear-gradient(90deg, rgba(127, 17, 23, .76), rgba(33, 23, 19, .2)),
    url("../images/brand/order-tracking-hero.svg") center/cover no-repeat;
}

.result-card {
  width: min(100%, 680px);
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 253, 247, .94);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.result-card h1 {
  margin: 1rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: .92;
}

.result-card p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:text-xl { font-size: 1.25rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:w-48 { width: 12rem; }
  .md\:text-6xl { font-size: 4rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }

  .hero-panel {
    max-width: 460px;
  }

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

  .restaurant-card__wide {
    grid-template-columns: 1fr;
  }

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

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

  .checkout-total {
    position: static;
  }

  .food-item-form {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .item-cart-info {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header .flex.justify-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    justify-content: flex-start;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero-shell,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding-top: 4.2rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .section-head {
    display: block;
  }

  .dish-grid,
  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .food-item .row,
  .item-cart-info {
    display: block;
  }

  .food-item-form,
  .form-grid,
  .order-meta {
    grid-template-columns: 1fr;
  }

  .food-item-form {
    display: grid;
  }

  .profile-photo-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-photo-preview {
    width: 84px;
    height: 84px;
    border-radius: 24px;
  }

  .rest-logo img,
  .restaurant-logo img {
    width: 100%;
    height: 190px;
  }

  .item-cart-info input {
    width: 100%;
    margin: .55rem 0 0 !important;
  }

  .item-cart-info .btn-primary {
    width: 100%;
    margin-top: .55rem;
  }

  .order-card__head,
  .summary-card__head,
  .summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pill {
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .max-w-7xl {
    max-width: 100%;
  }

  .hero-content,
  .page-hero .max-w-7xl,
  .inner-page-hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .checkout-total {
    position: static;
  }

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

  .account-sidebar {
    position: static;
  }

  .account-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-nav__link {
    justify-content: center;
    text-align: center;
  }

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

  .footer-logo {
    width: min(100%, 220px);
  }
}

@media (min-width: 861px) {
  .site-nav {
    display: block !important;
    width: auto;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .fire-desktop-theme {
    display: none !important;
  }

  .site-header .site-header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .65rem;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    justify-self: end;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
    padding: 0;
  }

  .mobile-menu-toggle .fa {
    margin-right: 0;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .site-header nav,
  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none !important;
    overflow: visible;
  }

  .site-header nav.is-open,
  .site-nav.is-open {
    display: block !important;
  }

  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    overflow: visible;
    border: 1px solid rgba(214, 58, 31, .12);
    border-radius: 22px;
    padding: .75rem;
    background: rgba(255, 253, 247, .96);
    box-shadow: 0 18px 36px rgba(59, 26, 20, .13);
  }

  .menu li {
    width: 100%;
  }

  .menu .btn-outline,
  .menu .btn-primary {
    width: 100%;
    min-height: 44px;
    padding: .72rem .9rem;
    white-space: nowrap;
  }

  .brand {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-avatar {
    justify-self: end;
    min-height: 44px;
    padding: .2rem;
  }

  .nav-avatar__image,
  .nav-avatar__fallback {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .nav-avatar__text {
    display: none;
  }

  .account-header__actions {
    justify-self: end;
    gap: .45rem;
  }

  .brand span {
    min-width: 0;
  }

  .brand-name,
  .brand-city {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .px-4 {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .py-16 {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .site-header .py-4 {
    padding-top: .65rem;
    padding-bottom: .65rem;
  }

  .hero-content {
    padding-top: 3.6rem;
    padding-bottom: 2.5rem;
  }

  .hero-title,
  .page-hero .hero-title,
  .profile-desc h6 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    line-height: .92;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-panel {
    width: 100%;
    max-width: 100%;
  }

  .page-hero,
  .inner-page-hero {
    min-height: 260px;
    align-items: flex-end;
    padding: 2.25rem 0;
  }

  .section-head {
    display: grid;
    gap: 1rem;
  }

  .section-head > a,
  .hero-actions a,
  .result-actions a {
    width: 100%;
  }

  .dish-card__footer,
  .restaurant-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dish-card__footer .btn-primary,
  .restaurant-card__footer .btn-primary {
    width: 100%;
  }

  .restaurant-card__media,
  .dish-card__media {
    height: 190px;
  }

  .menu-layout {
    display: flex;
    flex-direction: column;
  }

  .menu-widget {
    order: 1;
  }

  .widget-cart {
    order: 2;
  }

  .profile .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .profile .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .profile-img img {
    width: 132px;
    height: 132px;
  }

  .profile-desc p {
    font-size: .98rem;
    line-height: 1.5;
  }

  .checkout-main,
  .checkout-total,
  .summary-card,
  .order-card,
  .auth-card,
  .result-card {
    border-radius: 20px;
  }

  .checkout-main,
  .checkout-total,
  .order-card,
  .result-card {
    padding: 1rem;
  }

  .auth-page {
    padding: 1.75rem .9rem;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .auth-card h1,
  .auth-card h2 {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .brand-city {
    font-size: .64rem;
    letter-spacing: .02em;
  }

  .btn-outline,
  .btn-primary,
  .btn-hero,
  .btn-soft,
  .theme-btn,
  .restaurant-card .btn-primary {
    min-height: 44px;
    padding: .72rem .95rem;
  }

  .hero-shell > img {
    object-position: 60% center;
  }

  .hero-shell::after {
    background:
      linear-gradient(180deg, rgba(90, 38, 27, .86) 0%, rgba(33, 23, 19, .62) 54%, rgba(255, 253, 247, .96) 100%);
  }

  .hero-content {
    padding-top: 2.8rem;
  }

  .hero-actions {
    display: grid;
    gap: .7rem;
  }

  .hero-step {
    padding: .72rem;
  }

  .section-title {
    font-size: clamp(2rem, 12vw, 2.65rem);
  }

  .dish-card,
  .restaurant-card,
  .widget,
  .menu-widget {
    border-radius: 18px;
  }

  .dish-card__body,
  .restaurant-card__body,
  .widget-body,
  .widget-heading {
    padding: .9rem;
  }

  .food-item {
    padding: .85rem;
  }

  .food-item-form {
    gap: .8rem;
  }

  .rest-logo img,
  .restaurant-logo img {
    height: 176px;
  }

  .rest-descr h6 {
    font-size: 1.32rem;
  }

  .item-cart-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    justify-items: stretch;
  }

  .item-cart-info .price {
    font-size: 1.42rem;
  }

  .item-cart-info input[type="number"] {
    width: 100%;
  }

  .cart-line {
    align-items: flex-start;
  }

  .summary-card__head,
  .summary-row,
  .order-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .online-payment-block__head {
    flex-direction: column;
  }

  .transparent-payment-grid {
    grid-template-columns: 1fr;
  }

  .online-payment-actions,
  .online-payment-actions .btn {
    width: 100%;
  }

  .online-payment-tab {
    padding: .72rem .7rem;
  }

  .order-meta {
    gap: .65rem;
  }

  .account-grid,
  .account-nav,
  .account-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-card__head,
  .account-last-order {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-actions,
  .account-actions .btn,
  .account-actions form,
  .account-actions button {
    width: 100%;
  }

  .order-meta div {
    padding: .75rem;
  }

  .order-chat__bubble {
    max-width: 92%;
  }

  .order-cancel,
  .checkout-total .btn-primary,
  .checkout-total .btn-outline,
  .empty-state .btn-primary {
    width: 100%;
  }

  .footer-payments {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .px-4 {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .menu .btn-outline,
  .menu .btn-primary {
    min-height: 38px;
    padding: .58rem .72rem;
    font-size: .86rem;
  }

  .hero-title,
  .page-hero .hero-title,
  .profile-desc h6 {
    font-size: clamp(2.12rem, 14vw, 2.75rem);
  }

  .hero-eyebrow,
  .section-eyebrow {
    font-size: .72rem;
    padding: .38rem .62rem;
  }

  .page-hero,
  .inner-page-hero {
    min-height: 230px;
  }

  .restaurant-card__media,
  .dish-card__media {
    height: 172px;
  }

  .profile-img img {
    width: 112px;
    height: 112px;
    border-radius: 18px;
  }

  .price {
    font-size: 1.38rem;
  }

  .empty-state {
    padding: 1.2rem;
  }

  .result-card h1 {
    font-size: clamp(2rem, 13vw, 2.8rem);
  }

  .online-payment-tabs {
    border-radius: 18px;
  }

  .online-payment-tab {
    border-radius: 14px;
    font-size: .92rem;
  }

  .transparent-payment-form,
  .online-payment-brick,
  .online-payment-result {
    padding: .85rem;
  }

  .online-payment-challenge iframe {
    min-height: 430px;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 1.08rem;
  }

  .brand-city {
    font-size: .58rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero-title,
  .page-hero .hero-title,
  .profile-desc h6 {
    font-size: 2rem;
  }

  .hero-desc,
  .profile-desc p {
    font-size: .92rem;
  }

  .dish-card h3,
  .restaurant-card h3,
  .restaurant-card h5 {
    font-size: 1.18rem;
  }
}

@media (max-width: 860px) {
  .fire-landing-header .py-4 {
    padding-top: .62rem;
    padding-bottom: .62rem;
  }

  .fire-landing-header__container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    min-height: 60px;
  }

  .fire-landing-header__brand {
    min-width: 0;
  }

  .fire-landing-header__brand .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .fire-landing-header__actions {
    justify-self: end;
    min-width: 0;
  }

  .fire-landing-header__actions .fire-desktop-action {
    display: none !important;
  }

  .fire-landing-header__actions .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 999px;
    padding: 0;
  }

  .fire-landing-header__actions .mobile-menu-toggle .fa {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin: 0;
    font-size: 20px;
    line-height: 1;
  }

  .fire-landing-header__actions .nav-avatar {
    min-height: 44px;
    padding: .2rem;
  }

  .fire-landing-header__nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: .2rem;
  }

  .fire-landing-header__links {
    align-items: stretch;
    gap: .52rem;
    border: 1px solid rgba(214, 58, 31, .13);
    border-radius: 24px;
    padding: .75rem;
    background:
      radial-gradient(circle at top right, rgba(255, 212, 71, .24), transparent 10rem),
      rgba(255, 253, 247, .98);
    box-shadow: 0 18px 38px rgba(59, 26, 20, .14);
  }

  .fire-landing-header__links li,
  .fire-mobile-action {
    width: 100%;
  }

  .fire-mobile-action {
    display: block;
  }

  .fire-mobile-theme {
    order: 20;
  }

  .fire-landing-header__nav-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding: .8rem .9rem;
    color: var(--fire-dark);
    background: rgba(214, 58, 31, .06);
  }

  .fire-mobile-action .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .fire-landing-header__brand .brand-city {
    display: none;
  }

  .fire-landing-header__actions {
    gap: .4rem;
  }
}

@media (max-width: 360px) {
  .fire-landing-header__brand > span {
    display: none;
  }

  .fire-landing-header__brand .brand-logo {
    width: 44px;
    height: 44px;
  }
}

/*
 * Direcao visual Clear FireDelivery.
 * Estes ajustes finais reduzem carga visual e concentram cor em acoes,
 * estados e pontos de destaque sem alterar os componentes legados.
 */
:root {
  --page: #fafafa;
  --page-strong: #fff4ef;
  --ink: #211b19;
  --muted: #6b6461;
  --card: #ffffff;
  --card-strong: #fff6f2;
  --border: #e9e5e3;
  --brand-red: #ed4328;
  --brand-red-dark: #bd301e;
  --brand-yellow: #ffb447;
  --brand-yellow-soft: #fff0c7;
  --brand-fire: #ed4328;
  --fire-accent: #ed4328;
  --fire-dark: #352521;
  --brand-orange: #ff7040;
  --brand-amber: #d87716;
  --brand-burgundy: #aa2e20;
  --appetite: #ff6235;
  --flame: #f0522f;
  --white-rice: #ffffff;
  --shadow: 0 18px 44px rgba(43, 31, 27, .10);
  --shadow-soft: 0 8px 24px rgba(43, 31, 27, .07);
}

body {
  color: var(--ink);
  background: #fafafa;
}

body::before {
  opacity: .08;
  background-image: radial-gradient(circle, rgba(237, 67, 40, .26) 1px, transparent 1px);
  background-size: 28px 28px;
}

.site-header,
.fire-landing-header,
.account-header {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #ece8e6;
  box-shadow: 0 4px 18px rgba(43, 31, 27, .05);
}

.fire-landing-header .max-w-7xl {
  max-width: 1440px;
}

.fire-landing-header__container {
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  gap: .85rem;
  min-height: 62px;
}

.fire-landing-header__brand {
  min-width: 190px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: none;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
  height: 46px;
  border: 1px solid #e8e4e2;
  border-radius: 14px;
  background: #f7f7f7;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-search:focus-within {
  border-color: rgba(237, 67, 40, .52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(237, 67, 40, .09);
}

.header-search > .fa {
  margin-left: 1rem;
  color: var(--brand-red);
  font-size: 1.05rem;
}

.header-search input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 .8rem;
  color: var(--ink);
  background: transparent;
}

.header-search button {
  height: 34px;
  margin-right: .35rem;
  border: 0;
  border-radius: 10px;
  padding: 0 .8rem;
  color: #fff;
  background: var(--brand-red);
  font-weight: 800;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fire-landing-header__nav-button {
  padding: .65rem .62rem;
  color: #4e4845;
  font-size: .88rem;
}

.hero-shell {
  min-height: 610px;
  background: #fff7f3;
}

.hero-shell::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 49%, rgba(255, 246, 241, .62) 100%);
}

.hero-shell > img {
  opacity: .7;
}

.hero-content {
  min-height: 610px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-copy,
.hero-title {
  color: var(--ink);
}

.hero-title {
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  line-height: .94;
}

.hero-desc {
  color: #59514d;
}

.hero-panel {
  border: 1px solid #ebe6e3;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.hero-step {
  background: #fff5f0;
}

.category-showcase,
.promotion-showcase,
.restaurants-section,
.account-page {
  background: #ffffff;
}

.dish-card,
.restaurant-card,
.account-sidebar,
.account-card,
.account-stat {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.dish-card:hover,
.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(43, 31, 27, .10);
}

.dish-card p,
.restaurant-card p,
.section-subtitle,
.text-muted {
  color: var(--muted) !important;
}

.segment-card {
  min-height: 142px;
  border-color: var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.segment-card:hover,
.segment-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.segment-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #fff0eb;
  color: var(--brand-red);
}

.segment-card:nth-child(even) .segment-card__icon {
  color: #c56810;
  background: #fff4dc;
}

.inner-page-hero,
.page-hero {
  min-height: 190px;
  align-items: center;
  padding: 1.1rem 0;
}

.inner-page-hero--food {
  min-height: 230px;
}

.page-hero--compact {
  min-height: 160px;
}

.page-hero .hero-title {
  margin: .65rem 0 .45rem;
  color: #ffffff;
  font-size: clamp(2.15rem, 4.4vw, 3.2rem);
  line-height: 1;
}

.page-hero .hero-desc {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .94);
}

.inner-page-hero::before,
.page-hero::before {
  background: linear-gradient(90deg, rgba(58, 34, 27, .88), rgba(237, 67, 40, .58));
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-weight: 700;
}

.catalog-sort select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 2.1rem 0 .85rem;
  color: var(--ink);
  background: #fff;
}

.subcategory-filter {
  display: flex;
  gap: .6rem;
  margin: -.7rem 0 2rem;
  padding: .4rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.subcategory-filter--catalog {
  margin: 0 0 1rem;
}

.subcategory-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: max-content;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .85rem;
  color: #514a46;
  background: #fff;
  font-weight: 800;
}

.subcategory-chip small {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: #f2f1f0;
}

.subcategory-chip:hover,
.subcategory-chip.is-active {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

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

.restaurant-card__orders {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: -.35rem 0 .9rem;
  color: #8b4a35;
  font-size: .82rem;
  font-weight: 800;
}

.dish-card__discount {
  position: absolute;
  top: .8rem;
  right: .8rem;
  border-radius: 999px;
  padding: .45rem .7rem;
  color: #fff;
  background: var(--brand-red);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(189, 48, 30, .22);
}

.promotion-showcase {
  border-top: 1px solid #f0ecea;
  border-bottom: 1px solid #f0ecea;
}

.promotion-rail {
  display: grid;
  grid-auto-columns: minmax(250px, 290px);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: .25rem .2rem 1rem;
  scroll-snap-type: x proximity;
}

.promotion-card {
  scroll-snap-align: start;
}

.price-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.price-stack del {
  color: #948d89;
  font-size: .82rem;
}

.price-stack strong {
  color: var(--brand-red);
  font-size: 1.25rem;
}

.search-results {
  min-height: 45vh;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.search-result-section + .search-result-section {
  margin-top: 3.5rem;
}

.account-hero {
  border: 0;
  border-radius: 24px;
  background: linear-gradient(120deg, #ed4328, #ff7040);
  box-shadow: var(--shadow-soft);
}

.account-hero h1,
.account-hero p {
  color: #fff;
}

.account-hero p {
  opacity: .96;
}

.account-user-card,
.account-last-order,
.account-detail-grid div {
  background: #fff5f1;
}

.account-avatar {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

/* Consentimento Web Push fica visível e compreensível dentro da conta. */
.account-notification-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: var(--shadow-soft);
}

.account-notification-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

.account-notification-card__actions [data-pwa-status] {
  flex: 1 1 240px;
  font-size: .9rem;
}

.account-avatar .nav-avatar__image,
.account-avatar .nav-avatar__fallback {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 16px;
}

.form-help {
  display: block;
  margin-top: .45rem;
  color: var(--muted);
}

.profile-map-link {
  margin-top: .7rem;
}

.order-tracking-card {
  overflow: hidden;
}

.order-tracking-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.order-tracking-card__head h2 {
  margin: .45rem 0 .35rem;
  color: var(--ink);
}

.order-tracking-card__head p {
  margin: 0;
  color: var(--muted);
}

.order-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: max-content;
  border-radius: 999px;
  padding: .55rem .75rem;
  color: #8f3422;
  background: #fff0eb;
  font-size: .76rem;
  font-weight: 900;
}

.order-live-badge .fa {
  color: var(--brand-red);
  font-size: .55rem;
  animation: orderLivePulse 1.7s ease-in-out infinite;
}

@keyframes orderLivePulse {
  50% { opacity: .35; transform: scale(.75); }
}

.order-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-timeline::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 999px;
  background: #e8e4e2;
}

.order-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .55rem;
  color: #938b87;
  text-align: center;
  font-size: .8rem;
}

.order-timeline li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #8a827e;
  background: #e8e4e2;
  box-shadow: 0 0 0 1px #e8e4e2;
}

.order-timeline li.is-complete,
.order-timeline li.is-current {
  color: var(--ink);
}

.order-timeline li.is-complete > span,
.order-timeline li.is-current > span {
  color: #fff;
  background: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red);
}

.order-timeline li.is-current > span {
  animation: timelineCurrent 1.8s ease-in-out infinite;
}

@keyframes timelineCurrent {
  50% { box-shadow: 0 0 0 7px rgba(237, 67, 40, .13); }
}

.order-tracking-card.is-cancelled .order-live-badge,
.order-tracking-card__cancelled {
  color: #8e1f1f;
  background: #fff0f0;
}

.order-tracking-card__cancelled {
  margin: 1rem 0 0;
  border-radius: 12px;
  padding: .75rem;
  font-weight: 800;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .fire-landing-header__brand .brand-city,
  .nav-avatar__text {
    display: none;
  }

  .fire-landing-header__brand {
    min-width: auto;
  }

  .fire-landing-header__nav-button {
    padding-left: .45rem;
    padding-right: .45rem;
    font-size: .8rem;
  }
}

@media (max-width: 860px) {
  .site-header .fire-landing-header__container {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .fire-landing-header__brand,
  .hero-copy,
  .hero-panel,
  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .fire-landing-header__nav {
    grid-row: 3;
  }

  .hero-shell,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .hero-shell > img {
    object-position: 64% center;
  }

  .catalog-sort {
    width: 100%;
    justify-content: space-between;
  }

  .order-tracking-card__head {
    display: grid;
  }

  .order-live-badge {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .header-search button {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
  }

  .inner-page-hero,
  .page-hero {
    min-height: 170px;
    padding: .9rem 0;
  }

  .inner-page-hero--food {
    min-height: 215px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3rem);
    overflow-wrap: break-word;
  }

  .hero-desc {
    max-width: 100%;
  }

  .section-head {
    align-items: stretch;
  }

  .order-timeline {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .order-timeline::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .order-timeline li {
    grid-template-columns: 44px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
}

/* A vitrine usa cartões compactos e mantém o carrinho acessível sem ocupar o fim da página. */
.menu-layout {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  align-items: start;
}

.menu-widget {
  min-width: 0;
  order: 1;
}

.widget-cart {
  position: sticky;
  top: 148px;
  order: 2;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
}

.storefront-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.storefront-product-grid .food-item {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.storefront-product-grid .food-item-form {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  padding: 0;
}

.storefront-product-grid .rest-logo,
.storefront-product-grid .rest-logo img {
  width: 100%;
  max-width: none;
}

.storefront-product-grid .rest-logo img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.storefront-product-grid .rest-descr,
.storefront-product-grid .item-cart-info {
  padding: .85rem;
}

.storefront-product-grid .rest-descr {
  min-height: 110px;
}

.storefront-product-grid .item-cart-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: .55rem;
  align-self: end;
}

.storefront-product-grid .item-cart-info .price-stack,
.storefront-product-grid .item-cart-info .text-muted {
  grid-column: 1 / -1;
}

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

  .widget-cart {
    display: none;
  }
}

@media (max-width: 620px) {
  .storefront-product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100vw - 3.8rem) / 3);
    grid-template-columns: none;
    gap: .65rem;
    margin-inline: -1rem;
    padding: .2rem 1rem 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
  }

  .storefront-product-grid .food-item {
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .storefront-product-grid .rest-logo img {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .storefront-product-grid .rest-descr,
  .storefront-product-grid .item-cart-info {
    padding: .55rem;
  }

  .storefront-product-grid .rest-descr {
    min-height: 78px;
  }

  .storefront-product-grid .rest-descr h6 {
    display: -webkit-box;
    margin: 0 0 .25rem;
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .storefront-product-grid .rest-descr p,
  .storefront-product-grid .quantity-label,
  .storefront-product-grid .text-muted,
  .storefront-product-share {
    display: none;
  }

  .storefront-product-grid .item-cart-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .storefront-product-grid .item-cart-info input {
    width: 100%;
  }

  .storefront-product-grid .item-cart-info .btn-primary {
    width: 100%;
    min-height: 34px;
    padding: .35rem;
    font-size: .7rem;
  }

  .mobile-cart-bar {
    right: .75rem;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: .75rem;
    width: auto;
    border-radius: 18px;
  }
}

/* Portal temporário e isolado usado pelo entregador a partir do WhatsApp. */
.courier-delivery-page {
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 181, 27, .2), transparent 30rem),
    radial-gradient(circle at 88% 90%, rgba(255, 90, 31, .15), transparent 28rem),
    var(--page);
}

.courier-delivery-shell {
  width: min(680px, 100%);
  margin: 0 auto;
}

.courier-delivery-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.courier-delivery-brand img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.courier-delivery-brand span,
.courier-delivery-success span {
  display: grid;
}

.courier-delivery-brand strong {
  font-size: 1.1rem;
}

.courier-delivery-brand small {
  color: var(--muted);
  font-weight: 700;
}

.courier-delivery-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--card);
  box-shadow: var(--shadow);
}

.courier-delivery-card h1 {
  margin: .35rem 0 1.25rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 6vw, 2.5rem);
}

.courier-delivery-card--empty {
  text-align: center;
}

.courier-delivery-card--empty > .fa {
  color: var(--brand-red);
  font-size: 3rem;
}

.courier-delivery-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.courier-delivery-summary > div {
  display: grid;
  gap: .25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .9rem;
  background: var(--page-strong);
}

.courier-delivery-summary span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.courier-route-button {
  width: 100%;
  margin-top: 1rem;
}

.courier-pin-form {
  display: grid;
  gap: .75rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.courier-pin-form label {
  color: var(--ink);
  font-weight: 900;
}

.courier-pin-form input {
  width: 100%;
  min-height: 62px;
  border: 2px solid rgba(198, 49, 29, .3);
  border-radius: 16px;
  color: var(--ink);
  background: var(--page-strong);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .3em;
  text-align: center;
}

.courier-pin-form small {
  color: var(--muted);
}

.courier-pin-form .btn {
  min-height: 52px;
}

.courier-delivery-success {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.2rem;
  border: 1px solid rgba(34, 148, 91, .25);
  border-radius: 16px;
  padding: 1rem;
  color: #155c3b;
  background: #eefbf4;
}

.courier-delivery-success .fa {
  font-size: 1.7rem;
}

@media (max-width: 520px) {
  .courier-delivery-summary {
    grid-template-columns: 1fr;
  }
}

/* Login social: os provedores complementam, mas não substituem, a senha local. */
.social-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}

.social-auth-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .8rem 1rem;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(58, 36, 29, .07);
  font-weight: 800;
  text-decoration: none;
}

.social-auth-button:hover,
.social-auth-button:focus-visible {
  border-color: var(--brand-orange);
  color: var(--ink);
  transform: translateY(-1px);
  text-decoration: none;
}

.social-auth-button--google i {
  color: #d93025;
}

.social-auth-button--facebook i {
  color: #1877f2;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--border);
  content: "";
}

/* A instalação e o Web Push só aparecem quando o navegador oferece suporte. */
.footer-app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

/* Links legais permanecem legíveis no rodapé escuro e no toque móvel. */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  margin-top: .65rem;
}

.footer-legal-links a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-app-actions [data-pwa-status] {
  font-size: .82rem;
}

.footer-app-actions [data-pwa-status].is-error {
  color: #a52e21;
}

[data-push-toggle].is-active {
  border-color: var(--brand-orange);
  color: #fff;
  background: var(--brand-red);
}

/* Vitrines usam apenas cores e composições aprovadas pela FireDelivery. */
.storefront-page {
  --brand-red: var(--store-primary);
  --brand-orange: var(--store-accent);
  --surface: var(--store-surface);
  --ink: var(--store-ink);
}

.storefront-page .inner-page-hero--food {
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, color-mix(in srgb, var(--store-accent) 50%, transparent), transparent 30%),
    linear-gradient(125deg, var(--store-primary), color-mix(in srgb, var(--store-primary) 66%, #1f1b1d));
}

.storefront-page .inner-page-hero--food .hero-eyebrow,
.storefront-page .inner-page-hero--food .restaurant-address,
.storefront-page .inner-page-hero--food .storefront-tagline,
.storefront-page .inner-page-hero--food .storefront-welcome,
.storefront-page .inner-page-hero--food .restaurant-rating {
  color: #fff;
}

.storefront-page .inner-page-hero--food .restaurant-logo {
  border: 4px solid rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(35, 18, 14, .22);
}

.storefront-page .profile-img figure a {
  display: inline-block;
  border-radius: inherit;
}

.storefront-page .profile-img figure a:focus-visible {
  outline: 4px solid var(--store-accent);
  outline-offset: 5px;
}

.storefront-hero--compact .inner-page-hero--food {
  padding-block: 2.5rem;
}

.storefront-hero--spotlight .inner-page-hero--food {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.storefront-hero--catalog .inner-page-hero--food {
  padding-block: 2rem;
}

.storefront-hero--catalog .storefront-welcome {
  display: none;
}

.storefront-product-share {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--store-primary) 25%, transparent);
  border-radius: 50%;
  color: var(--store-primary);
  background: var(--store-surface);
}

html[data-theme="dark"] .social-auth-button {
  border-color: var(--border);
  color: var(--ink);
  background: var(--card-strong);
}

@media (max-width: 620px) {
  .social-auth-grid {
    grid-template-columns: 1fr;
  }
}

.account-user-card .account-avatar .nav-avatar__fallback {
  display: inline-flex;
  color: #ffffff;
  font-size: .9rem;
  font-weight: 900;
}

/*
 * Tema global: superfícies neutras no claro e grafite no escuro. As cores de
 * fogo ficam restritas a chamadas, estados e elementos interativos.
 */
.theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(31, 35, 43, .07);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, background .18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--brand-red);
  color: var(--brand-red);
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle .fa {
  margin: 0;
  font-size: 1rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #141518;
  --page-strong: #1b1d22;
  --ink: #f5f6f8;
  --muted: #b3b6bd;
  --card: #1d1f24;
  --card-strong: #262930;
  --border: #363941;
  --white-rice: #1d1f24;
  --fire-dark: #f5f6f8;
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] body {
  color: var(--ink);
  background: #141518;
}

html[data-theme="dark"] body::before {
  opacity: .12;
  background-image: radial-gradient(circle, rgba(255, 112, 64, .36) 1px, transparent 1px);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .fire-landing-header,
html[data-theme="dark"] .account-header {
  border-bottom-color: #30333a;
  background: rgba(24, 26, 31, .96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .nav-avatar,
html[data-theme="dark"] .fire-landing-header__nav-button {
  color: var(--ink);
}

html[data-theme="dark"] .brand-city,
html[data-theme="dark"] .nav-avatar__text {
  color: var(--muted);
}

html[data-theme="dark"] .header-search {
  border-color: #363941;
  background: #24272d;
}

html[data-theme="dark"] .header-search:focus-within {
  border-color: rgba(255, 112, 64, .72);
  background: #292c33;
  box-shadow: 0 0 0 4px rgba(255, 112, 64, .12);
}

html[data-theme="dark"] .header-search input,
html[data-theme="dark"] .header-search input::placeholder {
  color: var(--ink);
}

html[data-theme="dark"] .fire-landing-header__links {
  border-color: #343740;
  background: #1d1f24;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .fire-landing-header__nav-button:hover,
html[data-theme="dark"] .fire-landing-header__nav-button:focus-visible {
  color: #ffffff;
  background: var(--brand-red);
}

html[data-theme="dark"] .hero-shell {
  background: #191b20;
}

html[data-theme="dark"] .hero-shell::after {
  background: linear-gradient(90deg, rgba(20, 21, 24, .98) 0%, rgba(20, 21, 24, .9) 52%, rgba(20, 21, 24, .64) 100%);
}

html[data-theme="dark"] .hero-shell > img {
  opacity: .34;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .hero-mini-card {
  border-color: var(--border);
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero-mini-card strong,
html[data-theme="dark"] .hero-step span {
  color: var(--ink);
}

html[data-theme="dark"] .hero-mini-card > div > span {
  color: var(--muted);
}

html[data-theme="dark"] .hero-step {
  color: var(--ink);
  background: var(--card-strong);
}

html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-desc,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .account-card h1,
html[data-theme="dark"] .account-card h2,
html[data-theme="dark"] .account-card h3,
html[data-theme="dark"] .dish-card h3,
html[data-theme="dark"] .restaurant-card h3,
html[data-theme="dark"] .result-card h1,
html[data-theme="dark"] .auth-card h1 {
  color: var(--ink);
}

html[data-theme="dark"] .category-section,
html[data-theme="dark"] .category-showcase,
html[data-theme="dark"] .popular-section,
html[data-theme="dark"] .featured-section,
html[data-theme="dark"] .restaurants-section,
html[data-theme="dark"] .promotion-showcase,
html[data-theme="dark"] .search-results,
html[data-theme="dark"] .account-page,
html[data-theme="dark"] .auth-page,
html[data-theme="dark"] .result-page {
  border-color: var(--border);
  background: transparent;
}

html[data-theme="dark"] .btn-soft,
html[data-theme="dark"] .btn-outline {
  border-color: #444750;
  color: var(--ink);
  background: #282b31;
}

html[data-theme="dark"] .btn-soft:hover,
html[data-theme="dark"] .btn-outline:hover {
  border-color: var(--brand-red);
  color: #ffffff;
  background: var(--brand-red);
}

html[data-theme="dark"] .dish-card,
html[data-theme="dark"] .restaurant-card,
html[data-theme="dark"] .segment-card,
html[data-theme="dark"] .account-sidebar,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .account-stat,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .checkout-summary,
html[data-theme="dark"] .cart-summary,
html[data-theme="dark"] .payment-panel,
html[data-theme="dark"] .order-tracking-card {
  border-color: var(--border);
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .account-user-card,
html[data-theme="dark"] .account-last-order,
html[data-theme="dark"] .account-detail-grid div,
html[data-theme="dark"] .subcategory-chip,
html[data-theme="dark"] .catalog-sort select {
  border-color: var(--border);
  color: var(--ink);
  background: var(--card-strong);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: var(--border);
  color: var(--ink);
  background-color: #24272d;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .dish-card p,
html[data-theme="dark"] .restaurant-card p,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-help {
  color: var(--muted) !important;
}

html[data-theme="dark"] .order-timeline li > span,
html[data-theme="dark"] .order-timeline::before {
  border-color: var(--card);
  background: #3a3d45;
}

html[data-theme="dark"] .site-footer {
  border-top-color: #30333a;
  color: var(--muted);
  background: #181a1f;
}

@media (max-width: 860px) {
  html[data-theme="dark"] .fire-landing-header__nav-button {
    background: #262930;
  }
}

html[data-theme="dark"] .header-cart {
  border-color: #363941;
  color: var(--ink);
  background: #24272d;
}

/* O carrinho permanece acessível sem ocupar o menu inteiro em telas pequenas. */
@media (max-width: 860px) {
  .header-cart {
    width: 44px;
    min-width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }

  .header-cart__copy {
    display: none;
  }

  .header-cart__count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    border: 2px solid var(--card);
    padding: 0 .25rem;
    font-size: .58rem;
  }
}

@media (max-width: 620px) {
  .mobile-cart-bar {
    position: fixed;
    z-index: 1040;
    right: .85rem;
    bottom: .85rem;
    left: .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 58px;
    border-radius: 18px;
    padding: .7rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 18px 42px rgba(37, 39, 45, .28);
    text-decoration: none;
  }

  .mobile-cart-bar:hover,
  .mobile-cart-bar:focus-visible {
    color: #fff;
    text-decoration: none;
  }

  .mobile-cart-bar span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
  }

  /*
   * As vitrines da página inicial usam navegação horizontal no celular.
   * O recuo lateral mantém o primeiro cartão alinhado ao conteúdo da seção.
   */
  .mobile-swipe-rail {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78vw, 280px);
    gap: 1rem;
    margin-inline: -1rem;
    padding: .35rem 1rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .mobile-swipe-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-swipe-rail > * {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .segment-grid.mobile-swipe-rail {
    grid-auto-columns: minmax(148px, 43vw);
  }

  .segment-grid.mobile-swipe-rail .segment-card {
    min-height: 150px;
  }

  .promotion-rail.mobile-swipe-rail {
    grid-auto-columns: minmax(78vw, 280px);
  }
}

/*
 * Revisão responsiva 2026: esta camada final substitui dimensões antigas sem
 * usar zoom, preservando leitura, toque e acessibilidade em qualquer viewport.
 */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.fire-landing-header .max-w-7xl {
  max-width: 1480px;
}

.fire-landing-header__container {
  grid-template-columns: minmax(160px, auto) minmax(230px, 390px) minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 56px;
  gap: .65rem;
}

.fire-landing-header__brand {
  min-width: 0;
}

.fire-landing-header .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.fire-landing-header .brand-name {
  font-size: 1.14rem;
}

.fire-landing-header .brand-city {
  font-size: .64rem;
}

.fire-landing-header__links {
  gap: .1rem;
}

.fire-landing-header__nav-button {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: .48rem .52rem;
  font-size: .76rem;
  white-space: nowrap;
}

.fire-landing-header__nav-button .fa {
  color: var(--brand-red);
  font-size: .78rem;
}

.fire-landing-header__actions {
  min-width: 0;
  gap: .42rem;
}

.fire-landing-header__actions .btn {
  min-height: 40px;
  padding-inline: .8rem;
  font-size: .78rem;
}

.header-search {
  min-width: 0;
  min-height: 44px;
}

.header-search button {
  min-height: 36px;
  padding-inline: .85rem;
}

.mobile-notification-trigger,
.pwa-bottom-nav {
  display: none;
}

.notification-presence-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--brand-orange);
}

.hero-shell,
.hero-content {
  min-height: 390px;
}

.hero-content {
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .55fr);
  padding-block: 2.2rem;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.8vw, 4.35rem);
  line-height: .96;
}

.hero-desc {
  max-width: 600px;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
}

.hero-actions {
  margin-top: 1.35rem;
}

.category-showcase.py-16,
.promotion-showcase.py-16,
#produtos.py-16,
.restaurants-section.py-16 {
  padding-block: clamp(2rem, 4vw, 3.4rem);
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.7vw, 3.15rem);
}

.segment-card {
  overflow: hidden;
  min-height: 188px;
  padding: 0 0 1rem;
}

.segment-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--page-strong);
}

.segment-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.segment-card:hover .segment-card__image img {
  transform: scale(1.045);
}

.segment-card strong,
.segment-card > span:last-child {
  margin-inline: 1rem;
}

.segment-card strong {
  margin-top: .85rem;
}

.infinite-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 1rem;
  max-width: 100%;
  padding: .4rem .2rem 1.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(198, 49, 29, .38) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.infinite-product-rail > .dish-card {
  min-width: 0;
  scroll-snap-align: start;
}

.catalog-feed-sentinel {
  width: 1px;
  min-width: 1px;
}

.catalog-feed-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: .8rem;
}

.catalog-feed-status {
  color: var(--muted);
  font-size: .82rem;
}

.pwa-bottom-nav {
  position: fixed;
  z-index: 1050;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 64px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  padding: .38rem max(.35rem, env(safe-area-inset-right)) calc(.38rem + env(safe-area-inset-bottom)) max(.35rem, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 -10px 28px rgba(31, 35, 43, .1);
  backdrop-filter: blur(16px);
}

.pwa-bottom-nav a,
.pwa-bottom-nav button {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .18rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .65rem;
  text-align: center;
  text-decoration: none;
}

.pwa-bottom-nav .fa {
  color: var(--ink);
  font-size: 1.12rem;
}

.pwa-cart-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.pwa-cart-icon b {
  position: absolute;
  top: -.55rem;
  right: -.75rem;
  display: grid;
  min-width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border: 2px solid var(--card);
  border-radius: 999px;
  padding: 0 .18rem;
  color: #fff;
  background: var(--brand-red);
  font-size: .58rem;
  line-height: 1;
}

.pwa-bottom-nav button .fa {
  color: var(--brand-red);
}

html[data-theme="dark"] .pwa-bottom-nav {
  background: rgba(29, 31, 36, .96);
}

/*
 * Composição final do cabeçalho e catálogo.
 * A navegação desktop ocupa uma segunda faixa para nunca disputar largura com
 * busca e ações; no PWA as rotas principais ficam somente na barra inferior.
 */
@media (min-width: 861px) {
  .fire-landing-header__container {
    display: grid !important;
    grid-template-columns: minmax(178px, auto) minmax(280px, 1fr) auto !important;
    grid-template-areas:
      "brand search actions"
      "nav nav nav";
    gap: .55rem 1rem;
  }

  .fire-landing-header__brand { grid-area: brand; }
  .header-search { grid-area: search; width: 100%; max-width: 720px; justify-self: center; }
  .fire-landing-header__nav { grid-area: nav; width: 100%; min-width: 0; }
  .fire-landing-header__actions { grid-area: actions; }

  .fire-landing-header__links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.brand-copy--mobile {
  display: none;
}

.header-notification-link {
  position: relative;
  flex: 0 0 auto;
}

.fire-landing-header__actions .nav-avatar {
  max-width: 190px;
}

.nav-avatar__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-copy,
.hero-title,
.hero-desc,
.section-title,
.dish-card h3,
.food-item h6,
.btn,
button,
a {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-copy {
  min-width: 0;
  width: 100%;
}

.hero-title {
  width: 100%;
}

/* Ícones e rótulos devem permanecer visualmente separados em todos os CTAs. */
.btn > .fa,
button > .fa,
a > .fa,
label > .fa,
.subcategory-chip > .fa {
  margin-right: .48rem;
}

.theme-toggle > .fa,
.icon-button > .fa,
.pwa-bottom-nav .fa,
.nav-avatar .fa {
  margin-right: 0;
}

/* Três cartões úteis por viewport móvel, com rolagem lateral por toque. */
@media (max-width: 620px) {
  .fire-landing-header .max-w-7xl {
    padding-inline: .8rem;
  }

  .fire-landing-header__container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand actions" !important;
    gap: .6rem;
    min-height: 54px;
  }

  .fire-landing-header__brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand-copy--desktop,
  .header-search,
  .fire-landing-header__nav,
  .fire-desktop-theme,
  .header-cart,
  .fire-desktop-action,
  .mobile-menu-toggle {
    display: none !important;
  }

  .brand-copy--mobile {
    display: grid;
    min-width: 0;
    gap: .08rem;
  }

  .brand-copy--mobile .brand-name,
  .brand-copy--mobile .brand-city {
    max-width: min(58vw, 260px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy--mobile .brand-name {
    font-size: .94rem;
  }

  .brand-copy--mobile .brand-city {
    font-size: .72rem;
  }

  .fire-landing-header__actions {
    grid-area: actions;
    display: flex;
  }

  .header-notification-link {
    display: inline-grid !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .pwa-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hero-shell,
  .hero-content {
    min-height: 340px;
  }

  .hero-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 1rem 2.2rem !important;
  }

  .hero-copy {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-title {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
    margin-block: .85rem;
    font-size: clamp(2.35rem, 12vw, 3.15rem) !important;
    line-height: .95 !important;
    white-space: normal;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .hero-desc {
    width: min(100%, 360px);
    max-width: 100%;
    line-height: 1.48;
  }

  .infinite-product-rail,
  .dish-grid.mobile-swipe-rail,
  .promotion-rail.mobile-swipe-rail {
    grid-auto-columns: calc((100vw - 3.8rem) / 3) !important;
    gap: .65rem;
  }

  .infinite-product-rail .dish-card,
  .dish-grid.mobile-swipe-rail .dish-card {
    min-width: 0;
    border-radius: 14px;
  }

  .dish-card__media {
    aspect-ratio: 1 / 1;
  }

  .dish-card__body {
    padding: .62rem;
  }

  .dish-card__body h3 {
    display: -webkit-box;
    min-height: 2.25rem;
    margin-bottom: .3rem;
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .dish-card__body p,
  .dish-card__badge {
    display: none;
  }

  .dish-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: .4rem;
  }

  .dish-card__footer .price {
    font-size: .82rem;
  }

  .dish-card__footer .btn {
    width: 100%;
    min-height: 34px;
    padding: .35rem;
    font-size: .7rem;
  }

  .mobile-cart-bar {
    right: .75rem !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    left: .75rem !important;
    width: auto !important;
  }
}

[data-cart-toast] {
  position: fixed;
  z-index: 1300;
  top: 1rem;
  left: 50%;
  max-width: min(92vw, 420px);
  border-radius: 999px;
  padding: .8rem 1.2rem;
  color: #fff;
  background: #20242b;
  box-shadow: 0 16px 38px rgba(20, 22, 27, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity .18s ease, transform .18s ease;
}

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

[data-cart-toast].is-error {
  background: #a5281b;
}

.notification-count,
.admin-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--card);
  border-radius: 999px;
  padding-inline: .25rem;
  color: #fff;
  background: var(--brand-red);
  font-size: .62rem;
  font-weight: 900;
}

.notification-center__head,
.notification-item,
.notification-item__content > div:first-child {
  display: flex;
  align-items: center;
}

.notification-center__head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.notification-center__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}

.notification-item {
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: var(--card);
}

.notification-item + .notification-item {
  margin-top: .7rem;
}

.notification-item.is-unread {
  border-color: rgba(229, 66, 39, .34);
  background: #fff7f1;
  box-shadow: inset 4px 0 0 var(--brand-red);
}

.notification-item__icon {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.notification-item__content {
  min-width: 0;
  flex: 1 1 auto;
}

.notification-item__content > div:first-child {
  justify-content: space-between;
  gap: 1rem;
}

/* Ações compactas mantêm abrir e excluir visíveis sem competir com a mensagem. */
.notification-item__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .6rem;
}

.notification-item__actions a,
.notification-item__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .78rem;
  color: var(--text);
  background: var(--card);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.notification-item__actions button,
.notification-delete-all {
  color: var(--brand-red);
}

.notification-item__actions a:hover,
.notification-item__actions button:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.notification-delete-all:disabled,
.notification-item__actions button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.notification-item__content time,
.notification-item__content p {
  color: var(--muted);
}

.notification-item__content p {
  margin: .28rem 0 .45rem;
}

@media (max-width: 620px) {
  .account-header .site-nav,
  .account-header .fire-desktop-theme,
  .account-header .fire-desktop-action,
  .account-header .mobile-menu-toggle {
    display: none !important;
  }

  .account-header .site-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .notification-center__head,
  .notification-item__content > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .notification-center__actions,
  .notification-center__actions .btn {
    width: 100%;
  }

  .notification-item {
    align-items: flex-start;
    padding: .85rem;
  }

  .notification-item__actions {
    width: 100%;
  }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .fire-landing-header__container {
    grid-template-columns: auto minmax(200px, 1fr) auto;
  }

  .fire-landing-header__nav {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .fire-landing-header__links {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .fire-landing-header__container {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fire-landing-header__actions,
  .account-header__actions {
    justify-self: end;
  }

  .mobile-notification-trigger {
    position: relative;
    display: inline-grid;
  }

  .fire-landing-header__nav-button {
    width: 100%;
    justify-content: flex-start;
    padding: .78rem 1rem;
    font-size: .9rem;
  }

  .hero-shell,
  .hero-content {
    min-height: 330px;
  }

  .hero-content {
    padding-block: 2rem;
  }

  .hero-panel {
    display: none;
  }

  .hero-copy {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header .max-w-7xl,
  .account-header .max-w-7xl {
    padding-block: .55rem;
  }

  .fire-landing-header .brand-logo,
  .account-header .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-city {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cart {
    display: none;
  }

  .theme-toggle,
  .mobile-menu-toggle,
  .nav-avatar {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .nav-avatar__text,
  .mobile-menu-toggle span {
    display: none;
  }

  .mobile-menu-toggle {
    padding: 0;
  }

  .pwa-bottom-nav {
    display: grid;
  }

  .hero-shell,
  .hero-content {
    min-height: 280px;
  }

  .hero-content {
    padding-block: 1.6rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .hero-desc {
    margin-top: .8rem;
    font-size: .95rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-top: 1rem;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding-inline: .65rem;
    font-size: .82rem;
  }

  .section-head {
    align-items: flex-start;
    gap: .65rem;
  }

  .section-subtitle {
    display: none;
  }

  .section-title {
    font-size: 1.72rem;
  }

  .category-showcase.py-16,
  .promotion-showcase.py-16,
  #produtos.py-16,
  .restaurants-section.py-16 {
    padding-block: 1.8rem;
  }

  .mobile-swipe-rail,
  .infinite-product-rail {
    width: auto;
    max-width: none;
    margin-inline: -1rem;
    padding-inline: 1rem;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .segment-grid.mobile-swipe-rail {
    display: flex;
    gap: .8rem;
  }

  .segment-grid.mobile-swipe-rail .segment-card {
    width: 150px;
    min-width: 150px;
    min-height: 142px;
  }

  .segment-card__image {
    aspect-ratio: 4 / 3;
  }

  .infinite-product-rail {
    grid-auto-columns: minmax(76vw, 270px);
  }

  .catalog-feed-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-feed-status {
    min-height: 1.2em;
    text-align: center;
  }

  .site-footer,
  .account-footer {
    margin-bottom: 0;
  }
}

/* O PIN aparece como informação crítica somente durante a rota. */
.customer-delivery-code {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  border-color: rgba(198, 49, 29, .26);
  background: linear-gradient(135deg, #fffdf9, #fff1e9);
}

.customer-delivery-code[hidden] {
  display: none !important;
}

.order-finalization-card[hidden],
[data-confirm-received-action][hidden],
[data-received-confirmed][hidden] {
  display: none !important;
}

.customer-delivery-code__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 12px 24px rgba(198, 49, 29, .2);
}

.customer-delivery-code__icon .fa {
  font-size: 1.35rem;
}

.customer-delivery-code h2 {
  margin: .25rem 0 .35rem;
  font-size: 1.24rem;
}

.customer-delivery-code p {
  margin: 0;
  color: var(--muted);
}

.customer-delivery-code > strong {
  min-width: 142px;
  border: 2px dashed rgba(198, 49, 29, .42);
  border-radius: 18px;
  padding: .8rem 1rem;
  color: var(--brand-red);
  background: #fff;
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  letter-spacing: .24em;
  text-align: center;
}

html[data-theme="dark"] .customer-delivery-code {
  border-color: var(--border);
  background: linear-gradient(135deg, var(--card), var(--card-strong));
}

html[data-theme="dark"] .customer-delivery-code > strong {
  color: #ff9872;
  background: #191b20;
}

@media (max-width: 620px) {
  .customer-delivery-code {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
  }

  .customer-delivery-code > strong {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/*
 * Sobrescritas finais do PWA. Este bloco fica deliberadamente no fim do
 * arquivo para neutralizar media queries legadas carregadas anteriormente.
 */
@media (max-width: 620px) {
  .site-header .fire-landing-header__container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand actions" !important;
    gap: .6rem !important;
  }

  .fire-landing-header__brand { grid-area: brand; }
  .fire-landing-header__actions { grid-area: actions; }

  .brand-copy--desktop,
  .header-search,
  .fire-landing-header__nav,
  .fire-desktop-theme,
  .header-cart,
  .fire-desktop-action,
  .mobile-menu-toggle {
    display: none !important;
  }

  .brand-copy--mobile {
    display: grid !important;
  }

  .site-header.has-authenticated-user .brand-logo {
    display: none !important;
  }

  .account-header .brand {
    min-width: 0;
  }

  .account-header .brand-copy--mobile .brand-name,
  .account-header .brand-copy--mobile .brand-city {
    max-width: min(70vw, 310px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-notification-link {
    display: inline-grid !important;
  }

  .hero-content {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 260px !important;
    padding: 1.5rem 1rem 1.75rem !important;
  }

  .hero-shell {
    min-height: 260px !important;
  }

  .hero-panel,
  .hero-actions {
    display: none !important;
  }

  .hero-copy,
  .hero-title,
  .hero-desc {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hero-title {
    width: 100% !important;
    margin: .7rem 0 .65rem !important;
    font-size: clamp(2rem, 9.6vw, 2.6rem) !important;
    line-height: 1.02 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .hero-desc {
    width: min(100%, 330px) !important;
    margin: 0 !important;
    font-size: .94rem !important;
    line-height: 1.45 !important;
  }

  .pwa-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .infinite-product-rail,
  .dish-grid.mobile-swipe-rail,
  .promotion-rail.mobile-swipe-rail {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100vw - 3.8rem) / 3) !important;
    gap: .65rem !important;
  }

  .restaurant-grid.mobile-swipe-rail {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100vw - 2.7rem) / 2) !important;
    gap: .7rem !important;
  }

  .empty-state > .fa {
    display: block;
    margin: 0 0 .75rem;
  }
}

html[data-theme="dark"] .notification-item.is-unread {
  border-color: rgba(255, 112, 64, .52);
  background: #33251f;
}
