/* Cardápio digital público — tema ameixa/creme (mockup Polpes). */

:root {
  --plum-deep: #210524;
  --plum: #3a183a;
  --plum-2: #4b2c4c;
  --wine: #651733;
  --rose: #b57066;
  --pink: #f6b5c8;
  --pink-soft: #f2e1e3;
  --cream: #fdf8f6;
  --cream-2: #f9f0ec;
  --gold: #be8659;
  --ink: #2a1a28;
  --muted: #8a7480;
  --line: #efe3e6;
  /* Hero Polpê's — roxo profundo, rosa pink e dourado */
  --hero-1: #12041a;
  --hero-2: #2a0a3a;
  --hero-3: #4a0f55;
  --pink-hot: #f0337e;
  --gold-2: #e8b93c;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

.text-wa-muted { color: var(--muted); }

/* Rolagem horizontal sem barra */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Hero Polpê's (tela cheia) ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(75% 65% at 82% 30%, rgba(240,51,126,.28) 0%, transparent 60%),
    radial-gradient(90% 80% at 6% 0%, rgba(120,20,150,.45) 0%, transparent 62%),
    linear-gradient(155deg, var(--hero-1) 0%, var(--hero-2) 46%, var(--hero-3) 100%);
}
/* Textura sutil de frutas/folhas/sorvetes em linhas finas */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .07;
  background: url("/static/img/hero-texture.svg") center / 260px 260px repeat;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  padding: 116px 24px 40px;
  display: grid; grid-template-columns: 45% 55%;
  align-items: center;
}

/* Header sobre o hero */
.hero-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.hero-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 24px 22px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hero-logo {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: #fdf8f6;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 24px rgba(240,51,126,.35);
  transform: translateY(10px);
}
.hero-nav { display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.nav-link {
  color: #fff; font-size: 14px; font-weight: 500;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  padding: 6px 2px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--pink-hot); border-bottom-color: var(--pink-hot); }
.hero-social { display: flex; align-items: center; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border: 1.5px solid rgba(240,51,126,.65);
  background: rgba(74,15,85,.35); transition: background .2s, box-shadow .2s;
}
.social-btn:hover { background: rgba(240,51,126,.25); box-shadow: 0 0 16px rgba(240,51,126,.5); }
.hero-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; color: #fff;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(74,15,85,.35);
}

/* Texto (lado esquerdo) */
.hero-copy { align-self: center; }
.hero-splash { display: inline-block; margin-bottom: 10px; }
.hero-title {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600; letter-spacing: -.5px;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; color: #fff;
}
.hero-script {
  display: block;
  font-family: "Kaushan Script", "Brush Script MT", cursive;
  color: var(--pink-hot);
  font-size: clamp(48px, 8vw, 88px);
  line-height: .95; transform: rotate(-8deg);
  transform-origin: left center;
  text-shadow: 0 6px 24px rgba(240,51,126,.45);
  margin: 6px 0 2px 4px;
}
.hero-sub {
  margin: 16px 0 26px;
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,.92); max-width: 34ch;
}
.hero-sub .spark { color: var(--pink-hot); margin-right: 6px; }
.btn-menu {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: rgba(74,15,85,.55); color: #fff;
  border: 1.5px solid var(--gold-2);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600; font-size: 15px;
  transition: box-shadow .2s, background .2s, transform .2s;
}
.btn-menu:hover {
  background: rgba(74,15,85,.8);
  box-shadow: 0 0 24px rgba(232,185,60,.55);
  transform: translateY(-1px);
}

/* Imagem dos produtos (lado direito) */
.hero-visual {
  position: relative; align-self: end; justify-self: end;
  width: 100%; display: flex; justify-content: flex-end; align-items: flex-end;
}
.hero-glow {
  position: absolute; inset: 4% -6% 10% 6%; border-radius: 50%;
  background: radial-gradient(circle at 60% 55%, rgba(240,51,126,.45) 0%, rgba(120,20,150,.28) 42%, transparent 72%);
  filter: blur(14px); z-index: 0;
}
.hero-products {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px; height: auto; object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
  animation: heroFloat 5s ease-in-out infinite;
  margin-bottom: -4%;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-next {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.4);
  transition: background .2s, box-shadow .2s;
}
.hero-next:hover { background: rgba(240,51,126,.35); box-shadow: 0 0 18px rgba(240,51,126,.5); }

