/* ============================================
   FABRICA SANCTORUM — CSS PRINCIPAL
   Com animações sutis e brilho premium no ouro
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600&display=swap');

:root {
  --bg-deep: #05080b;
  --bg-dark: #0a0f14;
  --bg-card: #0a1018;
  --bg-surface: #03060a;
  --gold-sacro: #c5a059;
  --gold-metal-light: #f4e5b1;
  --gold-metal: #d4af37;
  --gold-metal-dark: #b8860b;
  --gold-deep: #8b6914;
  --parchment: #eaddcf;
  --parchment-dim: #8a7851;
  --wine: #4a0e12;
  --whatsapp: #25D366;
  --whatsapp-hover: #1da851;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-brand: 'Cinzel', serif;

  --border-subtle: 1px solid rgba(197, 160, 89, 0.15);
  --border-gold: 1px solid rgba(197, 160, 89, 0.3);
  --gold-gradient: linear-gradient(135deg, #f4e5b1 0%, #d4af37 50%, #b8860b 100%);
  --gold-gradient-shine: linear-gradient(135deg, #fff5d1 0%, #f4e5b1 30%, #d4af37 60%, #b8860b 100%);
}

/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--parchment);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ============================================
   ANIMAÇÕES GLOBAIS
   ============================================ */

/* Shimmer / brilho no ouro ao passar o mouse */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulsar suave das velas */
@keyframes candleFlicker {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.18; transform: scale(1.05); }
}

/* Fade in ao aparecer no scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in simples */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Brilho no hover do ouro */
@keyframes goldGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15) drop-shadow(0 0 8px rgba(212, 175, 55, 0.4)); }
}

/* Classes utilitárias para reveal no scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 11, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-subtle);
  animation: fadeIn 0.6s ease;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-medal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: inset -1px -1px 4px rgba(0, 0, 0, 0.5),
              inset 1px 1px 3px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: all 0.4s ease;
  position: relative;
}

/* BRILHO PREMIUM NO MEDALHÃO AO PASSAR O MOUSE */
.brand:hover .brand-medal {
  background: var(--gold-gradient-shine);
  box-shadow: inset -1px -1px 4px rgba(0, 0, 0, 0.5),
              inset 1px 1px 3px rgba(255, 255, 255, 0.4),
              0 0 16px rgba(212, 175, 55, 0.5);
}

.brand-name {
  font-family: var(--font-brand);
  color: var(--parchment);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  transition: color 0.3s ease;
}

.brand:hover .brand-name {
  color: var(--gold-metal-light);
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--parchment);
  font-size: 14px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--gold-metal);
}

/* Sublinhado animado no link ativo */
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  animation: fadeIn 0.4s ease;
}

.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-metal);
  animation: fadeIn 0.3s ease;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-btn {
  color: var(--parchment);
  font-size: 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.icon-btn:hover {
  color: var(--gold-metal);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold-gradient);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.icon-btn:hover .cart-count {
  background: var(--gold-gradient-shine);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.mobile-menu-btn {
  display: none;
  color: var(--parchment);
  font-size: 24px;
}

/* ============ HERO ============ */
.hero {
  padding: 100px 32px 70px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* Velas sutis pulsando no fundo do hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.6), transparent 70%);
  pointer-events: none;
  animation: candleFlicker 4s ease-in-out infinite;
}

.hero::before {
  top: 30%;
  left: 15%;
  box-shadow: 0 0 40px 20px rgba(212, 175, 55, 0.08);
  animation-delay: 0.5s;
}

.hero::after {
  top: 50%;
  right: 18%;
  box-shadow: 0 0 40px 20px rgba(212, 175, 55, 0.08);
  animation-delay: 1.2s;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}

.hero-eyebrow {
  color: var(--gold-metal);
  font-size: 11px;
  letter-spacing: 0.4em;
  font-weight: 500;
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeInUp 0.7s ease;
}

.hero-title {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: 28px;
  animation: fadeInUp 0.9s ease;
}

