/* =========================================================
   Brigadeiranna — Design System
   Motivos: forminha plissada (selo do logo) + confete de bolinhas
   Camada de tema: --red-*, --cream-*, --chocolate (trocável no admin)
   Camada semântica: --paper, --surface, --ink, --brand… (derivada)
   ========================================================= */

:root {
  /* ---- Camada de tema (clássico) ---- */
  --red-900: #6e140f;
  --red-800: #8e2119;
  --red-700: #a82a1f;
  --red-600: #c2312c; /* vermelho do selo */
  --red-500: #d2453c;
  --red-400: #e0716a;
  --cream-50: #fffcf5;
  --cream-100: #f7f1e3;
  --cream-200: #efe5d1;
  --cream-300: #e2d3b8;
  --chocolate: #3a2318;
  --chocolate-soft: #6e5445;
  --gold: #c08a2e;
  --gold-soft: #e5c98a;
  --white: #ffffff;
  --success: #1f7a4c;
  /* verde WhatsApp escurecido: o #25d366 da marca não atinge 4.5:1 com texto branco */
  --whatsapp: #17864a;
  --whatsapp-dark: #126b3b;
  --footer-bg-1: #2a1710;
  --footer-bg-2: #1f100b;
  --footer-bg-3: #150a06;

  /* ---- Camada semântica ---- */
  --paper: var(--cream-100);
  --surface: var(--cream-50);
  --surface-alt: var(--white);
  --ink: var(--chocolate);
  --ink-soft: var(--chocolate-soft);
  --text: var(--ink);
  --text-muted: #705a4c;
  --brand: var(--red-600);
  --brand-deep: var(--red-800);
  --bg: var(--paper);
  --bg-elevated: var(--surface-alt);

  --rule: color-mix(in srgb, var(--chocolate) 14%, transparent);
  --rule-strong: color-mix(in srgb, var(--chocolate) 24%, transparent);
  --border: var(--rule);

  --shadow-sm: 0 1px 2px rgba(58, 35, 24, 0.05), 0 10px 26px -20px rgba(58, 35, 24, 0.4);
  --shadow-md: 0 2px 4px rgba(58, 35, 24, 0.04), 0 22px 44px -28px rgba(58, 35, 24, 0.45);
  --shadow-lg: 0 4px 8px rgba(58, 35, 24, 0.05), 0 40px 80px -40px rgba(58, 35, 24, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1160px;
  --header-h: 78px;
  --scallop: 13px; /* raio do plissado da forminha */

  /* ---- Tipografia ---- */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-categoria: "Playfair Display", serif;
  --vf-display: "opsz" 120, "SOFT" 28, "WONK" 1;
  --vf-display-lg: "opsz" 144, "SOFT" 48, "WONK" 1;

  /* ---- Movimento ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 170ms;
  --med: 320ms;
  --slow: 620ms;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--paper);
  /* pó de açúcar */
  background-image: radial-gradient(circle at 1px 1px, rgba(58, 35, 24, 0.05) 1px, transparent 0);
  background-size: 34px 34px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--red-600);
  color: #fff;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ========== LAYOUT ========== */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.25rem);
  position: relative;
}

.section--surface {
  background: var(--surface-alt);
  border-block: 1px solid var(--rule);
}

/* a última seção encosta no plissado do rodapé: a borda clara dela virava
   uma linha atravessada bem em cima dos festões escuros */
main > .section:last-child {
  border-bottom: none;
}

.section--paper {
  background: color-mix(in srgb, var(--cream-200) 45%, transparent);
  border-block: 1px solid var(--rule);
}

/* ========== TIPOGRAFIA ========== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--brand-deep);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-700);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin: 0.7rem 0 0.6rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

/* ========== BOTÕES ========== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  --btn-bg: var(--red-600);
  --btn-fg: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  --btn-bg: var(--red-700);
}

.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--brand-deep);
  border-color: var(--rule-strong);
}

.btn-secondary:hover {
  --btn-bg: color-mix(in srgb, var(--red-600) 8%, transparent);
  border-color: var(--red-500);
}

.btn-whatsapp {
  --btn-bg: var(--whatsapp);
  --btn-fg: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  --btn-bg: var(--whatsapp-dark);
}

.btn-ghost {
  --btn-fg: var(--ink-soft);
  padding-inline: 0.9rem;
}

.btn-ghost:hover {
  --btn-bg: color-mix(in srgb, var(--chocolate) 7%, transparent);
  --btn-fg: var(--brand-deep);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ícones */
.icon,
.ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

/* plissado da forminha — assinatura da marca */
.pleat {
  height: var(--scallop);
  /* o rodapé sobe 1px por cima da base do plissado: em alturas fracionárias
     o navegador deixaria uma fresta de subpixel mostrando o fundo da página */
  margin-bottom: -1px;
  background: var(--footer-bg-1);
  -webkit-mask: radial-gradient(circle var(--scallop) at var(--scallop) 100%, #000 99%, #0000 101%) 0
    0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
  mask: radial-gradient(circle var(--scallop) at var(--scallop) 100%, #000 99%, #0000 101%) 0 0 /
    calc(var(--scallop) * 2) var(--scallop) repeat-x;
}

/* ========== BARRA DE AVISO ========== */
.aviso-bar {
  background: var(--footer-bg-1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
}

.aviso-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  text-align: center;
  flex-wrap: wrap;
}

.aviso-inner .ico {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.aviso-inner a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aviso-inner a:hover {
  color: #fff;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--rule-strong);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* busca central */
.busca {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.busca input {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  padding: 0.78rem 3.2rem 0.78rem 1.3rem;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.busca input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 75%, transparent);
}

.busca input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-600) 14%, transparent);
}

.busca button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--red-600);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--fast);
}

.busca button:hover {
  background: var(--red-700);
}

.busca button .icon {
  width: 18px;
  height: 18px;
}

/* atalhos do cabeçalho */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--fast);
}

.header-link:hover {
  color: var(--brand-deep);
}

.header-link > .ico {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
  color: var(--red-700);
  flex-shrink: 0;
}

.header-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.header-link small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.header-link strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-link--admin {
  padding-left: 1.1rem;
  border-left: 1px solid var(--rule);
}

.cart-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--brand-deep);
  flex-shrink: 0;
  transition: background var(--fast), border-color var(--fast);
}

.cart-btn:hover {
  background: color-mix(in srgb, var(--red-600) 8%, transparent);
  border-color: var(--red-500);
}

.cart-btn .icon {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--red-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  cursor: pointer;
  place-items: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--brand-deep);
  border-radius: 2px;
  transition: transform var(--med) var(--ease), opacity var(--fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* ========== NAVEGAÇÃO DE CATEGORIAS ========== */
.catnav-wrap {
  position: relative;
  z-index: 95;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
}

.catnav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.catnav a,
.catnav-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--fast);
}

.catnav a .ico,
.catnav-all .ico {
  width: 19px;
  height: 19px;
  color: var(--red-700);
}

.catnav-all .chev {
  width: 15px;
  height: 15px;
  transition: transform var(--fast) var(--ease);
}

.catnav-all[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.catnav a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}

