/* ============================================================
   WARM EXPRESS — Template E
   Delivery LP para Marmitaria / Comida Caseira
   Mobile-first | CSS puro | Sem frameworks
   ============================================================ */

/* ── Fontes ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --bg:            #FFFBF7;
  --surface:       #FFFFFF;
  --accent:        #F97316;
  --accent-dark:   #EA6B0C;
  --accent-light:  #FFF0E5;
  --accent-border: #FDE0C8;
  --text:          #1C1C1E;
  --text-secondary:#6B7280;
  --text-light:    #9CA3AF;
  --border:        #F0EDE8;
  --border-strong: #E5DDD6;
  --success:       #16A34A;
  --success-bg:    #F0FDF4;
  --error:         #DC2626;
  --error-bg:      #FEF2F2;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     24px;
  --header-h:      60px;
  --pills-h:       56px;
  --font-display:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
  --transition:    0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}
.status-dot.closed { background: var(--error); animation: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition);
}
.cart-trigger:hover { background: var(--accent-border); }
.cart-trigger svg { width: 22px; height: 22px; }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  display: none;
}
.cart-count.visible { display: flex; }

/* ── HERO STRIP ─────────────────────────────────────────── */
.hero-strip {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, #F97316 0%, #FB923C 60%, #FDBA74 100%);
  padding: 28px 16px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; }

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
}
.meta-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── CATEGORY PILLS ─────────────────────────────────────── */
.category-pills {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  line-height: 1;
}
.pill.active,
.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── MENU LIST ───────────────────────────────────────────── */
.menu-list {
  flex: 1;
  padding-bottom: 100px; /* space for cart bar */
}

.category-section {
  margin-bottom: 8px;
}

.category-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: calc(var(--header-h) + var(--pills-h));
  z-index: 80;
}

/* ── PRODUCT ROW ─────────────────────────────────────────── */
.product-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--transition);
  align-items: start;
}
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: #FFFAF6; }
.product-row:active { background: var(--accent-light); }

.product-img-wrap {
  position: relative;
  width: 140px;
  height: 186px;  /* 3:4 ratio — portrait */
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-row:hover .product-img-wrap img { transform: scale(1.04); }

.product-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.product-tag.tag-sale { background: #DC2626; }

.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 186px;
  justify-content: space-between;
}

.product-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.product-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-old {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}

.price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}
.add-btn:hover { background: var(--accent-dark); transform: scale(1.1); }
.add-btn:active { transform: scale(0.95); }

/* ── STORE INFO SECTION ─────────────────────────────────── */
.store-info {
  background: var(--surface);
  border-top: 6px solid var(--bg);
  padding: 24px 16px;
}

.store-info h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.app-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 24px 16px;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ============================================================
   CART PANEL
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: bottom-sheet */
.cart-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-panel.open { transform: translateY(0); }

/* Desktop: sidebar */
@media (min-width: 768px) {
  .cart-panel {
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: 380px;
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
  }
  .cart-panel.open { transform: translateX(0); }
}

.cart-handle {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
@media (min-width: 768px) { .cart-handle { display: none; } }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.cart-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: background var(--transition);
}
.cart-close:hover { background: var(--border); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-secondary);
  text-align: center;
}
.cart-empty svg { width: 56px; height: 56px; opacity: 0.3; }
.cart-empty p { font-size: 14px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 56px; height: 74px; /* 3:4 */
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-opts {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

.qty-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cart-delivery {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}
.cart-total-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}
.cart-total-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.btn-checkout {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.btn-checkout:hover { background: var(--accent-dark); }
.btn-checkout:active { transform: scale(0.98); }

/* Cart FAB (when cart is empty / closed) */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 150;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.45);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: none;
}
.cart-fab.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cart-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.cart-fab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 12px;
}
@media (min-width: 768px) { .cart-fab { display: none; } }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

@media (min-width: 600px) {
  .modal-overlay { align-items: center; justify-content: center; }
}

.product-modal {
  width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .product-modal { transform: translateY(0); }

@media (min-width: 600px) {
  .product-modal {
    max-width: 480px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    transform: scale(0.96);
  }
  .modal-overlay.open .product-modal { transform: scale(1); }
}

.modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}

.modal-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Options */
.option-group {
  margin-bottom: 20px;
}
.option-group-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.opt-required {
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.option-group-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.option-item:hover { border-color: var(--accent-border); background: var(--accent-light); }
.option-item.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}
.option-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.option-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.option-name { font-size: 14px; font-weight: 500; }
.option-detail { font-size: 12px; color: var(--text-secondary); }
.option-price { font-size: 13px; font-weight: 600; color: var(--accent); }

