/* ==========================================================================
   1. VARIÁVEIS — TEMA CLARO E ESCURO
   ========================================================================== */
:root {
  --bg-principal:  #f8f9fa;
  --bg-card:       #ffffff;
  --bg-elevated:   #f0f0f0;      /* fundos levemente elevados: inputs desativados, hover */
  --bg-subtle:     #fafafa;      /* listas admin, itens internos */
  --bg-inset:      #f5f5f5;      /* thumbnail/emoji container */
  --brand:         #d35400;
  --brand-dark:    #ba3c00;
  --brand-light:   #f0673a;
  --highlight:     #d35400;
  --accent:        #ffc107;
  --success:       #2ed573;
  --danger:        #e24b4a;
  --text-dark:     #222222;
  --text-light:    #666666;
  --muted:         #888888;
  --smoke:         #fdf6f2;
  --border-color:  #eaeaea;
  --border-input:  #dddddd;
  --shadow:        0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.12);
  --radius:        12px;
  --radius-lg:     16px;
  /* elementos fixos (header/carrinho) — mesmos nos dois temas */
  --fixed-bg:      #1a1a1a;
  --fixed-bg-2:    #262626;
  --fixed-bg-3:    #151515;
  --fixed-bg-4:    #111111;
}
 
body.dark-theme {
  --bg-principal:  #121212;
  --bg-card:       #1e1e1e;
  --bg-elevated:   #2a2a2a;
  --bg-subtle:     #252525;
  --bg-inset:      #2a2a2a;
  --brand:         #ff4757;
  --brand-dark:    #e24b4a;
  --brand-light:   #ff6b81;
  --highlight:     #ffa502;
  --accent:        #ffa502;
  --text-dark:     #f0f0f0;
  --text-light:    #a4b0be;
  --muted:         #57606f;
  --smoke:         #1a1a1a;
  --border-color:  #2f3542;
  --border-input:  #3a3a3a;
  --shadow:        0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.6);
}
 
/* Transição suave ao trocar tema */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
 
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-principal);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
 
input, textarea, select, button { font-family: inherit; }
 
/* ==========================================================================
   2. HEADER (intencionalmente escuro nos dois temas)
   ========================================================================== */
header {
  background: var(--fixed-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
 
.header-topbar {
  background: var(--fixed-bg-4);
  color: var(--text-light);
  font-size: .75rem;
  padding: 6px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  font-weight: 600;
}
.header-topbar::-webkit-scrollbar { display: none; }
/* Impede número de telefone virar link azul */
.header-topbar a { color: inherit; text-decoration: none; pointer-events: none; }
.topbar-dot { width: 4px; height: 4px; background: var(--brand); border-radius: 50%; flex-shrink: 0; align-self: center; }
 
.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
 
.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-title em { font-style: normal; color: var(--highlight); }
 
.nav-center {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--highlight); border-color: var(--highlight); }
 
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
 
.cart-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 900;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: all .2s;
  white-space: nowrap;
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.cart-count {
  background: #fff;
  color: var(--brand);
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: .8rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
 
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
 
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--fixed-bg-4);
  padding: 10px 20px 15px;
  border-top: 1px solid rgba(255,255,255,.06);
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  color: rgba(255,255,255,.75);
  padding: 10px 8px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.mobile-nav-link:hover { background: rgba(255,255,255,.08); color: var(--highlight); }
 
.header-accent { height: 3px; background: linear-gradient(90deg, var(--brand), var(--highlight), var(--brand)); }
 
/* ==========================================================================
   3. BOTÃO TEMA
   ========================================================================== */
.theme-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background .2s, transform .2s;
}
.theme-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }
 
/* ==========================================================================
   4. CARROSSEL
   ========================================================================== */
