/* ==========================================
   Au Pets - Global Design System
   Mobile-first, premium warm design
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Marca e Identidade */
  --primary: #5B21B6; /* Roxo profundo */
  --primary-dark: #4C1D95;
  --primary-light: #8B5CF6;
  --secondary: #D97706; /* Âmbar quente */
  --secondary-dark: #B45309;
  --secondary-light: #F59E0B;
  
  --bg-primary: #FAFAFA; /* Off-white */
  --surface: #FFFFFF; /* Branco */
  
  --text-primary: #18181B; /* Cinza escuro */
  --text-secondary: #52525B; /* Cinza médio */
  --text-light: #A1A1AA;
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  --border: #E4E4E7;

  /* Formatos */
  --font-body: 'Inter', sans-serif;
  --font-display: 'DM Sans', sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 20px 40px rgba(91, 33, 182, 0.12);
  --shadow-glow: 0 12px 24px rgba(91, 33, 182, 0.25);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-blur: blur(24px) saturate(200%);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Utilities */
  --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 50px;
}

/* ==========================================
   Base e Reset
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-body); }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px; /* Default for fixed header */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; outline: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================
   Animações & Utilitários
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Shimmer Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==========================================
   Header (Global)
   ========================================== */
/* Header "Island" — flutua centralizado, mesma largura do hero (1280px),
   pill arredondado, glass com backdrop-blur (estilo Apple/Vercel). */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1280px;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: background 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), top 0.3s var(--ease-premium);
}
/* alias legacy — design glass agora é o padrão */
.header.header-glass { background: var(--glass-bg); }
.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.header-logo { display: flex; align-items: center; }
.header-logo a { display: inline-flex; align-items: center; line-height: 0; }
.header-logo img { height: 40px; width: auto; display: block; transition: transform 0.25s var(--ease-premium); }
.header-logo a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .header-logo img { height: 34px; } }
.header-nav { display: none; gap: 32px; align-items: center; }
.header-nav a { font-weight: 500; font-size: 15px; color: var(--text-secondary); position: relative; transition: color 0.3s; }
.header-nav a:hover, .header-nav a.active { color: var(--primary); }
.header-nav a.active { font-weight: 600; }
.header-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px;
  background: var(--primary); transition: width 0.3s var(--ease-premium);
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions button { color: var(--text-primary); transition: color 0.2s; display: flex; position: relative; }
.header-actions button:hover { color: var(--primary); }

.cart-badge {
  position: absolute; top: -6px; right: -8px; background: var(--secondary); color: #fff;
  font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* .btn-entrar / .hamburger / .mobile-drawer: classes mantidas para uso futuro — atualmente não acionadas em nenhuma página. */
.btn-entrar {
  display: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.25);
  transition: all 0.3s var(--ease-premium);
}
.btn-entrar:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hamburger { display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.hamburger span { width: 20px; height: 2px; background: var(--text-primary); transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media(min-width: 1024px) {
  .header-nav { display: flex; }
  .btn-entrar { display: block; }
  .hamburger { display: none; }
}

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 64px; right: -100%;
  width: 80%; max-width: 300px; height: calc(100vh - 64px);
  background: var(--surface);
  box-shadow: -4px 0 15px rgba(0,0,0,0.05);
  transition: right 0.4s var(--ease-premium);
  z-index: 999;
  padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-drawer.active { right: 0; }
.mobile-drawer a { font-size: 18px; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid #eee; padding-bottom: 12px; }

/* ==========================================
   Footer Premium (Global)
   ========================================== */
.footer {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
  margin-top: auto;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,119,6,0.3), transparent);
}

.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }

.footer-brand h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -1px; }
.footer-desc { font-size: 15px; line-height: 1.6; margin-bottom: 20px; max-width: 320px; }
.socials { display: flex; gap: 16px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: all 0.3s var(--ease-premium);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 15px rgba(91,33,182,0.3); }

.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; transition: color 0.2s; position: relative; display: inline-block; width: max-content; }
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--secondary); transition: width 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { width: 100%; }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; display: flex; flex-direction: column; gap: 16px;
  align-items: center; font-size: 14px; text-align: center; color: rgba(255,255,255,0.5);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

@media(min-width: 768px) {
  .footer { padding: 64px 40px 24px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================
   Shared UI Components (Buttons, Inputs, Breadcrumbs)
   ========================================== */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--border); font-size: 10px; }

.page-header { padding: 104px 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: all 0.3s var(--ease-premium); border-radius: var(--radius-md); padding: 0 20px; font-size: 15px; cursor: pointer; border: none; min-height: 48px; }
.btn-primary { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-pill { border-radius: var(--radius-full); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(91, 33, 182, 0.05); }
.btn-icon { width: 48px; height: 48px; padding: 0; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-control { width: 100%; height: 48px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: 0 16px; background: var(--surface); color: var(--text-primary); font-size: 15px; transition: all 0.3s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,33,182,0.1); }
.form-control.error { border-color: var(--error); }
.form-control.success { border-color: var(--success); }

/* ==========================================
   Product Card Component (Reusable)
   ========================================== */
.card-prod {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; overflow: hidden; position: relative; border: 1px solid var(--border);
}
.card-prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(91,33,182,0.2); }
.card-prod-img { aspect-ratio: 1; background: #F4F4F5; display: flex; align-items: center; justify-content: center; color: var(--border); overflow: hidden; position: relative; }
.card-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-prod:hover .card-prod-img img { transform: scale(1.05); }

.badge-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-sm); letter-spacing: 0.5px; z-index: 2; text-transform: uppercase; }
.tag-new { background: var(--success); color: #fff; }
.tag-sale { background: var(--secondary); color: #fff; }

.card-prod-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-prod-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 4px; }
.card-prod-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.card-prod-stars { display: flex; gap: 2px; color: var(--secondary-light); margin-bottom: 12px; }
.card-prod-price-area { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 16px; flex-wrap: wrap; }
.card-prod-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.card-prod-old { font-size: 13px; color: var(--text-light); text-decoration: line-through; }

/* Preço Clube AuPets nos cards de produto */
.price-club {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.10), rgba(217, 119, 6, 0.10));
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 4px;
  white-space: nowrap;
  line-height: 1.2;
}
.price-club::before {
  content: '★';
  color: var(--secondary);
  font-size: 11px;
}
.price-club-value { color: var(--primary); }

/* Badge "Clube" */
.tag-club {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.card-prod-add { width: 100%; height: 40px; border-radius: 10px; background: rgba(91,33,182,0.05); color: var(--primary); font-weight: 600; font-size: 14px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.card-prod:hover .card-prod-add { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }

@media(max-width: 640px) {
  .card-prod-body { padding: 12px; }
  .card-prod-name { font-size: 13px; }
  .card-prod-price { font-size: 16px; }
  .card-prod-add { height: 36px; font-size: 13px; }
}

/* =============================================
   WhatsApp Float Button — fixed bottom-right.
   Em mobile, sobe automaticamente quando ha
   barra de acao fixed (.prod-actions-wrapper)
   pra nao tampar os botoes "Adicionar/Comprar".
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s, bottom 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Em mobile, em paginas que tem barra fixed bottom (produto individual),
   sobe o WhatsApp pra nao colidir. :has() suportado em Chrome 105+, Safari 15.4+,
   Firefox 121+ — cobre praticamente todos os clientes em 2026. */
@media (max-width: 767px) {
  body:has(.prod-actions-wrapper) .whatsapp-float { bottom: 96px; }
}
