/* ═══════════════════════════════════════════════════
   DAY LANCHES — CARDÁPIO DIGITAL
   Versão demonstrativa profissional
   ═══════════════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --primary:       #FF6B00;
  --primary-dark:  #E05A00;
  --primary-light: #FFF3EB;
  --success:       #22C55E;
  --success-bg:    #F0FDF4;
  --success-dark:  #16A34A;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --bg-dark:       #111111;
  --bg-dark2:      #1C1C1C;
  --bg-page:       #F5F5F5;
  --white:         #FFFFFF;
  --card-bg:       #FFFFFF;
  --border:        #E5E7EB;
  --border-dark:   #2D2D2D;
  --text:          #1A1A1A;
  --text-med:      #4B5563;
  --text-muted:    #9CA3AF;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.16);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --header-h:      60px;
  --transition:    .2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR THIN ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ═══════════════════════════════════════════
   PAGES & TRANSITIONS
═══════════════════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
  background: var(--bg-page);
  animation: fadeIn .25s ease;
}
.page.active { display: block; }

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

/* ═══════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════ */
.txt-primary  { color: var(--primary); }
.txt-success  { color: var(--success); }
.txt-muted    { color: var(--text-muted); }
.hidden       { display: none !important; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
}
.header-dark {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.header-light {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.4rem;
  font-weight: 800;
}
.logo-day    { color: #fff; font-style: italic; }
.logo-lanches { color: var(--primary); }
.logo-burger { color: var(--primary); font-size: 1.1rem; margin-left: 4px; }

.logo-dark { gap: 2px; font-size: 1.3rem; }
.logo-day-dark    { color: var(--text); font-style: italic; font-weight: 800; }
.logo-lanches-dark { color: var(--primary); font-weight: 800; }

/* Buttons in header */
.btn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.header-dark .btn-icon  { color: #fff; }
.header-dark .btn-icon:hover { background: rgba(255,255,255,.1); }
.header-light .btn-icon { color: var(--text); }
.header-light .btn-icon:hover { background: rgba(0,0,0,.06); }

.btn-cart-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid #111;
  animation: pop .2s ease;
}

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

.header-secure {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--success);
}
.header-secure i { font-size: 13px; }

/* ═══════════════════════════════════════════
   HERO CAROUSEL
═══════════════════════════════════════════ */
/* Barra de busca acima do carrossel */
.search-top-bar {
  background: var(--white);
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.search-top-bar .search-wrap {
  margin: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-carousel {
  position: relative;
  background: #111;
  overflow: hidden;
  min-height: 215px;
}
.hero-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,107,0,.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 215px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.carousel-track-wrap:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: block;
}

/* Banner full-cover */
.slide-banner {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  display: block;
}

.slide-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.carousel-slide:hover .slide-banner-img { transform: scale(1.04); }

.slide-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.42) 50%,
    rgba(0,0,0,.05) 100%
  );
  z-index: 1;
}

.slide-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1500 100%);
  color: rgba(255,107,0,.35);
  font-size: 5rem;
}

.slide-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 30px;
  z-index: 2;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  font-size: .6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: fit-content;
  margin-bottom: 6px;
}
.slide-badge-mais  { background: #22C55E; color: #fff; }
.slide-badge-combo { background: #8B5CF6; color: #fff; }
.slide-badge-dest  { background: #F59E0B; color: #fff; }
.slide-badge-novo  { background: var(--primary); color: #fff; }
.slide-badge-promo { background: #EF4444; color: #fff; }

.slide-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

.slide-price {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 0 22px rgba(255,107,0,.45);
}

.slide-desc {
  color: rgba(255,255,255,.82);
  font-size: .74rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

/* Setas de navegação */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.52);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: inherit;
}
.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Bolinhas indicadoras */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,.28);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--primary);
  width: 20px;
}

/* ═══════════════════════════════════════════
   PÁGINA DE DETALHES DO PRODUTO
═══════════════════════════════════════════ */
.product-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--white);
  flex-direction: column;
  overflow: hidden;
}
.product-page.open {
  display: flex;
  animation: pixSlideIn .3s cubic-bezier(.4,0,.2,1) both;
}

.pp-hero {
  position: relative;
  width: 100%;
  height: 260px;
  background: #f0f0f0;
  flex-shrink: 0;
  overflow: hidden;
}
.pp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pp-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f3f3, #e5e5e5);
  color: #ccc;
  font-size: 5rem;
}

