:root {
  color-scheme: light;
  --orange: #ff6a00;
  --orange-dark: #cf4e00;
  --delivery-red: #ff6a00;
  --delivery-red-dark: #cf4e00;
  --sun: #f8c44f;
  --leaf: #245c42;
  --leaf-soft: #eaf4ec;
  --berry: #a62243;
  --ink: #211f1c;
  --muted: #68625d;
  --line: #e7ded4;
  --paper: #fffaf3;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(33, 31, 28, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(33, 31, 28, 0.08);
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav button,
.ghost-button,
.primary-button,
.icon-button,
.text-button {
  border: 0;
  background: transparent;
  color: inherit;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 0;
  text-align: left;
}

.brand-copy {
  display: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 2px var(--sun);
  font-weight: 900;
  font-size: 13px;
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--sun);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.main-nav button {
  min-width: 76px;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.main-nav button.is-active {
  background: var(--ink);
  color: var(--white);
}

.top-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.22);
}

.primary-button:hover {
  background: var(--orange-dark);
}

.primary-button.dark {
  background: var(--ink);
}

.primary-button.green {
  background: var(--leaf);
}

.primary-button.small,
.ghost-button.small,
.text-button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

.text-button {
  color: var(--leaf);
  padding: 0 6px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.cart-button {
  position: relative;
}

.counter {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--berry);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

#app {
  min-height: calc(100vh - 68px);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(390px, 58vh, 560px);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(33, 31, 28, 0.76), rgba(33, 31, 28, 0.36) 54%, rgba(255, 106, 0, 0.12)),
    url("/assets/brand/hero-food-bg.jpg") center top / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(33, 31, 28, 0.74), transparent);
  z-index: -1;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 34px;
}

.hero-copy {
  max-width: 680px;
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.store-status span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #49d17d;
}

.store-status.is-closed span {
  background: var(--berry);
}

.store-closed-box {
  border-color: rgba(166, 34, 67, 0.28);
  background: #fff5f7;
}

.maintenance-section {
  background: var(--paper);
  padding-top: 24px;
  padding-bottom: 0;
}

.maintenance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(166, 34, 67, 0.22);
  border-radius: var(--radius);
  background: #fff5f7;
  padding: clamp(18px, 4vw, 28px);
}

.maintenance-panel h2,
.maintenance-panel p {
  margin: 0;
}

.maintenance-panel h2 {
  margin-top: 4px;
}

.maintenance-panel p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-logo {
  width: min(390px, 84vw);
  aspect-ratio: 2048 / 1160;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: var(--orange);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 590px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.35;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions {
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.84), rgba(36, 92, 66, 0.44)),
    url("/assets/brand/hero-food-bg.jpg") center top / cover no-repeat;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.hero-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.metric {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: clamp(24px, 3vw, 36px);
}

.metric span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(16px, 4vw, 48px);
}

.section.white {
  background: var(--white);
}

.promo-section {
  background: #f7f7f7;
  padding-top: 28px;
  padding-bottom: 22px;
}

.promo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--orange);
  box-shadow: 0 16px 42px rgba(255, 106, 0, 0.18);
}

.promo-track {
  display: flex;
  transition: transform 0.45s ease;
}

.promo-banner {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 170px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.96), rgba(207, 78, 0, 0.9)),
    url("/assets/brand/hero-food-bg.jpg") center top / cover no-repeat;
  color: var(--white);
}

.promo-banner h2,
.promo-banner p {
  margin: 0;
}

.promo-banner h2 {
  max-width: 620px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.promo-banner p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.promo-banner .primary-button {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: none;
}

.promo-dots {
  position: absolute;
  left: 24px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}

.promo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.promo-dots span.is-active {
  width: 24px;
  background: var(--white);
}

.location-section {
  background: #f7f7f7;
  padding-top: 0;
  padding-bottom: 24px;
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(33, 31, 28, 0.06);
}

.location-panel h2,
.location-panel p {
  margin: 0;
}

.location-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.location-panel p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.delivery-district-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delivery-district-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.section.green {
  background: var(--leaf);
  color: var(--white);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.page-title h1,
.panel-title h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.section-head p,
.page-title p,
.panel-title p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.green .section-head p,
.green .page-title p {
  color: rgba(255, 255, 255, 0.78);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  padding: 0 13px;
  font-weight: 850;
}

.category-tabs button.is-active {
  border-color: var(--delivery-red);
  background: var(--delivery-red);
  color: var(--white);
}

.menu-section {
  background: #f7f7f7;
}

.menu-head {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(33, 31, 28, 0.05);
}

.menu-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.menu-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(230, 59, 46, 0.16);
  border-radius: 999px;
  background: #fff1ef;
  color: var(--delivery-red-dark);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.menu-tabs {
  position: sticky;
  top: 74px;
  z-index: 20;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 247, 0.96);
  padding: 10px 0;
  backdrop-filter: blur(12px);
}

.coupon-carousel {
  overflow: hidden;
  margin-bottom: 16px;
}

.coupon-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.coupon-chip {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  min-width: 230px;
  border: 1px dashed rgba(255, 106, 0, 0.48);
  border-radius: var(--radius);
  background: #fff7ef;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.08);
}

.coupon-chip strong {
  color: var(--orange-dark);
  font-size: 18px;
}

.coupon-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.coupon-chip.is-active {
  border-style: solid;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.22);
}

