/* ==========================================================================
   Anchieta — Limpeza e Descartáveis
   Base visual compartilhada pelas 3 partes do site (Início, Produtos, Contato)
   ========================================================================== */

:root {
  --blue-900: #0a2350;
  --blue-800: #0f3170;
  --blue-700: #1546a0;
  --blue-600: #1d5fd1;
  --blue-500: #2f7bf6;
  --blue-300: #8dbbff;
  --blue-100: #e3eeff;
  --blue-50: #f3f8ff;

  --white: #ffffff;
  --ink: #0d1b33;
  --ink-soft: #4a5872;
  --line: #e2e8f2;
  --success: #12a46b;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 36px;
  --shadow-sm: 0 2px 8px rgba(10, 35, 80, .06);
  --shadow: 0 12px 32px rgba(10, 35, 80, .10);
  --shadow-lg: 0 24px 60px rgba(10, 35, 80, .18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gradient-text {
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 8px 20px rgba(29, 95, 209, .30); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29, 95, 209, .38); }
.btn-dark { background: var(--blue-900); color: var(--white); }
.btn-dark:hover { background: var(--blue-800); transform: translateY(-2px); }
.btn-ghost { background: var(--blue-50); color: var(--blue-800); }
.btn-ghost:hover { background: var(--blue-100); }
.btn-light { background: var(--white); color: var(--blue-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--font-display); font-size: 22px; color: var(--blue-900); letter-spacing: -.02em; }
.logo-text span { font-size: 11.5px; color: var(--ink-soft); font-weight: 500; letter-spacing: .02em; }

.nav-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 30px rgba(10, 35, 80, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.nav-pill a { padding: 8px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav-pill a:hover { color: var(--blue-900); background: rgba(255, 255, 255, .8); }
.nav-pill a.is-active { color: var(--white); background: var(--blue-900); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--blue-900);
  display: grid; place-items: center; transition: transform .2s;
}
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--blue-500); color: var(--white);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.4); } }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--blue-900); place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* menu hambúrguer em tela cheia (celular/tablet) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  height: 100vh; height: 100dvh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, visibility 0s .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 40px); font-weight: 700; color: var(--blue-900); letter-spacing: -.02em;
  opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease-out);
}
.mobile-menu nav a svg { width: 26px; height: 26px; color: var(--blue-500); }
.mobile-menu nav a.is-active { color: var(--blue-600); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu .mobile-menu-foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .mobile-menu-foot p { font-size: 14px; color: var(--ink-soft); text-align: center; }
body.menu-aberto { overflow: hidden; }
body.menu-aberto .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 860px) {
  .nav-pill, .nav-actions .nav-cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }
@media (max-width: 420px) {
  :root { --nav-h: 68px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text strong { font-size: 19px; }
  .logo-text span { font-size: 10.5px; }
  .cart-btn, .menu-toggle { width: 42px; height: 42px; }
  .nav-actions { gap: 8px; }
}

/* ---------- Placeholder "Foto em breve" ---------- */
.photo-soon {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 123, 246, .10), transparent 50%),
    linear-gradient(160deg, var(--blue-50), #ffffff);
  color: var(--blue-700); text-align: center;
}
.photo-soon svg { width: 44px; height: 44px; opacity: .55; }
.photo-soon span { font-size: 13px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Card de produto ---------- */
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .2s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card .media { aspect-ratio: 4 / 5; background: var(--white); display: block; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .5s var(--ease-out); }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.product-card .cat { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-600); }
.product-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.product-card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--blue-900); white-space: nowrap; }
.price small { font-size: .6em; font-weight: 600; margin-right: 2px; }
.price-consult { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Carrinho (demonstrativo) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 35, 80, .35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(420px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue-50); color: var(--blue-900); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-empty { text-align: center; padding: 60px 0; color: var(--ink-soft); }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-item .thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.drawer-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.drawer-item .thumb .photo-soon svg { width: 22px; height: 22px; }
.drawer-item .thumb .photo-soon span { display: none; }
.drawer-item h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.drawer-item .unit { font-size: 13px; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--blue-900); font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--blue-50); }
.qty input, .qty output { width: 36px; text-align: center; border: 0; font: inherit; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.drawer-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--blue-900); color: var(--white);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s var(--ease-out);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Rodapé ---------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo-text strong { color: var(--white); }
.footer .logo-text span { color: rgba(255, 255, 255, .6); }
.footer h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer a:hover { color: var(--white); }
.footer-about { margin-top: 16px; max-width: 340px; font-size: 14.5px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cabeçalho de páginas internas ---------- */
.page-head { padding: calc(var(--nav-h) + 56px) 0 40px; background: linear-gradient(180deg, var(--blue-50), var(--white)); }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 12px; }
.page-head p { margin-top: 14px; color: var(--ink-soft); max-width: 620px; font-size: 17px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--ink-soft); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--blue-700); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Cálculo de frete (produto e carrinho) ---------- */
.frete { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.frete[hidden] { display: none; }
.frete-titulo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--blue-900); }
.frete-titulo svg { width: 20px; height: 20px; color: var(--blue-600); }
.frete-form { margin-top: 12px; display: flex; gap: 8px; }
.frete-form input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 16px; letter-spacing: .04em; color: var(--ink); background: var(--white);
}
.frete-form input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 123, 246, .15); }
.frete-form input[aria-invalid="true"] { border-color: #d64545; }
.frete-form .btn { min-height: 42px; }
.frete-nao-sei { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.frete-resultado:empty { display: none; }
.frete-resultado { margin-top: 12px; }
.frete-opcoes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.frete-opcoes li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--blue-50); }
.frete-opcoes img { width: 40px; height: 24px; object-fit: contain; flex: none; }
.frete-nome { flex: 1; font-size: 14px; line-height: 1.3; }
.frete-nome small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.frete-valor { font-weight: 700; color: var(--blue-900); white-space: nowrap; }
.frete-nota { margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.frete-erro { padding: 10px 12px; border-radius: var(--radius-sm); background: #fdeeee; color: #a12f2f; font-size: 14px; }
.frete-carregando { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.frete-carregando span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue-100); border-top-color: var(--blue-600); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.frete-compacto { margin-top: 0; padding: 0; border: 0; }
.frete-compacto .frete-titulo { font-size: 14px; }
.frete-compacto .frete-form { margin-top: 8px; }
.frete-compacto .frete-opcoes { max-height: 180px; overflow-y: auto; }

/* ---------- Rolagem suave com inércia (Lenis) — regras oficiais da lib + ajustes ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }        /* o Lenis cuida da suavidade; o "smooth" nativo brigaria com ele */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* com o carrinho aberto, o aviso sobe para não cobrir o botão de finalizar */
body:has(.drawer.is-open) .toast { bottom: auto; top: 20px; transform: translate(-50%, -20px); }
body:has(.drawer.is-open) .toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Correções visuais (varredura 04/10) ---------- */
/* Carrinho fechado: escondido de verdade. Antes, a sombra dele "vazava" como uma faixa cinza na borda direita
   de todas as páginas, e os botões dele continuavam alcançáveis pelo Tab. */
.drawer { visibility: hidden; box-shadow: none; transition: transform .4s var(--ease-out), visibility 0s .4s, box-shadow 0s .4s; }
.drawer.is-open { visibility: visible; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease-out), visibility 0s, box-shadow 0s; }