.pp-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.50);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition);
  font-family: inherit;
}
.pp-back:hover { background: rgba(0,0,0,.7); }

.pp-badge-slot {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}
.pp-badge-slot .badge { position: static; font-size: .7rem; }

.pp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pp-info { display: flex; flex-direction: column; gap: 6px; }

.pp-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.pp-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.pp-desc {
  font-size: .88rem;
  color: var(--text-med);
  line-height: 1.6;
  margin: 0;
}
.pp-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
  width: fit-content;
}

.pp-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.pp-row-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.pp-qty {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.pp-qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: .9rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}
.pp-qty-btn:hover  { background: var(--primary-light); color: var(--primary); }
.pp-qty-btn:active { background: var(--border); }
.pp-qty-val {
  min-width: 36px;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

.pp-addons-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.pp-addons-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pp-addons-head h2 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 3px;
}
.pp-addons-head p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
#pp-addons-count {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.pp-addons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.pp-addon {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.pp-addon.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(255,107,0,.08);
}
.pp-addon-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: .68rem;
  background: #fff;
}
.pp-addon.selected .pp-addon-check {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.pp-addon-name {
  font-size: .86rem;
  font-weight: 700;
  min-width: 0;
}
.pp-addon-price {
  font-size: .82rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.pp-addons-note {
  font-size: .78rem;
  color: var(--text-med);
  line-height: 1.45;
  padding-top: 2px;
}

.pp-obs-wrap { display: flex; flex-direction: column; gap: 8px; }
.pp-obs-label { font-size: .9rem; font-weight: 700; color: var(--text); }

/* Botão principal da página de detalhes — bem visível no mobile */
#pp-add-btn {
  min-height: 56px;
  height: auto;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 16px;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255,107,0,.32);
  letter-spacing: .2px;
}
#pp-add-btn:active { transform: scale(.97); }

@media (min-width: 640px) {
  .pp-hero { height: 320px; }
  .pp-name { font-size: 1.6rem; }
  .pp-price { font-size: 1.75rem; }
  .pp-addons-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pp-hero { height: 380px; }
  .pp-body { padding: 28px 24px 40px; max-width: 680px; margin: 0 auto; width: 100%; }
}

/* ═══════════════════════════════════════════
   TELA DE PESQUISA
═══════════════════════════════════════════ */
.search-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #f5f5f5;
  flex-direction: column;
  overflow: hidden;
}
.search-page.open {
  display: flex;
  animation: pixSlideIn .3s cubic-bezier(.4,0,.2,1) both;
}

/* Header da tela de pesquisa */
.search-page-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sp-back { color: var(--text); flex-shrink: 0; }
.sp-back:hover { background: #f5f5f5; }

.sp-input-wrap {
  flex: 1;
  margin: 0;
}
.sp-input-wrap .search-input {
  padding-right: 38px;
}

.sp-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-muted);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.sp-clear-btn:hover { background: var(--text); }

/* Corpo inicial */
.sp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Corpo de resultados */
.sp-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 16px;
}

/* Seções */
.sp-section { margin-bottom: 22px; }

.sp-title {
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}
.sp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sp-title-row .sp-title { margin-bottom: 0; }

.sp-link-btn {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.sp-link-btn:hover { color: var(--primary-dark); }

/* Chips de categoria */
.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-med);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sp-chip:hover, .sp-chip:active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Histórico */
.sp-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.sp-history-item:last-child { border-bottom: none; }
.sp-hist-ico { color: var(--text-muted); font-size: .8rem; flex-shrink: 0; }
.sp-hist-term {
  flex: 1;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}
.sp-hist-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .65rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  font-family: inherit;
}
.sp-hist-remove:hover { background: #fee2e2; color: var(--danger); }

/* Grid de sugestões */
.sp-suggest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sp-suggest-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sp-suggest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sp-suggest-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.sp-suggest-placeholder {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f3f3, #e8e8e8);
  color: #bbb;
  font-size: 1.6rem;
}
.sp-suggest-info { padding: 8px 10px 10px; }
.sp-suggest-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-suggest-price {
  font-size: .82rem;
  font-weight: 800;
  color: var(--primary);
}

/* Resultados da pesquisa — mesmo grid do catálogo */
#sp-results-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 8px;
}