.hero-carousel { width: 100%; max-width: 1280px; margin: 25px auto; padding: 0 15px; }
.carousel-outer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.carousel-track { display: flex; gap: 18px; transition: transform .4s ease; }
.carousel-item {
  min-width: calc(33.333% - 12px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: .3s;
}
.carousel-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.25); z-index: 5; }
.carousel-item img { width: 100%; height: 340px; object-fit: cover; display: block; }
.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.carousel-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--highlight);
  color: #000;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.carousel-title { color: #fff; font-size: 1.8rem; font-weight: 900; font-family: 'Bebas Neue', sans-serif; }
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.carousel-btn:hover { background: var(--brand); border-color: var(--brand); }
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.carousel-dot {
  width: 10px; height: 10px;
  border: none; border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: background .2s;
}
.carousel-dot.active { background: var(--highlight); width: 22px; border-radius: 5px; }
 
/* ==========================================================================
   5. CARDÁPIO
   ========================================================================== */
.section { max-width: 1200px; margin: 0 auto; padding: 30px 15px 40px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--text-dark); margin-bottom: 6px; letter-spacing: 1px; }
.section-title span { color: var(--highlight); }
.section-sub { color: var(--text-light); margin-bottom: 24px; font-size: .95rem; }
 
.cat-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 24px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  background: var(--bg-card);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 24px;
  border: 1.5px solid var(--border-color);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.cat-tab.active, .cat-tab:hover { background: var(--highlight); color: #000; border-color: var(--highlight); }
 
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
 
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--highlight); box-shadow: var(--shadow-lg); }
.product-card.indisponivel { opacity: .4; }
 
.product-image-container {
  width: 100%; height: 180px;
  background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.product-image-container img { width: 100%; height: 100%; object-fit: cover; }
 
.product-details { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; background: var(--bg-card); }
.product-name  { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; color: var(--text-dark) !important; }
.product-desc  { font-size: .85rem; color: var(--text-light) !important; margin-bottom: 14px; flex-grow: 1; line-height: 1.4; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--highlight); }
 
.add-to-cart-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}
.add-to-cart-btn:hover { transform: scale(1.03); }
.add-to-cart-btn:disabled { background: var(--muted); color: var(--bg-elevated); cursor: not-allowed; transform: none; }
 
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--highlight);
  color: #000;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
 
/* ==========================================================================
   6. CARRINHO LATERAL (sempre escuro por design)
   ========================================================================== */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 950;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
 
.cart-sidebar {
  position: fixed;
  top: 0; right: -380px;
  width: 360px; height: 100%;
  background: var(--fixed-bg);
  box-shadow: -6px 0 25px rgba(0,0,0,.5);
  z-index: 960;
  transition: right .32s cubic-bezier(.25,.46,.45,.94);
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.06);
}
.cart-sidebar.open { right: 0; }
 
.cart-header {
  padding: 20px;
  background: var(--fixed-bg-2);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cart-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .5px; }
 
.close-cart {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.close-cart:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.05); }
 
.cart-items { flex-grow: 1; overflow-y: auto; padding: 16px; background: var(--fixed-bg-3); }
 
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 8px;
  color: rgba(255,255,255,.5);
  padding: 40px 0;
}
.cart-empty-icon { font-size: 3.5rem; opacity: .3; }
.cart-empty p    { font-weight: 700; font-size: 1rem; color: #fff; }
.cart-empty span { font-size: .85rem; color: rgba(255,255,255,.5); }
 
.cart-item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--fixed-bg-2);
  flex-shrink: 0;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex-grow: 1; min-width: 0; }
.cart-item-name  { font-weight: 700; font-size: .95rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .85rem; color: var(--highlight); font-weight: 700; }
 
.cart-qty-ctrl  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,.15);
  background: var(--fixed-bg-2);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  transition: all .15s;
}
.qty-btn:hover { background: var(--brand); border-color: var(--brand); }
.qty-num { font-weight: 800; font-size: .95rem; min-width: 18px; text-align: center; color: #fff; }
 
.cart-footer { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.08); background: var(--fixed-bg); flex-shrink: 0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; padding: 5px 0; color: rgba(255,255,255,.6); }
.cart-total-final { font-weight: 900; font-size: 1.15rem; margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.15); color: var(--highlight); }
 