.hero-title .italic-gold {
  font-style: italic;
  background: linear-gradient(135deg, #f4e5b1 0%, #d4af37 50%, #b8860b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.8s ease;
  display: inline-block;
}

.hero-title:hover .italic-gold {
  background-position: 100% center;
  animation: goldShimmer 2s ease infinite;
}

.hero-description {
  color: var(--parchment);
  opacity: 0.8;
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 44px;
  animation: fadeInUp 1s ease;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.1s ease;
}

/* ============ BUTTONS ============ */
.btn {
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

/* BOTÃO DOURADO COM BRILHO PREMIUM */
.btn-primary {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--bg-dark);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(234, 221, 207, 0.4);
  transition: all 0.4s ease;
}

.btn-outline:hover {
  border-color: var(--gold-metal);
  color: var(--gold-metal);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
  padding: 16px;
}

/* ============ SECTIONS ============ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-eyebrow {
  color: var(--gold-metal);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.section-link {
  color: var(--gold-sacro);
  font-size: 14px;
  border-bottom: 1px solid var(--gold-sacro);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.section-link:hover {
  color: var(--gold-metal-light);
  border-color: var(--gold-metal-light);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  padding-right: 6px;
}

/* ============ FILTROS ============ */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 24px;
  border: 1px solid rgba(234, 221, 207, 0.25);
  color: var(--parchment);
  background: transparent;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-weight: 400;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--gold-metal);
  color: var(--gold-metal);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--bg-dark);
  border-color: var(--gold-metal);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.filter-pill.active:hover {
  background-position: right center;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5), 0 0 12px rgba(212, 175, 55, 0.3);
}

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: block;
  color: inherit;
  position: relative;
}

/* CARD COM ELEVAÇÃO + BRILHO DOURADO NO HOVER */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  transition: box-shadow 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
              0 0 24px rgba(212, 175, 55, 0.15);
}

.product-card:hover::before {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.product-image {
  aspect-ratio: 4/5;
  background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.12), rgba(10, 15, 20, 0.3) 45%, #020406);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Luz sutil girando na imagem quando passa o mouse */
.product-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 40%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.product-card:hover .product-image::after {
  transform: translate(-50%, -50%) scale(1);
}

.product-image-placeholder {
  width: 58%;
  height: 78%;
  background: radial-gradient(ellipse at 50% 20%, rgba(197, 160, 89, 0.3), rgba(136, 80, 40, 0.45) 45%, rgba(10, 15, 20, 0.95));
  border-radius: 48% 48% 35% 35%;
  transition: transform 0.6s ease, filter 0.6s ease;
  position: relative;
  z-index: 2;
}

.product-card:hover .product-image-placeholder {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.product-image-placeholder.maria {
  background: radial-gradient(ellipse at 50% 20%, rgba(234, 221, 207, 0.3), rgba(74, 14, 18, 0.45) 50%, rgba(10, 15, 20, 0.95));
  border-radius: 45% 45% 32% 32%;
}

.product-image-placeholder.cristo {
  background: radial-gradient(ellipse at 50% 20%, rgba(234, 221, 207, 0.25), rgba(234, 221, 207, 0.15) 60%, rgba(10, 15, 20, 0.9));
  border-radius: 48% 48% 35% 35%;
}

.product-image-placeholder.jose {
  background: radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.25), rgba(136, 80, 40, 0.4) 50%, rgba(10, 15, 20, 0.95));
  border-radius: 45% 45% 32% 32%;
}

.product-image-placeholder.fatima {
  background: radial-gradient(ellipse at 50% 20%, rgba(234, 221, 207, 0.35), rgba(197, 160, 89, 0.3) 45%, rgba(10, 15, 20, 0.9));
  border-radius: 48% 48% 38% 38%;
}

.product-image-placeholder.carlo {
  background: radial-gradient(ellipse at 50% 20%, rgba(74, 14, 18, 0.4), rgba(136, 80, 40, 0.3) 50%, rgba(10, 15, 20, 0.95));
  border-radius: 45% 45% 35% 35%;
}

.product-image-placeholder.miguel {
  background: radial-gradient(ellipse at 50% 20%, rgba(197, 160, 89, 0.35), rgba(136, 80, 40, 0.5) 45%, rgba(10, 15, 20, 0.95));
  border-radius: 48% 48% 35% 35%;
}

.product-image-placeholder.virgem {
  background: radial-gradient(ellipse at 50% 20%, rgba(74, 14, 18, 0.5), rgba(74, 14, 18, 0.35) 50%, rgba(10, 15, 20, 0.95));
  border-radius: 45% 45% 32% 32%;
}

.product-image-placeholder.sagrado {
  background: radial-gradient(ellipse at 50% 20%, rgba(234, 221, 207, 0.3), rgba(74, 14, 18, 0.5) 50%, rgba(10, 15, 20, 0.95));
  border-radius: 48% 48% 35% 35%;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  padding: 5px 11px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 3;
  transition: all 0.3s ease;
}

.tag-finished {
  background: var(--gold-gradient);
  color: var(--bg-dark);
}

