/* ==========================================================================
   1. VARIÁVEIS E RESET BÁSICO (Pode ser movido para um global.css se preferir)
   ========================================================================== */
:root {
  /* Marca */
  --purple: #a78bfa;
  --purple-dark: #7c3aed;
  --purple-soft: #ede9fe;
  --purple-deeper: #1e1b4b;
  --gold: #fbbf24;
  --gold-dark: #d97706;
  --gold-soft: #fef3c7;

  /* Superfícies (light) */
  --bg: #fafaff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f5f3ff;
  --border: #e9e3ff;
  --border-strong: #c4b5fd;

  /* Divisores e estados (semânticos — carrinho + admin) */
  --divider: rgba(124, 58, 237, 0.10);
  --gold-tint: rgba(251, 191, 36, 0.14);
  --gold-tint-strong: rgba(251, 191, 36, 0.24);
  --danger-bg: rgba(255, 138, 138, 0.10);
  --danger-border: rgba(255, 138, 138, 0.35);
  --danger-text: #b8334a;
  --success-bg: rgba(143, 230, 165, 0.18);
  --success-border: rgba(143, 230, 165, 0.40);
  --success-text: #1e7a4a;

  /* Texto */
  --text: #1e1b4b;
  --muted: #6b7280;
  --text-soft: var(--muted);
  --on-purple: #ffffff;
  --on-gold: #1e1b4b;

  /* Topbar */
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --topbar-border: rgba(167, 139, 250, 0.18);

  /* Efeitos */
  --shadow: 0 18px 40px rgba(124, 58, 237, 0.10);
  --shadow-soft: 0 8px 24px rgba(124, 58, 237, 0.06);
  --shadow-card: 0 4px 18px rgba(124, 58, 237, 0.08);
  --shadow-card-hover: 0 14px 36px rgba(124, 58, 237, 0.16);

  /* Compatibilidade Legada */
  --purple-light: var(--purple);
  --white: var(--surface);
  --panel: var(--surface);
  --bg-legacy: var(--bg);
  --text-legacy: var(--text);
  --muted-legacy: var(--muted);
  --cream-text: var(--text);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top center, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(251, 191, 36, 0.08), transparent 50%),
    linear-gradient(180deg, #fafaff 0%, #f3eefe 100%);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

@media (min-width: 769px) {
  html {
    overflow-y: scroll;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
}

/* ==========================================================================
   2. LAYOUT GERAL E TOPBAR
   ========================================================================== */
.topbar {
  background: var(--purple-soft);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  min-height: 4.6rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.28);
  color: var(--on-gold);
  font-size: 1.35rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: grid;
  gap: 0.08rem;
}

.brand-title {
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(124, 58, 237, 0.18);
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.main-layout {
  padding: 1rem 0 3rem;
}

.page-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.content-grid {
  flex: 1;
  min-width: 0;
  display: block;
  scroll-margin-top: 14rem;
}

.topbar-search {
  width: min(420px, 100%);
  margin-left: auto;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--border-strong);
  background: var(--surface-muted);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
}

/* ==========================================================================
   3. MENU DE NAVEGAÇÃO E BOTÕES DE TOPO
   ========================================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  color: var(--text);
  gap: 0.28rem;
  flex-shrink: 0;
  padding: 0.35rem 0;
}

.menu-toggle span {
  display: block;
  width: 1.4rem;
  height: 0.16rem;
  border-radius: 999px;
  background: var(--text);
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 28;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.menu-backdrop.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-close {
  display: none;
  align-self: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.55rem;
  margin-bottom: 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cart-button:hover {
  background: var(--surface-muted);
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.18);
}

/* ==========================================================================
   4. FILTROS E DESTAQUES (HERO)
   ========================================================================== */
.filters {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 240px;
  max-width: 280px;
  position: sticky;
  top: 5.5rem;
  z-index: 15;
  padding: 1.3rem;
  background: var(--surface);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

#filterList {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-dark);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-weight: 700;
  text-align: left;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  background: var(--surface-muted);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.filter-btn.active {
  background: var(--gold-soft);
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.10);
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.menu-user-status {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
  border: 1px solid var(--border);
}

.menu-user-status .status-message {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.menu-user-status .status-action {
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--on-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.22);
}

.menu-user-status .status-action:hover {
  filter: brightness(1.03);
}

.hero-card {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 2rem 2rem 2rem 2.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Faixa roxa→dourada à esquerda para destacar o card do fundo lavanda
   sem cobrir o conteúdo com gradiente. */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--purple-dark) 0%, var(--gold) 100%);
  border-radius: 28px 0 0 28px;
}

.hero-card > div,
.hero-highlight {
  position: relative;
  z-index: 1;
}

.cartao-destaque h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.cartao-destaque p {
  max-width: 640px;
  opacity: 0.85;
  color: var(--text);
}

.hero-highlight {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 22px;
  padding: 1.1rem 1.3rem;
  min-width: 220px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  color: var(--purple-dark);
}

