/* ==========================================================================
   Dupuro Açaí — Design System v2
   Identidade extraída dos arquivos oficiais da marca (logos, pattern, fonte
   Klinko Playful Bold e pôsteres de campanha do banco de imagens).
   Paleta amostrada pixel a pixel do logo oficial (Dupuro_Conceito_001).
   ========================================================================== */

@font-face {
  font-family: 'Klinko';
  src: url('../fonts/Klinko-PlayfulBold.otf') format('opentype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Roxos — do vinho do wordmark ao quase-preto dos fundos de campanha */
  --roxo-950: #240820;
  --roxo-900: #380C2F;
  --roxo-800: #4A1140;
  --roxo-700: #601050;      /* roxo principal do logo */
  --roxo-500: #7E2065;
  --roxo-300: #A94E8C;

  /* Dourado — gradiente âmbar da elipse do logo */
  --gold: #F5B301;
  --gold-strong: #E28F00;
  --gold-soft: #FFD34D;

  /* Verde-limão do anel e das folhas */
  --verde: #8BB831;
  --verde-dark: #628A16;

  /* Neutros */
  --cream: #FFF7EC;
  --cream-2: #FBEEDC;
  --white: #FFFFFF;
  --text: #33122B;
  --text-light: #7A5A72;

  --success: #628A16;
  --warning: #C77C00;
  --danger: #C0392B;

  /* Aliases legados (mantêm compatibilidade com trechos antigos) */
  --color-primary: var(--roxo-700);
  --color-primary-dark: var(--roxo-900);
  --color-primary-light: var(--roxo-500);
  --color-gold: var(--gold);
  --color-gold-light: var(--gold-soft);
  --color-green: var(--verde);
  --color-green-dark: var(--verde-dark);
  --color-cream: var(--cream);
  --color-white: var(--white);
  --color-text: var(--text);
  --color-text-light: var(--text-light);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-danger: var(--danger);

  --font-display: 'Klinko', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(56, 12, 47, 0.08);
  --shadow-md: 0 10px 28px rgba(56, 12, 47, 0.14);
  --shadow-lg: 0 22px 54px rgba(56, 12, 47, 0.22);

  --container-width: 1180px;

  /* Pattern oficial (cumbuca + açaí) recriado em SVG.
     Versão clara: quadrados verde/dourado (uso pontual em fundos claros). */
  --pattern-color: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg%3E%3Crect x='6' y='6' width='60' height='60' rx='16' fill='%238BB831'/%3E%3Ccircle cx='28' cy='40' r='10' fill='%23481038'/%3E%3Ccircle cx='44' cy='36' r='10' fill='%23601050'/%3E%3Ccircle cx='36' cy='48' r='10' fill='%23561046'/%3E%3Cellipse cx='40' cy='22' rx='9' ry='5' transform='rotate(-30 40 22)' fill='%23628A16'/%3E%3Crect x='84' y='6' width='60' height='60' rx='16' fill='%23F5B301'/%3E%3Cpath d='M96 38 h36 a18 14 0 0 1 -36 0 z' fill='%23601050'/%3E%3Cellipse cx='114' cy='32' rx='13' ry='9' fill='%23601050'/%3E%3Crect x='84' y='84' width='60' height='60' rx='16' fill='%238BB831'/%3E%3Ccircle cx='106' cy='118' r='10' fill='%23481038'/%3E%3Ccircle cx='122' cy='114' r='10' fill='%23601050'/%3E%3Ccircle cx='114' cy='126' r='10' fill='%23561046'/%3E%3Cellipse cx='118' cy='100' rx='9' ry='5' transform='rotate(-30 118 100)' fill='%23628A16'/%3E%3Crect x='6' y='84' width='60' height='60' rx='16' fill='%23F5B301'/%3E%3Cpath d='M18 116 h36 a18 14 0 0 1 -36 0 z' fill='%23601050'/%3E%3Cellipse cx='36' cy='110' rx='13' ry='9' fill='%23601050'/%3E%3C/g%3E%3C/svg%3E");

  /* Versão fantasma: ícones brancos p/ fundos roxos (como no pôster oficial). */
  --pattern-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='3'%3E%3Crect x='6' y='6' width='60' height='60' rx='16'/%3E%3Ccircle cx='28' cy='40' r='9'/%3E%3Ccircle cx='44' cy='36' r='9'/%3E%3Ccircle cx='36' cy='48' r='9'/%3E%3Crect x='84' y='84' width='60' height='60' rx='16'/%3E%3Ccircle cx='106' cy='118' r='9'/%3E%3Ccircle cx='122' cy='114' r='9'/%3E%3Ccircle cx='114' cy='126' r='9'/%3E%3Crect x='84' y='6' width='60' height='60' rx='16'/%3E%3Cpath d='M96 38 h36 a18 14 0 0 1 -36 0 z'/%3E%3Crect x='6' y='84' width='60' height='60' rx='16'/%3E%3Cpath d='M18 116 h36 a18 14 0 0 1 -36 0 z'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--white);
  color: var(--roxo-700);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  z-index: 2000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde);
  color: var(--roxo-950);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  box-shadow: 0 3px 0 rgba(56,12,47,0.18);
}

