/* =========================================================
   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;
  --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);
}

.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);
  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;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  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.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.18rem;
  height: 1.5px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--brand-deep);
  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: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--red-600);
  color: #fff;
  font-size: 0.68rem;
  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: 42px;
  height: 42px;
  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);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto -10%;
  height: 70vh;
  background: radial-gradient(
    ellipse 50% 60% at 20% 40%,
    color-mix(in srgb, var(--red-600) 9%, transparent),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 1.1rem 0 1.25rem;
  color: var(--brand-deep);
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-variation-settings: var(--vf-display-lg);
  color: var(--red-600);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 1.9rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.hero-facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red-400);
  margin-right: 0.5rem;
  align-self: center;
}

.hero-facts strong {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

/* visual do hero: foto na forminha + selo */
.hero-visual {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 430px);
}

.forminha {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--cream-200);
}

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

/* faixa plissada do copo, abaixo da foto */
.forminha-base {
  height: 27px;
  margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 15px),
    var(--red-600);
  -webkit-mask: radial-gradient(circle 15px at 15px 0, #000 99%, #0000 101%) 0 100% / 30px 15px
      repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% 13px no-repeat;
  mask: radial-gradient(circle 15px at 15px 0, #000 99%, #0000 101%) 0 100% / 30px 15px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% 13px no-repeat;
}

/* legenda: selo da casa + o item em destaque */
.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  text-align: left;
}

.hero-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--rule-strong);
}

.hero-tag strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-deep);
  line-height: 1.2;
}

.hero-tag span span,
.hero-tag > span > span {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ========== TOOLBAR DO CARDÁPIO ========== */
.menu-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem 0.7rem 2.7rem;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.search-wrap input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 75%, transparent);
}

.search-wrap input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-600) 14%, transparent);
}

.search-wrap .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 17px;
  height: 17px;
}

.cat-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.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);
}

/* ========== CARDS DO CARDÁPIO ========== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.menu-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.product-card {
  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);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}

.product-media {
  position: relative;
  aspect-ratio: 1.35 / 1;
  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;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}

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

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: color-mix(in srgb, var(--cream-50) 96%, transparent);
  color: var(--brand-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.product-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-body h3 {
  font-size: 1.32rem;
  color: var(--brand-deep);
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-body h3 .size {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-700);
  border: 1px solid var(--rule-strong);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.flavor-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

/* linha de cardápio impresso: nome ······ preço */
.flavor-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.42rem 0.15rem;
  border-radius: var(--radius-sm);
  transition: background var(--fast);
}

.flavor-row:hover {
  background: color-mix(in srgb, var(--cream-200) 60%, transparent);
}

.flavor-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.flavor-leader {
  flex: 1 1 1.5rem;
  min-width: 1rem;
  align-self: center;
  border-bottom: 1.5px dotted var(--rule-strong);
  transform: translateY(-1px);
}

.flavor-price {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--brand-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.add-btn {
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.add-btn:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

.add-btn .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* ========== GALERIA ========== */
.gallery-grid-public {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 1.15rem;
}

.gallery-card {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-cap {
  padding: 0.8rem 0.9rem 0.95rem;
  border-top: 1px solid var(--rule);
}

.gallery-cap strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-deep);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.gallery-cap span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gallery-add {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-700);
}

.gallery-card.flavor:hover .gallery-add {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== 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 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule-strong);
}

.step-num {
  font-family: var(--font-display);
  font-variation-settings: var(--vf-display-lg);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red-500);
  opacity: 0.55;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ========== 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/products/brownie-supremo.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 {
  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 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.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;
}

.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;
}

.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 .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: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 70px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    width: min(100%, 340px);
  }

  .hero h1 em {
    display: inline;
  }

  .season-banner {
    grid-template-columns: 1fr;
  }

  .season-banner .btn {
    justify-self: start;
  }

  .step {
    padding-top: 1.1rem;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    gap: 0.1rem;
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--med) var(--ease), opacity var(--med);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .nav a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header-actions > .btn-whatsapp {
    display: none;
  }

  .auth-area .btn {
    padding: 0.42rem 0.7rem;
    font-size: 0.8rem;
  }

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

@media (max-width: 560px) {
  .container,
  .season-banner {
    width: min(100% - 1.75rem, var(--container));
  }

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

  .gallery-grid-public {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hero-seal {
    width: 46px;
    height: 46px;
  }

  .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"] .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);
}

/* ========== 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;
  }
}
