/* =====================================================
   KNOW-HOW RIO — CSS PRINCIPAL
   Mobile First, Clean & Modern
   ===================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
ul { list-style: none; }

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #1A1266;
  --accent: #C8A030;
  --accent-light: #F0C84A;
  --accent-dark: #A07820;
  /* Gradiente dourado metálico */
  --gold-gradient: linear-gradient(90deg, #b8860b 0%, #ffd700 25%, #fffacd 50%, #ffd700 75%, #b8860b 100%);
  --gold-shine: linear-gradient(105deg, #c8972a 0%, #ffe066 30%, #fff5a0 50%, #ffe066 70%, #c8972a 100%);
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-500: #8a8a9a;
  --gray-700: #444455;
  --gray-900: #1a1a2e;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #3498db;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26,26,46,0.10);
  --shadow-lg: 0 8px 40px rgba(26,26,46,0.16);
  --transition: 0.25s ease;
  --header-h: 68px;
}

/* ---- CONTAINER ---- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.section-badge {
  display: inline-block;
  background: rgba(200,151,42,0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-header { margin-bottom: 40px; }
.section-header.centered { text-align: center; }
.section-header h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px; }
.section-header p { color: var(--gray-500); font-size: 1rem; }

/* =====================================================
   LANDING PAGE
   ===================================================== */
.landing-page { background: #0a0a16; }

.landing-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
  overflow: hidden;
}

.landing-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,22,0.88) 0%, rgba(26,26,46,0.80) 60%, rgba(200,151,42,0.15) 100%);
  z-index: 1;
}

.landing-content {
  position: relative; z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  max-width: 680px;
  width: 100%;
}

.landing-logo-area { margin-bottom: 24px; }

.landing-brand-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.landing-brand {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.landing-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.landing-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 24px auto;
  border-radius: 2px;
}

.landing-headline {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  line-height: 1.4;
}
.landing-headline em {
  font-style: italic;
  color: var(--accent-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.1em;
}

.landing-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(200,151,42,0.4);
  margin-bottom: 40px;
}
.btn-landing-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,151,42,0.5);
}
.btn-landing-cta i { transition: transform var(--transition); }
.btn-landing-cta:hover i { transform: translateX(4px); }

.landing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent-light); }
.stat-item span { font-size: 0.75rem; color: rgba(255,255,255,0.55); letter-spacing: 1px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.landing-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #C8A030 30%, #ffd700 50%, #C8A030 70%, transparent) 1;
  height: var(--header-h);
  transition: box-shadow var(--transition);
  overflow: visible;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(26,18,102,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .header-inner { padding: 0 24px; } }

.header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(200,160,48,0.45), 0 2px 8px rgba(26,18,102,0.25);
  border: 1.5px solid rgba(200,160,48,0.4);
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-size: 1rem; font-weight: 800;
  background: var(--gold-shine);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 3s linear infinite;
}
.logo-sub { font-size: 0.62rem; color: var(--accent); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

/* ── Animação brilho dourado ── */
@keyframes goldShine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Aplica brilho dourado nos títulos de seção */
.section-title-gold {
  background: var(--gold-shine);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 3s linear infinite;
}

.header-nav {
  display: none;
  gap: 4px;
  margin: 0 auto;
}
@media (min-width: 768px) { .header-nav { display: flex; } }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--primary);
  background: var(--gray-100);
}
/* O efeito ativo é controlado por .nav-diamond no catalogo.html */
.nav-link.active:not(.nav-diamond) { color: var(--accent); font-weight: 700; background: var(--gray-100); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-cart {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  transition: var(--transition);
  background: var(--gray-100);
}
.btn-cart:hover { background: var(--gray-200); }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.btn-login {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-login:hover { background: var(--gray-700); }

/* ── Minha Conta dropdown ── */
.account-menu { position: relative; }

.btn-account {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-account:hover { background: var(--gray-700); }
.btn-account i:first-child { font-size: 1rem; }

.account-dropdown {
  position: fixed; /* fixed para sair de qualquer contexto de overflow */
  top: var(--header-h);
  right: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(26,26,46,0.2);
  min-width: 260px;
  overflow: hidden;
  display: none;
  z-index: 99999;
  animation: dropdownFadeIn 0.18s ease;
}
.account-dropdown.open { display: block; }

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.account-dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a2a5a 100%);
  color: #fff;
}
.account-avatar { font-size: 2rem; opacity: 0.9; line-height: 1; }
.account-dropdown-name  { font-weight: 700; font-size: 0.9rem; }
.account-dropdown-email { font-size: 0.75rem; opacity: 0.75; margin-top: 2px; }

.account-dropdown-divider {
  height: 1px; background: var(--gray-100); margin: 4px 0;
}

.account-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.15s;
}
.account-dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.account-dropdown-item i { width: 16px; text-align: center; color: var(--gray-400); }
.account-dropdown-item:hover i { color: var(--primary); }
.account-dropdown-item.danger { color: var(--danger); }
.account-dropdown-item.danger i { color: var(--danger); }
.account-dropdown-item.danger:hover { background: #fef2f2; }

.btn-menu-mobile {
  display: flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}
.btn-menu-mobile span {
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
@media (min-width: 768px) { .btn-menu-mobile { display: none; } }

/* MOBILE NAV */
.header-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  z-index: 99;
}

/* =====================================================
   CATALOG HERO
   ===================================================== */
.catalog-hero {
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%,   rgba(79,168,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 100%, rgba(26,58,143,0.35)  0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%,  rgba(10,42,255,0.22)  0%, transparent 60%),
    linear-gradient(160deg, #070e2e 0%, #0d1b5e 35%, #0a2080 60%, #060c24 100%);
  color: #fff;
  padding: 72px 16px 60px;
  text-align: center;
  will-change: transform, opacity;
  transition: transform 0.05s linear, opacity 0.05s linear;
}
.catalog-hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 40%, #e8d5a3 70%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(200,151,42,0.25));
}
.catalog-hero-content h1 span { -webkit-text-fill-color: transparent; }
.catalog-hero-content p { color: rgba(255,255,255,0.6); font-size: 0.97rem; line-height: 1.8; margin-bottom: 28px; }
.hero-info-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-info-pills span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,151,42,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 100px;
  display: flex; align-items: center; gap: 7px;
  backdrop-filter: blur(6px);
}
.hero-info-pills span i { color: var(--accent-light); }

