/* =============================================
   CARDÁPIO DIGITAL – style.css
   Firebase Edition — Hamburgueria & Pizzaria
   ============================================= */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #FF5722;
  --primary-dk:  #E64A19;
  --primary-lt:  #FFE0D0;
  --secondary:   #FFC107;
  --dark:        #1A1A2E;
  --dark-2:      #16213E;
  --surface:     #EDE4DA;
  --surface-2:   #DDD0C4;
  --border:      #C9B9AD;
  --text:        #2D2D2D;
  --text-muted:  #888;
  --green:       #25D366;
  --admin:       #6C63FF;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.15);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
  --header-h:    70px;
  --font-title:  'Syne', sans-serif;
  --font-body:   'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface-2);
  padding-bottom: 80px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); outline: none; border: none; }

/* =============================================
   ANIMATED BACKGROUND
   ============================================= */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Imagem de fundo sutil da hamburgueria/pizzaria.
     Para trocar a imagem, substitua a URL abaixo por
     outra (Unsplash, etc.). Mantenha a opacidade baixa
     para não prejudicar a leitura do conteúdo. */
  background:
    radial-gradient(circle at 15% 20%, rgba(255,87,34,.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255,193,7,.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(108,99,255,.04) 0%, transparent 50%),
    linear-gradient(160deg, rgba(210,200,190,.88) 0%, rgba(195,183,170,.88) 100%),
    url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1920&q=60') center/cover fixed;
}

.bg-parallax {
  position: absolute;
  inset: 0;
}

/* Floating food emojis */
.float-food {
  position: absolute;
  left: var(--x);
  top: -60px;
  font-size: 2.4rem;
  opacity: 0.13;
  filter: blur(0.5px);
  animation: foodFall 18s linear infinite var(--d);
  transform: scale(var(--s));
}

@keyframes foodFall {
  0%   { top: -80px; transform: translateX(0) rotate(0deg) scale(var(--s)); opacity: 0; }
  5%   { opacity: 0.13; }
  95%  { opacity: 0.13; }
  100% { top: 110vh; transform: translateX(40px) rotate(360deg) scale(var(--s)); opacity: 0; }
}

/* Animated background blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: blobMove 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  top: 40%; right: -150px;
  animation-delay: -7s;
}

.blob-3 {
  width: 500px; height: 500px;
  background: #6C63FF;
  bottom: -200px; left: 30%;
  animation-delay: -14s;
}

@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,46,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

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

.logo-circle {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(255,87,34,.35);
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.brand-tag {
  font-size: .7rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot-live {
  width: 7px; height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border-radius: 50px;
  padding: 0 16px;
  height: 42px;
  transition: background var(--transition);
  border: 1px solid rgba(255,255,255,.08);
}

.header-search:focus-within {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,87,34,.4);
}

.header-search i { color: #aaa; font-size: .9rem; }

.header-search input {
  background: none;
  color: #fff;
  font-size: .9rem;
  width: 100%;
}

.header-search input::placeholder { color: #888; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-admin-toggle {
  width: 38px; height: 38px;
  background: rgba(108,99,255,.2);
  border: 1px solid rgba(108,99,255,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #a8a3ff;
  font-size: .95rem;
  transition: all var(--transition);
}

.btn-admin-toggle:hover {
  background: rgba(108,99,255,.4);
  transform: rotate(45deg);
}

.btn-login {
  display: flex; align-items: center; gap: 7px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}

.btn-login:hover { background: rgba(255,255,255,.2); }

.btn-cart {
  position: relative;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255,87,34,.3);
}

.btn-cart:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(255,87,34,.4); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--secondary);
  color: #000;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  animation: badgePop .2s ease;
}

@keyframes badgePop {
  0%  { transform: scale(0); }
  70% { transform: scale(1.2); }
  100%{ transform: scale(1); }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  /* Imagem de fundo do hero: foto de restaurante/hamburgueria.
     Para trocar a imagem, substitua a URL dentro de url().
     O gradiente escuro garante que o texto sempre seja legível. */
  background:
    linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(22,33,62,.82) 55%, rgba(15,52,96,.85) 100%),
    url('pizzaria.jpg') center/cover no-repeat;
  padding: 70px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