.section-title {
  font-size: clamp(30px, 4.4vw, 48px);
  color: var(--roxo-700);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 17px;
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 720px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Botões (estilo "candy" da marca: chunky, arredondado, 3D) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.btn:hover::before { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-strong) 100%);
  color: var(--roxo-950);
  box-shadow: 0 4px 0 #A96A00, 0 12px 24px rgba(226,143,0,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #A96A00, 0 16px 30px rgba(226,143,0,0.45); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #A96A00, 0 6px 14px rgba(226,143,0,0.35); }

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--white); }

.btn-dark-outline {
  background: transparent;
  color: var(--roxo-700);
  border: 2px solid var(--roxo-700);
}
.btn-dark-outline:hover { background: var(--roxo-700); color: var(--white); }

.btn-green {
  background: linear-gradient(180deg, #A3CE4B 0%, var(--verde) 60%, #74A21F 100%);
  color: var(--roxo-950);
  box-shadow: 0 4px 0 #4E7010, 0 10px 22px rgba(139,184,49,0.35);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #4E7010, 0 14px 26px rgba(139,184,49,0.42); }
.btn-green:active { transform: translateY(2px); box-shadow: 0 1px 0 #4E7010; }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(36, 8, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,179,1,0.14);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand img { height: 52px; width: auto; }
.brand a, .login-brand-logo a { display: inline-flex; align-items: center; cursor: pointer; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-soft); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links-mobile-only { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  font-size: 26px;
}

@media (max-width: 1080px) {
  .nav-links { position: fixed; top: 80px; left: 0; right: 0; background: var(--roxo-950); flex-direction: column; gap: 0; padding: 12px 24px 24px; transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  .nav-links a::after { display: none; }
  .nav-links-mobile-only { display: block; }
  .nav-actions-desktop-only { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 420px) {
  .brand img { height: 42px; }
  .nav-actions { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 78% 12%, rgba(245,179,1,0.16), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(139,184,49,0.14), transparent 40%),
    linear-gradient(165deg, var(--roxo-800) 0%, var(--roxo-900) 55%, var(--roxo-950) 100%);
  color: var(--white);
  padding: 180px 0 120px;
  overflow: hidden;
}

/* Pattern oficial fantasma, como nos pôsteres de campanha */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern-ghost);
  background-size: 170px;
  opacity: 0.045;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(245,179,1,0.22), transparent 68%);
  top: -200px; right: -160px;
  border-radius: 50%;
  animation: floatBlob 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.06); }
}

.hero-grain { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid > div:first-child > * { animation: fadeUp 0.7s ease both; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.05s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.12s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.2s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.28s; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(245,179,1,0.45);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 9px; height: 9px; background: var(--verde); border-radius: 50%; box-shadow: 0 0 10px var(--verde); }

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  margin-bottom: 22px;
  text-transform: uppercase;
  line-height: 1.02;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: inline-block;
  transform: rotate(-1.5deg);
  text-shadow: 0 4px 0 rgba(0,0,0,0.25);
}

