:root {
  --bg: #f4f4f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #f59e0b;
  --badge: #ea580c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --max: 560px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 22px; height: 22px; }

.app {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.06);
}

/* Hero */
.hero {
  position: relative;
  height: 160px;
  background:
    linear-gradient(135deg, rgba(220,38,38,.92), rgba(127,29,29,.85)),
    url('../img/products/combo-crispy-bacon.webp') center/cover;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.35));
}
.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.95);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.brand-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.status-pill.closed { background: #6b7280; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.store-card {
  position: relative;
  z-index: 2;
  margin: -42px 16px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.store-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: -48px auto 10px;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #111;
}
.store-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.store-meta strong { color: var(--text); }
.meta-free {
  background: var(--success-bg);
  color: var(--success);
  font-weight: 800;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
}
.rating-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
}
.rating-row .star { color: #f59e0b; }
.distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.banner {
  margin: 14px 16px 0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.banner-promo {
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.banner-delivery {
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.banner strong { font-weight: 800; }

.search-wrap {
  margin: 14px 16px 0;
  position: relative;
}
.search-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  outline: none;
}
.search-wrap input:focus {
  border-color: #fca5a5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

.categories {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.categories.stuck { border-bottom-color: var(--border); }
.categories::-webkit-scrollbar { display: none; }
.cat-btn {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: .15s ease;
}
.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.section {
  padding: 8px 16px 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
}
.section-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.highlights {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.highlights::-webkit-scrollbar { display: none; }

.product-card-mini {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  transition: transform .15s ease;
}
.product-card-mini:active { transform: scale(.98); }
.product-card-mini .thumb {
  aspect-ratio: 1;
  background: #f3f4f6;
  position: relative;
}
.product-card-mini .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-mini .body { padding: 10px; }
.product-card-mini .name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.price {
  color: var(--success);
  font-weight: 800;
  font-size: 14px;
}
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 11px;
}
.discount-badge {
  background: #fee2e2;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--badge);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 1;
}
.badge.novidade { background: #2563eb; }
.badge.mais { background: #ea580c; }

.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-row:hover {
  border-color: #fecaca;
  box-shadow: 0 6px 18px rgba(220,38,38,.08);
}
.product-row .info { min-width: 0; }
.product-row .name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}
.product-row .desc {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.product-row .servings {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}
.product-row .thumb {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}
.product-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(220,38,38,.35);
}
.add-btn:active { transform: scale(.92); }

.reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.review-author { font-weight: 700; font-size: 14px; }
.review-time { color: var(--muted); font-size: 11px; }
.review-stars { color: #f59e0b; display: flex; gap: 2px; margin: 4px 0 8px; }
.review-comment { font-size: 13px; color: #374151; }
.review-photo {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
}
.review-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.footer {
  padding: 24px 16px 110px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.trust-logos img { height: 28px; width: auto; opacity: .85; }

/* Cart bar */
.cart-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: calc(var(--max) - 32px);
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cart-bar.show { display: flex; }
.cart-bar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.cart-count {
  background: var(--primary);
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.cart-bar .total { font-weight: 800; color: #86efac; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  width: 100%;
  max-width: var(--max);
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  overflow: auto;
  animation: slideUp .22s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-hero {
  position: relative;
  height: 220px;
  background: #f3f4f6;
}
.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.modal-body { padding: 16px 16px 24px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.modal-desc { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.modal-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
}
.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
}
.qty-control span { min-width: 20px; text-align: center; font-weight: 800; }
.btn-primary {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* Cart drawer */
.cart-drawer .modal-body { padding-bottom: 28px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}
.cart-item .name { font-weight: 700; font-size: 13px; }
.cart-item .price { font-size: 13px; margin-top: 4px; }
.cart-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.cart-summary {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.cart-summary .row {
  display: flex;
  justify-content: space-between;
}
.cart-summary .total-row {
  font-size: 18px;
  font-weight: 800;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.min-order-warn {
  background: #fff7ed;
  color: #9a3412;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  margin: 12px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Checkout */
.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.page-header h1 { font-size: 18px; font-weight: 800; }
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
}
.form-section {
  padding: 16px;
  border-bottom: 8px solid var(--bg);
}
.form-section h2 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.pay-options { display: grid; gap: 8px; }
.pay-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}
.pay-option input { accent-color: var(--primary); }
.pay-option.active {
  border-color: var(--primary);
  background: #fef2f2;
}
.checkout-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 32px;
}
.success-page h1 { font-size: 24px; margin-bottom: 8px; }
.success-page p { color: var(--muted); margin-bottom: 8px; }
.order-code {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 12px 0 20px;
}

/* Admin — light theme */
.admin-body { background: #f5f6f8; color: #1f2937; font-family: var(--font); min-height: 100vh; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}
.admin-card h1, .admin-card h2 { color: #111827; }
.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.admin-nav .admin-user {
  color: #111827;
  font-weight: 700;
  font-size: 13px;
  margin-right: 4px;
}
.admin-nav a, .admin-btn {
  background: #fff;
  color: #374151;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e5e7eb;
}
.admin-nav a.active, .admin-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #1f2937;
}
.admin-table th { color: #6b7280; font-size: 11px; text-transform: uppercase; }
.admin-table .muted { color: #9ca3af; }
.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.badge-novo { background: #2563eb; }
.badge-preparando { background: #d97706; }
.badge-saiu_entrega { background: #7c3aed; }
.badge-entregue { background: #16a34a; }
.badge-cancelado { background: #6b7280; }
.badge-pending { background: #f59e0b; }
.badge-paid { background: #16a34a; }
.badge-failed { background: #dc2626; }
.login-box {
  max-width: 380px;
  margin: 10vh auto;
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
}
.login-box h1 { margin-bottom: 16px; color: #111827; text-align: center; font-size: 22px; }
.login-box input {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
}
.login-box input:focus {
  outline: none;
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
  background: #fff;
}
.alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.alert.ok {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
}
.stat .label { color: #6b7280; font-size: 11px; text-transform: uppercase; font-weight: 700; }
.stat .value { font-size: 22px; font-weight: 800; color: #111827; margin-top: 4px; }
.admin-field label { color: #6b7280 !important; }
.admin-field input,
.admin-field select,
.admin-field textarea {
  background: #f9fafb !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  background: #fff !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important;
  outline: none;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}
.admin-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dc2626;
  background: #fff;
}
.admin-profile .meta h3 { color: #111827; margin-bottom: 4px; }
.admin-profile .meta p { color: #6b7280; font-size: 13px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.photo-actions input[type=file] { color: #4b5563; font-size: 12px; max-width: 240px; }
.admin-select {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 8px;
}

@media (min-width: 640px) {
  .highlights { grid-auto-columns: 30%; }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 20px; max-height: 85vh; }
}

/* ===== Green CTA theme (Burgz-like) ===== */
:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-soft: #dcfce7;
  --page-bg: #f5f5f5;
}

.btn-green {
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.btn-green:hover { background: var(--green-dark); }
.btn-green:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
}
.btn-dashed {
  width: 100%;
  border: 1.5px dashed var(--green);
  background: #f0fdf4;
  color: var(--green-dark);
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.page-soft { background: var(--page-bg); min-height: 100vh; }
.card-white {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #ececec;
}
.pill-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ececec;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin: 14px auto;
}
.pill-title .verified { color: #2563eb; width: 18px; height: 18px; }

/* Sacola */
.sacola-wrap { max-width: var(--max); margin: 0 auto; padding: 8px 14px 110px; }
.sacola-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  position: relative;
}
.sacola-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.sacola-item .name { font-weight: 700; font-size: 13px; padding-right: 28px; }
.sacola-item .trash {
  position: absolute; top: 0; right: 0; color: #ef4444;
  width: 32px; height: 32px; display: grid; place-items: center;
}
.sacola-item .bottom {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
}
.qty-mini {
  display: inline-flex; align-items: center; gap: 10px;
}
.qty-mini button {
  width: 28px; height: 28px; border-radius: 50%; background: #f3f4f6;
  display: grid; place-items: center; color: #111;
}
.qty-mini span { font-weight: 800; min-width: 16px; text-align: center; }
.resumo .row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.resumo .gratis { color: var(--green-dark); font-weight: 800; }
.resumo .total { font-weight: 800; font-size: 16px; border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.fixed-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--max);
  background: #fff; border-top: 1px solid #eee;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
}

/* Checkout form */
.field input, .field textarea {
  background: #f0f0f0 !important;
  border: 1px solid transparent !important;
}
.field input:focus, .field textarea:focus {
  background: #fff !important;
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.15) !important;
}
.field .hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.option-box {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.option-box.active { border-color: var(--green); background: #f0fdf4; }
.option-box.disabled { opacity: .55; cursor: not-allowed; }
.option-box .left { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.option-box .radio { color: var(--green); width: 20px; height: 20px; }
.badge-green {
  background: var(--green); color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px;
}
.trust-card {
  display: flex; gap: 12px; align-items: flex-start;
}
.trust-card img { width: 42px; height: 42px; object-fit: contain; }
.trust-card h4 { font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.trust-card p { font-size: 12px; color: #555; line-height: 1.4; }

/* Product customization */
.custom-section { margin: 18px 0; }
.custom-head {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.custom-head h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; }
.custom-head .sub { font-size: 12px; color: var(--muted); }
.obrigatorio {
  background: #111; color: #fff; font-size: 10px; font-weight: 800;
  padding: 5px 8px; border-radius: 999px; letter-spacing: .03em;
}
.custom-option {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.custom-option .oname { font-weight: 700; font-size: 13px; }
.custom-option .odesc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.custom-option .ofree { color: var(--green-dark); font-weight: 700; font-size: 12px; }
.custom-option .othumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.custom-option .radio { color: #dc2626; width: 22px; height: 22px; }
.sticky-add {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid #eee;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.product-store-chip {
  position: absolute; left: 16px; right: 16px; bottom: -28px;
  background: #fff; border-radius: 14px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); z-index: 2;
}
.product-store-chip img { width: 40px; height: 40px; border-radius: 10px; }
.product-store-chip .name { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.product-store-chip .meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 2px; }

/* Added modal */
.center-modal {
  background: #fff; width: calc(100% - 32px); max-width: 400px;
  border-radius: 16px; padding: 20px; position: relative;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.center-modal .x {
  position: absolute; top: 12px; right: 12px; color: #9ca3af;
}
.center-modal h3 {
  display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 8px;
}
.center-modal h3 .ok { color: var(--green); }
.center-modal p { color: #666; font-size: 13px; margin-bottom: 18px; }
.center-modal .actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Distance modal */
.distance-modal {
  text-align: center;
  padding: 32px 22px 24px;
  background:
    radial-gradient(circle at top, rgba(34,197,94,.12), transparent 55%),
    #fff;
  overflow: hidden;
}
.distance-modal .dist-ring {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #dcfce7, #bbf7d0);
  box-shadow: 0 10px 28px rgba(22,163,74,.18);
  position: relative;
}
.distance-modal .dist-ring::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(22,163,74,.35);
  animation: spin 12s linear infinite;
}
.distance-modal .dist-ring-inner {
  width: 58px; height: 58px; border-radius: 50%;
  background: #16a34a; color: #fff;
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.distance-modal .dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.distance-modal h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: #111;
}
.distance-modal p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 auto 14px;
  max-width: 280px;
}
.distance-modal .km {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  color: #166534;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 999px;
  margin: 0 0 10px;
  font-size: 16px;
  border: 1px solid #86efac;
  box-shadow: 0 6px 16px rgba(22,163,74,.12);
}
.distance-modal .dist-free {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.distance-modal .btn-green {
  box-shadow: 0 10px 24px rgba(22,163,74,.28);
}
.distance-modal .spinner {
  width: 34px; height: 34px; border: 3px solid #e5e7eb; border-top-color: var(--green);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 18px auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* PIX page */
.pix-urgent {
  background: #f97316; color: #fff; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}
.pix-wrap { max-width: var(--max); margin: 0 auto; padding: 18px 16px 40px; text-align: center; }
.pix-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; margin: 14px 0;
}
.pix-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; position: relative;
}
.pix-status .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: #fff; opacity: .4; animation: ping 1.2s infinite;
}
@keyframes ping { 70%,100% { transform: scale(2.2); opacity: 0; } }
.pix-wrap h1 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.pix-wrap .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.eta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f3f4f6; padding: 8px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 14px;
}
.pix-total-label { color: var(--muted); font-size: 13px; }
.pix-total { color: var(--green-dark); font-size: 32px; font-weight: 800; margin: 4px 0 18px; }
.pix-card {
  background: #fff; border-radius: 16px; padding: 18px; border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0,0,0,.04); text-align: left;
}
.pix-card .qr { display: block; width: 200px; height: 200px; margin: 8px auto 16px; }
.pix-code-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.pix-code-box {
  background: #f3f4f6; border-radius: 10px; padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; word-break: break-all; color: #555; margin-bottom: 12px; line-height: 1.45;
}
.pix-secure {
  display: flex; justify-content: center; gap: 16px; margin: 12px 0;
  color: var(--green-dark); font-size: 12px; font-weight: 700;
}
.pix-secure span { display: inline-flex; align-items: center; gap: 5px; }
.pix-info {
  background: #f3f4f6; border-radius: 10px; padding: 12px;
  display: flex; gap: 8px; font-size: 12px; color: #555; margin-top: 8px;
}
.pix-info .icon { flex-shrink: 0; margin-top: 1px; }

/* Bottom navbar */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max);
  background: #fff;
  border-top: 1px solid #ececec;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 60;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.bottom-nav-item .icon { width: 20px; height: 20px; }
.bottom-nav-item.active { color: #dc2626; }
.bottom-nav-item:active { transform: scale(.96); }

/* Lift cart bar above navbar */
.cart-bar {
  bottom: 72px;
}
.fixed-cta {
  bottom: 62px;
}
.app, .page-soft .app, .sacola-wrap {
  padding-bottom: 90px;
}
.footer { padding-bottom: 120px; }

.track-order-card { margin-bottom: 12px; }
.track-order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.track-order-code { font-weight: 800; font-size: 15px; }
.track-order-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.track-order-text { font-size: 13px; color: #4b5563; margin-bottom: 12px; }
.track-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.track-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.track-preparando { background: #ffedd5; color: #c2410c; }
.track-saiu_entrega { background: #dbeafe; color: #1d4ed8; }
.track-entregue { background: #dcfce7; color: #166534; }
.track-pending, .track-novo { background: #f3f4f6; color: #6b7280; }
.track-cancelado { background: #fee2e2; color: #b91c1c; }

.track-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 12px;
}
.track-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}
.track-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}
.track-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.track-item-price {
  font-size: 12px;
  color: #16a34a;
  font-weight: 700;
  margin-top: 3px;
}