.coupon-chip.is-active strong,
.coupon-chip.is-active span {
  color: var(--white);
}

.category-photo-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-photo-card {
  flex: 0 0 142px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(33, 31, 28, 0.06);
}

.category-photo-card.is-active {
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.category-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--leaf-soft);
}

.category-photo-card span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.category-photo-card small {
  color: var(--muted);
  font-size: 12px;
}

.delivery-menu-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 6px;
}

.menu-search {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.menu-search input {
  min-height: 50px;
  border-color: transparent;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(33, 31, 28, 0.07);
  padding-left: 16px;
}

.menu-search input:focus {
  border-color: rgba(230, 59, 46, 0.32);
  box-shadow: 0 0 0 4px rgba(230, 59, 46, 0.08);
}

.delivery-store-mini {
  display: grid;
  align-content: center;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 14px;
}

.delivery-store-mini strong,
.delivery-store-mini span {
  display: block;
}

.delivery-store-mini strong {
  color: var(--leaf);
  font-size: 14px;
}

.delivery-store-mini span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.product-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(33, 31, 28, 0.07);
}

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

.product-card,
.dash-card,
.order-card,
.auth-card,
.feature-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(33, 31, 28, 0.06);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto) 128px;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:last-child {
  border-bottom: 0;
}

.product-card:hover {
  background: #fffaf8;
  transform: none;
}

.product-media {
  position: relative;
  order: 3;
  width: 128px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 7px;
  background: var(--leaf-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  order: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 4px 0;
}

.product-body h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tags span,
.status-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.product-foot {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.product-side {
  order: 2;
  align-self: stretch;
  display: grid;
  align-items: center;
  justify-content: end;
  padding-left: 8px;
}

.price {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.product-card .primary-button {
  min-width: 106px;
  background: var(--delivery-red);
  box-shadow: 0 10px 24px rgba(230, 59, 46, 0.2);
}

.product-card .primary-button:hover {
  background: var(--delivery-red-dark);
}

.feature-grid,
.dashboard-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-card,
.dash-card {
  padding: 20px;
}

.feature-card strong,
.dash-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.feature-card p,
.dash-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dash-card strong {
  font-size: 36px;
  color: var(--orange-dark);
}

.cart-lead-list {
  display: grid;
  gap: 12px;
}

.cart-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: 0 12px 34px rgba(33, 31, 28, 0.06);
}

.cart-lead-card.is-abandoned {
  border-color: rgba(255, 106, 0, 0.32);
  background: #fff8ef;
}

.cart-lead-card h3 {
  margin: 0;
}

.cart-lead-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cart-lead-items span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.cart-lead-side {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  text-align: right;
}

.cart-lead-side strong {
  color: var(--orange-dark);
  font-size: 24px;
}

.cart-lead-side span {
  color: var(--muted);
  font-size: 13px;
}

.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) 0;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.auth-card {
  display: grid;
  gap: 18px;
  max-width: 560px;
  padding: 24px;
}

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

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

.payment-hint {
  margin: -2px 0 0;
  border: 1px solid rgba(36, 92, 66, 0.16);
  border-radius: var(--radius);
  background: var(--leaf-soft);
  color: var(--leaf);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.panel {
  display: grid;
  gap: 16px;
}

.panel-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title h2 {
  font-size: clamp(24px, 4vw, 36px);
}

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

.side-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.side-menu button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  padding: 0 14px;
  text-align: left;
  font-weight: 850;
}

.side-menu button.is-active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--white);
}

.order-list,
.activity-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.order-card {
  padding: 16px;
}