.catnav a:hover,
.catnav a.active,
.catnav-all:hover {
  color: var(--brand-deep);
}

.catnav a:hover::after,
.catnav a.active::after {
  transform: scaleX(1);
}

.catnav-all {
  margin-right: 0.5rem;
  padding-inline: 0 1.25rem;
  border-right: 1px solid var(--rule);
}

/* painel de categorias */
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2.5rem, var(--container));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.megamenu[hidden] {
  display: none;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  transition: background var(--fast);
}

.mega-item:hover {
  background: color-mix(in srgb, var(--cream-200) 55%, transparent);
}

.mega-item img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.mega-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-item strong {
  font-size: 0.94rem;
  color: var(--brand-deep);
  line-height: 1.25;
}

.mega-item small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== BANNER PRINCIPAL ========== */
.hero {
  position: relative;
  min-height: clamp(360px, 42vw, 520px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(42, 23, 16, 0.8) 0%,
    rgba(42, 23, 16, 0.62) 42%,
    rgba(42, 23, 16, 0.2) 74%,
    rgba(42, 23, 16, 0.05) 100%
  );
}

.hero-inner {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
}

/* H1 de SEO: discreto, como etiqueta acima do título grande */
.hero .hero-seo {
  display: inline-block;
  max-width: none;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}

.hero .hero-titulo {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-opcao {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-entrega {
  margin-top: 1.8rem;
}

.parceiros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.parceiros li {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-entrega small {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

/* ========== FAIXA DE VANTAGENS ========== */
.vantagens {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
}

.vantagens-grid {
  display: grid;
  /* --vantagens = quantidade de itens, definida em app.js (o admin pode mudar) */
  grid-template-columns: repeat(var(--vantagens, 4), minmax(0, 1fr));
  padding: 1.4rem 0;
}

.vantagem {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.25rem 1.25rem;
  border-right: 1px solid var(--rule);
}

.vantagem:last-child {
  border-right: none;
}

/* as cópias da faixa (motion.js) só aparecem no mobile */
.vantagem-copia {
  display: none;
}

.vantagem:first-child {
  padding-left: 0;
}

.vantagem .ico {
  width: 30px;
  height: 30px;
  color: var(--red-700);
  stroke-width: 1.4;
  flex-shrink: 0;
}

.vantagem div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vantagem strong {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.25;
}

.vantagem small {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== VITRINES DE PRODUTO ========== */
.secao-topo {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto 1.75rem;
}

.secao-topo h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 0.45rem;
}

.secao-topo p {
  color: var(--text-muted);
}

.vitrines {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 4vw, 3.25rem);
}

.vitrine-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.vitrine-head h3 {
  font-family: var(--font-categoria);
  /* os ajustes de eixo da Fraunces não valem para a Playfair */
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.vitrine-head h3 .size {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #fff;
  background: var(--red-600);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  vertical-align: 0.18em;
}

.vitrine-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 56ch;
}

.vitrine.sem-scroll .vitrine-nav {
  display: none;
}

.vitrine-nav {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.vitrine-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}

.vitrine-nav button:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

.vitrine-nav .icon {
  width: 17px;
  height: 17px;
}

.vitrine-trilho {
  display: grid;
  grid-auto-flow: column;
  --cols: 4;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * 1rem) / var(--cols));
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}

.vitrine-trilho::-webkit-scrollbar {
  display: none;
}

.produto {
  scroll-snap-align: start;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--med) var(--ease), border-color var(--med) var(--ease),
    transform var(--med) var(--ease);
}

.produto:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
  transform: translateY(-4px);
}

/* o copo é alto: moldura 4/5 dá presença ao produto, 1/1 sobrava fundo */
.produto-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-200);
  /* forminha: base plissada */
  -webkit-mask: radial-gradient(circle var(--scallop) at var(--scallop) 0, #000 99%, #0000 101%) 0
      100% / calc(var(--scallop) * 2) var(--scallop) repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--scallop) + 1px) no-repeat;
  mask: radial-gradient(circle var(--scallop) at var(--scallop) 0, #000 99%, #0000 101%) 0 100% /
      calc(var(--scallop) * 2) var(--scallop) repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--scallop) + 1px) no-repeat;
}

.produto-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* as fotos do catálogo são claras e de baixo contraste; esse ganho
     discreto descola o doce do fundo sem deixar com cara de filtro */
  filter: contrast(1.06) saturate(1.06);
  transition: transform var(--slow) var(--ease), filter var(--med) var(--ease);
}

.produto:hover .produto-media img {
  transform: scale(1.07);
  filter: contrast(1.1) saturate(1.12);
}

.produto-selo {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: color-mix(in srgb, var(--cream-50) 96%, transparent);
  color: var(--brand-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* a medida acompanha o nome da categoria ("COPO DA FELICIDADE 150ml"),
   deixando a foto livre para o selo de desconto */
.produto-ml {
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: 0.05em;
  background: var(--red-600);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
  line-height: 1;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* estrato de baixo: o creme faz o plissado da foto aparecer de verdade,
   que no branco sobre branco quase não se via */
.produto-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  flex: 1;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--cream-100) 70%, var(--surface-alt)),
    var(--surface-alt) 62%
  );
}

.produto-cat {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.produto-body h4 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
  text-wrap: balance;
}

.produto-preco {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 700;
  font-size: 1.78rem;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin: 0.35rem 0 0.2rem;
  /* WONK liga as terminações quebradas da Fraunces: o preço ganha
     personalidade sem precisar de outra fonte */
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}

/* selo de preço no PIX — só aparece com desconto configurado */
.produto-pix {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin: 0.3rem 0 0.2rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--cream-200) 65%, transparent);
  text-align: left;
}

.produto-pix .ico {
  width: 22px;
  height: 22px;
  color: var(--brand-deep);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.produto-pix span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.produto-pix strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--red-700);
  font-variant-numeric: tabular-nums;
}

.produto-pix small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* botões do cartão */
/* uma ação principal por card. A dúvida é saída de escape, não concorrente:
   dois botões do mesmo peso empatavam a decisão do cliente */
.btn-comprar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: var(--red-600); /* #c2312c — vermelho da marca */
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform var(--fast) var(--ease), box-shadow var(--med) var(--ease);
}

/* o preenchimento entra por baixo, como calda subindo */
.btn-comprar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red-800);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--med) var(--ease);
}

.btn-comprar:hover::before,
.btn-comprar:focus-visible::before {
  transform: scaleY(1);
}

.btn-comprar:active {
  transform: scale(0.975);
}

.btn-duvida {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.2rem 0.1rem;
  background: none;
  border: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}

.btn-duvida:hover {
  color: var(--brand-deep);
}

.btn-duvida .icon {
  width: 15px;
  height: 15px;
  color: var(--whatsapp);
  transition: transform var(--fast) var(--ease);
}

.btn-duvida:hover .icon {
  transform: translateX(2px);
}

.menu-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

/* chips de filtro */
.cat-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.05rem;
  font-weight: 600;
  font-size: 0.87rem;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.cat-chip:hover {
  border-color: var(--red-500);
  color: var(--brand-deep);
}

.cat-chip.active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--cream-50);
}