.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat strong {
  display: block;
  font-size: 32px;
  color: var(--gold);
  font-family: var(--font-display);
}
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,0.72); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-frame {
  width: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 5px solid rgba(245,179,1,0.85);
  box-shadow: 0 12px 0 rgba(0,0,0,0.22), var(--shadow-lg);
  transform: rotate(-2deg);
  will-change: transform;
  position: relative;
}
.hero-photo-frame { aspect-ratio: 4 / 5; }
.hero-photo-frame img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Selo "Movimento Puro de Coração" girando sobre a foto */
.hero-selo {
  position: absolute;
  width: 110px; height: 110px;
  top: -30px; right: -18px;
  z-index: 2;
  animation: seloSpin 18s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}
@keyframes seloSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-photo-frame { width: 78vw; max-width: 340px; margin: 0 auto; }
  .hero-selo { width: 84px; height: 84px; top: -22px; right: 2px; }
}

.hero-visual .float-card {
  position: absolute;
  background: var(--white);
  color: var(--text);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
  z-index: 3;
}
.hero-visual .float-card.card-1 { top: 18px; left: -16px; transform: rotate(2deg); }
.hero-visual .float-card.card-2 { bottom: 24px; right: -22px; transform: rotate(-2deg); }
.hero-visual .float-card .icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.hero-visual .float-card.card-1 .icon { background: rgba(139,184,49,0.18); }
.hero-visual .float-card.card-2 .icon { background: rgba(245,179,1,0.2); }

@media (max-width: 900px) {
  .hero { padding: 150px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, var(--gold-strong), var(--gold), var(--gold-strong));
  padding: 18px 0;
  border-top: 3px solid var(--roxo-950);
  border-bottom: 3px solid var(--roxo-950);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 26s linear infinite;
  color: var(--roxo-950);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track .dot { font-size: 10px; opacity: 0.55; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Cards (diferenciais) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(96,16,80,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--verde));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: var(--shadow-md);
  border-color: rgba(245,179,1,0.5);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 62px; height: 62px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(245,179,1,0.22), rgba(245,179,1,0.08));
  box-shadow: inset 0 0 0 2px rgba(245,179,1,0.4);
  transition: transform 0.25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.feature-card h3 { font-size: 20px; color: var(--roxo-700); margin-bottom: 10px; text-transform: uppercase; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ---------- Sobre ---------- */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-visual {
  background-color: var(--roxo-950);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--white);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--gold);
}
.about-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,8,32,0.1) 0%, rgba(36,8,32,0.5) 55%, rgba(36,8,32,0.92) 100%);
}
.about-visual-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.about-visual .quote-mark { font-family: var(--font-display); font-size: 64px; color: var(--gold); line-height: 1; }
.about-visual p { font-size: 19px; }
.about-visual span { color: var(--gold); font-weight: 800; }