/* Animated grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,87,34,.22) 0%, transparent 55%),
    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.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Sparkles */
.hero::after {
  content: '✦ ✧ ✦';
  position: absolute;
  top: 30px; right: 20%;
  color: rgba(255,193,7,.4);
  font-size: .9rem;
  letter-spacing: 8px;
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%,100% { opacity: .4; transform: translateY(0); }
  50%      { opacity: .9; transform: translateY(-6px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,193,7,.15);
  border: 1px solid rgba(255,193,7,.3);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
  animation: fadeUp .5s ease both;
}

.hero-content { max-width: 560px; position: relative; z-index: 1; }

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  animation: fadeUp .5s .1s ease both;
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: .4;
}

.hero-content p {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 28px;
  animation: fadeUp .5s .2s ease both;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 14px 28px;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(255,87,34,.35);
  animation: fadeUp .5s .3s ease both;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,87,34,.45);
}

.btn-hero i { animation: bounceDown 1.5s ease-in-out infinite; }

@keyframes bounceDown {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

.hero-img-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  padding-right: 40px;
}

.hero-img-ring {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(255,87,34,.3);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: spin 20s linear infinite;
}

.hero-img-ring::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(255,193,7,.2);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.hero-img {
  font-size: 8rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 40px rgba(255,87,34,.4));
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-18px) rotate(4deg); }
}

/* =============================================
   INFO BAR
   ============================================= */
.info-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  box-shadow: 0 4px 20px rgba(255,87,34,.25);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.92);
  font-size: .8rem;
  font-weight: 600;
  padding: 10px 24px;
  border-right: 1px solid rgba(255,255,255,.2);
  transition: background var(--transition);
}

.info-item:hover { background: rgba(255,255,255,.1); }
.info-item:last-child { border-right: none; }
.info-item i { font-size: .85rem; }

/* =============================================
   MAIN LAYOUT
   ============================================= */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* =============================================
   SIDEBAR CATEGORIAS
   ============================================= */
.sidebar-cats {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border: 1px solid var(--border);
}

.sidebar-title {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cat-list { display: flex; flex-direction: column; gap: 4px; }

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.cat-item:hover { background: var(--primary-lt); color: var(--primary); transform: translateX(4px); }

.cat-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,87,34,.3);
}

.cat-item .cat-emoji { font-size: 1.1rem; }

/* =============================================
   PRODUTOS
   ============================================= */
.products-section { min-width: 0; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.product-count {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--border);
  border-radius: 50px;
  padding: 2px 10px;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp .4s ease both;
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.13);
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,87,34,.04));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover::after { opacity: 1; }

.card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #FFF3EE 0%, #FFE4D8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--transition);
}

.card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card:hover .card-img img { transform: scale(1.06); }

.card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,193,7,.15), transparent 70%);
}

.card-body {
  padding: 16px;
}

.card-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  background: var(--primary-lt);
  border-radius: 50px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.card-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
  line-height: 1.3;
}

.card-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-add {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .85rem;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(255,87,34,.3);
}

.btn-add:hover { transform: scale(1.15) rotate(90deg); box-shadow: 0 6px 16px rgba(255,87,34,.4); }

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

/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  z-index: 201;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
}

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

/* Área scrollável: itens + footer de opções juntos */
.cart-scroll-area {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  color: #fff;
}

.cart-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-cart {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: background var(--transition);
}

.btn-close-cart:hover { background: rgba(255,255,255,.2); }

.cart-items {
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .25s ease;
}

.ci-emoji { font-size: 2rem; flex-shrink: 0; }