/* ========== SOBRE ========== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.about-card {
  position: relative;
  background: var(--brand-deep);
  color: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  overflow: hidden;
}

.about-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.04);
}

.about-card > * {
  position: relative;
  z-index: 1;
}

.about-card .kicker {
  color: var(--gold-soft);
}

.about-card h3 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.8rem 0 0.9rem;
}

.about-card p {
  opacity: 0.86;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.about-card .btn-secondary {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
}

.about-card .btn-secondary:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.pillars {
  display: grid;
  gap: 0;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--rule);
}

.pillar:first-child {
  padding-top: 0;
}

.pillar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  color: var(--red-700);
  display: grid;
  place-items: center;
}

.pillar-icon .ico {
  width: 19px;
  height: 19px;
}

.pillar h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--brand-deep);
  margin-bottom: 0.2rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== COMO PEDIR ========== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* fio pontilhado ligando os três selos — o mesmo pontilhado das linhas de
   preço do cardápio, aqui dizendo que a ordem importa */
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  border-top: 2px dotted var(--rule-strong);
}

.step {
  position: relative;
  text-align: center;
}

.step-num {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--cream-50);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
  /* anel na cor do fundo: abre respiro entre o selo e o fio */
  box-shadow: 0 0 0 7px var(--paper);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 32ch;
  margin-inline: auto;
}

/* ========== BANNER SAZONAL ========== */
.season-banner {
  width: min(100% - 2.5rem, var(--container));
  margin: clamp(3rem, 7vw, 5rem) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
      100deg,
      rgba(42, 23, 16, 0.94) 0%,
      rgba(110, 20, 15, 0.82) 62%,
      rgba(110, 20, 15, 0.5) 100%
    ),
    url("../assets/hero-fundo.jpg") center / cover;
  color: #fff;
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.75rem;
  align-items: center;
}

.season-banner .kicker {
  color: var(--gold-soft);
}

.season-banner h2 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  margin: 0.7rem 0 0.55rem;
}

.season-banner p {
  opacity: 0.85;
  max-width: 46ch;
  font-size: 0.98rem;
}

.season-banner .btn {
  justify-self: end;
}

/* ========== CONTATO ========== */
/* texto e ações à esquerda, cartão de dados à direita, topos alinhados */
.contato-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contato-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin: 0.7rem 0 0.6rem;
}

.contato-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 40ch;
}

.contato-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.contato-horario {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 40ch;
}

.contato-horario .ico {
  width: 18px;
  height: 18px;
  color: var(--red-700);
  flex-shrink: 0;
}

.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.contact-card > p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

.contact-list {
  display: grid;
  gap: 0;
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .ico-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  color: var(--red-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item .ico-wrap .ico {
  width: 17px;
  height: 17px;
}

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.98rem;
  color: var(--ink);
}

.contact-item a:hover {
  color: var(--red-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.menu-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.menu-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  display: block;
  transition: transform var(--fast) var(--ease);
}

.menu-thumb:hover {
  transform: scale(1.02);
}

.menu-preview img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top;
}

.menu-preview-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.menu-preview-note a {
  color: var(--red-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== RODAPÉ ========== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    170deg,
    var(--footer-bg-1) 0%,
    var(--footer-bg-2) 58%,
    var(--footer-bg-3) 100%
  );
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 1.5rem;
}

.footer-glow {
  pointer-events: none;
  position: absolute;
  width: 460px;
  height: 460px;
  right: -100px;
  top: -180px;
  background: radial-gradient(circle, rgba(226, 113, 106, 0.16), transparent 65%);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.15fr;
  gap: 2.25rem 1.75rem;
  margin-bottom: 2.25rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.7;
  max-width: 30ch;
  margin-bottom: 1.1rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background var(--fast), border-color var(--fast), transform var(--fast) var(--ease);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-btn.ig:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
}
.social-btn.fb:hover {
  background: #1877f2;
  border-color: transparent;
}
.social-btn.tt:hover {
  background: #000;
}
.social-btn.yt:hover {
  background: #ff0000;
  border-color: transparent;
}
.social-btn.x:hover {
  background: #111;
}
.social-btn.wa:hover {
  background: var(--whatsapp);
  border-color: transparent;
}

.footer-col h4 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  opacity: 0.78;
  font-size: 0.92rem;
  transition: opacity var(--fast), transform var(--fast) var(--ease);
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.38rem 0 !important;
  line-height: 1.4;
}

.footer-contact-item.static {
  opacity: 0.62;
}

.footer-contact-item.static:hover {
  transform: none;
}

.footer-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.footer-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* bandeiras aceitas (pix e cartões) */
.footer-pagamentos {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.5rem;
}

.footer-pagamentos[hidden] {
  display: none;
}

.footer-pagamentos > span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.6;
}

.bandeiras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bandeiras img {
  display: block;
  width: 48px;
  height: 30px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.62;
}

.footer-bottom-tag {
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}

a.footer-bottom-tag:hover,
a.footer-bottom-tag:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ========== WHATSAPP FLUTUANTE ========== */
.fab-whatsapp {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(23, 134, 74, 0.5);
  transition: transform var(--fast) var(--ease), background var(--fast);
}

.fab-whatsapp:hover {
  transform: scale(1.05);
  background: var(--whatsapp-dark);
}

.fab-whatsapp svg {
  width: 27px;
  height: 27px;
}

/* ========== CARRINHO ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 16, 11, 0.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--med) var(--ease);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 410px);
  height: 100%;
  background: var(--surface);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--med) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(31, 16, 11, 0.6);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid var(--rule);
}

.cart-header h3 {
  font-size: 1.3rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background var(--fast);
}

.cart-close:hover {
  background: color-mix(in srgb, var(--chocolate) 8%, transparent);
}

.cart-close .icon {
  width: 16px;
  height: 16px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.3rem;
}

.cart-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.cart-empty .ico {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.9rem;
  color: var(--red-400);
}

.cart-empty p {
  font-size: 0.94rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}

.cart-item-meta {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  color: var(--brand-deep);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 0.12rem;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: background var(--fast);
}

.qty-controls button:hover {
  background: color-mix(in srgb, var(--red-600) 12%, transparent);
}

.qty-controls span {
  min-width: 1.3rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.cart-footer {
  padding: 1.2rem 1.3rem 1.4rem;
  border-top: 1px solid var(--rule);
  background: var(--surface-alt);
  display: grid;
  gap: 0.6rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
}

.cart-total span:last-child {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display-lg);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

/* loja fechada no painel: aviso acima dos botões travados */
.cart-fechada {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--red-600) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red-600) 30%, transparent);
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.cart-fechada[hidden] {
  display: none;
}