/* =====================================================
   CATALOG SECTION
   ===================================================== */
.catalog-section { padding: 40px 0 60px; }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Barra de Categorias: Efeito Diamante Azul ───────────────── */
@keyframes filterShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes filterActiveGlow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(200,151,42,0.5), 0 0 20px 4px rgba(200,151,42,0.25); }
  50%       { box-shadow: 0 0 14px 5px rgba(200,151,42,0.8), 0 0 32px 8px rgba(200,151,42,0.4); }
}

.filter-btn {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  /* Gradiente diamante azul em todos os botões */
  background: linear-gradient(
    120deg,
    #0d1b5e 0%,
    #1a3a8f 20%,
    #2255cc 40%,
    #4fa8ff 50%,
    #2255cc 60%,
    #1a3a8f 80%,
    #0d1b5e 100%
  );
  background-size: 250% auto;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(79,168,255,0.35);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  animation: filterShimmer 4s linear infinite;
  white-space: nowrap;
}
/* Reflexo de luz animado */
.filter-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  animation: filterShimmer 4s linear infinite;
  pointer-events: none;
}
.filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(79,168,255,0.7);
  box-shadow: 0 4px 16px rgba(34,85,204,0.4);
  color: #fff;
}
/* Botão ATIVO: destaque dourado intenso */
.filter-btn.active {
  background: linear-gradient(
    120deg,
    #0d1b5e 0%,
    #1a3a8f 15%,
    #2255cc 30%,
    #c8971a 45%,
    #f0c040 55%,
    #c8971a 65%,
    #2255cc 80%,
    #1a3a8f 90%,
    #0d1b5e 100%
  );
  background-size: 250% auto;
  animation: filterShimmer 2.5s linear infinite, filterActiveGlow 2s ease-in-out infinite;
  color: #fff;
  border-color: rgba(240,192,64,0.8);
  font-weight: 700;
  transform: translateY(-1px);
}
.filter-btn.active::before { animation-duration: 2.5s; }

.search-group {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  flex: 1; max-width: 280px;
  min-width: 160px;
}
.search-group i { color: var(--gray-500); font-size: 0.9rem; }
.search-group input {
  flex: 1; border: none; background: none;
  font-size: 0.88rem; color: var(--primary);
}
.search-group input::placeholder { color: var(--gray-300); }

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  padding-bottom: 120%;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