.product-card:hover .tag-finished {
  background: var(--gold-gradient-shine);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.tag-raw {
  background: rgba(234, 221, 207, 0.95);
  color: var(--bg-dark);
}

.tag-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--wine);
  color: var(--parchment);
  font-size: 10px;
  padding: 5px 11px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 3;
}

.product-body {
  padding: 18px;
  position: relative;
  z-index: 2;
}

.product-name {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: var(--gold-metal-light);
}

.product-spec {
  color: var(--parchment-dim);
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-price {
  color: var(--gold-metal);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  background: var(--gold-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.product-card:hover .product-price {
  background-position: right center;
}

.product-installments {
  color: var(--parchment-dim);
  font-size: 11px;
  margin-top: 2px;
}

/* ============ FEATURES ============ */
.features-section {
  padding: 50px 32px;
  background: var(--bg-surface);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}

.features-header {
  text-align: center;
  margin-bottom: 36px;
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature-item {
  text-align: center;
  transition: transform 0.4s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-sacro);
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-metal);
  font-size: 20px;
  transition: all 0.4s ease;
  background: transparent;
}

.feature-item:hover .feature-icon {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
  transform: rotate(360deg);
}

.feature-title {
  color: var(--parchment);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.feature-item:hover .feature-title {
  color: var(--gold-metal-light);
}

.feature-text {
  color: var(--parchment);
  opacity: 0.7;
  font-size: 13px;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-surface);
  border-top: var(--border-subtle);
  padding: 50px 32px 24px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: var(--border-subtle);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-about {
  color: var(--parchment);
  opacity: 0.65;
  font-size: 13px;
  line-height: 1.7;
}

.footer-column h4 {
  font-family: var(--font-body);
  color: var(--gold-metal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: var(--parchment);
  opacity: 0.75;
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--gold-metal);
  padding-left: 6px;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: var(--parchment-dim);
  font-size: 12px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--parchment);
  opacity: 0.7;
  font-size: 18px;
  transition: all 0.4s ease;
}

.footer-social a:hover {
  color: var(--gold-metal);
  opacity: 1;
  transform: translateY(-2px) scale(1.1);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--whatsapp);
  color: white;
  padding: 14px 22px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  font-weight: 600;
  font-size: 14px;
  z-index: 99;
  transition: all 0.4s ease;
  text-decoration: none;
  animation: fadeInUp 1s ease 0.5s both;
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: translateY(0) scale(1);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: white;
  flex-shrink: 0;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  border-bottom: var(--border-subtle);
  font-size: 12px;
  color: var(--parchment-dim);
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: var(--parchment-dim);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--gold-metal);
}

.breadcrumb span.current {
  color: var(--gold-sacro);
}

.breadcrumb-separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* ============ FORMULÁRIOS ============ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  color: var(--gold-sacro);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(10, 15, 20, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: var(--parchment);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-metal);
  background: rgba(10, 15, 20, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 12px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 2fr 80px; }
.form-row.cep-rua { grid-template-columns: 1fr 2fr; }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-inner {
    padding: 14px 20px;
  }

  .brand-name {
    font-size: 11px;
  }

  .hero {
    padding: 60px 20px 50px;
  }

  .section {
    padding: 40px 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-body {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 18px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    padding: 12px 16px;
    font-size: 12px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float span.label {
    display: none;
  }

  .form-row.cols-2,
  .form-row.cols-3,
  .form-row.cep-rua {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 36px;
  }
}

/* ============ RESPEITA PREFERÊNCIA DE MENOS MOVIMENTO ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ HERO BADGES ============ */
.hero-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeInUp 1.3s ease;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(10, 15, 20, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 32px;
  color: var(--parchment);
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: all 0.4s ease;
  backdrop-filter: blur(4px);
}

.hero-badge:hover {
  border-color: var(--gold-metal);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.2);
}

.badge-icon {
  color: var(--gold-metal);
  font-size: 14px;
}

@media (max-width: 600px) {
  .hero-badges { gap: 8px; margin-top: 32px; }
  .hero-badge { font-size: 11px; padding: 8px 14px; }
}

/* ============ CHATBOT WIDGET ============ */
.chatbot-fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(212,175,55,0.4);
  z-index: 98;
  transition: all 0.4s ease;
  animation: fadeInUp 1.2s ease 0.8s both;
}
.chatbot-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(212,175,55,0.6); }
.chatbot-fab-icon { font-size: 24px; }
.chatbot-fab-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-gradient);
  animation: chatPulse 2s ease-in-out infinite;
  opacity: 0;
  z-index: -1;
}
@keyframes chatPulse { 0%,100% { transform: scale(1); opacity: 0; } 50% { transform: scale(1.4); opacity: 0.2; } }