.checklist { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .check {
  flex: none;
  width: 30px; height: 30px;
  background: var(--verde);
  color: var(--roxo-950);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 900;
  margin-top: 2px;
  box-shadow: 0 3px 0 #4E7010;
}
.checklist h4 { font-size: 17px; color: var(--roxo-700); margin-bottom: 2px; text-transform: uppercase; }
.checklist p { color: var(--text-light); font-size: 14px; }

/* ---------- Produtos ---------- */
.products-section {
  background:
    linear-gradient(rgba(255,247,236,0.94), rgba(255,247,236,0.97)),
    var(--pattern-color);
  background-size: auto, 300px;
}
/* Flex (não grid): com auto-fit, colunas vazias e suas calhas continuam contando
   no cálculo do centro e os cards saem deslocados em telas largas. */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.products-grid .product-card { flex: 0 1 300px; max-width: 300px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover { transform: translateY(-8px) rotate(0.4deg); box-shadow: var(--shadow-md); border-color: rgba(245,179,1,0.55); }
.product-card .thumb {
  height: 210px;
  background: linear-gradient(135deg, var(--roxo-500), var(--roxo-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.product-card .thumb.thumb-photo { padding: 0; }
.product-card .thumb.thumb-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .thumb.thumb-photo img { transform: scale(1.08); }
.product-card .info { padding: 20px; }
.product-card h4 { color: var(--roxo-700); font-size: 17px; margin-bottom: 6px; text-transform: uppercase; }
.product-card p { font-size: 13px; color: var(--text-light); }
.product-card .tag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--roxo-950);
  background: var(--verde);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* ---------- Galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  border: 4px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover { border-color: var(--gold); transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(36,8,32,0.88) 100%);
}
.gallery-caption {
  position: absolute;
  left: 18px; bottom: 16px;
  right: 18px;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Como funciona ---------- */
.steps-section {
  background:
    linear-gradient(rgba(36,8,32,0.96), rgba(36,8,32,0.96)),
    var(--pattern-ghost) var(--roxo-950);
  background-size: auto, 190px;
  color: var(--white);
}
.steps-section .section-title { color: var(--white); }
.steps-section .section-subtitle { color: rgba(255,255,255,0.72); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(245,179,1,0.55);
}
.step-number {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--roxo-950);
  font-family: var(--font-display);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 0 #A96A00;
  transform: rotate(-4deg);
}
.step-card h4 { font-size: 18px; margin-bottom: 8px; text-transform: uppercase; }
.step-card p { font-size: 14px; color: rgba(255,255,255,0.72); }

/* ---------- Depoimentos ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(96,16,80,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 6px; right: 20px;
  font-family: var(--font-display);
  font-size: 60px;
  color: rgba(245,179,1,0.3);
  line-height: 1;
}
.stars { color: var(--gold); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 15px; color: var(--text); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--roxo-500), var(--roxo-700));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-light); }

/* ---------- Formulário Revenda ---------- */
.form-section {
  background:
    linear-gradient(rgba(56,12,47,0.95), rgba(36,8,32,0.97)),
    var(--pattern-ghost) var(--roxo-900);
  background-size: auto, 190px;
  color: var(--white);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.form-grid .section-tag { background: var(--gold); color: var(--roxo-950); }
.form-grid .section-title { color: var(--white); }
.form-grid p.lead { color: rgba(255,255,255,0.82); font-size: 16px; margin-bottom: 28px; }

.benefit-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 15px;
}
.benefit-pill:last-child { border-bottom: none; }
.benefit-pill .icon { color: var(--gold-soft); }

.form-selo {
  width: 130px;
  margin-top: 30px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.3));
}

.signup-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-lg);
  border-top: 8px solid var(--gold);
}
.signup-card h3 { color: var(--roxo-700); font-size: 24px; margin-bottom: 6px; text-transform: uppercase; }
.signup-card .hint { color: var(--text-light); font-size: 13px; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--roxo-700); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(51,18,43,0.12);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,179,1,0.18);
}
.field .error-msg { display: none; color: var(--danger); font-size: 12px; margin-top: 5px; }
/* Sabor esgotado: aparece na lista, em cinza e sem poder ser escolhido. */
.field select option:disabled { color: #9aa0a6; }
/* Explica por que a quantidade não desce além do pedido mínimo. */
.qty-hint { display: none; color: var(--warning); font-size: 12px; font-weight: 600; margin-top: 7px; }
.qty-hint.show { display: block; }

/* Caixa "Utilizar estoque?" no lançamento de pedidos do admin. */
.checkbox-line {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; color: var(--roxo-700); font-size: 13.5px; margin: 0;
}
.checkbox-line input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--roxo-700); cursor: pointer; margin: 0;
}
.field-note-inline { font-size: 12px; color: var(--text-light); margin-top: 5px; }