.checkout-btn {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 900; font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
}
.checkout-btn:hover { transform: translateY(-2px); }
 
/* ==========================================================================
   7. MEDIA QUERIES BÁSICAS
   ========================================================================== */
@media (max-width: 900px) {
  .header-topbar { justify-content: flex-start; }
  .carousel-item { min-width: calc(50% - 10px); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .carousel-item { min-width: 100%; }
  .carousel-item img { height: 220px; }
  .logo-title { font-size: 1.6rem; }
  .cart-sidebar { width: 100%; max-width: 100%; right: -100%; }
}
 
/* ==========================================================================
   8. MODAIS
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
 
.modal {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 560px; max-height: 92vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  transform: translateY(30px);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.modal-overlay.open .modal { transform: translateY(0); }
 
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-lg); max-height: 88vh; transform: scale(.96); }
  .modal-overlay.open .modal { transform: scale(1); }
}
 
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h2 { font-size: 1.2rem; font-weight: 900; color: var(--text-dark); }
 
.modal-close {
  background: var(--bg-elevated);
  color: var(--text-dark);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--danger); color: #fff; }
 
/* ==========================================================================
   9. CHECKOUT
   ========================================================================== */
.checkout-modal { padding: 0; }
.checkout-modal #checkoutStep1 { padding: 24px 20px 32px; }
 
.checkout-steps { display: flex; align-items: center; margin-bottom: 22px; gap: 0; }
.step { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--text-light); white-space: nowrap; }
.step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900;
  transition: all .3s;
}
.step.active { color: var(--brand); }
.step.active span { background: var(--brand); color: #fff; }
.step.done  span  { background: var(--success); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border-color); margin: 0 6px; }
 
.checkout-summary-box {
  background: var(--smoke);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.checkout-summary-title { font-weight: 800; font-size: .9rem; margin-bottom: 10px; color: var(--text-dark); }
.summary-item-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; padding: 3px 0; color: var(--text-light); }
.summary-item-row strong { color: var(--text-dark); }
.checkout-summary-totals { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-color); }
.summary-total-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 2px 0; color: var(--text-dark); }
.summary-grand-total { font-size: 1.1rem; font-weight: 900; color: var(--brand); margin-top: 4px; }
 
.delivery-options { display: flex; gap: 10px; flex-wrap: wrap; }
.delivery-option {
  flex: 1; min-width: 120px;
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700; font-size: .9rem;
  color: var(--text-dark);
  background: var(--bg-card);
  transition: all .2s;
}
.delivery-option:has(input:checked) { border-color: var(--brand); background: var(--smoke); color: var(--brand); }
.delivery-option input { display: none; }
 
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700; font-size: .85rem;
  color: var(--text-dark);
  background: var(--bg-card);
  transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.payment-option:has(input:checked) { border-color: var(--brand); background: var(--smoke); color: var(--brand); }
.payment-option input { display: none; }
 
.checkout-actions { display: flex; gap: 10px; margin-top: 20px; }
.checkout-confirm-btn { flex: 2; padding: 14px; border-radius: var(--radius); font-size: 1rem; }
 
.modal-success { padding: 40px 24px; text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 16px; animation: popIn .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-success h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; color: var(--text-dark); }
.modal-success p { color: var(--text-light); font-size: .95rem; line-height: 1.5; }
.success-order-number { margin-top: 14px; font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--brand); background: var(--smoke); border-radius: var(--radius); padding: 10px 16px; }
 
/* ==========================================================================
   10. FORMULÁRIOS
   ========================================================================== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 5px; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius);
  font-size: .95rem;
  background: var(--bg-card);
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(211,84,0,.12);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 140px; }
.price-block { display: flex; }
 
/* ==========================================================================
   11. BOTÕES
   ========================================================================== */
.btn-primary { background: var(--brand); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius); font-weight: 800; cursor: pointer; transition: background .2s, transform .15s; font-size: .95rem; }
.btn-primary:hover { background: var(--brand-dark); transform: scale(1.03); }
 