.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--bg-dark);
  border: 1px solid rgba(197,160,89,0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.1);
  animation: fadeInUp 0.4s ease;
}

.chatbot-header {
  background: var(--bg-surface);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197,160,89,0.2);
  cursor: pointer;
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 16px;
  box-shadow: 0 0 12px rgba(212,175,55,0.3);
}
.chatbot-name { color: var(--parchment); font-size: 14px; font-weight: 600; }
.chatbot-status { color: #8ccb90; font-size: 11px; }
.chatbot-close { background: none; border: none; color: var(--parchment-dim); font-size: 18px; cursor: pointer; padding: 4px 8px; transition: color 0.3s; }
.chatbot-close:hover { color: var(--gold-metal); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(197,160,89,0.3); border-radius: 4px; }

.chat-msg { display: flex; max-width: 88%; animation: fadeInUp 0.3s ease; }
.chat-bot { align-self: flex-start; }
.chat-cliente { align-self: flex-end; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  word-wrap: break-word;
}
.chat-bot .chat-bubble {
  background: rgba(197,160,89,0.1);
  border: 1px solid rgba(197,160,89,0.2);
  color: var(--parchment);
  border-bottom-left-radius: 4px;
}
.chat-cliente .chat-bubble {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 18px !important;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-sacro);
  animation: typingDot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1.2); } }

.chatbot-input {
  padding: 12px 14px;
  border-top: 1px solid rgba(197,160,89,0.2);
  display: flex;
  gap: 8px;
  background: var(--bg-surface);
}
.chatbot-input input {
  flex: 1;
  background: rgba(10,15,20,0.6);
  border: 1px solid rgba(197,160,89,0.25);
  color: var(--parchment);
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 20px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}
.chatbot-input input:focus { border-color: var(--gold-metal); box-shadow: 0 0 8px rgba(212,175,55,0.2); }
.chatbot-input input::placeholder { color: var(--parchment-dim); }
.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  color: var(--bg-dark);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}
.chatbot-input button:hover { box-shadow: 0 0 16px rgba(212,175,55,0.5); transform: scale(1.05); }

@media (max-width: 500px) {
  .chatbot-widget { width: calc(100vw - 24px); height: calc(100vh - 100px); bottom: 12px; right: 12px; border-radius: 12px; }
  .chatbot-fab { bottom: 80px; right: 16px; }
  .whatsapp-float { bottom: 16px; }
}

/* ============ MOBILE RESPONSIVO COMPLETO ============ */
@media (max-width: 768px) {
  /* HEADER */
  .header-inner { padding: 10px 16px; }
  .brand-medal { width: 28px; height: 28px; }
  .brand-name { font-size: 10px; letter-spacing: 0.2em; }
  .header-actions { gap: 6px; }
  .icon-btn { font-size: 16px; padding: 6px; }
  .icon-btn span { font-size: 10px !important; }

  /* MOBILE NAV */
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,8,11,0.97); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; z-index: 100; padding: 20px;
  }
  .main-nav a { font-size: 16px; letter-spacing: 0.2em; }

  /* HERO */
  .hero { padding: 40px 16px 36px; }
  .hero-title { font-size: 28px; line-height: 1.2; }
  .hero-subtitle { font-size: 14px; padding: 0 10px; line-height: 1.6; }
  .hero-badges { gap: 6px; margin-top: 24px; }
  .hero-badge { padding: 8px 12px; font-size: 10px; }

  /* SEÇÕES */
  .section { padding: 30px 16px; }
  .section-title { font-size: 28px; }
  .section-eyebrow { font-size: 9px; }

  /* GRID DE PRODUTOS */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px; }
  .product-name { font-size: 13px; line-height: 1.3; }
  .product-price { font-size: 16px; }
  .product-tag { font-size: 8px; padding: 3px 6px; }
  .product-installments { font-size: 10px; }

  /* FILTROS */
  .filter-pills { gap: 6px; padding: 0 16px; }
  .filter-pill { font-size: 10px; padding: 8px 12px; }

  /* FEATURES */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  /* FOOTER */
  .site-footer { padding: 32px 16px 20px; }
  .footer-columns { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding-top: 16px; }

  /* BREADCRUMB */
  .breadcrumb { padding: 12px 16px; font-size: 11px; }

  /* FORMS */
  .form-row.cols-2, .form-row.cols-3, .form-row.cep-rua { grid-template-columns: 1fr; gap: 12px; }
  .form-input, .form-select, .form-textarea { font-size: 16px; padding: 12px 14px; }
  .form-label { font-size: 11px; }

  /* BOTÕES */
  .btn { padding: 12px 20px; font-size: 12px; }
  .btn-block { padding: 14px; }
}