/* Seletor de período dos gráficos do revendedor. */
.chart-period {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.period-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.period-btn {
  border: 2px solid var(--roxo-300, rgba(96,16,80,0.22));
  background: var(--white); color: var(--roxo-700);
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.period-btn:hover { border-color: var(--roxo-700); }
.period-btn.active { background: var(--roxo-700); border-color: var(--roxo-700); color: var(--white); }
.period-range { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-light); font-weight: 600; }
.period-range input[type="date"] {
  border: 2px solid var(--border, rgba(0,0,0,0.10)); border-radius: 10px;
  padding: 6px 10px; font-family: inherit; font-size: 12.5px; color: var(--text);
}
.period-range input[type="date"]:focus { outline: none; border-color: var(--roxo-700); }
.period-empty {
  display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(199,124,0,0.08); color: var(--warning);
  font-size: 13px; font-weight: 600;
}
.period-empty.show { display: block; }
@media (max-width: 560px) { .chart-period { flex-direction: column; align-items: stretch; } }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

.field-note {
  display: none;
  color: var(--danger);
  background: rgba(192,57,43,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.field-note.show { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success .icon-check {
  width: 68px; height: 68px;
  background: rgba(139,184,49,0.16);
  color: var(--verde-dark);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
}
.form-success h3 { color: var(--roxo-700); margin-bottom: 8px; text-transform: uppercase; }
.form-success p { color: var(--text-light); font-size: 14px; }

/* ---------- Localização ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; } }
.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 2px solid rgba(96,16,80,0.06);
}
.location-row { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.location-row:last-child { margin-bottom: 0; }
.location-row .icon {
  flex: none;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(245,179,1,0.25), rgba(245,179,1,0.1));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.location-row h4 { font-size: 16px; color: var(--roxo-700); margin-bottom: 3px; text-transform: uppercase; }
.location-row p { font-size: 14px; color: var(--text-light); }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--white);
  height: 100%;
  min-height: 340px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- CTA final ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36,8,32,0.93) 0%, rgba(36,8,32,0.68) 55%, rgba(36,8,32,0.4) 100%),
    var(--cta-photo, url('../img/fotos/belvedere-0.jpg')) center 62% / cover no-repeat var(--roxo-950);
  color: var(--white);
  padding: 96px 0;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner-inner h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 12px 0 12px; color: var(--white); text-transform: uppercase; }
.cta-banner-inner p { color: rgba(255,255,255,0.82); font-size: 16px; max-width: 480px; }
.cta-tag { background: var(--gold); color: var(--roxo-950); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--roxo-950), #1A0517);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: var(--gold); font-size: 15px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--gold-soft); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 74px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-icons a:hover { background: var(--gold); color: var(--roxo-950); transform: translateY(-2px); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 62px; height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 4px 0 #128C4A, var(--shadow-lg);
  z-index: 999;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(6deg); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ==========================================================================
   Área do Revendedor / Admin — app shell
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--cream);
}

.sidebar {
  width: 264px;
  background:
    linear-gradient(rgba(36,8,32,0.95), rgba(36,8,32,0.97)),
    var(--pattern-ghost) var(--roxo-950);
  background-size: auto, 190px;
  color: rgba(255,255,255,0.85);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(245,179,1,0.14);
}
.sidebar .brand { margin-bottom: 8px; padding: 0 6px; justify-content: center; }
.sidebar .brand img { height: 88px; width: auto; }

.sidebar-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding: 16px 12px 6px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); transform: translateX(3px); color: var(--white); }
.sidebar-link.active {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--roxo-950);
  box-shadow: 0 3px 0 #A96A00, 0 8px 18px rgba(245,179,1,0.3);
}
.sidebar-link.active:hover { transform: none; }
.sidebar-link .ic { width: 22px; text-align: center; font-size: 17px; transition: transform 0.2s ease; }
.sidebar-link:hover .ic { transform: scale(1.15); }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer .sidebar-link { color: rgba(255,255,255,0.6); }
.sidebar-footer .sidebar-link:hover { color: var(--white); }

/* CTA fixo da sidebar: fazer pedido é a ação nº 1 */
.sidebar-cta {
  margin: 10px 4px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #A3CE4B, var(--verde) 60%, #74A21F);
  color: var(--roxo-950);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 0 #4E7010;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #4E7010; }
.sidebar-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #4E7010; }

.badge-pill {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: auto;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 30px 40px 64px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.app-topbar h1 { font-size: 30px; color: var(--roxo-700); text-transform: uppercase; }
.app-topbar .subtitle { color: var(--text-light); font-size: 14px; margin-top: 4px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  padding: 8px 18px 8px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
}
.user-chip .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--roxo-500), var(--roxo-700));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 2px solid rgba(96,16,80,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--verde));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(245,179,1,0.4); }
.stat-card:hover::before { opacity: 1; }
.stat-card .label { font-size: 13px; color: var(--text-light); margin-bottom: 8px; font-weight: 600; }
.stat-card .value { font-size: 30px; font-family: var(--font-display); color: var(--roxo-700); }
.stat-card .delta { font-size: 12px; color: var(--verde-dark); margin-top: 6px; font-weight: 700; }
.stat-card .stat-ic {
  position: absolute;
  right: 16px; top: 16px;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(245,179,1,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.tab-panel { animation: fadeUp 0.4s ease both; }
.tab-panel.hidden { animation: none; }
.tab-panel .stat-card,
.tab-panel .panel { animation: fadeUp 0.45s ease both; }
.tab-panel .stat-card:nth-child(1) { animation-delay: 0.03s; }
.tab-panel .stat-card:nth-child(2) { animation-delay: 0.09s; }
.tab-panel .stat-card:nth-child(3) { animation-delay: 0.15s; }
.tab-panel .stat-card:nth-child(4) { animation-delay: 0.21s; }
.tab-panel .panel { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .tab-panel, .tab-panel .stat-card, .tab-panel .panel { animation: none; }
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(96,16,80,0.05);
  padding: 28px;
  margin-bottom: 26px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
@media (max-width: 1100px) { .charts-grid { grid-template-columns: 1fr; } }
.charts-grid.thirds { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 1300px) { .charts-grid.thirds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .charts-grid.thirds { grid-template-columns: 1fr; } }

.chart-card { display: flex; flex-direction: column; }
.chart-card h3 { font-size: 17px; color: var(--roxo-700); margin-bottom: 4px; text-transform: uppercase; }
.chart-card .subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.chart-wrap { position: relative; height: 260px; width: 100%; }
.chart-wrap.short { height: 200px; }
/* Tira o canvas do fluxo: preso ao wrapper relativo (que tem altura fixa), o
   canvas não realimenta o tamanho do container. É o padrão recomendado pelo
   Chart.js para container responsivo — evita o gráfico sumir/crescer/piscar
   durante animação e redimensionamento (especialmente nos painéis de largura
   total, onde o problema aparecia). */
.chart-wrap > canvas { position: absolute; top: 0; left: 0; }
#chartStockWrap { transition: height 0.25s ease; }
@media (prefers-reduced-motion: reduce) { #chartStockWrap { transition: none; } }

.stock-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(96,16,80,0.08); }
.stock-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-light); }
.stock-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.stock-legend .dot-danger { background: var(--danger); }
.stock-legend .dot-warning { background: var(--gold-strong); }
.stock-legend .dot-green { background: var(--verde); }

/* Grade de estoque por sabor (formulário de produto multissabor) */
.flavor-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.flavor-stock-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(96,16,80,0.04); border: 1.5px solid rgba(96,16,80,0.10); border-radius: var(--radius-sm); padding: 8px 12px; margin: 0; }
.flavor-stock-item span { font-size: 13px; font-weight: 600; color: var(--roxo-700); }
.flavor-stock-item input { width: 74px; flex: none; }

/* Carrinho de pedido (montagem multi-itens no cliente e no admin) */
.cart-head { font-weight: 800; color: var(--roxo-700); font-size: 14px; margin: 6px 0 8px; }
.cart-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(96,16,80,0.04); border: 1.5px solid rgba(96,16,80,0.10); border-radius: var(--radius-sm); padding: 8px 10px; }
.cart-item .ci-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item .ci-name { font-size: 13px; font-weight: 700; color: var(--roxo-700); }
.cart-item .ci-sub { font-size: 12px; color: var(--text-light); }
.cart-item .ci-remove { flex: none; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(192,57,43,0.12); color: var(--danger); font-size: 18px; line-height: 1; cursor: pointer; }
.cart-item .ci-remove:hover { background: rgba(192,57,43,0.22); }

/* Detalhes (itens) de um pedido na tabela do admin */
.order-details > td { background: rgba(96,16,80,0.03); padding: 6px 16px 10px; }
.order-item-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(96,16,80,0.06); font-size: 13px; }
.order-item-line:last-child { border-bottom: none; }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.panel-header h3 { font-size: 19px; color: var(--roxo-700); text-transform: uppercase; }
.panel-header .subtitle { font-size: 13px; color: var(--text-light); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 10px 14px;
  border-bottom: 2px solid var(--cream-2);
}
.data-table td { padding: 14px; border-bottom: 1px solid rgba(51,18,43,0.06); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: rgba(245,179,1,0.06); }
.data-table td.num { font-weight: 800; }

