:root {
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --gold: #D97706;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px -4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Sora', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* CABEÇALHO */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
}
.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--primary); }

nav { display: flex; gap: 8px; align-items: center; }
.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover, .nav-btn.active {
  color: var(--primary);
  background: #EFF6FF;
}

.cart-nav-btn {
  position: relative;
  background: var(--primary);
  color: #FFF !important;
  padding: 8px 16px;
  border-radius: 8px;
}
.cart-nav-btn:hover { background: var(--primary-hover) !important; }
.cart-badge {
  background: var(--gold);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* MAIN */
main { flex: 1; }
.page-view {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }

/* HERO (início) */
.hero { text-align: center; padding: 40px 0; }
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 30px; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BOTÕES GERAIS */
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #FFF; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-whatsapp { background: var(--whatsapp); color: #FFF; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); }
.btn-outline {
  background: #FFF;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: #F1F5F9; }

/* FEATURES (início) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-card i { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* PRODUTOS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-icon {
  width: 48px; height: 48px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.product-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; margin-bottom: 16px; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 16px; }

.selector-group { margin-top: 12px; }
.selector-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.select-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
}

/* CONTATO */
.contact-box {
  max-width: 550px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  text-align: center;
}
.contact-box i.main-icon {
  font-size: 3.5rem;
  color: var(--whatsapp);
  margin-bottom: 20px;
}
.contact-box h2 { font-size: 1.6rem; margin-bottom: 12px; }
.contact-box p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; font-size: 0.95rem; }

/* CARRINHO DRAWER */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 200;
}
.cart-drawer {
  position: fixed;
  top: 0; right: -400px; bottom: 0;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }
.cart-overlay.open { display: block; }

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.close-cart { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }

.cart-items { flex: 1; padding: 20px; overflow-y: auto; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-title { font-weight: 700; font-size: 0.9rem; }
.cart-item-price { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.remove-item {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }

/* RODAPÉ */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* WHATSAPP FLUTUANTE */
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none !important; }
}
.wa-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 58px; height: 58px;
  background: linear-gradient(145deg, #2CE566, var(--whatsapp));
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 18px rgba(37,211,102,0.45);
  text-decoration: none;
  z-index: 99;
  transition: transform 0.2s;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.1); }

/* AJUSTES MOBILE */
@media (max-width: 480px) {
  .logo { font-size: 1rem; }
  .logo i { display: none; }
  nav { gap: 2px; }
  .nav-btn { padding: 8px; font-size: 0; gap: 0; }
  .nav-btn i { font-size: 1.05rem; }
  .cart-nav-btn { padding: 8px 10px; }
  .cart-nav-btn .cart-badge { font-size: 0.7rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .page-view { padding: 24px 16px 48px; }
  .contact-box { padding: 32px 18px; }
}