.cart-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.cart-note a {
  color: var(--red-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========== CHECKOUT ========== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(31, 16, 11, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.checkout-modal.open {
  display: flex;
}

.checkout-dialog {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  width: min(100%, 540px);
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.6rem 1.7rem;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.checkout-head h3 {
  font-size: 1.5rem;
}

.checkout-form .form-group {
  margin-bottom: 0.9rem;
}

.checkout-form label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--red-500);
  background: var(--surface-alt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-600) 14%, transparent);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkout-summary {
  background: color-mix(in srgb, var(--cream-200) 55%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin: 1rem 0 1.15rem;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.checkout-summary strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.checkout-summary .desconto strong {
  color: var(--success);
}

.checkout-summary .desconto[hidden] {
  display: none;
}

/* ---- cupom de desconto (opcional) ---- */
.cupom-box {
  margin: 0.25rem 0 0.5rem;
}

.cupom-abrir {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cupom-abrir[hidden],
.cupom-campo[hidden],
.cupom-aplicado[hidden],
.cupom-msg[hidden] {
  display: none;
}

.cupom-campo {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cupom-campo input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cupom-campo .btn {
  flex-shrink: 0;
}

.cupom-aplicado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px dashed var(--success);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--success) 8%, transparent);
  color: var(--success);
  font-size: 0.9rem;
}

.cupom-aplicado strong {
  letter-spacing: 0.06em;
}

.cupom-remover {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.cupom-msg {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.checkout-summary .grand {
  margin-top: 0.55rem;
  margin-bottom: 0;
  padding-top: 0.6rem;
  border-top: 1px dotted var(--rule-strong);
  color: var(--ink);
  font-size: 1rem;
}

.checkout-summary .grand strong {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brand-deep);
}

/* ========== TOAST + LIGHTBOX ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(14px);
  background: var(--chocolate);
  color: var(--cream-50);
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--med), transform var(--med) var(--ease);
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(21, 10, 6, 0.9);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--med);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-height: 90vh;
  max-width: min(100%, 560px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close .icon {
  width: 18px;
  height: 18px;
}

/* ========== REVELAÇÃO NO SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1150px) {
  .header-link span {
    display: none;
  }

  .header-link > .ico {
    width: 24px;
    height: 24px;
  }

  .header-actions {
    gap: 0.8rem;
  }
}

@media (max-width: 1000px) {
  .vitrine-trilho {
    --cols: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vantagens-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0;
  }

  /* duas colunas, qualquer quantidade de itens */
  .vantagem:nth-child(2n) {
    border-right: none;
  }

  .vantagem:nth-child(2n + 1) {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .vitrine-trilho {
    --cols: 2.4;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "marca acoes"
      "busca busca";
    gap: 0.85rem 1rem;
  }

  .brand {
    grid-area: marca;
  }

  .header-actions {
    grid-area: acoes;
    justify-self: end;
  }

  .busca {
    grid-area: busca;
    max-width: none;
  }

  .menu-toggle {
    display: grid;
  }

  /* navegação de categorias vira menu sanfona */
  .catnav-wrap {
    border-bottom: none;
  }

  /* fixo logo abaixo do cabeçalho (que é sticky): preso à faixa de
     categorias, o menu abria no topo da página, fora da tela de quem já
     tinha rolado. --nav-topo vem do app.js ao abrir */
  .nav {
    position: fixed;
    top: var(--nav-topo, 0px);
    left: 0;
    right: 0;
    z-index: 99;
    max-height: calc(100dvh - var(--nav-topo, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--med) var(--ease), opacity var(--med);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .catnav {
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.5rem;
  }

  .catnav a,
  .catnav-all {
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
  }

  .catnav-all {
    margin-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    justify-content: flex-start;
  }

  .catnav a::after {
    display: none;
  }

  .megamenu {
    position: static;
    transform: none;
    width: auto;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0.75rem;
    border-radius: 0;
  }

  .hero {
    min-height: 0;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(42, 23, 16, 0.55) 0%,
      rgba(42, 23, 16, 0.78) 100%
    );
  }

  .about-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .contato-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .season-banner {
    grid-template-columns: 1fr;
  }

  .season-banner .btn {
    justify-self: start;
  }

  .steps::before {
    display: none;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Em 375px a fileira de ações montava em cima do nome da marca.
   O atendimento sai do cabeçalho porque o botão flutuante do WhatsApp
   já está na tela; carrinho e menu continuam, que são o essencial. */
@media (max-width: 560px) {
  #headerWhats {
    display: none;
  }

  .brand-text {
    min-width: 0;
    /* diminui para caber inteiro: cortar o nome da loja é pior
       do que exibi-lo um ponto menor */
    font-size: 1.02rem;
  }

  .header-actions {
    gap: 0.4rem;
    flex-shrink: 0;
  }
}

@media (max-width: 560px) {
  .container,
  .season-banner {
    width: min(100% - 1.75rem, var(--container));
  }

  .aviso-inner {
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  /* faixa contínua: o conteúdo é duplicado em motion.js e a animação
     corre até -50%, caindo no começo da cópia sem emenda */
  .vantagens {
    overflow: hidden;
    /* esmaece as pontas: os itens entram e saem da faixa em vez de
       serem cortados a seco na borda da tela */
    -webkit-mask: linear-gradient(
      to right,
      transparent,
      #000 7%,
      #000 93%,
      transparent
    );
    mask: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  }

  .vantagens-grid {
    display: flex;
    width: max-content;
    max-width: none;
    gap: 0;
    padding: 1rem 0;
    margin-inline: 0;
    animation: faixa 32s linear infinite;
  }

  /* o dedo em cima segura a faixa para dar tempo de ler */
  .vantagens-grid:hover,
  .vantagens-grid:active,
  .vantagens-grid:focus-within {
    animation-play-state: paused;
  }

  /* em movimento, duas linhas de texto não se leem: cada vantagem
     vira uma linha só, com o detalhe depois do separador */
  .vantagem {
    flex: 0 0 auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 1.5rem;
    border-right: 1px solid var(--rule);
    border-radius: 0;
    background: none;
  }

  .vantagens-grid .vantagem,
  .vantagens-grid .vantagem:first-child {
    padding-inline: 1.5rem;
  }

  .vantagem-copia {
    display: flex;
  }

  .vantagem .ico {
    width: 22px;
    height: 22px;
  }

  .vantagem div {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    white-space: nowrap;
  }

  .vantagem strong {
    font-size: 0.88rem;
  }

  .vantagem small {
    font-size: 0.8rem;
  }

  .vantagem small::before {
    content: '·';
    margin-right: 0.45rem;
    color: var(--rule-strong);
  }

  @keyframes faixa {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  .vitrine-trilho {
    --cols: 1.5;
  }

  /* em cartão estreito o rótulo secundário quebrava em duas linhas */
  .btn-comprar,
  .btn-duvida {
    padding-inline: 0.6rem;
    font-size: 0.86rem;
  }

  .brand-text span {
    display: none;
  }

  .footer-brand {
    flex-direction: column;
  }
}

/* =========================================================
   TEMAS (trocáveis no painel admin)
   ========================================================= */
[data-theme="rose"] {
  --red-900: #62143a;
  --red-800: #841e4e;
  --red-700: #a52961;
  --red-600: #bf3272;
  --red-500: #d14b87;
  --red-400: #e37daa;
  --cream-50: #fffafc;
  --cream-100: #fbeff4;
  --cream-200: #f5e0e9;
  --cream-300: #ecc9d8;
  --chocolate: #3d1c2b;
  --chocolate-soft: #6d4354;
  --gold: #c08a2e;
  --gold-soft: #f0c9d9;
  --text-muted: #86596b;
  --footer-bg-1: #4a1130;
  --footer-bg-2: #300a1f;
  --footer-bg-3: #1c0512;
}

[data-theme="chocolate"] {
  --red-900: #2e1a0f;
  --red-800: #4a2c19;
  --red-700: #6b4123;
  --red-600: #8a5528;
  --red-500: #a56b33;
  --red-400: #c08d54;
  --cream-50: #fffaf2;
  --cream-100: #f6eee0;
  --cream-200: #ebdcc5;
  --cream-300: #dcc7a6;
  --chocolate: #2a1a0e;
  --chocolate-soft: #5c4029;
  --gold: #c8901f;
  --gold-soft: #eccd8c;
  --text-muted: #7a5f45;
  --footer-bg-1: #2e1a0f;
  --footer-bg-2: #20120a;
  --footer-bg-3: #140b05;
}

[data-theme="berry"] {
  --red-900: #35103f;
  --red-800: #501a5e;
  --red-700: #682578;
  --red-600: #7f2f91;
  --red-500: #9642a8;
  --red-400: #b571c4;
  --cream-50: #fdfaff;
  --cream-100: #f5eefa;
  --cream-200: #eaddf2;
  --cream-300: #d9c3e6;
  --chocolate: #2c1435;
  --chocolate-soft: #5a3d66;
  --gold: #c08a2e;
  --gold-soft: #dfc0ea;
  --text-muted: #7a5c86;
  --footer-bg-1: #35103f;
  --footer-bg-2: #220a29;
  --footer-bg-3: #130516;
}

/* --- Temas escuros --- */
[data-theme="dark"],
[data-theme="dark-rose"],
[data-theme="dark-gold"],
[data-theme="midnight"] {
  color-scheme: dark;
  --white: #1c1a19;
  --cream-50: #201d1c;
  --cream-100: #141211;
  --cream-200: #2a2624;
  --cream-300: #3a3532;
  --chocolate: #f4ece4;
  --chocolate-soft: #d8ccc2;
  --text-muted: #a8988c;
  --rule: rgba(255, 255, 255, 0.12);
  --rule-strong: rgba(255, 255, 255, 0.22);
  --surface: #1a1817;
  --surface-alt: #201d1c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 40px -28px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --brand-deep: var(--red-400);
}

[data-theme="dark"] body,
[data-theme="dark-rose"] body,
[data-theme="dark-gold"] body,
[data-theme="midnight"] body {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
}

[data-theme="dark"] {
  --red-900: #5c0f18;
  --red-800: #8b1524;
  --red-700: #c9342f;
  --red-600: #de4a44;
  --red-500: #ec665f;
  --red-400: #f6918b;
  --footer-bg-1: #1a1010;
  --footer-bg-2: #110a0a;
  --footer-bg-3: #080505;
}

[data-theme="dark-rose"] {
  --red-900: #4a0f2e;
  --red-800: #7a1a4a;
  --red-700: #c72d6d;
  --red-600: #e04a86;
  --red-500: #f06aa0;
  --red-400: #ff8fbc;
  --cream-50: #211318;
  --cream-100: #150c10;
  --cream-200: #2c1c24;
  --surface: #1b1015;
  --surface-alt: #211318;
  --footer-bg-1: #1a0c13;
  --footer-bg-2: #12070c;
  --footer-bg-3: #080306;
}

[data-theme="dark-gold"] {
  --red-900: #3d2a0a;
  --red-800: #6b4a12;
  --red-700: #c9a227;
  --red-600: #dfb93b;
  --red-500: #eecb5c;
  --red-400: #ffe08a;
  --gold: #eecb5c;
  --gold-soft: #ffe8a8;
  --cream-50: #1e1b13;
  --cream-100: #13110c;
  --cream-200: #2a2518;
  --surface: #191710;
  --surface-alt: #1e1b13;
  --footer-bg-1: #1a160c;
  --footer-bg-2: #120f07;
  --footer-bg-3: #080703;
}

[data-theme="midnight"] {
  --red-900: #0a1630;
  --red-800: #163060;
  --red-700: #3d7ff0;
  --red-600: #5590f7;
  --red-500: #77a8ff;
  --red-400: #a3c3ff;
  --cream-50: #141a28;
  --cream-100: #0b0f1a;
  --cream-200: #1d2536;
  --cream-300: #2b3448;
  --chocolate: #eaf0fb;
  --chocolate-soft: #c3ceE2;
  --text-muted: #92a3bf;
  --surface: #101624;
  --surface-alt: #141a28;
  --gold-soft: #a3c3ff;
  --footer-bg-1: #0d1424;
  --footer-bg-2: #080d18;
  --footer-bg-3: #04060c;
}

/* superfícies claras que precisam virar escuras */
[data-theme="dark"] .about-card,
[data-theme="dark-rose"] .about-card,
[data-theme="dark-gold"] .about-card,
[data-theme="midnight"] .about-card {
  background: var(--cream-200);
  color: var(--chocolate);
}

[data-theme="dark"] .about-card h3,
[data-theme="dark-rose"] .about-card h3,
[data-theme="dark-gold"] .about-card h3,
[data-theme="midnight"] .about-card h3 {
  color: var(--red-400);
}

[data-theme="dark"] .about-card .btn-secondary,
[data-theme="dark-rose"] .about-card .btn-secondary,
[data-theme="dark-gold"] .about-card .btn-secondary,
[data-theme="midnight"] .about-card .btn-secondary {
  --btn-fg: var(--chocolate);
  border-color: var(--rule-strong);
}

/* nos temas escuros o vermelho/dourado da marca é claro demais para texto branco */
[data-theme="dark"] .btn-primary,
[data-theme="dark-rose"] .btn-primary,
[data-theme="dark-gold"] .btn-primary,
[data-theme="midnight"] .btn-primary {
  --btn-bg: var(--red-500);
  --btn-fg: #14100f;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark-rose"] .btn-primary:hover,
[data-theme="dark-gold"] .btn-primary:hover,
[data-theme="midnight"] .btn-primary:hover {
  --btn-bg: var(--red-400);
}

[data-theme="dark"] .step-num,
[data-theme="dark-rose"] .step-num,
[data-theme="dark-gold"] .step-num,
[data-theme="midnight"] .step-num {
  background: var(--red-500);
  color: #14100f;
}

[data-theme="dark"] .produto-ml,
[data-theme="dark-rose"] .produto-ml,
[data-theme="dark-gold"] .produto-ml,
[data-theme="midnight"] .produto-ml,
[data-theme="dark"] .vitrine-head h3 .size,
[data-theme="dark-rose"] .vitrine-head h3 .size,
[data-theme="dark-gold"] .vitrine-head h3 .size,
[data-theme="midnight"] .vitrine-head h3 .size {
  background: var(--red-500);
  color: #14100f;
}

[data-theme="dark"] .btn-comprar,
[data-theme="dark-rose"] .btn-comprar,
[data-theme="dark-gold"] .btn-comprar,
[data-theme="midnight"] .btn-comprar {
  background: var(--red-500);
  color: #14100f;
}

[data-theme="dark"] .btn-comprar:hover,
[data-theme="dark-rose"] .btn-comprar:hover,
[data-theme="dark-gold"] .btn-comprar:hover,
[data-theme="midnight"] .btn-comprar:hover {
  background: var(--red-400);
}

[data-theme="dark"] .cat-chip.active,
[data-theme="dark-rose"] .cat-chip.active,
[data-theme="dark-gold"] .cat-chip.active,
[data-theme="midnight"] .cat-chip.active {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #12100f;
}

[data-theme="dark"] .product-badge,
[data-theme="dark-rose"] .product-badge,
[data-theme="dark-gold"] .product-badge,
[data-theme="midnight"] .product-badge {
  background: rgba(20, 18, 17, 0.82);
  color: var(--red-400);
}

[data-theme="dark"] .toast,
[data-theme="dark-rose"] .toast,
[data-theme="dark-gold"] .toast,
[data-theme="midnight"] .toast {
  background: var(--cream-200);
  color: var(--chocolate);
}

/* --- Tema sazonal: Natal ---
   Vermelho natalino como cor de marca, verde-pinheiro no rodapé e na barra
   de aviso, dourado nos detalhes, faixa festiva no cabeçalho e neve no banner. */
[data-theme="natal"] {
  --red-900: #5c0d12;
  --red-800: #7d1319;
  --red-700: #9c1a20;
  --red-600: #b71f27;
  --red-500: #cc3a3f;
  --red-400: #e06a6c;
  --cream-50: #fffdf8;
  --cream-100: #f8f3e8;
  --cream-200: #eee4d0;
  --cream-300: #dfd0b0;
  --chocolate: #2b2118;
  --chocolate-soft: #5a4a3c;
  --gold: #b8862b;
  --gold-soft: #ecd08f;
  --pine-700: #0f4d33;
  --pine-600: #16603f;
  --text-muted: #6b5848;
  --footer-bg-1: #11472f;
  --footer-bg-2: #0b3522;
  --footer-bg-3: #062316;
}

/* faixa festiva (vermelho · dourado · verde) sob o cabeçalho */
[data-theme="natal"] .site-header {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--red-600) 0 10px,
    var(--gold-soft) 10px 14px,
    var(--pine-600) 14px 24px,
    var(--gold-soft) 24px 28px
  );
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: bottom;
  background-color: var(--paper);
}

/* neve caindo suave sobre a foto do banner */
[data-theme="natal"] .hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 4px at 20px 30px, rgba(255, 255, 255, 0.95) 40%, transparent 100%),
    radial-gradient(circle 3px at 80px 90px, rgba(255, 255, 255, 0.8) 40%, transparent 100%),
    radial-gradient(circle 5px at 140px 50px, rgba(255, 255, 255, 0.9) 40%, transparent 100%),
    radial-gradient(circle 2.5px at 60px 150px, rgba(255, 255, 255, 0.75) 40%, transparent 100%),
    radial-gradient(circle 3.5px at 170px 160px, rgba(255, 255, 255, 0.85) 40%, transparent 100%),
    radial-gradient(circle 4px at 110px 190px, rgba(255, 255, 255, 0.7) 40%, transparent 100%);
  background-size: 200px 200px;
  animation: natal-neve 14s linear infinite;
  opacity: 0.85;
}

@keyframes natal-neve {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 200px, 0);
  }
}

/* texto do banner acima da neve */
[data-theme="natal"] .hero-inner {
  position: relative;
  z-index: 1;
}

/* selos e destaques em dourado/verde */
[data-theme="natal"] .product-badge {
  background: var(--pine-600);
  color: #fff;
}

[data-theme="natal"] .cat-chip.active {
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* ========== MOVIMENTO REDUZIDO ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- produto esgotado ---- */
.produto.esgotado .produto-media img {
  filter: grayscale(0.85);
  opacity: 0.6;
}

.produto.esgotado:hover .produto-media img {
  transform: none;
}

.produto-esgotado {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--chocolate);
  color: var(--cream-50);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
}

.produto-restam {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red-700);
  letter-spacing: 0.02em;
}

.btn-comprar[disabled] {
  background: color-mix(in srgb, var(--chocolate) 22%, transparent);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-comprar[disabled]:hover {
  background: color-mix(in srgb, var(--chocolate) 22%, transparent);
}

/* "R$" menor que o valor, para o número ganhar destaque */
.moeda {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 0.08em;
  opacity: 0.8;
}

.cart-limite {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red-700);
}

.qty-controls button[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-controls button[disabled]:hover {
  background: transparent;
}

/* filtro de categoria: chips no desktop, select no celular */
.cat-select {
  display: none;
  position: relative;
  margin-bottom: 2rem;
}

.cat-select select {
  width: 100%;
  appearance: none;
  padding: 0.8rem 2.6rem 0.8rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.cat-select::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--red-700);
  border-bottom: 2px solid var(--red-700);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.cat-select select:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-600) 14%, transparent);
}

