:root {
  --amarelo: #fcb900;
  --amarelo-escuro: #e0a500;
  --preto: #111111;
  --branco: #ffffff;
  --cinza-claro: #f5f5f5;
  --cinza-medio: #e0e0e0;
  --cinza-texto: #555;
  --sombra: rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat Alternates', sans-serif;
  background: var(--cinza-claro);
  color: var(--preto);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ===== HEADER (logo — rola com a página) ===== */
.header {
  background: var(--amarelo) url('img/background.png') center / cover no-repeat;
  padding: 12px 16px 12px;
}

/* ===== HEADER STICKY (busca + nav — fixo no topo) ===== */
.header-sticky {
  background: var(--amarelo) url('img/background.png') center / cover no-repeat;
  padding: 8px 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.logo-wrap {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  width: 60px;
  height: 60px;
  background: var(--preto);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--amarelo);
  letter-spacing: 1px;
}

.header-info { flex: 1; }

.header-info h1 {
  font-weight: 900;
  font-size: 17px;
  color: var(--branco);
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-info p {
  font-size: 10px;
  color: var(--amarelo);
  font-weight: 700;
  margin-top: 3px;
  font-style: italic;
}

/* ===== BUSCA ===== */
.search-wrap { padding: 0 0 10px; }

.search-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.75);
  border: 2px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--preto);
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input::placeholder { color: rgba(0,0,0,0.38); }
.search-wrap input:focus { border-color: var(--preto); }

/* ===== NAV CATEGORIAS ===== */
.nav-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }

.cat-btn {
  white-space: nowrap;
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.55);
  border: none;
  border-radius: 20px;
  padding: 6px 13px;
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cat-btn.active,
.cat-btn:hover {
  background: var(--preto);
  color: var(--amarelo);
}

/* ===== HERO ===== */
.hero {
    background: black;
    padding: 20px;
    display: flex;
    gap: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25px; right: 55px;
  width: 70px; height: 70px;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
}

.hero-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-text { position: relative; z-index: 1; }

.hero-text h2 {
  font-weight: 900;
  font-size: 22px;
  color: var(--amarelo);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.hero-text .slogan {
  font-size: 12px;
  color: var(--branco);
  font-weight: 700;
  margin-top: 5px;
  font-style: italic;
  line-height: 1.3;
}

/* ===== BANDEIRINHAS ===== */
.bandeirinha {
  /* display: flex; */
  display: none;  
  gap: 0;
  overflow: hidden;
  background: var(--preto);
  padding: 5px 0 1px;
}

.bandeirinha span {
  width: 16px;
  height: 11px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  flex-shrink: 0;
}

/* ===== CONTEÚDO ===== */
.content { padding: 16px; }

.section { margin-bottom: 28px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--preto);
}

.section-icon { font-size: 18px; }

.section-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-badge {
  margin-left: auto;
  background: var(--amarelo);
  color: var(--preto);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ===== CARD ===== */
.cake-card {
  background: var(--branco);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px var(--sombra);
  transition: transform 0.15s;
  position: relative;
  overflow: hidden;
}

.cake-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cinza-medio);
  border-radius: 4px 0 0 4px;
}

.cake-card:active { transform: scale(0.98); }
.cake-card.destaque::before { background: var(--amarelo); }
.cake-card.especial::before { background: #e74c3c; }

/* ===== FOTO ===== */
.cake-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--cinza-claro);
  border: 2px solid var(--cinza-medio);
  flex-shrink: 0;
  overflow: hidden;
}

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

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  gap: 4px;
}

.img-placeholder svg {
  width: 26px;
  height: 26px;
  opacity: 0.25;
}

.img-placeholder span {
  font-size: 8px;
  color: #bbb;
  font-weight: 700;
  text-align: center;
  padding: 0 4px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.cake-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--preto);
  line-height: 1.2;
  margin-bottom: 5px;
}