.table-scroll { overflow-x: auto; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
}
.status-badge.entregue { background: rgba(139,184,49,0.18); color: var(--verde-dark); }
.status-badge.processando { background: rgba(199,124,0,0.15); color: var(--warning); }
.status-badge.enviado { background: rgba(96,16,80,0.1); color: var(--roxo-700); }
.status-badge.cancelado { background: rgba(192,57,43,0.12); color: var(--danger); }
.status-badge.pendente { background: rgba(199,124,0,0.15); color: var(--warning); }
.status-badge.aprovado { background: rgba(139,184,49,0.18); color: var(--verde-dark); }
.status-badge.rejeitado { background: rgba(192,57,43,0.12); color: var(--danger); }

/* ---------- Formulários compactos (admin) ---------- */
.admin-table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-select {
  padding: 6px 10px;
  border: 2px solid rgba(51,18,43,0.12);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-family: inherit;
  background: var(--cream);
  color: var(--text);
}
.order-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}
@media (max-width: 700px) { .order-form-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Catálogo (admin) ---------- */
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.admin-product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  border: 2px solid rgba(51,18,43,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.admin-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,179,1,0.5); }
.admin-product-card .ph {
  height: 140px;
  background: linear-gradient(135deg, var(--roxo-500), var(--roxo-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  overflow: hidden;
}
.admin-product-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-card .body { padding: 14px 16px 16px; }
.admin-product-card .body h4 { font-size: 15px; color: var(--roxo-700); margin-bottom: 4px; }
.admin-product-card .body .price { font-weight: 800; color: var(--verde-dark); font-size: 14px; margin-bottom: 10px; }

/* ---------- Cupons ---------- */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .coupon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .coupon-grid { grid-template-columns: 1fr; } }

.coupon-card {
  border: 2.5px dashed rgba(245,179,1,0.6);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  background: linear-gradient(160deg, rgba(245,179,1,0.08), transparent);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.coupon-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(245,179,1,0.22);
}
.coupon-card .code {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--roxo-700);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.coupon-card .desc { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.coupon-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-light); }
.coupon-card .copy-btn {
  background: var(--roxo-700);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.15s ease;
}
.coupon-card .copy-btn:hover { background: var(--roxo-500); }

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-light);
}
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