/* CARRINHO MOBILE */
@media (max-width: 900px) {
  .cart-page { padding: 16px; }
  .cart-title { font-size: 28px; }
  .cart-content { grid-template-columns: 1fr; }
  .cart-items { padding: 20px 0; border-right: none; border-bottom: 1px solid rgba(197,160,89,0.15); }
  .cart-summary { padding: 20px 0; margin-right: 0; }
  .cart-item { grid-template-columns: 70px 1fr; gap: 12px; }
  .cart-item-price { grid-column: 2; font-size: 16px; }
  .cart-item-name { font-size: 15px; }
  .checkout-steps { gap: 20px; padding: 16px 0; }
  .step-label { font-size: 10px; letter-spacing: 0.1em; }
}

/* CHECKOUT MOBILE */
@media (max-width: 900px) {
  .checkout-page { padding: 16px; }
  .checkout-content { grid-template-columns: 1fr; }
  .checkout-form { padding: 20px 0; border-right: none; }
  .checkout-summary { padding: 20px 0; }
  .checkout-item { grid-template-columns: 50px 1fr auto; gap: 10px; }
  .checkout-item-name { font-size: 13px; }
  .payment-options { grid-template-columns: 1fr; gap: 8px; }
}

/* PRODUTO MOBILE */
@media (max-width: 768px) {
  .product-page { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .product-gallery { position: static; }
  .product-title { font-size: 26px; }
  .product-price { font-size: 28px; }
  .size-options, .finish-options { gap: 6px; }
  .size-btn, .finish-btn { padding: 8px 12px; font-size: 11px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .process-step { padding: 14px 8px; }
}

/* CONTATO / ENCOMENDA MOBILE */
@media (max-width: 768px) {
  .contact-page, .about-page, .encomenda-page { padding: 20px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 20px 0; }
}

/* CONFIRMAÇÃO MOBILE */
@media (max-width: 768px) {
  .confirmation-page { padding: 40px 16px; }
  .confirmation-title { font-size: 28px; }
  .confirmation-actions { flex-direction: column; }
}

/* CONTA MOBILE */
@media (max-width: 768px) {
  .account-page { flex-direction: column; gap: 16px; padding: 16px; }
  .account-sidebar { width: 100%; }
  .account-menu { display: flex; overflow-x: auto; gap: 0; -webkit-overflow-scrolling: touch; }
  .account-menu li a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 10px 14px; font-size: 11px; }
  .account-menu li a.active { border-bottom-color: var(--gold-metal); }
  .account-content h2 { font-size: 22px; }
  .order-card { padding: 14px; }
  .order-card-header { flex-direction: column; gap: 8px; }
  .order-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* LOGIN MOBILE */
@media (max-width: 768px) {
  .login-page, div[style*="max-width: 500px"] { padding: 0 16px !important; }
}

/* CHATBOT MOBILE */
@media (max-width: 500px) {
  .chatbot-widget { width: calc(100vw - 16px); height: calc(100vh - 80px); bottom: 8px; right: 8px; left: 8px; border-radius: 12px; }
  .chatbot-fab { bottom: 76px; right: 16px; width: 50px; height: 50px; }
  .chatbot-fab-icon { font-size: 20px; }
  .chatbot-messages { padding: 12px; }
  .chat-bubble { font-size: 14px; padding: 10px 12px; }
  .chatbot-input { padding: 10px 12px; }
  .chatbot-input input { font-size: 16px; padding: 10px 12px; }
  .chatbot-input button { width: 38px; height: 38px; }
}

/* WHATSAPP BOTÃO MOBILE */
@media (max-width: 768px) {
  .whatsapp-float { bottom: 16px; right: 16px; padding: 10px 14px; }
  .whatsapp-float span.label { display: none; }
  .whatsapp-icon { width: 22px; height: 22px; }
}

/* PREVENT ZOOM NO INPUT (iOS) */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], select, textarea {
    font-size: 16px !important;
  }
}

/* TABELAS ADMIN MOBILE */
@media (max-width: 768px) {
  .admin-table { font-size: 11px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
  .calc-grid { grid-template-columns: 1fr !important; }
}