@media (max-width: 700px) {
  .cat-scroll {
    display: none;
  }

  .cat-select {
    display: block;
  }
}

/* parceiro com logo: a pílula branca vira moldura da imagem */
.parceiros li.parceiro-logo {
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
  background: transparent;
  border-radius: 0;
}

.parceiros li.parceiro-logo img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

@media (max-width: 560px) {
  .parceiros li.parceiro-logo {
    padding: 0;
  }

  .parceiros li.parceiro-logo img {
    height: 36px;
    max-width: 140px;
  }
}

/* ============================================================
   Motion — ver js/motion.js
   Tudo aqui é desligado pelo bloco prefers-reduced-motion no fim
   do arquivo; nada depende só do JS para ser acessível.
   ============================================================ */

/* ---- Entrada do hero: cascata encenada ----
   Os elementos começam escondidos só depois que o JS marca .hero-anim,
   para que sem JS o hero apareça normal em vez de ficar em branco. */
.hero-anim .hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
}

.hero-anim.hero-pronto .hero-inner > * {
  animation: sobe 760ms var(--ease) both;
}

.hero-anim.hero-pronto .hero-inner > :nth-child(1) { animation-delay: 60ms; }
.hero-anim.hero-pronto .hero-inner > :nth-child(2) { animation-delay: 190ms; }
.hero-anim.hero-pronto .hero-inner > :nth-child(3) { animation-delay: 270ms; }
.hero-anim.hero-pronto .hero-inner > :nth-child(4) { animation-delay: 380ms; }