/* Imagem clicável — overlay ao hover */
.product-card-img-click {
  cursor: pointer;
}
.product-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 102, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
  pointer-events: none;
}
.product-card-img-click:hover .product-card-img-overlay { opacity: 1; }
.product-card-img-click:hover img { transform: scale(1.06); }

/* Corpo do card clicável */
.product-card-body-click {
  cursor: pointer;
  transition: background 0.2s ease;
}
.product-card-body-click:hover {
  background: rgba(26, 18, 102, 0.04);
}

.product-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Badge de PROMOÇÃO no card ── */
@keyframes saleBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); transform: scale(1); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); transform: scale(1.04); }
}
.product-sale-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: saleBadgePulse 2s ease-in-out infinite;
  z-index: 2;
}

/* Banner PEÇA LIMITADA — pisca ao lado do badge de desconto */
.product-limited-badge {
  position: absolute;
  top: 36px; left: 10px;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  animation: limitedBlink 1s step-start infinite;
  box-shadow: 0 2px 8px rgba(185,28,28,0.45);
  white-space: nowrap;
}
@keyframes limitedBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Card em promoção: borda destacada */
.product-card-sale {
  border: 2px solid rgba(239,68,68,0.35) !important;
  box-shadow: 0 4px 20px rgba(239,68,68,0.12) !important;
}
.product-card-sale:hover {
  border-color: rgba(239,68,68,0.6) !important;
  box-shadow: 0 8px 30px rgba(239,68,68,0.2) !important;
}

/* Preço com desconto em destaque */
.price-grade.price-sale {
  color: #ef4444 !important;
}

/* Botão Promoções na barra de filtros */
.filter-btn-promo {
  background: linear-gradient(120deg, #7f1d1d, #ef4444, #f97316, #ef4444, #7f1d1d) !important;
  background-size: 250% auto !important;
  border-color: rgba(239,68,68,0.5) !important;
  animation: filterShimmer 3s linear infinite !important;
}
.filter-btn-promo.active {
  background: linear-gradient(120deg, #7f1d1d, #ef4444, #f97316, #fbbf24, #f97316, #ef4444, #7f1d1d) !important;
  background-size: 250% auto !important;
  animation: filterShimmer 2s linear infinite, filterActiveGlow 2s ease-in-out infinite !important;
  border-color: rgba(251,191,36,0.8) !important;
}

.product-card-body { padding: 12px 14px 16px; }
.product-card-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.product-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-card-price-area { display: flex; flex-direction: column; gap: 2px; }
.price-from { font-size: 0.7rem; color: var(--gray-500); }
.price-grade {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.price-unit-small {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-decoration: line-through;
}
.price-savings {
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
}
.price-pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 4px;
  width: fit-content;
}

.product-card-footer {
  padding: 0 14px 14px;
}
.btn-view-product {
  width: 100%;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-view-product:hover { background: var(--accent); }

/* LOADING STATE */
.loading-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.loading-state i { font-size: 2rem; margin-bottom: 12px; display: block; color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; opacity: 0.3; }

/* =====================================================
   MODAL PRODUTO
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,22,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; }

/* MODAL PRODUTO LAYOUT */
.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .modal-product-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start; /* permite que cada coluna tenha altura independente */
  }
}

/* ── Coluna esquerda: imagem sticky ──
   O scroll container é .modal-box (overflow-y:auto).
   position:sticky + top:0 faz a imagem ficar colada ao topo
   enquanto a coluna direita (info) continua rolando.          */
.modal-product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gray-100);
}
@media (min-width: 640px) {
  .modal-product-img {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    position: sticky;
    top: 0;            /* cola ao topo do modal ao rolar */
    align-self: start; /* essencial: sem isso o sticky não funciona em grid */
    z-index: 1;
  }
}
.modal-product-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* ── Coluna direita: scroll independente dentro do modal ── */
.modal-product-info {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ── Caixa flutuante de resumo (peças + total + botão) ──
   Fica colada no fundo da coluna direita enquanto se rola  */
.modal-float-summary {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--gray-200);
  margin: 0 -24px -28px; /* cancela o padding do pai */
  padding: 12px 24px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(26,26,46,0.08);
}
.modal-float-summary .mfs-pieces {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  white-space: nowrap;
}
.modal-float-summary .mfs-pieces strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.modal-float-summary .mfs-total {
  flex: 1;
  text-align: right;
}
.modal-float-summary .mfs-total-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-float-summary .mfs-total-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.modal-float-summary .btn-add-cart-float {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.modal-float-summary .btn-add-cart-float:hover { background: var(--accent-dark); }
.modal-float-summary .btn-add-cart-float:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}
/* Em mobile o sumário flutuante fica oculto (usa o botão normal abaixo) */
@media (max-width: 639px) { .modal-float-summary { display: none; } }