/* Imagem do produto no carrinho */
.ci-img-wrap {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ci-emoji-fb {
  font-size: 1.8rem;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.ci-body { flex: 1; min-width: 0; }

.ci-name {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-extras {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ci-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ci-qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  transition: all var(--transition);
}

.ci-qty-btn:hover { border-color: var(--primary); color: var(--primary); }

.ci-qty { font-size: .85rem; font-weight: 700; min-width: 20px; text-align: center; }

.ci-remove { color: #e53935; font-size: .75rem; margin-left: 4px; }

.ci-price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary);
  font-size: .95rem;
  flex-shrink: 0;
}

.cart-footer {
  padding: 20px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.cart-subtotal, .cart-delivery {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--dark);
}

.cart-total strong { color: var(--primary); font-size: 1.1rem; }

.cart-obs {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem;
  background: var(--surface);
  color: var(--text);
  resize: none;
  height: 72px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}

.cart-obs:focus { border-color: var(--primary); }

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}

/* Barra que contém o botão de finalizar — sempre visível na base do carrinho */
.cart-checkout-bar {
  display: none; /* JS controla via renderCart() */
  padding: 14px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: var(--surface-2);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}

.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); }

/* =============================================
   PAYMENT METHOD SELECTOR
   ============================================= */
.payment-selector {
  margin-bottom: 14px;
}

.payment-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pay-options {
  display: flex;
  gap: 8px;
}

.pay-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}

.pay-btn[data-pay="whatsapp"].active {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37,211,102,.08);
}

.pay-btn[data-pay="delivery"].active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,87,34,.08);
}

.pay-btn[data-pay="pix"].active {
  border-color: #32BCAD;
  color: #32BCAD;
  background: rgba(50,188,173,.08);
}

.pay-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Dynamic checkout button for PIX */
.btn-checkout.pix-mode {
  background: linear-gradient(135deg, #32BCAD, #1a9e90);
  box-shadow: 0 6px 20px rgba(50,188,173,.35);
}

/* =============================================
   SELETOR DE TIPO DE ENTREGA (Entrega / Retirada)
   – Os botões usam a classe .delivery-btn e ficam
     dentro de .delivery-type-selector no carrinho.
   – Para mudar cores ou ícones, edite as regras
     .delivery-btn[data-delivery="..."].active abaixo.
   ============================================= */
.delivery-type-selector {
  margin-bottom: 14px;
}

/* Botão de entrega ativo */
.delivery-btn[data-delivery="delivery"].active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,87,34,.08);
}

/* Botão de retirada ativo */
.delivery-btn[data-delivery="pickup"].active {
  border-color: var(--admin);
  color: var(--admin);
  background: rgba(108,99,255,.08);
}

/* =============================================
   CAMPO DE ENDEREÇO DE ENTREGA
   – Aparece abaixo do seletor quando "Entrega"
     está selecionado (controlado via JS).
   – Para alterar o placeholder ou hint, edite
     index.html (id="deliveryAddressInput").
   ============================================= */
.address-input-wrap {
  margin-bottom: 14px;
  animation: fadeUp .22s ease;
}

.address-input-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.address-input-icon {
  position: absolute;
  left: 14px;
  color: var(--primary);
  font-size: .9rem;
  pointer-events: none;
  z-index: 1;
}

.address-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 38px;
  font-size: .88rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.address-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,87,34,.12);
  outline: none;
}

.address-input::placeholder { color: #bbb; }

/* Dica embaixo do campo (ex.: "Seu endereço de entrega") */
.address-input-hint {
  display: block;
  margin-top: 5px;
  font-size: .72rem;
  color: var(--text-muted);
  padding-left: 4px;
}

/* =============================================
   MODAL PERFIL
   – Para adicionar novas opções de perfil:
     1. Adicione um botão .profile-option-btn em index.html
     2. Adicione o data-profile-action correspondente
     3. Trate o evento em app.js (openProfileEditForm)
   ============================================= */
.modal-profile {
  max-width: 420px;
  padding: 36px 28px 28px;
  text-align: center;
}

/* Avatar circular com inicial do nome do usuário */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(255,87,34,.3);
}