/* Logo circular do rodapé (mantida) */
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), var(--rose));
  color: var(--plum-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Menu mobile (off-canvas) */
.hero-mobile-menu {
  position: absolute; inset: 0; z-index: 40;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; background: rgba(18,4,26,.97);
  backdrop-filter: blur(4px);
}
.hero-mobile-menu .nav-link { font-size: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-mobile-menu .hero-social { margin-top: 18px; }

/* Responsivo */
@media (max-width: 1023px) {
  .hero-nav, .hero-header-inner > .hero-social { display: none; }
  .hero-burger { display: flex; }
  .hero-inner { grid-template-columns: 52% 48%; }
  .hero-products { max-width: 520px; }
}
@media (max-width: 767px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start; justify-items: center; text-align: center;
    padding: 104px 20px 0; row-gap: 10px;
  }
  .hero-copy { text-align: center; }
  .hero-script { transform-origin: center; margin-left: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { justify-content: center; justify-self: center; align-self: end; }
  .hero-products { max-width: 92%; margin-bottom: -6%; }
  .hero-next { display: none; }
  .hero-logo { width: 64px; height: 64px; transform: translateY(6px); }
}

/* ── Busca ────────────────────────────────────────────────────────── */
.search-wrap {
  background: var(--pink-soft);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(33,5,36,.20);
}
.search-wrap input {
  background: transparent; border: 0; outline: none; width: 100%;
  color: var(--wine); font-size: 15px;
}
.search-wrap input::placeholder { color: #b58f99; }

/* ── Títulos de seção ─────────────────────────────────────────────── */
.section-title {
  color: var(--plum-2); font-weight: 800; font-size: 20px; letter-spacing: -.3px;
}
.section-title.on-dark { color: #fff; }
.title-rule { width: 42px; height: 3px; border-radius: 3px; background: var(--rose); }

/* ── Cards de produto ─────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 4px 16px rgba(33,5,36,.05);
}
.thumb {
  position: relative; overflow: hidden; border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-soft), #f7e6da);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.thumb span { font-size: 34px; }
.thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.thumb-lg { width: 96px; height: 96px; }
.thumb-sm { width: 84px; height: 84px; }

/* Card destaque (rolagem horizontal) */
.hl-track { scroll-snap-type: x mandatory; scroll-padding-left: 4px; }
.hl-card { flex: 0 0 74%; max-width: 260px; scroll-snap-align: start; }
.hl-thumb { width: 100%; height: 140px; }
.hl-nav { margin-left: auto; display: flex; gap: 6px; }
.hl-nav[hidden] { display: none; }
.hl-btn {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--plum-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.hl-btn:hover:not(:disabled) { background: var(--plum-2); color: #fff; }
.hl-btn:disabled { opacity: .35; cursor: default; }

@media (min-width: 640px) {
  .hl-card { flex: 1 0 calc((100% - 2.25rem) / 4); max-width: 260px; }
}

.price-tag { color: var(--wine); font-weight: 800; }
.price-old {
  color: #a8929e; font-weight: 600; font-size: .78em;
  text-decoration: line-through; margin-right: 2px;
}
.price-promo { color: #1a8f4c; font-weight: 800; }
.promo-badge, .thumb .promo-badge {
  position: absolute; top: 3px; left: 3px; right: auto; bottom: auto;
  z-index: 2;
  width: 50px; height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

.btn-add {
  background: var(--plum-2); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 999px;
}
.btn-add:hover { background: var(--wine); }
.btn-add:disabled { opacity: .45; }

.chip {
  background: #fff; color: var(--plum-2); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.chip.active { background: var(--plum-2); color: #fff; border-color: var(--plum-2); }

/* ── Faixa de promoções / entrega ─────────────────────────────────── */
.promo-band {
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(246,181,200,.35), transparent 55%),
    linear-gradient(180deg, var(--plum-2) 0%, var(--plum-deep) 100%);
  color: #fff; border-radius: 24px;
}
.promo-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(246,181,200,.30);
  border-radius: 16px; padding: 14px;
}

/* ── Aviso de loja fechada / não recebendo pedidos ────────────────── */
.status-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 768px; margin: 12px auto 0; padding: 11px 16px;
  background: #fdecef; color: #8a2b4a; border: 1px solid #f6c7d3;
  border-radius: 14px; font-size: 14px; font-weight: 600; text-align: center;
}

/* ── Rodapé ───────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #e9d9e6;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-link {
  color: #e9d9e6; font-size: 13px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgba(233,217,230,.35);
  padding-bottom: 1px; transition: color .15s ease, border-color .15s ease;
}
.footer-link:hover { color: #f6b5c8; border-color: #f6b5c8; }

/* ── Páginas institucionais (Markdown) ────────────────────────────── */
.page-content { color: #3a2a38; font-size: 15px; line-height: 1.65; }
.page-content h1, .page-content h2, .page-content h3,
.page-content h4, .page-content h5, .page-content h6 {
  color: #4b2c4c; font-weight: 800; line-height: 1.25; margin: 1.1em 0 .4em;
}
.page-content h1 { font-size: 1.5rem; }
.page-content h2 { font-size: 1.28rem; }
.page-content h3 { font-size: 1.1rem; }
.page-content p { margin: .7em 0; }
.page-content ul, .page-content ol { margin: .6em 0 .6em 1.3em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin: .25em 0; }
.page-content img { max-width: 100%; border-radius: 14px; margin: .7em 0; display: block; }
.page-content a { color: #b57066; text-decoration: underline; }
.page-content blockquote {
  border-left: 3px solid #f6c7d3; padding-left: 12px; color: #8a7480; margin: .7em 0;
}
.page-content code { background: #f2e1e3; padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.page-content hr { border: none; border-top: 1px solid #f2e1e3; margin: 1.1em 0; }
.pay-badge {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 6px 10px; font-size: 11px; color: #fff;
}

/* ── Bottom sheet do carrinho/checkout ────────────────────────────── */
.sheet-enter { transform: translateY(100%); }
.sheet-open  { transform: translateY(0); }
.sheet { transition: transform .22s ease-out; }
body.sheet-locked { overflow: hidden; }

/* ── Modal central (detalhes do produto) ──────────────────────────── */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-card {
  box-shadow: 0 24px 60px rgba(33, 5, 36, .38);
  animation: modalIn .18s ease-out;
}
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--plum-2) #f2e1e3;
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: #f2e1e3; border-radius: 8px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--plum-2); border-radius: 8px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--wine); }

/* ── Botões flutuantes ────────────────────────────────────────────── */
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(1rem + env(safe-area-inset-bottom));
  background: var(--plum-2); color: #fff;
  box-shadow: 0 12px 30px rgba(33,5,36,.35);
}
.sheet-pad { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }

.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Selo aberto/fechado ──────────────────────────────────────────── */
.badge-open   { background:#dcfce7; color:#166534; }
.badge-closed { background:#fee2e2; color:#991b1b; }

/* ── Chat do site (atendimento) ───────────────────────────────────── */
.chat-fab {
  position: fixed;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffffff, #f2e1e3);
  color: #651733; border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 10px 26px rgba(101,23,51,.28);
  transition: transform .15s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab:active { transform: scale(.96); }
.chat-fab-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #e8b93c; color: #3a183a;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}
.chat-panel {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 360px;
  height: min(560px, 72vh);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(33,5,36,.35);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #4b2c4c, #651733);
  color: #fff;
}
.chat-head-text { display: flex; flex-direction: column; line-height: 1.15; }
.chat-head-text strong { font-size: 15px; }
.chat-head-text span { font-size: 11px; opacity: .8; }
.chat-close {
  background: transparent; border: none; color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--cream-2);
}
.chat-intro {
  font-size: 13px; color: var(--muted); text-align: center;
  margin: auto 8px; line-height: 1.4;
}
.chat-msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.chat-msg span {
  padding: 8px 12px; border-radius: 14px; font-size: 14px;
  overflow-wrap: anywhere; white-space: normal;
}
.chat-msg time { font-size: 10px; color: var(--muted); padding: 0 4px; }
.chat-msg-in { align-self: flex-start; }
.chat-msg-in span { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg-out { align-self: flex-end; }
.chat-msg-out span { background: var(--pink); color: var(--plum-deep); border-bottom-right-radius: 4px; }
.chat-error {
  align-self: center; font-size: 12px; color: #991b1b;
  background: #fee2e2; border-radius: 10px; padding: 6px 10px; text-align: center;
}
.chat-start {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: #fff;
}
.chat-start input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none;
}
.chat-start input:focus { border-color: var(--wine); }
.chat-start button {
  border: none; border-radius: 10px; padding: 11px 12px;
  background: var(--wine); color: #fff; font-weight: 600; cursor: pointer;
  font-size: 14px;
}
.chat-start button:disabled { opacity: .6; cursor: default; }
.chat-start small { font-size: 11px; color: var(--muted); text-align: center; }
.chat-input-row {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--line); background: #fff;
}
.chat-input-row textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px; font-size: 14px; line-height: 1.35; max-height: 96px;
  font-family: inherit; outline: none;
}
.chat-input-row textarea:focus { border-color: var(--wine); }
.chat-input-row button {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--wine); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.chat-input-row button:disabled { opacity: .6; cursor: default; }

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; height: 70vh; }
}