/* Modal footer (qty + add) */
.modal-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  flex-shrink: 0;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 8px 12px;
  flex-shrink: 0;
}
.qty-ctrl .qty-btn {
  width: 30px; height: 30px;
  font-size: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
}
.qty-ctrl .qty-value { font-size: 16px; font-weight: 700; min-width: 24px; text-align: center; }

.btn-add-modal {
  flex: 1;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  padding: 13px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.btn-add-modal:hover { background: var(--accent-dark); }
.btn-add-modal span { font-size: 14px; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-shell {
  min-height: 100vh;
  background: var(--bg);
}

.checkout-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.back-btn:hover { background: var(--border); }
.back-btn svg { width: 20px; height: 20px; }

.checkout-header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.checkout-body {
  padding: 20px 16px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.checkout-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.checkout-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-field {
  margin-bottom: 14px;
}
.form-field:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--accent); background: var(--surface); }
.form-input.error { border-color: var(--error); }
.field-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.field-error.visible { display: block; }

.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Order summary in checkout */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; }
.order-item-name { color: var(--text); flex: 1; }
.order-item-qty { color: var(--text-secondary); font-size: 13px; }
.order-item-price { font-weight: 600; color: var(--text); flex-shrink: 0; }

.order-totals { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--border); }
.order-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.order-row.total { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--accent); margin-top: 8px; }

.btn-gerar-pix {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  padding: 16px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}
.btn-gerar-pix:hover { background: var(--accent-dark); }
.btn-gerar-pix:active { transform: scale(0.98); }
.btn-gerar-pix:disabled { background: var(--text-light); box-shadow: none; cursor: not-allowed; }

.btn-gerar-pix .btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
.btn-gerar-pix.loading span { display: none; }
.btn-gerar-pix.loading .btn-spinner { display: block; }

/* ============================================================
   PIX PAYMENT PAGE
   ============================================================ */
.pix-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.pix-header {
  background: var(--accent);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
}
.pix-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.pix-header p { font-size: 14px; opacity: 0.85; }

.pix-body {
  flex: 1;
  padding: 20px 16px 40px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.pix-qr-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pix-timer svg { width: 16px; height: 16px; }
.pix-timer.expired { background: var(--error-bg); border-color: #FECACA; color: var(--error); }

#qr-container {
  width: 200px; height: 200px;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
#qr-container canvas, #qr-container img { max-width: 100%; max-height: 100%; }

.pix-copy-block {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}

.pix-copy-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

#pix-code-text {
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
}

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  padding: 13px;
  border-radius: var(--radius);
  margin-top: 12px;
  transition: background var(--transition);
}
.btn-copy:hover { background: var(--accent-dark); }
.btn-copy.copied { background: var(--success); }
.btn-copy svg { width: 18px; height: 18px; }

.pix-instructions {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.pix-instructions h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}
.pix-steps { display: flex; flex-direction: column; gap: 10px; }
.pix-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pix error state */
.pix-error {
  display: none;
  background: var(--error-bg);
  border: 1px solid #FECACA;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.pix-error.visible { display: block; }
.pix-error h3 { color: var(--error); font-weight: 700; margin-bottom: 8px; }
.pix-error p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.btn-retry {
  background: var(--text);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-retry:hover { background: #374151; }

/* Pix loading state */
.pix-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.pix-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   UTILITY / SHARED
   ============================================================ */

/* LGPD Banner */
.lgpd-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1C1C1E;
  color: #fff;
  padding: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.lgpd-banner.visible { transform: translateY(0); }
.lgpd-text { font-size: 13px; line-height: 1.5; flex: 1; }
.lgpd-text a { color: var(--accent); text-decoration: underline; }
.btn-lgpd {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Generic button styles */
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); }

/* Alert / notification toast */
.toast {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  z-index: 400;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.visible { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }

/* Content pages (contato, privacidade, termos) */
.content-shell {
  min-height: 100vh;
  background: var(--bg);
}
.content-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.content-body {
  padding: 24px 16px 60px;
  max-width: 680px;
  margin: 0 auto;
}
.content-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--text);
}
.content-body h2:first-child { margin-top: 0; }
.content-body p, .content-body li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.content-body ul { padding-left: 16px; }
.content-body ul li { list-style: disc; }
.content-body strong { color: var(--text); font-weight: 600; }
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.contact-card dd { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.contact-card dd:last-child { margin-bottom: 0; }

/* ── Responsive adjustments ──────────────────────────────── */
@media (max-width: 400px) {
  .product-row { grid-template-columns: 120px 1fr; }
  .product-img-wrap { width: 120px; height: 160px; }
  .hero-title { font-size: 22px; }
}

@media (min-width: 768px) {
  .menu-list {
    max-width: 760px;
    margin: 0 auto;
    padding-right: 380px; /* sidebar width */
  }
  .hero-strip { padding: 40px 32px; }
  .hero-title { font-size: 32px; }
  .category-pills { padding: 12px 32px; }
}