/* Lista de opções do perfil */
.profile-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  text-align: left;
}

/* Botão de opção genérico (phone, email, address) */
.profile-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: left;
}

.profile-option-btn:hover {
  background: var(--primary-lt);
  border-color: var(--primary);
  color: var(--primary);
}

/* Ícone principal da opção */
.profile-option-btn > i:first-child {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* Seta da direita */
.profile-option-btn > i:last-child {
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* Texto principal e hint secundário */
.profile-option-btn span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-option-btn small {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Botão "Sair da conta" – vermelho */
.profile-option-danger {
  border-color: #ffcdd2;
  color: #c62828;
}

.profile-option-danger > i:first-child { color: #e53935; }
.profile-option-danger:hover {
  background: #ffebee;
  border-color: #e53935;
  color: #c62828;
}

/* Formulário inline de edição de campo do perfil */
.profile-edit-form {
  text-align: left;
  margin-top: 16px;
  animation: fadeUp .2s ease;
}

/* Título do formulário de edição (ex.: "Alterar Telefone") */
.profile-edit-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

/* =============================================
   BADGE DE TIPO DE ENTREGA (Painel Admin – Pedidos)
   – Aparece em cada card de pedido para indicar
     se é entrega ou retirada no local.
   – Para alterar cores, edite as variantes abaixo.
   ============================================= */
.aoc-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Verde para entrega por moto */
.aoc-delivery-badge.delivery {
  background: rgba(37,211,102,.1);
  color: #1a7a3c;
  border: 1px solid rgba(37,211,102,.25);
}

/* Roxo para retirada na loja */
.aoc-delivery-badge.pickup {
  background: rgba(108,99,255,.1);
  color: var(--admin);
  border: 1px solid rgba(108,99,255,.25);
}

/* Estilo para observações dentro dos cards de pedido */
.aoc-obs {
  color: var(--text-muted);
  font-style: italic;
  background: rgba(0,0,0,.02);
  border-left: 2px solid var(--border);
  padding-left: 8px;
  border-radius: 0 4px 4px 0;
}

/* =============================================
   CAMPO DE OBSERVAÇÃO DO PRODUTO (modal do produto)
   – Textarea onde o cliente digita obs por item.
   – A obs aparece no carrinho e no painel admin.
   ============================================= */
.pm-obs-wrap {
  margin-bottom: 16px;
}

.pm-obs-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem;
  background: var(--surface-2);
  color: var(--text);
  resize: none;
  height: 68px;
  transition: border-color var(--transition);
  font-family: var(--font-body);
}

.pm-obs-input:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--surface);
}

/* =============================================
   SUB-SELETOR DE PAGAMENTO NA ENTREGA
   – Grade de 4 botões: Crédito, Débito, Dinheiro,
     PIX na entrega. Aparece apenas quando "Na entrega"
     está selecionado no seletor principal.
   – Para ajustar colunas, edite grid-template-columns
     em .delivery-pay-grid.
   ============================================= */
.delivery-payment-wrap {
  margin-bottom: 14px;
  animation: fadeUp .2s ease;
}

.delivery-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.dpay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid var(--border);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.dpay-btn i   { font-size: .95rem; }
.dpay-btn span { line-height: 1; }

.dpay-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lt);
}

/* Estado ativo – laranja primário */
.dpay-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 2px 10px rgba(255,87,34,.18);
}

.modal-pix {
  max-width: 460px;
  padding: 32px 28px 28px;
}

.pix-header { text-align: center; margin-bottom: 20px; }

.pix-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #32BCAD, #1a9e90);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(50,188,173,.35);
}