/* ── Tab Tabela de Preços ── */
#tabPrecos .price-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
#tabPrecos .price-tier-table th {
  background: linear-gradient(135deg,#0d1b5e,#1a3a8f,#2255cc);
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 700;
}
#tabPrecos .price-tier-table th:first-child { border-radius: 8px 0 0 0; }
#tabPrecos .price-tier-table th:last-child  { border-radius: 0 8px 0 0; }
#tabPrecos .price-tier-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e0e7ff;
  font-weight: 600;
}
#tabPrecos .price-tier-table tr:nth-child(even) td { background: #f8faff; }
#tabPrecos .price-tier-table tr:last-child td { border-bottom: none; }
#tabPrecos .price-tier-table .tier-qty   { color: #1a3a8f; }
#tabPrecos .price-tier-table .tier-price { color: #1a1a3e; font-weight: 800; }
#tabPrecos .price-tier-table .tier-pix   { color: #16a34a; font-weight: 700; }
#tabPrecos .price-tier-table .tier-card  { color: #b45309; font-weight: 700; }
#tabPrecos .pt-toggle-row {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
#tabPrecos .pt-toggle-btn {
  padding: 7px 16px;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  transition: var(--transition);
}
#tabPrecos .pt-toggle-btn.active-pix  { background:#f0fdf4; border-color:#16a34a; color:#16a34a; }
#tabPrecos .pt-toggle-btn.active-card { background:#fefce8; border-color:#b45309; color:#b45309; }
#tabPrecos .pt-toggle-btn:not(.active-pix):not(.active-card) { color: var(--gray-500); }

.modal-product-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-product-name {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.modal-product-desc { font-size: 0.88rem; color: var(--gray-500); line-height: 1.7; }

/* Seleção de variações */
.variation-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
  background: #fff;
}
.color-btn:hover { border-color: var(--primary); }
.color-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }

/* GRADE SELECTOR */
.grade-selector { display: flex; flex-direction: column; gap: 10px; }
.grade-info-box {
  background: rgba(200,151,42,0.08);
  border: 1px solid rgba(200,151,42,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--accent-dark);
}
.grade-info-box strong { display: block; font-size: 0.75rem; margin-bottom: 4px; }

.size-qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.size-qty-item {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}
.size-qty-item .size-label { font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.size-qty-item .qty-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.qty-btn {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--gray-200);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-display {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--primary);
}
.qty-min-tag { font-size: 0.62rem; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* PRICING PREVIEW */
.pricing-preview {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1.5px solid var(--gray-200);
}
.pricing-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.83rem; margin-bottom: 4px; }
.pricing-row:last-child { margin-bottom: 0; }
.pricing-label { color: var(--gray-500); }
.pricing-value { font-weight: 700; color: var(--primary); }
.pricing-savings { color: var(--success); font-weight: 700; font-size: 0.85rem; }
.pricing-total-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1.5px solid var(--gray-200);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-add-cart {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--accent-dark); }
.btn-add-cart:disabled { background: var(--gray-300); cursor: not-allowed; }

/* STOCK INDICATOR */
.stock-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.stock-indicator.ok { color: var(--success); }
.stock-indicator.low { color: var(--warning); }
.stock-indicator.out { color: var(--danger); }