@keyframes sobe {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* o título é a primeira coisa lida: revela por corte, não por fade */
.hero-anim h1 {
  clip-path: inset(0 0 100% 0);
}

.hero-anim.hero-pronto .hero-inner > h1 {
  animation: sobe 760ms var(--ease) 60ms both, corte 900ms var(--ease) 60ms both;
}

@keyframes corte {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 -10% 0); }
}

/* a foto de fundo assenta: um empurrãozinho de escala tira
   a sensação de banner estático */
.hero-anim .hero-bg {
  transform: scale(1.06);
}

.hero-anim.hero-pronto .hero-bg {
  transform: scale(1);
  transition: transform 1600ms var(--ease);
}

/* ---- Produtos surgindo ---- */
.produto.surge,
.vitrine-head.surge {
  opacity: 0;
  transform: translateY(22px);
}

.produto.surge {
  transition: opacity 560ms var(--ease) var(--atraso, 0ms),
    transform 560ms var(--ease) var(--atraso, 0ms), box-shadow var(--med) var(--ease),
    border-color var(--med) var(--ease);
}

.vitrine-head.surge {
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.produto.surge.surgiu,
.vitrine-head.surge.surgiu {
  opacity: 1;
  transform: none;
}

/* o hover continua valendo depois de surgir (o transform acima é none) */
.produto.surge.surgiu:hover {
  transform: translateY(-4px);
}

/* ---- Voo até o carrinho ---- */
.voo-carrinho {
  position: fixed;
  z-index: 300;
  object-fit: cover;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.carrinho-pulsa {
  animation: pulso 560ms var(--ease);
}

@keyframes pulso {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.16); }
  62%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* rede extra: se alguém ligar "reduzir movimento" depois do load,
   as classes do motion não podem deixar nada escondido */
@media (prefers-reduced-motion: reduce) {
  .hero-anim .hero-inner > *,
  .produto.surge,
  .vitrine-head.surge {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .hero-anim .hero-bg {
    transform: none;
  }

  .voo-carrinho {
    display: none;
  }
}

/* Faixa de vantagens sem animação: parada e com overflow escondido ela
   deixaria metade das vantagens inalcançáveis. Volta a ser trilho rolável
   e as cópias saem, para não repetir o conteúdo. */
@media (prefers-reduced-motion: reduce) and (max-width: 560px) {
  .vantagens {
    overflow: visible;
  }

  .vantagens-grid {
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
    animation: none;
  }

  .vantagens-grid::-webkit-scrollbar {
    display: none;
  }

  .vantagem-copia {
    display: none;
  }
}

/* aviso da busca de CEP */
.cep-aviso {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
  min-height: 1.1em;
}

.cep-aviso.erro {
  color: var(--brand-deep);
}

/* aviso de endereço fora das zonas de entrega */
.frete-aviso {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--red-600) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red-600) 30%, transparent);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--brand-deep);
}