/* ==========================================================================
   5. CATÁLOGO, CARDS DE PRODUTO E SLIDER
   ========================================================================== */
.products-header {
  display: none;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.category-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  align-content: start;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.product-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
  max-height: calc(1.45em * 2);
  color: var(--muted);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  border-radius: 22px;
  padding: 0.6rem 1rem 1rem;
  margin-top: auto;
  gap: 0.6rem;
}

.product-card__link h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: calc(1.25em * 4);
  max-height: calc(1.25em * 4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-align: left;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.product-card__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.product-card__actions {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.product-card__actions:has(.quantity-controls) .add-btn {
  display: none;
}

.product-slider {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  width: 100%;
  border-radius: 22px 22px 0 0;
}

.slider-track {
  display: flex;
  transition: transform 0.35s ease;
  width: 100%;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 1rem 0.75rem 0.75rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-slide img {
  width: auto;
  height: 290px;
  max-width: 100%;
  max-height: 290px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface);
  box-sizing: border-box;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.slider-btn.prev {
  left: 0.85rem;
}

.slider-btn.next {
  right: 0.85rem;
}

.product-slider:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--on-gold);
  transform: translateY(-50%) scale(1.05);
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0;
}

.slider-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  cursor: pointer;
}

.slider-indicators--placeholder {
  pointer-events: none;
}

.slider-indicator.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
}

.slider-indicator--small {
  width: 0.35rem;
  height: 0.35rem;
  opacity: 0.5;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.product-card__link .price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0;
}

.product-card__link .price-row strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.price-row__unit {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* ==========================================================================
   6. CONTROLES DE QUANTIDADE E BOTÕES (ADICIONAR)
   --------------------------------------------------------------------------
   - `.add-btn` (bolinha inicial com `+`) mantém a borda: é um botão
     "solto" e a borda desenha o próprio botão.
   - `.quantity-btn` (dentro do bloco expandido) NÃO tem borda: a moldura
     do bloco é desenhada pelo próprio `.quantity-controls` (logo abaixo).
   ========================================================================== */
.add-btn,
.quantity-btn {
  border-radius: 2rem;
  background: var(--surface);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 1rem;
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.add-btn {
  border: 1px solid var(--border);
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
}

.add-btn:hover,
.quantity-btn:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.add-btn:hover {
  border-color: var(--border-strong);
}



.product-card .quantity-btn {
  /* Botões internos do bloco expandido: sem borda (a borda do bloco é
     desenhada pelo próprio `.quantity-controls`). */
  border: none;
  border-radius: 0;
  min-width: 2rem;
  min-height: 2rem;
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
}

.product-card .quantity-input {
  width: 2rem;
  font-size: 0.9rem;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  overflow: hidden;
}

.quantity-input {
  width: 2.6rem;
  padding: 0.35rem 0;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
}

.quantity-value {
  min-width: 1.3rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

/* ==========================================================================
   7. BOTÃO FLUTUANTE E TOASTS GLOBAL/CATÁLOGO
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4dd47d 0%, #25d366 55%, #128c7e 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(37, 211, 102, 0.18);
  color: #fff;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42), 0 0 0 6px rgba(37, 211, 102, 0.28);
  outline: none;
}

.whatsapp-fab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(37, 211, 102, 0.18);
  }
  50% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.add-toast {
  position: fixed;
  left: 50%;
  top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--on-purple);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 50;
}

.add-toast::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.7rem;
}

.add-toast--already-in-cart::before {
  content: "!";
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.8rem;
  font-weight: 700;
}

.add-toast--removed::before {
  content: "✕";
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.add-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   8. MEDIA QUERIES (CATÁLOGO)
   ========================================================================== */
@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: inline-flex;
    order: 1;
  }

  .brand {
    order: 2;
    flex: 1;
  }

  .topbar-actions {
    order: 3;
    margin-left: 0;
    width: auto;
  }

  .topbar-search {
    order: 4;
    width: 100%;
    margin: 0.85rem 0 0;
  }

  .hero-card {
    padding: 1.4rem;
    margin: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-highlight {
    min-width: 100%;
  }

  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    max-width: 320px;
    margin: 0;
    padding: 1.5rem;
    z-index: 30;
    transform: translateX(-110%);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-radius: 0 24px 24px 0;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
  }

  .filters.open {
    transform: translateX(0);
    opacity: 1;
  }

  .filters .filter-title {
    margin-top: 0;
    text-align: left;
    padding-bottom: 0.35rem;
  }

  .filters .menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 1.4rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .filters .menu-close:hover {
    background: var(--surface-muted);
    transform: translateY(-1px);
  }

  .filters .filter-btn {
    width: 100%;
    text-align: left;
    border-radius: 16px;
    padding: 1rem 1.1rem;
  }

  .menu-backdrop {
    display: block;
    opacity: 0;
    visibility: hidden;
  }

  .menu-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.8rem 0 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .products-grid .quantity-controls {
    display: none;
  }

  .products-grid .product-card__actions:has(.quantity-controls) .add-btn {
    display: inline-flex;
  }

  .add-btn--in-cart {
    background: #22c55e;
    border-color: #16a34a;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
  }

  .add-btn--in-cart:hover {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
  }

  .add-btn--pulse {
    animation: addBtnPulse 0.28s ease-out;
  }

  @keyframes addBtnPulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); }
    100% { transform: scale(1); }
  }
}

