:root {
  --red-dark: #8B0000;
  --red-mid: #B22222;
  --orange: #FF8C42;
  --gold: #D4AF37;
  --gold-light: #F5D76E;
  --dark: #1f1f1f;
  --success: #25D366;
  --danger: #ff5a5a;
  --bg: #fff8f4;
  --white: #ffffff;
  --muted: #6e6e6e;
  --border: #ecd7cc;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: var(--bg);
  color: var(--dark);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

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

.section {
  padding: 72px 0;
}

.soft-bg {
  background: rgba(255,255,255,0.55);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--red-dark), var(--orange));
  color: var(--white);
  box-shadow: var(--shadow);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

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

.logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--red-dark), var(--orange));
  padding: 12px 16px 20px;
  gap: 12px;
  box-shadow: var(--shadow);
}

.nav.open {
  display: flex;
  animation: fadeDown .25s ease;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  transition: .2s;
}

.nav a:hover {
  background: rgba(255,255,255,0.12);
}

.hamburger {
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
}

.desktop-cart-btn {
  display: none;
}

.hero {
  padding: 110px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(245,215,110,0.35), transparent 30%),
    linear-gradient(180deg, #fff2eb, var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  line-height: 1.1;
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-badge,
.gold-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-badge {
  background: rgba(139,0,0,0.1);
  color: var(--red-dark);
  margin-bottom: 14px;
}

.gold-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
}

.hero-highlight {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-plate {
  width: min(380px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #fff, #ffe4d4 60%, #f8cab0 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px rgba(139,0,0,0.16);
  animation: float 3s ease-in-out infinite;
}

.hero-food {
  font-size: 6rem;
}

.btn {
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  transition: .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--red-mid), var(--orange));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search-wrap input,
.form-group input,
.form-group textarea,
.form-group select,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 16px;
  color: var(--dark);
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 700;
}

.tab.active {
  background: linear-gradient(135deg, var(--red-mid), var(--orange));
  color: #fff;
}

.featured-grid,
.products-grid,
.steps-grid,
.payments-grid,
.admin-dashboard {
  display: grid;
  gap: 18px;
}

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

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

.product-card,
.feature-card,
.info-card,
.order-card,
.metric-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-media {
  height: 160px;
  background: linear-gradient(135deg, #ffe7d5, #ffd2b4);
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(178,34,34,0.09);
  color: var(--red-mid);
  font-weight: 800;
  font-size: 0.8rem;
}

.product-body h3,
.feature-card h3,
.info-card h3,
.order-card h3 {
  margin: 0;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-weight: 800;
  color: var(--red-dark);
  font-size: 1.1rem;
}

.feature-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feature-card-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature-emoji {
  font-size: 2rem;
}

.info-card,
.order-card,
.metric-card {
  padding: 18px;
}

.floating-cart {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red-mid), var(--orange));
  color: #fff;
  padding: 14px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.drawer-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.48);
  z-index: 1100;
}

.drawer-overlay {
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100dvh;
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: .28s ease;
  display: flex;
  flex-direction: column;
}

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

.drawer-header,
.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.drawer-body,
.modal-body {
  padding: 18px 20px;
  overflow: auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff5f0;
  color: var(--dark);
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  animation: fadeUp .25s ease;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-item h4 {
  margin: 0 0 6px;
}

.cart-item small,
.cart-item p {
  margin: 0;
  color: var(--muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff3ec;
}

.remove-btn {
  margin-left: auto;
  color: var(--danger);
  background: transparent;
  font-weight: 800;
}

.cart-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.delivery-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.choice-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  font-weight: 700;
}

.choice-card input {
  margin-right: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.total-line {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field-error {
  color: var(--danger);
  display: block;
  min-height: 18px;
  margin-top: 4px;
}

.minimum-warning {
  background: #fff5d9;
  border: 1px solid #f0d278;
  color: #7a5b00;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  width: min(920px, calc(100% - 24px));
  max-height: 92dvh;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: zoomIn .22s ease;
}

.modal-product {
  width: min(640px, calc(100% - 24px));
}

.modal-admin {
  width: min(1280px, calc(100% - 24px));
}

.option-group {
  margin-bottom: 18px;
}

.option-group h4 {
  margin-bottom: 10px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.price-box {
  background: #fff7f1;
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
}

.order-card {
  margin-bottom: 14px;
}

.order-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  margin-top: 8px;
}

.status-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #f2f2f2;
}

.status-Pendente { background: #fff0c7; color: #7a5b00; }
.status-Confirmado { background: #dff4e5; color: #156a35; }
.status-Preparando { background: #e9ebff; color: #3344aa; }
.status-Enviado { background: #daf3ff; color: #005f85; }
.status-Entregue { background: #def8e7; color: #1e7c47; }
.status-Cancelado { background: #ffdede; color: #982929; }

.admin-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-dashboard {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  margin-top: 8px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.toast-container {
  position: fixed;
  top: 92px;
  right: 16px;
  z-index: 2000;
  display: grid;
  gap: 10px;
}

.toast {
  background: #fff;
  color: var(--dark);
  border-left: 5px solid var(--success);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 250px;
  animation: fadeRight .25s ease;
}

.new-order-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1500;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  width: min(360px, calc(100% - 32px));
}

.notice-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.site-footer {
  background: var(--dark);
  color: #fff;
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
  padding: 18px 16px;
  text-align: center;
  color: rgba(255,255,255,0.75);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid,
  .steps-grid,
  .payments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-toolbar {
    grid-template-columns: 2fr 1fr;
  }

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

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
  }

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

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .desktop-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
  }

  .floating-cart {
    display: none;
  }

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

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

  .steps-grid,
  .payments-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-dashboard {
    grid-template-columns: repeat(7, 1fr);
  }
}