.frete-aviso a {
  color: inherit;
  font-weight: 700;
}

/* ========== Checkout transparente ========== */
.pagamento-caixa {
  width: min(100%, 540px);
}

.pagamento-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.pagamento-pedido {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pagamento-total {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-size: 1.8rem;
  color: var(--brand-deep);
  line-height: 1.1;
}

.pagamento-pix {
  text-align: center;
}

.pagamento-pix-ajuda {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.pagamento-pix img {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  border-radius: var(--radius-sm);
  background: #fff;
}

.pagamento-pix-codigo {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.6rem;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  word-break: break-all;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 72px;
}

.pagamento-aguardando {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pagamento-aguardando::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  animation: pulsando 1.4s ease-in-out infinite;
}

@keyframes pulsando {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.pagamento-fim {
  text-align: center;
  padding: 0.5rem 0 0.2rem;
}

.pagamento-icone {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
}

.pagamento-icone.ok {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.pagamento-icone.erro {
  background: color-mix(in srgb, var(--red-600) 12%, transparent);
  color: var(--brand-deep);
}

.pagamento-icone.espera {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
}

.pagamento-fim h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.pagamento-fim p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.pagamento-erro {
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--red-600) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red-600) 30%, transparent);
  color: var(--brand-deep);
  font-size: 0.86rem;
}

/* Conta obrigatória no checkout */
.campo-ajuda {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ja-tem-conta {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.ja-tem-conta strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.ja-tem-conta p {
  margin: 0.25rem 0 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ja-tem-conta-linha {
  display: flex;
  gap: 0.5rem;
}

.ja-tem-conta-linha input {
  flex: 1;
  min-width: 0;
}

.ja-tem-conta-erro {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: var(--brand-deep);
  font-weight: 600;
}

/* Sobreposição do modal de pagamento.
   Esta classe existia só no painel.css; no site ela não tinha regra nenhuma,
   então a tela de pagamento virava um bloco comum no fim da página — abria
   sem o cliente ver nada. Espelha o comportamento do .checkout-modal. */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(31, 16, 11, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-overlay .modal {
  position: relative;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  width: min(100%, 540px);
  max-height: 92vh;
  overflow: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.modal-overlay .modal-x {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.modal-overlay .modal-x:hover {
  background: color-mix(in srgb, var(--red-600) 10%, transparent);
  color: var(--brand-deep);
}

/* Formulário de cartão do Pagar.me (sem widget pronto como o do MP) */
.pg-metodos {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pg-metodo {
  flex: 1;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.pg-metodo.ativo {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

.pg-aba label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pg-aba input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}

.pg-aba input:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 1px;
}

.pg-linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.pg-ajuda {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ========== PÁGINA DE PRODUTO (produto.php) ========== */
.pp {
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.pp-trilha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
}
.pp-trilha a:hover { color: var(--brand-deep); text-decoration: underline; }
.pp-trilha .ico { width: 14px; height: 14px; }
.pp-trilha [aria-current] { color: var(--ink); font-weight: 600; }

.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* ---- galeria ---- */
.pp-galeria {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.pp-galeria:has(.pp-miniaturas) { grid-template-columns: 76px minmax(0, 1fr); }
.pp-miniaturas { display: grid; gap: 0.6rem; align-content: start; }
.pp-miniaturas button {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-alt);
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--fast), border-color var(--fast);
}
.pp-miniaturas button:hover { opacity: 1; }
.pp-miniaturas button[aria-current="true"] { border-color: var(--red-600); opacity: 1; }
.pp-miniaturas img { width: 100%; height: 100%; object-fit: cover; }

.pp-foto {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
}
.pp-foto img { width: 100%; height: 100%; object-fit: cover; }
.pp-foto img[hidden] { display: none; }
.pp-foto .produto-esgotado { top: 1rem; left: 1rem; font-size: 0.72rem; }
.pp-seta {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface-alt) 88%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.pp-seta:hover { color: var(--red-600); }
.pp-seta--ant { left: 0.9rem; }
.pp-seta--prox { right: 0.9rem; }
.pp-contador {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(42, 23, 16, 0.7);
  color: #fff;
}

/* ---- informações ---- */
.pp-selos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pp-selo {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--red-600);
  color: #fff;
}
.pp-selo--claro { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--ink); }
.pp-selo--cinza { background: var(--chocolate); color: var(--cream-50); }

.pp-info h1 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  color: var(--ink);
}
/* a categoria fica dentro do h1 (o Google lê "Fatia Brownie Ferrero Rocher"),
   mas aparece como etiqueta acima do nome */
.pp-h1-cat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-700);
}
.pp-h1-cat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pp-preco-linha {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 1.1rem;
}
.pp-preco {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.pp-pix { font-size: 0.95rem; color: var(--success); font-weight: 700; }
/* aviso de entrega em destaque: é a dúvida mais comum antes de comprar */
.pp-nota {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--red-600) 10%, transparent);
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 700;
}
.pp-nota .ico { width: 18px; height: 18px; flex-shrink: 0; }

.pp-resumo { margin-top: 1.25rem; color: var(--ink-soft); line-height: 1.75; max-width: 54ch; }
.pp-resumo p + p { margin-top: 0.6rem; }

.pp-estoque {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-700);
}
.pp-estoque::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.pp-estoque--ok { color: var(--success); }
.pp-estoque--fim { color: var(--text-muted); }

.pp-compra {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
/* esgotado: sem seletor de quantidade, o botão ocupa a linha toda */
.pp-compra > .btn-primary:first-child { grid-column: 1 / -1; }
.pp-qtd {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
}
.pp-qtd button {
  width: 44px;
  height: 52px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.pp-qtd button:hover { color: var(--red-600); }
.pp-qtd button:disabled { opacity: 0.35; cursor: not-allowed; }
.pp-qtd output { min-width: 1.8rem; text-align: center; font-weight: 700; }
.pp-compra .btn-primary { min-height: 52px; font-size: 1rem; }
.pp-compra .btn-whatsapp { grid-column: 1 / -1; }

/* informação, não ação: sem borda nem fundo de pílula (pareciam botões),
   só ícone + texto separados por fios, entre duas linhas */
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-block: 0.85rem;
  border-block: 1px solid var(--rule);
}
.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-inline: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: default;
}
.pp-chip:first-child { padding-left: 0; }
.pp-chip + .pp-chip { border-left: 1px solid var(--rule); }
.pp-chip .ico { width: 17px; height: 17px; color: var(--red-700); flex-shrink: 0; }

@media (max-width: 560px) {
  /* no celular vira lista vertical: três itens lado a lado não cabem */
  .pp-chips { flex-direction: column; gap: 0.55rem; }
  .pp-chip { padding-inline: 0; }
  .pp-chip + .pp-chip { border-left: 0; }
}

/* ---- sanfona ---- */
.pp-sanfona { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.pp-sanfona details { border-bottom: 1px solid var(--rule); }
.pp-sanfona summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
}
.pp-sanfona summary::-webkit-details-marker { display: none; }
.pp-sanfona summary h2 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.pp-sanfona summary .ico { width: 20px; height: 20px; flex-shrink: 0; transition: rotate var(--med) var(--ease); }
.pp-sanfona details[open] summary .ico { rotate: 45deg; }
.pp-sanfona-corpo { padding-bottom: 1.25rem; color: var(--ink-soft); line-height: 1.75; }
.pp-sanfona-corpo p + p { margin-top: 0.5rem; }
.pp-sanfona-corpo ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* ---- relacionados ---- */
.pp-relacionados { margin-top: clamp(3rem, 7vw, 4.5rem); }
.pp-relacionados h2 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}
.pp-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pp-rel {
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.pp-rel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pp-rel img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }
.pp-rel div { padding: 0.8rem 0.95rem 1rem; }
.pp-rel small { color: var(--text-muted); font-size: 0.78rem; }
.pp-rel strong { display: block; color: var(--ink); line-height: 1.3; }
.pp-rel span { font-weight: 800; color: var(--brand-deep); }
.pp-rel--esgotado img { filter: grayscale(0.8); opacity: 0.6; }