/* =====================================================
   CART DRAWER
   ===================================================== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10,10,22,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: -100%; bottom: 0;
  width: min(400px, 100vw);
  background: #fff;
  z-index: 160;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(26,26,46,0.15);
  transition: right var(--transition);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-drawer-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cart-drawer-close {
  width: 32px; height: 32px;
  border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--gray-700);
  transition: var(--transition);
}
.cart-drawer-close:hover { background: var(--danger); color: #fff; }

.cart-items-list { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }

.cart-item {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  align-items: start;
}
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-200);
}
.cart-item-name { font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.cart-item-detail { font-size: 0.72rem; color: var(--gray-500); }
.cart-item-type {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-top: 4px;
}
.cart-item-type.grade { background: rgba(200,151,42,0.12); color: var(--accent-dark); }
.cart-item-type.unit { background: rgba(52,152,219,0.12); color: var(--info); }
.cart-item-type.mixed { background: rgba(46,204,113,0.12); color: #27ae60; }
.cart-item-price { font-size: 0.9rem; font-weight: 800; color: var(--primary); }
.cart-item-remove {
  display: block;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  cursor: pointer;
  text-align: right;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}
.cart-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: 0.3; }

.cart-summary {
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--gray-700);
}
.summary-row.total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1.5px solid var(--gray-200);
  padding-top: 8px;
  margin-top: 4px;
}
.summary-savings { color: var(--success); font-weight: 600; }

.cart-actions { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1A1266 0%, #2a1f8a 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(26,18,102,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2a1f8a 0%, #1A1266 100%);
  box-shadow: 0 6px 20px rgba(26,18,102,0.45);
  transform: translateY(-1px);
}
.btn-primary.full-width { width: 100%; }
.btn-primary.accent-bg {
  background: var(--gold-shine);
  background-size: 200% auto;
  color: #1A1266;
  animation: goldShine 3s linear infinite;
  box-shadow: 0 4px 15px rgba(200,160,48,0.4);
}
.btn-primary.accent-bg:hover {
  box-shadow: 0 6px 22px rgba(200,160,48,0.6);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); background: var(--gray-50); }

/* =====================================================
   CHECKOUT MODAL
   ===================================================== */