@media (max-width: 768px) {
  .page-layout {
    gap: 1rem;
    align-items: stretch;
  }

  .products-grid {
    gap: 0.75rem;
    justify-items: stretch;
  }

  .product-card {
    padding: 0;
    gap: 0;
    border-radius: 18px;
    width: 100%;
    overflow: hidden;
  }

  .product-card__link {
    padding: 0.75rem 0.75rem 0.85rem;
    gap: 0.25rem;
    border-radius: 0;
    padding-right: 2.4rem; 
  }

  .product-card__actions {
    right: 0.6rem;
    bottom: 0.6rem;
  }

  .product-card p {
    font-size: 0.85rem;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    max-height: calc(1.35em * 1);
  }

  .slider-slide {
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
  }

  .product-card .slider-slide img {
    width: auto;
    height: 160px;
    max-width: 100%;
    max-height: 160px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
    background: var(--surface);
    box-sizing: border-box;
  }

  .product-slider {
    border-radius: 0;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
  }

  .slider-btn {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.8rem;
  }

  .slider-indicators {
    padding: 0.4rem 0 0.2rem;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .slider-indicator.active {
    transform: scale(1.3);
  }

  .price-row {
    gap: 0.6rem;
    align-items: center;
    min-height: auto;
  }

  .product-card__link .price-row strong {
    font-size: 0.85rem;
    color: var(--muted);
  }

  /* No mobile, separamos `.add-btn` (com borda) de `.quantity-btn`
     (sem borda, mesma lógica do desktop). */
  .add-btn {
    background: var(--surface);
    color: var(--purple-dark);
    border: 1px solid var(--border);
    box-shadow: none;
  }

  .quantity-btn {
    background: var(--surface);
    color: var(--purple-dark);
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .quantity-btn:hover,
  .add-btn:hover {
    background: var(--surface-muted);
    color: var(--purple-dark);
  }

  .quantity-btn {
    min-width: 1.8rem;
    min-height: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.95rem;
  }

  .quantity-input {
    width: 1.7rem;
    min-width: 1.7rem;
    font-size: 0.9rem;
  }

  .quantity-controls {
    border-radius: 1.4rem;
    background: var(--surface);
  }

  .add-btn {
    min-width: 2.4rem;
    min-height: 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
    border-radius: 50%;
  }

  .hero-card.hide-on-mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab {
    animation: none;
  }

  .whatsapp-fab,
  .whatsapp-fab:hover,
  .whatsapp-fab:focus-visible {
    transition: none;
  }

  .add-btn--pulse {
    animation: none;
  }

  .add-toast {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .add-toast--visible {
    transform: none;
  }
}


/* Garante que o conteúdo principal empurre o rodapé para baixo */
main {
  flex: 1;
}

@media (min-width: 769px) {
  html {
    overflow-y: scroll;
  }
}


/* ==========================================================================
   SITE FOOTER (Sticky Footer & Layout)
   ========================================================================== */

:root {
  --footer-bg: #1e1b4b; 
  --footer-text: rgba(255, 255, 255, 0.75);
  --footer-gold: #fbbf24; 
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 1.5rem;
  font-size: 0.9rem;
  margin-top: auto;
  width: 100%;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--footer-gold);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer h4 {
  color: var(--footer-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.875rem;
}

.site-footer__contact-info {
  line-height: 1.5;
  margin-top: 1.25rem;
}

.site-footer__bottom {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.site-footer__social a:hover {
  border-color: var(--footer-gold);
  color: var(--footer-gold);
  transform: translateY(-2px);
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {

  
  /* Transforma a grid do rodapé em 2 colunas */
  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }

  /* 1. Marca fica na primeira coluna, linha 1 */
  .site-footer__brand {
    grid-column: 1;
    grid-row: 1;
  }

  /* 2. Contato vai para debaixo da marca (mesma coluna, linha 2) */
  .site-footer__grid > .site-footer__col:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
  }

  /* 3. Catálogo ocupa a coluna da direita inteira (linha 1 até a 2) */
  .site-footer__grid > .site-footer__col:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

}

/* 1. Aproxima os elementos dentro do bloco de Contato (geral) */
.site-footer__col h4 {
  margin-bottom: 0.5rem; /* Aproxima o título do conteúdo */
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col li {
  margin-bottom: 0.25rem; /* Aproxima os itens de lista (telefone e email) */
}

.site-footer__contact-info {
  margin-top: 0.4rem; /* Aproxima o endereço dos links acima */
  line-height: 1.35;
}


/* 1. Afasta o parágrafo descritivo logo abaixo da marca */
.site-footer__brand p {
  margin-top: 1rem; /* Aumente ou diminua esse valor se quiser mais ou menos distância */
}