.pp-404 { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.pp-404 h1 { margin: 0.6rem 0 0.8rem; font-family: var(--font-categoria); font-variation-settings: normal; }
.pp-404 p:not(.kicker) { color: var(--text-muted); margin-bottom: 1.5rem; }

/* link do card do cardápio para a página do produto */
.produto-link { display: block; color: inherit; }
.produto-body h4 a { color: inherit; }
.produto-body h4 a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-galeria { position: static; }
  .pp-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pp-galeria:has(.pp-miniaturas) { grid-template-columns: minmax(0, 1fr); }
  .pp-miniaturas { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow-x: auto; }
  .pp-compra { grid-template-columns: minmax(0, 1fr); }
  .pp-qtd { justify-self: start; }
}

/* ========== PROMOÇÃO "DE / POR" ========== */
/* selo no canto superior direito do card (o esquerdo é de "Mais pedido"/"Esgotado") */
.produto-desconto {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
  background: var(--red-600);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(42, 23, 16, 0.25);
}

.produto-desconto-menos {
  display: none;
}

.produto-preco {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.produto-de,
.pp-preco-de,
.pp-rel s {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration-thickness: 1px;
  font-variation-settings: normal;
}

.pp-preco-de {
  font-size: 1.05rem;
}

.pp-rel s {
  font-size: 0.78rem;
  margin-left: 0.25rem;
}

.pp-selo--desconto {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-600) 18%, transparent);
}

/* card estreito no celular: "Economize 15%" vira "−15%" para não encostar no selo da esquerda */
@media (max-width: 560px) {
  .produto-desconto-txt {
    display: none;
  }

  .produto-desconto-menos {
    display: inline;
  }
}

/* ========== POP-UP DE PROMOÇÃO (painel > Promoções) ========== */
.promo-pop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 10, 6, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.promo-pop.aberto {
  opacity: 1;
}

.promo-pop-caixa {
  position: relative;
  max-width: min(92vw, 520px);
  transform: scale(0.94);
  transition: transform 260ms var(--ease);
}

.promo-pop.aberto .promo-pop-caixa {
  transform: none;
}

.promo-pop-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(84vh, 760px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

.promo-pop-link {
  display: block;
  border-radius: var(--radius-lg);
}

.promo-pop-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.promo-pop-fechar {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--chocolate);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.promo-pop-fechar:hover {
  background: var(--cream-100);
}

@media (max-width: 560px) {
  .promo-pop-fechar {
    top: -12px;
    right: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-pop,
  .promo-pop-caixa {
    transition: none;
  }
}

/* ========== SEO: título da vitrine com link, texto da home e páginas de categoria ========== */
.vitrine-head h3 a {
  color: inherit;
}

.vitrine-head h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.seo-texto {
  border-top: 1px solid var(--rule);
}

.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.seo-texto h2 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.6rem 0 1rem;
}

.seo-texto p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 60ch;
}

.seo-texto p + p {
  margin-top: 0.75rem;
}

.seo-links a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-faq details {
  border-bottom: 1px solid var(--rule);
}

.seo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--red-700);
  transition: rotate var(--med) var(--ease);
}

.seo-faq details[open] summary::after {
  rotate: 45deg;
}

.seo-faq summary h3 {
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.seo-faq details p {
  padding-bottom: 1rem;
}

.categoria-topo {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.categoria-topo h1 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  margin: 0.5rem 0 0.8rem;
  color: var(--ink);
}

.categoria-topo h1 span {
  color: var(--brand-deep);
}

.categoria-intro {
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* na categoria os cards ficam em grade (sem o carrossel da home) */
.categoria-grade {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  overflow: visible;
}

.categoria-grade .produto {
  width: auto;
  min-width: 0;
}

.categoria-texto {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.categoria-texto h2 {
  font-family: var(--font-categoria);
  font-variation-settings: normal;
  letter-spacing: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 0.7rem;
}

.categoria-texto p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 70ch;
}

.categoria-texto p + p {
  margin-top: 0.7rem;
}

@media (max-width: 900px) {
  .seo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .categoria-grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}