.modal-checkout { max-width: 600px; }
.checkout-form { padding: 28px 24px; }
.checkout-form h3 { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.checkout-form h3 i { color: var(--accent); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--primary);
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section { padding: 80px 0; background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-text h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 16px; }
.about-text p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.8; margin-bottom: 12px; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.highlight-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.highlight-item i { color: var(--success); }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-section { padding: 80px 0; background: var(--gray-50); }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  min-height: 160px;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.contact-card .card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.contact-card.whatsapp .card-icon { background: #e8faf0; color: #25d366; }
.contact-card.email    .card-icon { background: #eff6ff; color: #3b82f6; }
.contact-card.location .card-icon { background: #fff1f1; color: #ef4444; }
.contact-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.contact-card span {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.4;
  word-break: break-word;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand .logo-name { color: #fff; font-size: 1.1rem; font-weight: 800; display: block; margin-bottom: 4px; }
.footer-brand p { font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 0.78rem; }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page { background: #0a0a16; min-height: 100dvh; }

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
}
@media (min-width: 768px) { .login-wrapper { grid-template-columns: 1fr 1fr; } }

.login-visual {
  display: none;
  position: relative;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200&q=80') center/cover;
  overflow: hidden;
}
@media (min-width: 768px) { .login-visual { display: block; } }
.login-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,22,0.85) 0%, rgba(200,151,42,0.25) 100%);
}
.login-visual-content {
  position: relative; z-index: 1;
  padding: 60px 40px;
  color: #fff;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.login-visual-content h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 12px; }
.login-visual-content p { font-size: 0.95rem; color: rgba(255,255,255,0.7); max-width: 300px; }

.login-form-area {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.login-form-inner { width: 100%; max-width: 400px; }
.login-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  transition: color var(--transition);
}
.login-back:hover { color: var(--primary); }

.login-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
.login-logo i { color: var(--accent); font-size: 1.3rem; }

.login-form-inner h2 { font-size: 1.6rem; margin-bottom: 6px; }
.login-desc { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 28px; }

.input-icon-wrap { position: relative; }
.input-icon-wrap input { width: 100%; padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.toggle-password:hover { color: var(--primary); }

.login-error {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.3);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.83rem;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}

.login-hint {
  margin-top: 20px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.login-hint p:first-child { font-weight: 700; color: var(--gray-700); }

/* Link de cadastro na tela de login */
.login-register-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-500);
}
.login-register-link a { color: var(--primary); text-decoration: none; }
.login-register-link a:hover { text-decoration: underline; }

/* =====================================================
   BADGES / TAGS
   ===================================================== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-success { background: rgba(46,204,113,0.12); color: #27ae60; }
.badge-warning { background: rgba(243,156,18,0.12); color: #e67e22; }
.badge-danger { background: rgba(231,76,60,0.12); color: var(--danger); }
.badge-info { background: rgba(52,152,219,0.12); color: var(--info); }
.badge-primary { background: rgba(26,26,46,0.08); color: var(--primary); }
.badge-accent { background: rgba(200,151,42,0.12); color: var(--accent-dark); }

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  max-width: 300px;
}
.toast.success { background: #27ae60; }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--primary); }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* =====================================================
   RESPONSIVIDADE EXTRA
   ===================================================== */
@media (max-width: 480px) {
  .landing-stats { gap: 16px; }
  .stat-item strong { font-size: 1.4rem; }
  .btn-landing-cta { padding: 14px 28px; font-size: 0.9rem; }
}

/* =====================================================
   NOVOS ESTILOS v3 — galeria, abas, atacado, carrinho
   ===================================================== */

/* Badge tipo produto no card */
.product-tipo-badge {
  position: absolute; bottom: 8px; left: 8px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.product-tipo-badge.grade   { background: var(--accent); color: var(--white); }
.product-tipo-badge.atacado { background: var(--info);   color: var(--white); }

/* Galeria de fotos no modal */
.modal-thumb-list {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.modal-thumb {
  width: 60px; height: 60px; object-fit: contain;
  background: var(--gray-100);
  border-radius: 8px; cursor: pointer; opacity: 0.6;
  border: 2px solid transparent; transition: all 0.2s;
  padding: 3px;
}
.modal-thumb.active,
.modal-thumb:hover { opacity: 1; border-color: var(--accent); }

/* Abas descrição / técnica — estilo igual aos botões de cor */
.product-tabs {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}

/* ── Botões de aba do modal: Efeito Azul Diamante ── */
@keyframes tabShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes tabActiveGlow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(79,168,255,0.45), 0 2px 12px rgba(34,85,204,0.3); }
  50%       { box-shadow: 0 0 12px 3px rgba(79,168,255,0.75), 0 4px 20px rgba(34,85,204,0.5); }
}
.product-tab {
  position: relative;
  overflow: hidden;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid rgba(79,168,255,0.25);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  /* Azul diamante suave no estado inativo */
  background: linear-gradient(120deg,
    #0d1b5e 0%, #1a3a8f 25%, #2255cc 50%, #1a3a8f 75%, #0d1b5e 100%);
  background-size: 250% auto;
  color: rgba(255,255,255,0.7);
  animation: tabShimmer 5s linear infinite;
}
.product-tab::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: tabShimmer 5s linear infinite;
  pointer-events: none;
}
.product-tab:hover {
  border-color: rgba(79,168,255,0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(34,85,204,0.35);
}
/* Estado ATIVO: azul mais intenso + glow pulsante */
.product-tab.active {
  background: linear-gradient(120deg,
    #0d1b5e 0%, #1a3a8f 20%, #2255cc 40%, #4fa8ff 50%, #2255cc 60%, #1a3a8f 80%, #0d1b5e 100%);
  background-size: 250% auto;
  animation: tabShimmer 2.8s linear infinite, tabActiveGlow 2s ease-in-out infinite;
  color: #fff;
  border-color: rgba(79,168,255,0.8);
  font-weight: 700;
  transform: translateY(-1px);
}
.product-tab.active::before { animation-duration: 2.8s; }
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }

/* Tabela de preços por quantidade (atacado) — oculta no front do cliente */
.atacado-price-table { display: none !important; }
.price-tier-table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
  border-radius: 8px; overflow: hidden;
}
.price-tier-table th {
  background: var(--gray-100); padding: 6px 12px; text-align: left;
  font-weight: 700; color: var(--gray-700); font-size: 0.75rem;
}
.price-tier-table td { padding: 6px 12px; border-bottom: 1px solid var(--gray-100); }
.price-tier-table tbody tr:last-child td { border-bottom: none; }

/* Preço riscado no carrinho */
.cart-item-price-old {
  font-size: 0.75rem; font-weight: 500;
  color: var(--gray-400); text-decoration: line-through;
  display: block; line-height: 1.2;
}
.cart-item-savings {
  font-size: 0.72rem; font-weight: 700;
  color: var(--success); margin-top: 2px;
}

/* Banner de economia no resumo do carrinho */
.summary-savings-banner {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724; border-radius: 8px; padding: 8px 12px;
  font-size: 0.82rem; font-weight: 700; text-align: center;
  margin-top: 8px;
}
.summary-savings-banner i { margin-right: 4px; }

/* Input genérico nos formulários de admin */
.price-table-row input {
  padding: 6px 10px; border: 1px solid var(--gray-200);
  border-radius: 6px; font-size: 0.83rem; color: var(--primary);
  background: var(--white);
}
.price-table-row input:focus { border-color: var(--accent); }