/* Sem resultados */
.sp-no-results {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.sp-no-results i { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.sp-no-results p  { font-size: .9rem; font-weight: 600; color: var(--text-med); margin-bottom: 4px; }
.sp-no-results small { font-size: .78rem; }

/* ═══════════════════════════════════════════
   MENU SECTION
═══════════════════════════════════════════ */
.menu-section { padding-bottom: 80px; }
.menu-inner   { max-width: 1200px; margin: 0 auto; }

/* Search */
.search-wrap {
  position: relative;
  margin: 0;
}
.search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .9rem;
  pointer-events: none;
}
.search-input {
  width: 100%; height: 44px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 0 16px 0 40px;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.12);
}

/* Categories */
.cats-scroll-wrap {
  margin-top: 14px;
  overflow: hidden;
}
.cats-scroll {
  display: flex;
  gap: 8px;
  padding: 4px 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-med);
  font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,0,.3);
}

/* Products section */
.products-section { padding: 20px 16px 0; }
.section-title {
  font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title i { color: var(--warning); }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 48px 16px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: .95rem; font-weight: 500; }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-img-wrap {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: #f3f3f3;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.05); }

/* Garrafas/latas verticais usam contain para não cortar */
.product-card[data-id="16"] .card-img-wrap img,
.product-card[data-id="25"] .card-img-wrap img,
.product-card[data-id="26"] .card-img-wrap img {
  object-fit: contain;
  background: #fff;
  padding: 8px;
}
.product-card[data-id="16"] .card-img-wrap img:hover,
.product-card[data-id="25"] .card-img-wrap img:hover,
.product-card[data-id="26"] .card-img-wrap img:hover { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  background: linear-gradient(135deg, #f3f3f3, #e8e8e8);
  color: #aaa;
}
.card-img-placeholder i { font-size: 2rem; }
.card-img-placeholder span { font-size: .75rem; font-weight: 500; }

/* Badges */
.badge {
  position: absolute; top: 8px; left: 8px;
  font-size: .65rem; font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-mais  { background: var(--success); color: #fff; }
.badge-novo  { background: var(--primary); color: #fff; }
.badge-combo { background: #8B5CF6; color: #fff; }
.badge-dest  { background: var(--warning); color: #fff; }

.card-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; flex: 1;
  min-width: 0;
}
.card-name {
  font-size: .88rem; font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: .72rem; color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.card-price {
  font-size: .95rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.btn-add {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  font-size: .74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
  transition: background var(--transition), transform .1s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(255,107,0,.28);
  white-space: nowrap;
}
.btn-add:hover  { background: var(--primary-dark); }
.btn-add:active { transform: scale(.97); }
.btn-add.in-cart { background: var(--success); }

/* ── QTY CONTROL in card ── */
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--primary);
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  height: 32px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--primary-dark); }
.qty-val {
  flex: 1;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
}

/* ═══════════════════════════════════════════
   BOTÃO DE GEOLOCALIZAÇÃO
═══════════════════════════════════════════ */
.btn-geo {
  width: 100%;
  height: 50px;
  background: var(--white);
  border: 2px dashed var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-geo:hover { background: var(--primary-light); }
.btn-geo:disabled { opacity: .7; cursor: not-allowed; }
.btn-geo.btn-geo-done {
  background: var(--success-bg);
  border: 2px solid var(--success);
  color: var(--success-dark);
  border-style: solid;
}

.geo-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success-dark);
  font-size: .88rem;
  font-weight: 600;
  margin-top: 12px;
}
.geo-success i { font-size: 1rem; flex-shrink: 0; }

.geo-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: none;
}
.geo-map-link:hover { text-decoration: underline; }

.outro-bairro-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--primary-light);
  border: 1.5px solid #FFD5B5;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  color: var(--primary-dark);
  font-weight: 500;
  line-height: 1.4;
}
.outro-bairro-notice i { flex-shrink: 0; margin-top: 2px; }

.neighborhood-fee-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 12px;
  background: var(--success-bg);
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  color: var(--success-dark);
}
.neighborhood-fee-display i { color: var(--success-dark); font-size: .9rem; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.geo-fee-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--primary-light);
  border: 1.5px solid #FFD5B5;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  color: var(--text-med);
}
.geo-fee-info strong { color: var(--primary-dark); }
.geo-fee-info i { margin-right: 4px; color: var(--primary); }