.btn-save { background: var(--brand); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius); font-weight: 800; cursor: pointer; width: 100%; font-size: 1rem; margin-top: 6px; transition: background .2s; }
.btn-save:hover { background: var(--brand-dark); }
 
.btn-clear-form { background: transparent; border: 1.5px solid var(--border-color); color: var(--text-light); padding: 10px 20px; border-radius: var(--radius); font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px; transition: all .2s; }
.btn-clear-form:hover { border-color: var(--brand); color: var(--brand); }
 
.btn-back-checkout { background: var(--bg-elevated); color: var(--text-dark); border: none; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; cursor: pointer; flex: 1; transition: background .2s; }
.btn-back-checkout:hover { background: var(--border-color); }
 
.btn-cancel-admin { background: transparent; border: 1.5px solid var(--border-color); color: var(--text-light); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px; transition: all .2s; }
.btn-cancelar { background: transparent; border: 1px solid var(--border-color); color: var(--text-light); padding: 10px 18px; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: all .2s; }
.btn-cancelar:hover { background: rgba(255,71,87,.1); color: var(--brand); border-color: var(--brand); }
 
.toggle-wrap { display: flex; align-items: center; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--border-color); border-radius: 24px; cursor: pointer; transition: background .3s; }
.slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 3px; top: 3px; transition: transform .3s; }
.toggle input:checked + .slider { background: var(--success); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
 
/* ==========================================================================
   12. PAINEL ADMIN
   ========================================================================== */
.admin-panel { max-width: 1200px; margin: 0 auto; padding: 20px 15px 60px; }
 
.admin-header {
  display: flex; align-items: center; gap: 14px;
  background: var(--fixed-bg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-title  { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--brand); }
.admin-badge  { background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
 
.btn-save-exit { background: var(--success); color: #000; border: none; padding: 9px 18px; border-radius: var(--radius); font-weight: 800; cursor: pointer; transition: opacity .2s; }
.btn-save-exit:hover { opacity: .85; }
 
.admin-content { display: flex; flex-direction: column; gap: 0; }
.admin-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
 
.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}
.admin-card h3 { font-weight: 800; font-size: 1rem; margin-bottom: 16px; color: var(--text-dark); }
 
.banner-slot { background: var(--smoke); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.banner-slot h4 { margin-bottom: 10px; color: var(--brand); font-weight: 800; }
 
.admin-products { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
 
.admin-product-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.admin-product-emoji {
  width: 46px; height: 46px;
  background: var(--bg-inset);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; overflow: hidden; flex-shrink: 0;
}
.admin-product-emoji img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-info  { flex-grow: 1; min-width: 0; }
.admin-product-name  { font-weight: 700; font-size: .9rem; color: var(--text-dark); }
.admin-product-cat   { font-size: .75rem; color: var(--text-light); }
.admin-product-actions { display: flex; gap: 6px; }
.edit-btn { background: #3498db; color: #fff; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.del-btn  { background: var(--danger); color: #fff; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: .8rem; font-weight: 700; }
 
/* Pedidos admin */
.admin-order-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: .25s;
}
.admin-order-card:hover { transform: translateY(-3px); }
.admin-order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.admin-order-customer { font-size: 1rem; font-weight: 900; color: var(--text-dark); }
.admin-order-status { padding: 6px 12px; border-radius: 30px; color: #fff; font-size: .78rem; font-weight: 800; }
.admin-order-items { background: var(--bg-subtle); border-radius: 14px; padding: 12px; margin: 12px 0; }
.admin-order-total { font-size: 1.1rem; font-weight: 900; color: var(--brand); }
.admin-order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
 
.btn-save-order { background: var(--fixed-bg); color: #fff; border: none; padding: 10px 14px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.btn-save-order:hover { background: var(--brand); }
 
/* ==========================================================================
   13. LOGIN ADMIN
   ========================================================================== */
.admin-login { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 2000; align-items: center; justify-content: center; }
.admin-login.open { display: flex; }
 
.login-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  width: 90%; max-width: 340px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 12px;
  text-align: center;
}
.login-box h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 4px; color: var(--text-dark); }
.login-box input {
  padding: 10px 14px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text-dark);
  transition: border-color .2s;
}
.login-box input::placeholder { color: var(--muted); }
.login-box input:focus { border-color: var(--brand); outline: none; }
.login-error { color: var(--danger); font-size: .85rem; display: none; font-weight: 600; }
.login-error.show { display: block; }
 
/* ==========================================================================
   14. TOAST
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #222;
  color: #fff;
  padding: 11px 22px;
  border-radius: 30px;
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  z-index: 9999;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
 
/* ==========================================================================
   15. FOOTER (intencionalmente escuro)
   ========================================================================== */
footer { background: var(--fixed-bg); color: #999; text-align: center; padding: 30px 20px; margin-top: 40px; }
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-logo  { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--brand); margin-bottom: 8px; }
.footer-info  { font-size: .82rem; line-height: 1.7; color: #999; }
.footer-bottom { margin-top: 16px; font-size: .75rem; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.footer-info a, .footer-bottom a { color: inherit; text-decoration: none; pointer-events: none; }
.footer-sep    { opacity: .4; }
.admin-trigger { cursor: pointer; opacity: .35; transition: opacity .2s; }
.admin-trigger:hover { opacity: 1; color: var(--brand); }
 
/* ==========================================================================
   16. IMPRESSÃO
   ========================================================================== */
#thermal-receipt { display: none; }
@media print {
  body * { display: none !important; }
  #thermal-receipt, #thermal-receipt * { display: block !important; }
  #thermal-receipt { position: absolute; top: 0; left: 0; width: 80mm; padding: 5mm; font-size: 12px; line-height: 1.3; font-family: 'Courier New', monospace; color: #000; background: #fff; }
  .receipt-header  { text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 5px; }
  .receipt-divider { border-top: 1px dashed #000; margin: 5px 0; }
  .receipt-item    { display: flex !important; justify-content: space-between; margin-bottom: 3px; }
  .receipt-footer  { text-align: center; margin-top: 15px; font-size: 11px; }
}
 
/* ==========================================================================
   17. RESPONSIVIDADE MOBILE
   ========================================================================== */
@media (max-width: 767px) {
  .menu-toggle { display: flex; }
  .nav-center  { display: none; }
  .cart-btn-label { display: none; }

  /* Logo toma o espaço livre — nav-actions fica colado à direita */
  .header-main { justify-content: flex-start; }
  .logo-title  { flex: 1; font-size: 1.35rem; }
  .nav-actions { margin-left: 0; gap: 8px; }

  .products-grid { grid-template-columns: 1fr; }
  .header-topbar { font-size: .68rem; }
  .modal { max-height: 95vh; }
  .payment-options { grid-template-columns: 1fr 1fr; }
 
  .cart-sidebar { width: 100%; right: -100%; border-radius: 20px 20px 0 0; }
  .cart-btn {
    position: fixed;
    bottom: 18px; right: 18px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    padding: 14px 18px;
    border-radius: 50px;
  }
}
@media (max-width: 400px) {
  .payment-options  { grid-template-columns: 1fr; }
  .delivery-options { flex-direction: column; }
}
 
/* ==========================================================================
   18. EXTRAS / TAMANHOS (ADMIN)
   ========================================================================== */
.extra-row, .size-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.extra-row input, .size-row input { flex: 1; }
 
/* ==========================================================================
   19. ANIMAÇÕES
   ========================================================================== */
@keyframes bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.cart-count.bump { animation: bump .3s ease; }
 
/* ==========================================================================
   20. MODAIS VARIAÇÕES / ADICIONAIS
   ========================================================================== */
.variation-option:has(input:checked),
.extra-option:has(input:checked) {
  border-color: var(--brand) !important;
  background: rgba(211,84,0,.06);
}