.cake-desc {
  font-size: 11px;
  color: var(--cinza-texto);
  margin-bottom: 6px;
  line-height: 1.4;
  font-weight: 500;
}

/* ===== BADGES ===== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}

.badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-mini      { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-zero      { background: #d4edda; color: #155724; border: 1px solid #28a745; }
.badge-arretado  { background: #f8d7da; color: #721c24; border: 1px solid #dc3545; }
.badge-piscina   { background: #cce5ff; color: #004085; border: 1px solid #0d6efd; }
.badge-cobertura { background: #e2d9f3; color: #4a235a; border: 1px solid #6f42c1; }
.badge-hit       { background: var(--preto); color: var(--amarelo); }
.badge-festa     { background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; }
.badge-pote      { background: #ede9fe; color: #4c1d95; border: 1px solid #7c3aed; }

/* ===== PREÇOS ===== */
.prices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.price-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  padding: 4px 10px;
  min-width: 62px;
}

.price-pill.pill-inteiro { background: var(--preto); border: 1.5px solid var(--preto); }
.price-pill.pill-inteiro .pill-label { color: var(--amarelo); }
.price-pill.pill-inteiro .pill-value { color: var(--branco); }

.price-pill.pill-metade { background: var(--branco); border: 1.5px solid var(--preto); }
.price-pill.pill-metade .pill-label { color: #777; }
.price-pill.pill-metade .pill-value { color: var(--preto); }

.price-pill.pill-unico { background: var(--amarelo); border: 1.5px solid var(--amarelo-escuro); }
.price-pill.pill-unico .pill-label { color: #555; }
.price-pill.pill-unico .pill-value { color: var(--preto); }

.pill-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.pill-value {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; font-weight: 700; }

/* ===== FOOTER ===== */
.footer {
  background: var(--preto);
  text-align: center;
  padding: 24px 16px 20px;
  margin-top: 8px;
}

.footer-copy,
.footer-dev {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-copy { margin-bottom: 6px; }

.footer-hr {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 10px 0;
}

.footer-dev a {
  color: var(--amarelo);
  text-decoration: none;
  font-weight: 800;
}

/* ===== UTIL ===== */
.hidden { display: none !important; }

/* ===== scroll-margin compensa o header fixo para navegação nativa por hash ===== */
.section {
  scroll-margin-top: 130px;
}

/* ===== BOTÃO CONFEITARIA NO NAV ===== */
.cat-btn--festa {
  background: var(--preto) !important;
  color: var(--branco) !important;
  font-weight: 800 !important;
}
.cat-btn--festa:hover,
.cat-btn--festa.active {
  background: #333 !important;
  color: var(--branco) !important;
}

/* ===== SHORTCUT CONFEITARIA ===== */
.confeitaria-shortcut {
  padding: 0 0 10px;
}

.cat-btn--festa-wide {
  width: 100%;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* ===== BADGE ENCOMENDA ===== */
.badge-encomenda {
  background: linear-gradient(135deg, #f0c040, #c8880a);
  color: #1a0000;
  border: none;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ===== BADGE FESTA / POTE (legado) ===== */
.badge-festa { background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; }
.badge-pote  { background: #ede9fe; color: #4c1d95; border: 1px solid #7c3aed; }

/* ===== PILL CONSULTAR ===== */
.pill-consultar {
  background: rgba(240,192,64,0.1);
  border: 1.5px solid rgba(240,192,64,0.45);
  min-width: 86px;
}
.pill-consultar .pill-label { color: rgba(200,136,10,0.85); }
.pill-consultar .pill-value {
  color: #c8880a;
  font-size: 12px;
  font-weight: 800;
}

/* ===== SEÇÃO CONFEITARIA — TEMA FESTA ===== */
.section--confeitaria {
  background: linear-gradient(145deg, #120820 0%, #1e0c00 55%, #0d1a10 100%);
  margin-left: -16px;
  margin-right: -16px;
  padding: 24px 16px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Brilhos decorativos no fundo */
.section--confeitaria::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240,192,64,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.section--confeitaria::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(120,60,200,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Decoração de estrelinhas via div */
.confeitaria-stars {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 13px;
  opacity: 0.25;
  letter-spacing: 5px;
  pointer-events: none;
  user-select: none;
}

.section--confeitaria .section-header {
  border-bottom: 3px solid rgba(240,192,64,0.4);
  position: relative;
  z-index: 1;
}
.section--confeitaria .section-title {
  color: #f0c040;
  text-shadow: 0 0 24px rgba(240,192,64,0.35);
}
.section--confeitaria .section-icon {
  filter: drop-shadow(0 0 8px rgba(240,192,64,0.5));
}
.section--confeitaria .section-badge {
  background: linear-gradient(135deg, #f0c040, #c8880a);
  color: #1a0000;
  font-weight: 800;
}

/* Intro da seção */
.confeitaria-intro {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Label de sub-seção */
.subsec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(240,192,64,0.55);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 22px 0 10px;
  position: relative;
  z-index: 1;
}
.subsec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(240,192,64,0.18);
}

/* Cards dentro da seção confeitaria */
.section--confeitaria .cake-card {
  background: rgba(255,248,220,0.045);
  border: 1px solid rgba(240,192,64,0.18);
  box-shadow: 0 3px 18px rgba(0,0,0,0.55);
  position: relative;
  z-index: 1;
}
.section--confeitaria .cake-card:active {
  border-color: rgba(240,192,64,0.45);
}
.section--confeitaria .cake-card::before {
  background: linear-gradient(180deg, #f0c040 0%, #c8880a 100%);
}
.section--confeitaria .cake-name {
  color: #f5e6a8;
}
.section--confeitaria .cake-desc {
  color: rgba(255,255,255,0.38);
}
.section--confeitaria .cake-img {
  border-color: rgba(240,192,64,0.22);
  background: rgba(255,248,220,0.05);
}

/* Preço à direita nos cards da confeitaria */
.section--confeitaria .cake-card > .prices {
  flex-shrink: 0;
  flex-direction: column;
  align-self: center;
  gap: 5px;
  margin-left: auto;
}

/* ===== BTN DESCRIÇÃO ===== */
.btn-desc {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 6px 15px;
  background: var(--amarelo);
  border: 1.5px solid var(--amarelo-escuro);
  border-radius: 20px;
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--preto);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms;
}
.btn-desc:hover { background: var(--amarelo-escuro); }

.section--confeitaria .btn-desc {
  background: rgba(240,192,64,0.18);
  border-color: rgba(240,192,64,0.45);
  color: #f5e6a8;
}
.section--confeitaria .btn-desc:hover { background: rgba(240,192,64,0.32); }

/* ===== MODAL DESCRIÇÃO ===== */
.desc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.desc-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.desc-box {
  background: var(--branco);
  border-radius: 18px;
  padding: 24px 20px 22px;
  max-width: 360px;
  width: 100%;
  position: relative;
  transform: translateY(14px) scale(0.97);
  transition: transform 220ms ease;
}
.desc-overlay.active .desc-box {
  transform: translateY(0) scale(1);
}
.desc-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--preto);
  border: none;
  color: var(--branco);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 150ms;
}
.desc-close:hover { opacity: 0.75; }
.desc-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  padding-right: 28px;
  color: var(--preto);
}
.desc-hr {
  border: none;
  border-top: 1.5px solid var(--cinza-medio);
  margin-bottom: 10px;
}
.desc-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  margin-bottom: 2px; /* <-- Reduzimos a margem para ficar coladinho no texto dele */
  font-family: 'Montserrat Alternates', sans-serif;
}

.desc-text {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--cinza-texto);
  margin-bottom: 16px; /* <-- Adicionamos a margem aqui para afastar do próximo bloco */
}

/* Tira a margem do último item para não sobrar espaço vazio no fim do modal */
.desc-text:last-child {
  margin-bottom: 0;
}