/* ==========================================================================
   Fazer pedido — vitrine interativa do revendedor
   ========================================================================== */

.order-flow { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .order-flow { grid-template-columns: 1fr; } }

.shop-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--roxo-700);
  text-transform: uppercase;
  margin: 6px 0 14px;
}
.shop-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(245,179,1,0.5), transparent);
  border-radius: 2px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.shop-card {
  position: relative;
  background: var(--white);
  border: 2.5px solid rgba(96,16,80,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.shop-card:hover { transform: translateY(-4px); border-color: rgba(245,179,1,0.6); box-shadow: var(--shadow-md); }
.shop-card.selected {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(139,184,49,0.25), var(--shadow-md);
}
.shop-card.selected::after {
  content: "✓";
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: var(--verde);
  color: var(--roxo-950);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.shop-card .ph {
  height: 130px;
  background: linear-gradient(135deg, var(--roxo-500), var(--roxo-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  overflow: hidden;
}
.shop-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.shop-card:hover .ph img { transform: scale(1.07); }
.shop-card .body { padding: 13px 15px 15px; }
.shop-card .body h4 { font-size: 14.5px; color: var(--roxo-700); margin-bottom: 3px; line-height: 1.25; }
.shop-card .body .price { font-weight: 800; color: var(--verde-dark); font-size: 15px; }
.shop-card .flavor-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--roxo-700);
  background: rgba(96,16,80,0.09);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.shop-card.out-of-stock { cursor: not-allowed; opacity: 0.55; }
.shop-card.out-of-stock:hover { transform: none; box-shadow: none; border-color: rgba(96,16,80,0.08); }
.shop-card.out-of-stock .ph { filter: grayscale(0.6); }
.shop-card .flavor-hint.oos-hint { color: var(--danger); background: rgba(192,57,43,0.12); }

/* Resumo do pedido (sticky) */
.order-summary {
  position: sticky;
  top: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(96,16,80,0.07);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.order-summary-head {
  background:
    linear-gradient(rgba(36,8,32,0.94), rgba(36,8,32,0.94)),
    var(--pattern-ghost) var(--roxo-950);
  background-size: auto, 160px;
  color: var(--white);
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-summary-body { padding: 22px; }

.order-summary .picked {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}
.order-summary .picked .thumb {
  width: 54px; height: 54px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, var(--roxo-500), var(--roxo-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.order-summary .picked .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-summary .picked h4 { font-size: 14px; color: var(--roxo-700); }
.order-summary .picked .unit { font-size: 12.5px; color: var(--text-light); font-weight: 600; }

.order-summary .placeholder {
  text-align: center;
  color: var(--text-light);
  font-size: 13.5px;
  padding: 18px 10px 22px;
}
.order-summary .placeholder .icon { font-size: 34px; display: block; margin-bottom: 8px; }

.qty-stepper {
  display: flex;
  align-items: stretch;
  border: 2px solid rgba(51,18,43,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-stepper button {
  width: 44px;
  background: var(--cream);
  font-size: 20px;
  font-weight: 800;
  color: var(--roxo-700);
  transition: background 0.15s ease;
}
.qty-stepper button:hover { background: var(--cream-2); }
.qty-stepper input {
  width: 64px;
  border: none;
  border-left: 2px solid rgba(51,18,43,0.12);
  border-right: 2px solid rgba(51,18,43,0.12);
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 2px dashed rgba(51,18,43,0.14);
}
.order-total-row .lbl { font-size: 13px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.order-total-row .val { font-family: var(--font-display); font-size: 30px; color: var(--roxo-700); }

/* ---------- Login (split brand + form) ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
}

.login-brand-pane {
  position: relative;
  background:
    linear-gradient(200deg, rgba(74,17,64,0.86) 0%, rgba(36,8,32,0.94) 70%),
    var(--login-photo, url('../img/fotos/carmen-1.jpg')) center / cover no-repeat var(--roxo-950);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}
.login-brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern-ghost);
  background-size: 190px;
  opacity: 0.05;
  pointer-events: none;
}
.login-brand-pane > * { position: relative; z-index: 1; }
.login-brand-logo img { height: 150px; width: auto; }
.login-brand-msg h2 {
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
}
.login-brand-msg h2 em { font-style: normal; color: var(--gold); }
.login-brand-msg p { color: rgba(255,255,255,0.82); font-size: 15px; max-width: 380px; }
.login-brand-foot { font-size: 13px; color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  .login-brand-pane { display: none; }
}

.login-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    linear-gradient(rgba(255,247,236,0.96), rgba(255,247,236,0.98)),
    var(--pattern-color);
  background-size: auto, 320px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border-top: 8px solid var(--gold);
  animation: fadeUp 0.55s ease both;
}
.login-card .brand { justify-content: center; margin-bottom: 12px; }
.login-card .brand img { height: 120px; width: auto; }
.login-card h1 { font-size: 26px; color: var(--roxo-700); text-align: center; margin-bottom: 6px; text-transform: uppercase; }
.login-card p.hint { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 28px; }
.demo-note {
  background: rgba(139,184,49,0.12);
  color: var(--verde-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  margin-top: 20px;
  text-align: center;
}
.login-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-light); }

/* ---------- Mobile app chrome ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; transform: translateX(-100%); transition: transform 0.25s ease; z-index: 1200; }
  .sidebar.open { transform: translateX(0); }
  .app-main { padding: 24px 18px 60px; }
  .mobile-topbar { display: flex !important; }
}
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--roxo-950);
  color: var(--white);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 2px solid rgba(245,179,1,0.3);
}
.mobile-topbar .brand img { height: 40px; width: auto; }
.mobile-topbar button { background: transparent; color: var(--white); font-size: 24px; }