.pix-order-info {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.pix-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.pix-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.pix-info-row span:first-child { color: var(--text-muted); }
.pix-value { color: #32BCAD !important; font-size: 1rem !important; }

.pix-instructions {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}

.pix-instructions strong { color: var(--dark); }

.pix-key-wrap {
  background: linear-gradient(135deg, rgba(50,188,173,.08), rgba(50,188,173,.04));
  border: 2px dashed #32BCAD;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.pix-key-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #32BCAD;
  margin-bottom: 8px;
}

.pix-key-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

#pixKey {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: .05em;
}

.btn-pix-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #32BCAD;
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  transition: background var(--transition);
}

.btn-pix-copy:hover { background: #1a9e90; }

.pix-key-name {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pix-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pix-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--text-muted);
}

.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #32BCAD, #1a9e90);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.btn-pix-wpp {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}

.btn-pix-wpp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.4); }

/* =============================================
   ADMIN – PAYMENT METHOD BADGES
   ============================================= */
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 3px 9px;
}

.pay-badge-wpp {
  background: rgba(37,211,102,.12);
  color: #128C7E;
}

.pay-badge-pix {
  background: rgba(50,188,173,.12);
  color: #1a9e90;
}

/* =============================================
   MEUS PEDIDOS (cliente)
   ============================================= */
.modal-my-orders {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
}

.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.my-order-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  animation: fadeUp .25s ease;
}