.order-top,
.line-item,
.cart-total,
.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-card h3,
.order-card p {
  margin: 0;
}

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

.line-item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.status-pill[data-status="cancelado"] {
  background: #f7e1e6;
  color: var(--berry);
}

.status-pill[data-status="entregue"] {
  background: #e1f1e5;
  color: var(--leaf);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(33, 31, 28, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(24px);
  transition: transform 0.2s ease;
}

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

.panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.95);
  backdrop-filter: blur(12px);
}

.panel-head h2 {
  margin: 0;
}

.cart-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  font-size: 15px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quantity button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 900;
}

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

.checkout-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 14px;
}

.total-line {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 18px;
}

.schedule-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--leaf-soft);
  padding: 12px;
  color: var(--leaf);
}

.schedule-card span {
  color: var(--muted);
  font-size: 13px;
}

.maintenance-tool {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
}

.maintenance-tool.is-active {
  border-color: rgba(166, 34, 67, 0.28);
  background: #fff5f7;
}

.maintenance-tool label {
  color: var(--ink);
}

.maintenance-tool p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.delivery-fee-editor,
.coupon-editor {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-title {
  margin-bottom: 0;
}

.district-fee-grid {
  display: grid;
  gap: 10px;
}

.district-fee-row,
.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.7fr);
  gap: 10px;
}

.coupon-grid {
  display: grid;
  gap: 10px;
}

.coupon-row {
  grid-template-columns: minmax(150px, 1.2fr) minmax(80px, 0.5fr) minmax(100px, 0.7fr) minmax(110px, 0.8fr) minmax(90px, 0.5fr);
  align-items: end;
}

.coupon-active {
  min-height: 47px;
  align-content: center;
}

.coupon-message {
  min-height: 18px;
  margin: 0;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(33, 31, 28, 0.44);
}

.modal {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 18px;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 360px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.table-card {
  overflow: hidden;
}

.table-row {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row strong {
  display: block;
}

.table-row span {
  color: var(--muted);
  font-size: 13px;
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.loading {
  padding: 32px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: var(--white);
  padding: 34px clamp(16px, 4vw, 48px);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.footer-brand strong {
  display: block;
  font-size: 20px;
}

.footer-brand p,
.footer-bottom {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.security-seals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.security-seals span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.security-seals b {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--white);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 13px;
}

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: space-between;
    order: 0;
  }

  .main-nav button {
    flex: 1;
  }

  .hero-metrics,
  .product-grid,
  .feature-grid,
  .dashboard-grid,
  .split-grid,
  .customer-layout,
  .admin-layout,
  .admin-tools,
  .location-panel {
    grid-template-columns: 1fr;
  }

  .side-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .side-menu button {
    flex: 0 0 auto;
    min-width: 160px;
  }

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

  .product-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    align-items: start;
  }

  .product-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 104px;
  }

  .product-body {
    grid-column: 1;
  }

  .product-side {
    grid-column: 1;
    border-left: 0;
    border-top: 0;
    justify-content: stretch;
    padding: 0;
  }

  .product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

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

  .delivery-store-mini {
    min-width: 0;
  }

  .promo-banner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 220px;
    padding-bottom: 44px;
  }

  .location-panel {
    align-items: stretch;
  }

  .category-photo-card {
    flex-basis: 126px;
  }

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

  .cart-lead-side {
    justify-items: start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand-logo-wrap {
    width: 40px;
    height: 40px;
  }

  .top-actions {
    gap: 6px;
  }

  .cart-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .cart-button::before {
    content: "Sacola";
    font-size: 12px;
  }

  #authButton {
    min-width: 72px;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 520px;
    background-position: 58% top;
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 76px);
  }

  .hero-metrics {
    margin-top: 34px;
  }

  .section,
  .page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-head,
  .page-title,
  .panel-title,
  .order-top,
  .maintenance-panel,
  .table-row {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .promo-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .promo-banner h2 {
    font-size: 28px;
  }

  .coupon-chip {
    min-width: 210px;
  }

  .menu-tabs {
    top: 100px;
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
    padding: 12px;
  }

  .product-media {
    grid-column: 2;
    width: 88px;
  }

  .product-body h3 {
    font-size: 17px;
  }

  .product-body p {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

  .product-tags span {
    max-width: 100%;
  }

  .price {
    font-size: 20px;
  }

  .district-fee-row,
  .coupon-row {
    grid-template-columns: 1fr;
  }

  .security-seals {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions .ghost-button:not(.cart-button) {
    display: none;
  }
}