/* ═══════════════════════════════════════════
   BOTÕES DE FORMA DE PAGAMENTO
═══════════════════════════════════════════ */
.pay-methods-new {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-method-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all var(--transition);
}
.pay-method-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.pay-method-btn:active { transform: scale(.98); }

.pay-method-btn .pm-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pay-method-btn .pm-text strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.pay-method-btn .pm-text small {
  font-size: .76rem;
  color: var(--text-muted);
}
.pay-method-arrow {
  color: var(--text-muted);
  font-size: .85rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   TELA DE PAGAMENTO PIX
═══════════════════════════════════════════ */
.pix-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-page);
  flex-direction: column;
  overflow: hidden;
}
.pix-page.open {
  display: flex;
  animation: pixSlideIn .3s cubic-bezier(.4,0,.2,1) both;
}
@keyframes pixSlideIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.pix-page-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pix-page-back { color: var(--text); }
.pix-page-back:hover { background: #f5f5f5; }

.pix-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.pix-page-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   BARRA FIXA DO CARRINHO
═══════════════════════════════════════════ */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 52;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 -4px 20px rgba(255,107,0,.35);
  padding: 10px 16px;
}
.cart-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.cart-bar-ico {
  color: rgba(255,255,255,.85);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cart-bar-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cart-bar-count {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.cart-bar-total {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.cart-bar-btn {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.38);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
  font-family: inherit;
  white-space: nowrap;
}
.cart-bar-btn:hover  { background: rgba(255,255,255,.28); }
.cart-bar-btn:active { background: rgba(255,255,255,.12); }

/* ═══════════════════════════════════════════
   WHATSAPP BAR
═══════════════════════════════════════════ */
.wa-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: #111;
  border-top: 1px solid #222;
  box-shadow: 0 -4px 16px rgba(0,0,0,.3);
}
.wa-bar-link {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.wa-icon { font-size: 1.7rem; color: #25D366; }
.wa-bar-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wa-label { font-size: .82rem; font-weight: 500; color: #ccc; }
.wa-number { font-size: .9rem; font-weight: 700; color: #25D366; }
.wa-arrow { color: var(--primary); font-size: .85rem; }

/* ═══════════════════════════════════════════
   CART SIDEBAR
═══════════════════════════════════════════ */
.cart-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 100vw);
  z-index: 200;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-hd {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-hd h2 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cart-hd h2 i { color: var(--primary); }

.btn-close-cart {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--text-muted); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.btn-close-cart:hover { background: #f5f5f5; color: var(--text); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  min-height: 200px;
  color: var(--text-muted); text-align: center;
}
.cart-empty i { font-size: 2.5rem; }
.cart-empty p  { font-size: .95rem; font-weight: 600; color: var(--text-med); }
.cart-empty small { font-size: .8rem; }

/* Cart item */
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.ci-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f3f3;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.ci-price { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.ci-addons {
  font-size: .74rem;
  color: var(--text-med);
  line-height: 1.35;
  margin-top: 3px;
}
.ci-controls {
  display: flex; align-items: center; gap: 0;
  margin-top: 8px;
  background: #f5f5f5;
  border-radius: 20px;
  width: fit-content;
}
.ci-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: .85rem;
  transition: background var(--transition);
}
.ci-btn:hover { background: var(--border); }
.ci-btn.minus-btn:hover { background: #fee2e2; color: var(--danger); }
.ci-qty { width: 28px; text-align: center; font-size: .88rem; font-weight: 700; }
.ci-total { font-size: .88rem; font-weight: 700; color: var(--primary); flex-shrink: 0; padding-top: 2px; }
.ci-remove {
  padding: 4px;
  color: var(--text-muted); font-size: .8rem;
  transition: color var(--transition);
}
.ci-remove:hover { color: var(--danger); }

.cart-ft {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  flex-shrink: 0;
}
.cart-line {
  display: flex; justify-content: space-between;
  font-size: .88rem; color: var(--text-med);
  padding: 4px 0;
}
.cart-line-total {
  font-size: 1rem;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

/* ═══════════════════════════════════════════
   CHECKOUT (shared)
═══════════════════════════════════════════ */
.checkout-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Step indicator */
.steps {
  display: flex; align-items: center;
  gap: 0;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--text-muted);
  transition: all var(--transition);
}
.step span {
  font-size: .68rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}
.step.active .step-dot {
  border-color: var(--primary); background: var(--primary);
  color: #fff; box-shadow: 0 0 0 4px rgba(255,107,0,.15);
}
.step.active span { color: var(--primary); }
.step.done .step-dot {
  border-color: var(--success); background: var(--success); color: #fff;
}
.step.done span { color: var(--success); }
.step-line {
  flex: 1; min-width: 24px; height: 2px;
  background: var(--border);
  margin: 0 2px;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.step-line.done { background: var(--success); }

/* Card */
.ck-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ck-card-title {
  font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
}
.ck-card-title i { color: var(--primary); font-size: .95rem; }
.ck-card-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ck-card-row .ck-card-title { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   DELIVERY PAGE
═══════════════════════════════════════════ */
.delivery-opts { display: flex; flex-direction: column; gap: 10px; }
.delivery-opt { cursor: pointer; }
.delivery-opt input { display: none; }
.opt-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.delivery-opt:has(input:checked) .opt-inner {
  border-color: var(--primary);
  background: var(--primary-light);
}
.opt-ico { font-size: 1.2rem; color: var(--primary); width: 20px; }
.opt-inner div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt-inner strong { font-size: .9rem; font-weight: 700; }
.opt-inner small  { font-size: .78rem; color: var(--text-muted); }
.opt-check { color: var(--primary); opacity: 0; transition: opacity var(--transition); }
.delivery-opt:has(input:checked) .opt-check { opacity: 1; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group:last-child { margin-bottom: 0; }
.form-row { display: flex; gap: 10px; }
.fg-1 { flex: 1; }
.fg-2 { flex: 2; }

.form-label { font-size: .8rem; font-weight: 600; color: var(--text-med); }
.form-input {
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: .9rem; color: var(--text);
  outline: none;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}
.form-input.error { border-color: var(--danger); }
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .9rem; color: var(--text);
  resize: vertical;
  outline: none;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,.1);
}
.form-error {
  background: #FEE2E2; border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem; color: var(--danger);
  display: flex; align-items: center; gap: 8px;
}

/* ═══════════════════════════════════════════
   PAYMENT PAGE
═══════════════════════════════════════════ */
.summary-line {
  display: flex; justify-content: space-between;
  font-size: .88rem; color: var(--text-med);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}
.summary-addons {
  display: block;
  margin-top: 3px;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.summary-line:first-child { border-top: none; }
.summary-total {
  display: flex; justify-content: space-between;
  font-size: 1rem;
  padding-top: 10px; margin-top: 6px;
  border-top: 2px solid var(--border);
  color: var(--text);
}
.pay-items-preview { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }

.info-txt { font-size: .88rem; color: var(--text-med); line-height: 1.5; }
.eta-txt  {
  font-size: .82rem; color: var(--success-dark);
  display: flex; align-items: center; gap: 5px; margin-top: 6px;
}

.coupon-row { display: flex; gap: 8px; }
.coupon-field { flex: 1; }
#coupon-msg { margin-top: 8px; font-size: .82rem; }
.coupon-ok  { color: var(--success); }
.coupon-err { color: var(--danger); }

/* Payment methods */
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pay-method  { cursor: pointer; flex: 1; min-width: 90px; }
.pay-method input { display: none; }
.pm-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition);
}
.pay-method:has(input:checked) .pm-inner {
  border-color: var(--primary);
  background: var(--primary-light);
}
.pm-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.pm-pix-ico  { background: #E0F2F1; color: #00897B; }
.pm-card-ico { background: #EDE7F6; color: #5E35B1; }
.pm-cash-ico { background: #E8F5E9; color: #2E7D32; }
.pm-text { display: flex; flex-direction: column; gap: 2px; }
.pm-text strong { font-size: .82rem; font-weight: 700; }
.pm-text small  { font-size: .7rem;  color: var(--text-muted); }

/* PIX section */
#pix-section { margin-top: 4px; }
.pix-top-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.pix-badge {
  display: flex; align-items: center; gap: 5px;
  background: #E0F2F1; color: #00695C;
  padding: 5px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 700;
}
.pix-auto-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--success-bg); color: var(--success-dark);
  padding: 5px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 700;
}
.pix-subtitle { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; }
.pix-body {
  display: flex; gap: 16px; align-items: flex-start;
  flex-wrap: wrap;
}
.pix-qr-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.pix-qr-border {
  padding: 8px; border: 3px solid var(--text);
  border-radius: 8px; background: #fff;
}
#qr-canvas { display: block; }
.qr-label { font-size: .75rem; font-weight: 600; text-align: center; color: var(--text-med); }
.qr-sub   { font-size: .68rem; color: var(--text-muted); text-align: center; max-width: 160px; line-height: 1.4; }

.pix-code-col { flex: 1; min-width: 200px; }
.pix-copy-label { font-size: .8rem; font-weight: 600; color: var(--text-med); margin-bottom: 8px; }
.pix-code-box {
  background: #f5f5f5; border: 1px solid var(--border);
  border-radius: 6px; padding: 10px;
  font-size: .68rem; font-family: monospace;
  color: var(--text-med); line-height: 1.6;
  word-break: break-all;
  margin-bottom: 10px;
}
.btn-copy-pix {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  background: var(--text); color: #fff;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  transition: background var(--transition);
  width: 100%; justify-content: center; margin-bottom: 0;
}
.btn-copy-pix:hover  { background: #333; }
.btn-copy-pix.copied { background: var(--success); }

/* Status de espera PIX */
.pix-waiting-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400E;
  font-size: .84rem;
  font-weight: 600;
  margin: 14px 0 10px;
  padding: 11px 14px;
  background: #FFFBEB;
  border-radius: var(--radius-sm);
  border: 1px solid #FDE68A;
}

/* Botão WhatsApp dentro do PIX */
.btn-wapp-pix {
  width: 100%;
  height: 44px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(37,211,102,.3);
}
.btn-wapp-pix:hover  { background: #20BD5C; }
.btn-wapp-pix i      { font-size: 1.1rem; }

/* PIX progress */
.pix-progress {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.pp-step {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  background: #fafafa; border-bottom: 1px solid var(--border);
  transition: all .4s ease;
}
.pp-step:last-child { border-bottom: none; }
.pp-icon { font-size: 1rem; width: 20px; text-align: center; }
.pp-waiting { color: var(--warning); background: #FFFBEB; }
.pp-waiting .pp-icon { color: var(--warning); }
.pp-confirmed { color: var(--success-dark); background: var(--success-bg); }
.pp-confirmed .pp-icon { color: var(--success); }
.pp-production { color: var(--primary-dark); background: var(--primary-light); }
.pp-production .pp-icon { color: var(--primary); }

/* Alt payment sections */
.pay-alt-section { margin-top: 8px; }
.info-box {
  display: flex; gap: 10px;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm); padding: 12px;
  color: #1E40AF; font-size: .85rem; line-height: 1.5;
}
.info-box i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Trust bar */
.trust-bar {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; padding: 16px 0 4px;
}
.trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 600; color: var(--success-dark);
}
.trust-item i { font-size: .85rem; }

/* ═══════════════════════════════════════════
   CONFIRMATION PAGE
═══════════════════════════════════════════ */
#page-confirmation { background: var(--bg-page); }
.confirm-wrap {
  max-width: 560px; margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: stretch;
}
.confirm-icon-wrap { display: flex; justify-content: center; padding: 8px 0; }
.confirm-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  box-shadow: 0 0 0 12px rgba(34,197,94,.15);
  animation: pop .4s ease .1s both;
}
.confirm-title {
  text-align: center;
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  line-height: 1.25;
}
.confirm-order-num {
  text-align: center;
  font-size: .9rem; color: var(--text-muted);
}
.confirm-order-num strong { color: var(--primary); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--white); border: 1px solid var(--border);
  border-bottom: none;
}
.tl-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.tl-item:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.tl-done .tl-dot { background: var(--success-bg); color: var(--success); }
.tl-pending .tl-dot { background: #FFF3EB; color: var(--primary); }
.tl-content { display: flex; flex-direction: column; gap: 2px; }
.tl-content strong { font-size: .88rem; font-weight: 700; }
.tl-content span   { font-size: .78rem; color: var(--text-muted); }

.confirm-summary .summary-total {
  margin-top: 12px; padding-top: 12px;
  border-top: 2px solid var(--border);
}

.confirm-pay-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.confirm-pay-note-pix {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}
.confirm-pay-note-ok {
  background: var(--success-bg);
  border-color: #BBF7D0;
  color: var(--success-dark);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius);
  font-size: .9rem; font-weight: 700;
  height: 44px; padding: 0 20px;
  transition: background var(--transition), transform .1s, box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(255,107,0,.3);
}
.btn-primary:hover  { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(255,107,0,.4); }
.btn-primary:active { transform: scale(.98); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem; font-weight: 700;
  height: 44px; padding: 0 20px;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--text); }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 700;
  height: 50px; padding: 0 20px;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
  transition: background var(--transition), transform .1s;
}
.btn-whatsapp:hover  { background: #20BD5C; }
.btn-whatsapp:active { transform: scale(.98); }
.btn-whatsapp i { font-size: 1.3rem; }

.btn-full { width: 100%; }
.btn-lg   { height: 50px; font-size: .95rem; }
.btn-sm   { height: 36px; padding: 0 14px; font-size: .8rem; border-radius: 8px; }

.btn-link-sm {
  font-size: .8rem; font-weight: 700; color: var(--primary);
  transition: color var(--transition);
}
.btn-link-sm:hover { color: var(--primary-dark); }

/* ═══════════════════════════════════════════
   MODAL: TROCO
═══════════════════════════════════════════ */
.troco-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.troco-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease both;
}

.troco-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.troco-title i { color: var(--success); }

.troco-sub {
  font-size: .88rem;
  color: var(--text-med);
  margin-top: -6px;
}

.troco-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.troco-btns .btn-secondary { flex: 1; }
.troco-btns .btn-whatsapp  { flex: 2; }

/* ═══════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════ */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff;
  padding: 10px 20px; border-radius: 30px;
  font-size: .85rem; font-weight: 600;
  white-space: nowrap; z-index: 500;
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
═══════════════════════════════════════════ */
@media (min-width: 640px) {
  /* carousel tablet */
  .hero-carousel, .carousel-track-wrap { min-height: 280px; }
  .slide-banner { height: 280px; }
  .slide-banner-content { padding: 18px 24px 36px; }
  .slide-name { font-size: 1.5rem; }
  .slide-price { font-size: 1.65rem; }
  .slide-desc { font-size: .8rem; }
  .carousel-arrow { width: 38px; height: 38px; font-size: .9rem; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }

  .products-grid, #sp-results-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .card-img-wrap { height: 150px; }

  .pix-body { flex-wrap: nowrap; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* carousel desktop */
  .hero-carousel, .carousel-track-wrap { min-height: 340px; }
  .slide-banner { height: 340px; }
  .slide-banner-content { padding: 24px 60px 44px; }
  .slide-name { font-size: 2rem; }
  .slide-price { font-size: 2.2rem; }
  .slide-desc { font-size: .86rem; -webkit-line-clamp: 3; }
  .slide-badge { font-size: .65rem; padding: 4px 11px; }
  .carousel-arrow { width: 44px; height: 44px; font-size: 1rem; }
  .carousel-prev { left: 20px; }
  .carousel-next { right: 20px; }

  .products-grid, #sp-results-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card-img-wrap { height: 170px; }

  .menu-inner    { padding: 0 24px; }
  .search-wrap   { margin: 20px 0 0; }
  .products-section { padding: 24px 0 0; }
  .cats-scroll   { padding: 4px 0; }

  .checkout-wrap { padding: 32px 0 60px; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   STORE STATUS BANNER
═══════════════════════════════════════════ */
.store-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  margin: 10px 16px 0;
  font-size: .83rem;
  line-height: 1.45;
  border: 1.5px solid;
}
.store-banner.closed {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}
.store-banner.open {
  background: var(--success-bg);
  border-color: #BBF7D0;
  color: var(--success-dark);
}
.store-banner-ico { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.store-banner-text strong { display: block; font-weight: 700; font-size: .86rem; }
.store-banner-text span   { opacity: .85; }

/* ═══════════════════════════════════════════
   MENU DRAWER
═══════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 290px; max-width: 85vw;
  background: var(--white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
.menu-drawer.open { transform: translateX(0); }

.menu-drawer-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 20px;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  flex-shrink: 0;
}
.menu-drawer-hd .logo { font-size: 1.3rem; font-weight: 800; gap: 2px; }
.menu-drawer-hd .logo-day-dark    { color: #fff; font-style: italic; }
.menu-drawer-hd .logo-lanches-dark { color: var(--primary); }
.menu-drawer-hd .btn-icon { color: #fff; }
.menu-drawer-hd .btn-icon:hover { background: rgba(255,255,255,.1); }

.menu-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-status-row { display: flex; align-items: center; }
.menu-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 30px;
  font-size: .85rem; font-weight: 700;
  border: 1.5px solid;
}
.menu-status-badge.open   { background: var(--success-bg); border-color: #BBF7D0; color: var(--success-dark); }
.menu-status-badge.closed { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.menu-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.menu-status-badge.open   .menu-status-dot { background: var(--success); animation: pulse-green 1.5s infinite; }
.menu-status-badge.closed .menu-status-dot { background: #EF4444; }

@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.menu-hours-card {
  background: var(--primary-light);
  border: 1.5px solid #FFD5B5;
  border-radius: var(--radius);
  padding: 16px;
}
.menu-hours-title {
  font-weight: 700; font-size: .88rem; color: var(--primary-dark);
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px;
}
.menu-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,107,0,.12);
}
.menu-hours-row:last-child { border-bottom: none; }
.menu-hours-day { font-weight: 600; color: var(--text); }
.menu-hours-time-badge {
  font-size: .78rem; font-weight: 700; color: var(--primary-dark);
  background: rgba(255,107,0,.1); padding: 2px 8px; border-radius: 10px;
}
.menu-hours-closed-badge {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  background: #F3F4F6; padding: 2px 8px; border-radius: 10px;
}

.menu-instagram-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #fff4f8 100%);
  border: 1px solid #f3d3df;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  text-decoration: none;
  color: #1a1a1a;
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-instagram-card:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.menu-instagram-card:active { transform: scale(.98); }

.insta-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.insta-preview-content {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1;
  overflow: hidden;
}
.insta-preview-content strong { font-size: .88rem; font-weight: 800; color: #1a1a1a; }
.insta-preview-content span   { font-size: .82rem; font-weight: 700; color: #e1306c; }
.insta-preview-content small  { font-size: .75rem; color: #6b7280; line-height: 1.3; }

.insta-arrow { color: #e1306c; font-size: .85rem; flex-shrink: 0; }

.menu-wa-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff;
  font-weight: 700; font-size: .9rem;
  padding: 13px; border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.menu-wa-link:hover { background: #20BD5C; }
.menu-wa-link i { font-size: 1.2rem; }

/* ═══════════════════════════════════════════
   MODAL: LOJA FECHADA
═══════════════════════════════════════════ */
.closed-modal-overlay {
  position: fixed; inset: 0; z-index: 450;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.closed-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease both;
}
.closed-modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #FEF2F2; border: 2px solid #FECACA;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #EF4444;
  margin-bottom: 4px;
}
.closed-modal-title { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.closed-modal-text  { font-size: .84rem; color: var(--text-med); line-height: 1.5; }
.closed-modal-hours {
  font-size: .82rem; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-light); border: 1px solid #FFD5B5;
  border-radius: 8px; padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
}
.closed-modal-btns { display: flex; gap: 10px; width: 100%; margin-top: 6px; }
.closed-modal-btns .btn-secondary { flex: 1; }
.closed-modal-btns .btn-primary   { flex: 2; }

/* ═══════════════════════════════════════════
   BOTÕES DE COMPARTILHAMENTO FLUTUANTES
═══════════════════════════════════════════ */
.pp-floating-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  gap: 8px;
}
.pp-float-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.pp-float-btn:hover  { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.pp-float-btn:active { transform: scale(.95); }
.pp-share-main { background: rgba(255,255,255,.92); color: #111; }
.pp-share-wa   { background: #22c55e; color: #fff; }
@keyframes bounceIn {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.product-card { animation: slideUp .3s ease both; }
.product-card:nth-child(2) { animation-delay: .04s; }
.product-card:nth-child(3) { animation-delay: .08s; }
.product-card:nth-child(4) { animation-delay: .12s; }
.product-card:nth-child(n+5) { animation-delay: .16s; }