.moc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.moc-items {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.moc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.moc-total {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

.moc-obs {
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
  text-align: right;
}

/* Admin error state */
.admin-error {
  color: #e53935 !important;
  background: #fff5f5;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #ffcdd2;
  text-align: center;
}

.admin-error i { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.admin-error p { font-weight: 700; margin-bottom: 4px; color: #c62828; }
.admin-error small { color: #888; font-size: .8rem; line-height: 1.4; }

/* Index hint */
.index-hint {
  background: #FFF9C4;
  border: 1px solid #F9A825;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .78rem;
  color: #6D4C00;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* =============================================
   MODALS BASE
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(.96);
  opacity: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: all var(--transition);
  z-index: 1;
}

.modal-close:hover { background: var(--border); transform: rotate(90deg); }

.modal-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(255,87,34,.3);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub { text-align: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 24px; }

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

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-group input, .form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color var(--transition);
}

.form-group input:focus, .form-group select:focus { border-color: var(--primary); background: var(--surface); }

.input-pass { position: relative; }
.input-pass input { padding-right: 44px; }
.toggle-pass {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
  padding: 4px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 12px 24px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(255,87,34,.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,87,34,.35);
}

.btn-primary.full { width: 100%; justify-content: center; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 12px 24px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary.full { width: 100%; justify-content: center; }
.btn-secondary:hover { background: var(--border); }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: .8rem;
}

.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
}

.login-error {
  color: #e53935;
  font-size: .8rem;
  background: #ffebee;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.back-btn:hover { color: var(--primary); }

/* =============================================
   PRODUCT MODAL
   ============================================= */
.modal-product {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 90vh;
  max-height: 90dvh;
}

.product-modal-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.pm-bottom-bar {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.product-modal-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #FFF3EE, #FFE0D0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.product-modal-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.product-modal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,193,7,.2), transparent);
}

.product-modal-body { padding: 24px; }

.product-modal-body h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.product-modal-body p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pm-extras { margin-bottom: 20px; }
.pm-extra-group { margin-bottom: 16px; }

.pm-extra-group h4 {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pm-extra-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.pm-extra-option:last-child { border-bottom: none; }
.pm-extra-option input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.pm-extra-option label { flex: 1; cursor: pointer; font-size: .9rem; }
.pm-extra-option .extra-price { color: var(--primary); font-weight: 700; font-size: .85rem; }

.pm-qty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.qty-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--text);
  transition: all var(--transition);
}

.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

#pmQty { font-size: 1.2rem; font-weight: 800; min-width: 24px; text-align: center; }

.pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pm-price {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

/* =============================================
   ADMIN PANEL
   ============================================= */
.modal-admin {
  max-width: 780px;
  padding: 0;
  overflow: hidden;
}

.admin-header {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-logo {
  width: 48px; height: 48px;
  background: rgba(108,99,255,.3);
  border: 2px solid rgba(108,99,255,.5);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #a8a3ff;
  font-size: 1.2rem;
}

.admin-header .modal-title {
  text-align: left;
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 16px;
}

.admin-tab {
  padding: 14px 20px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.admin-tab:hover { color: var(--primary); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-badge {
  background: var(--primary);
  color: #fff;
  font-size: .6rem;
  border-radius: 50px;
  padding: 1px 6px;
  font-weight: 700;
}

.admin-content {
  display: none;
  padding: 20px;
  min-height: 400px;
  max-height: 60vh;
  overflow-y: auto;
}

.admin-content.active { display: block; }

.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: .9rem;
}

/* Orders */
.orders-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-order-card {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  animation: fadeUp .25s ease;
  transition: box-shadow var(--transition);
}

.admin-order-card:hover { box-shadow: var(--shadow); }

.aoc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.aoc-id {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
}

.aoc-time { font-size: .75rem; color: var(--text-muted); }

.aoc-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}

.status-pending   { background: #FFF8E1; color: #F57F17; }
.status-preparing { background: #FFF3E0; color: #E65100; }
.status-ready     { background: #E8F5E9; color: #2E7D32; }
.status-delivered { background: #E3F2FD; color: #1565C0; }
.status-cancelled { background: #FFEBEE; color: #C62828; }

.aoc-customer { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }

.aoc-items { font-size: .82rem; color: var(--text); margin-bottom: 10px; line-height: 1.5; }

.aoc-total {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
  font-size: .95rem;
}

.aoc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.aoc-btn {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}

.aoc-btn:hover { transform: translateY(-1px); }
.aoc-btn-prepare { border-color: #FF9800; color: #FF9800; }
.aoc-btn-prepare:hover { background: #FF9800; color: #fff; }
.aoc-btn-ready { border-color: #4CAF50; color: #4CAF50; }
.aoc-btn-ready:hover { background: #4CAF50; color: #fff; }
.aoc-btn-deliver { border-color: #2196F3; color: #2196F3; }
.aoc-btn-deliver:hover { background: #2196F3; color: #fff; }
.aoc-btn-cancel { border-color: #e53935; color: #e53935; }
.aoc-btn-cancel:hover { background: #e53935; color: #fff; }

/* Menu admin */
.admin-menu-toolbar { margin-bottom: 16px; }

.admin-menu-list { display: flex; flex-direction: column; gap: 8px; }

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.admin-menu-item:hover { box-shadow: var(--shadow); }

.ami-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF3EE, #FFE4D8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.ami-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* keep legacy selector as alias */
.ami-emoji { font-size: 1.8rem; }

.ami-info { flex: 1; }
.ami-name { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.ami-cat { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.ami-price { font-family: var(--font-title); font-weight: 800; color: var(--primary); }

.ami-actions { display: flex; gap: 6px; }

.ami-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: all var(--transition);
}

.ami-btn-edit { color: var(--admin); }
.ami-btn-edit:hover { background: var(--admin); border-color: var(--admin); color: #fff; }
.ami-btn-del { color: #e53935; }
.ami-btn-del:hover { background: #e53935; border-color: #e53935; color: #fff; }

/* Product form */
.product-form-wrap {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.product-form-wrap h3 {
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 16px;
}

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

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Clients */
.admin-clients-list { display: flex; flex-direction: column; gap: 8px; }

.client-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.client-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--admin), #9C27B0);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

.client-info { flex: 1; }
.client-name { font-weight: 700; font-size: .9rem; }
.client-detail { font-size: .75rem; color: var(--text-muted); }

.client-orders {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-lt);
  border-radius: 50px;
  padding: 3px 10px;
}

/* =============================================
   ORDER LIVE NOTIFICATION
   ============================================= */
.order-notif {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 500;
  background: var(--dark);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,87,34,.3);
  max-width: 300px;
  animation: slideInRight .4s cubic-bezier(.4,0,.2,1);
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.notif-pulse {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: pulseBig 1s infinite;
}

@keyframes pulseBig {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,87,34,.5); }
  50%      { box-shadow: 0 0 0 10px rgba(255,87,34,0); }
}

.notif-body { flex: 1; }
.notif-body strong { display: block; color: #fff; font-size: .85rem; margin-bottom: 2px; }
.notif-body span { color: #aaa; font-size: .75rem; }

.order-notif button {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition);
}

.order-notif button:hover { background: var(--primary-dk); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   ONDE ESTAMOS
   ============================================= */
.onde-estamos {
  background: var(--dark);
  padding: 70px 24px;
  margin-bottom: 0;
}

.onde-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.onde-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 10px;
}

.onde-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 36px;
}

.onde-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.onde-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,87,34,.15);
  border: 1px solid rgba(255,87,34,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.onde-item-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.onde-item p {
  color: #ccc;
  font-size: .92rem;
  line-height: 1.6;
}

.onde-mapa {
  display: flex;
  align-items: center;
  justify-content: center;
}

.onde-mapa-box {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.onde-mapa-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: .8;
}

.onde-mapa-addr {
  color: #ccc;
  font-size: .9rem;
  line-height: 1.6;
}

.onde-mapa-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,87,34,.4);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.onde-mapa-link:hover { opacity: .75; }

@media (max-width: 700px) {
  .onde-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .onde-title { font-size: 1.7rem; }
}

/* =============================================
   MOBILE NAV
   ============================================= */
.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 20px rgba(0,0,0,.1);
  z-index: 99;
  border-top: 1px solid var(--border);
}

.mnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 16px;
  position: relative;
  transition: color var(--transition);
}

.mnav-btn i { font-size: 1.1rem; }
.mnav-btn.active { color: var(--primary); }

.mnav-badge {
  position: absolute;
  top: 4px; right: 8px;
  min-width: 16px; height: 16px;
  background: var(--primary);
  color: #fff;
  font-size: .6rem;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* =============================================
   NO RESULTS
   ============================================= */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.no-results .nr-icon { font-size: 3rem; margin-bottom: 12px; }

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 20px auto;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-cats {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    scrollbar-width: none;
  }

  .sidebar-cats::-webkit-scrollbar { display: none; }
  .sidebar-title { display: none; }

  .cat-list {
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .cat-item { white-space: nowrap; flex-shrink: 0; }
  .cat-item:hover { transform: none; }

  .hero-img-wrap { display: none; }
  .hero { justify-content: center; padding: 50px 20px; }

  .info-bar { gap: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }

  .modal-admin { max-width: 100%; border-radius: 20px 20px 0 0; margin-bottom: 0; align-self: flex-end; }

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

@media (max-width: 600px) {
  .header-search { display: none; }
  .header-inner { gap: 12px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-img { height: 120px; font-size: 3rem; }
  .btn-login span { display: none; }
  .btn-login { padding: 8px 12px; }
  .info-item { padding: 8px 14px; font-size: .72rem; }
  .modal { padding: 28px 20px; }
  .float-food { font-size: 1.8rem; }

  /* ---- CARRINHO MOBILE: sem overrides necessários, grid já cuida de tudo ---- */
  .cart-footer { padding: 14px 16px; }
}

/* ===== ZONE SELECTOR (frete por bairro) ===== */
.zone-selector-wrap {
  margin: 10px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zone-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.zone-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}

.zone-fee-hint {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 1em;
}
