/* ==================================================================
   COMPONENTES
   ================================================================== */

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em;
  border-radius: var(--r-md); border: 2px solid transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-navy); color: #fff; }
.btn--primary:hover { background: var(--c-blue-700); }
.btn--wa { background: var(--c-wa); color: #fff; }
.btn--wa:hover { background: var(--c-wa-hover); }
.btn--outline { border-color: var(--c-border-strong); color: var(--c-navy); background: #fff; }
.btn--outline:hover { border-color: var(--c-navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .975rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem; color: var(--c-blue);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--c-navy); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--c-navy-900); color: var(--c-on-dark-muted); font-size: var(--fs-caption); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.topbar__group { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; }
.topbar a:hover { color: var(--c-blue-300); }
.topbar svg { width: 15px; height: 15px; }
.topbar__note { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }
@media (max-width: 767px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); } }
.header.is-scrolled { border-color: var(--c-border); box-shadow: var(--sh-sm); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.header__logo { display: block; flex: none; }
.header__logo img { height: 58px; width: auto; transition: height var(--t-base); }
.header.is-scrolled .header__logo img { height: 50px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: block; padding: .5rem .85rem;
  font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem; color: var(--c-text);
  border-radius: var(--r-sm); transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 3px; border-radius: 2px;
  background: var(--c-green); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base);
}
.nav__link:hover { color: var(--c-blue); }
.nav__link:hover::after { transform: scaleX(.5); }
.nav__link[aria-current="page"] { color: var(--c-navy); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { margin-left: .5rem; }
.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: var(--r-md);
  align-items: center; justify-content: center; color: var(--c-navy); border: 1px solid var(--c-border);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 959px) {
  :root { --header-h: 64px; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 44px; }
  .nav, .header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column;
  background: #fff; padding: 0 var(--gutter) var(--s-xl);
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear 250ms;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity var(--t-base), transform var(--t-base); }
@media (min-width: 960px) { .mobile-menu { display: none; } }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--c-border); }
.mobile-menu__top img { height: 44px; width: auto; }
.mobile-menu__list { padding-block: var(--s-lg); }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem;
  font-family: var(--f-heading); font-weight: 700; font-size: 1.75rem; color: var(--c-navy);
  border-bottom: 1px solid var(--c-border);
}
.mobile-menu__link svg { width: 22px; height: 22px; color: var(--c-blue); }
.mobile-menu__link[aria-current="page"] { color: var(--c-blue); }
.mobile-menu__link[aria-current="page"]::before { content: ""; width: 4px; height: 26px; background: var(--c-green); border-radius: 2px; margin-right: .75rem; }
.mobile-menu__link[aria-current="page"] span { margin-right: auto; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: .75rem; }
.mobile-menu__foot .muted { color: var(--c-muted); font-size: var(--fs-sm); text-align: center; }
body.menu-open { overflow: hidden; }

/* ---------- Section title ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head__text { max-width: 640px; }
.section-head h2 { font-size: var(--fs-h2); margin-top: .6rem; }
.section-head p { margin-top: .8rem; color: var(--c-muted); font-size: var(--fs-lead); }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: var(--c-on-dark-muted); }

/* ---------- Category tile ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  min-height: 132px; padding: 1.1rem 1.1rem 1rem;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: background-color var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
}
.cat-tile__icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: var(--c-blue-100); color: var(--c-navy); transition: background-color var(--t-base), color var(--t-base);
}
.cat-tile__icon svg { width: 24px; height: 24px; }
.cat-tile__name { font-family: var(--f-heading); font-weight: 700; font-size: 1.1875rem; line-height: 1.15; color: var(--c-navy); transition: color var(--t-base); }
.cat-tile__meta { display: block; margin-top: .2rem; font-size: var(--fs-caption); color: var(--c-muted); transition: color var(--t-base); }
.cat-tile__go { position: absolute; top: 1.1rem; right: 1rem; width: 20px; height: 20px; color: var(--c-border-strong); transition: color var(--t-base), transform var(--t-base); }
.cat-tile:hover { background: var(--c-navy); border-color: var(--c-navy); transform: translateY(-2px); box-shadow: var(--sh-md); }
.cat-tile:hover .cat-tile__icon { background: rgba(255,255,255,.12); color: #fff; }
.cat-tile:hover .cat-tile__name { color: #fff; }
.cat-tile:hover .cat-tile__meta { color: var(--c-on-dark-muted); }
.cat-tile:hover .cat-tile__go { color: var(--c-green); transform: translateX(2px); }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1rem, .6rem + 1vw, 1.5rem); }
.product-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: transparent; }
.product-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__cat {
  position: absolute; left: .75rem; top: .75rem;
  padding: .25rem .6rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); color: var(--c-navy);
  font-size: var(--fs-caption); font-weight: 600;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.product-card__brand { font-family: var(--f-heading); font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue); min-height: 1.2em; }
.product-card__name { margin-top: .25rem; font-size: 1.375rem; line-height: 1.15; color: var(--c-navy); }
.product-card__desc { margin-top: .5rem; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.5; }
.product-card__cta { margin-top: auto; padding-top: 1.1rem; }
.product-card__cta .btn { width: 100%; }

/* ---------- Brand tile ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 600px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; } }
@media (min-width: 900px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; } }
@media (min-width: 1280px) { .brand-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.brand-tile {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: var(--r-md); border: 1px solid rgba(4,36,95,.08);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.brand-tile img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

/* ---------- Search ---------- */
.search {
  position: relative; display: flex; align-items: center;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-md);
  border: 2px solid transparent; transition: border-color var(--t-fast);
}
.search:focus-within { border-color: var(--c-green); }
.search svg { position: absolute; left: 1rem; width: 22px; height: 22px; color: var(--c-muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 58px; padding: .9rem 3rem .9rem 3.1rem; border: 0; background: transparent;
  font-size: 1.0625rem; border-radius: var(--r-md); color: var(--c-text);
}
.search input:focus { outline: none; }
.search input::placeholder { color: #7a869c; }
.search__clear {
  position: absolute; right: .5rem; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: none; place-items: center; color: var(--c-muted);
}
.search__clear svg { position: static; width: 20px; height: 20px; }
.search__clear:hover { background: var(--c-surface); color: var(--c-navy); }
.search.has-value .search__clear { display: grid; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: .25rem; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem 1rem;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); background: #fff;
  font-weight: 500; font-size: var(--fs-sm); color: var(--c-text);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--c-navy); }
.chip[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.chip__count { font-size: .75rem; opacity: .7; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.1rem 0 1rem;
  background: var(--c-wa); color: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem;
  transform: translateY(120px); transition: transform var(--t-base), background-color var(--t-fast);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--c-wa-hover); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 599px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* ---------- Empty state ---------- */
.empty {
  grid-column: 1 / -1; text-align: center; padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem;
  background: #fff; border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg);
}
.empty__icon { width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-blue-100); color: var(--c-navy); }
.empty__icon svg { width: 28px; height: 28px; }
.empty h3 { font-size: var(--fs-h3); }
.empty p { max-width: 460px; margin: .6rem auto 1.5rem; color: var(--c-muted); }
.empty__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--c-navy-900); color: var(--c-on-dark-muted); }
.footer__main { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 4vw, 4.5rem); }
@media (min-width: 768px) { .footer__main { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer__brand img { width: 170px; height: auto; }
.footer__brand p { margin-top: 1rem; max-width: 300px; font-family: var(--f-heading); font-size: 1.25rem; line-height: 1.3; color: #fff; }
.footer h2 { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-blue-300); margin-bottom: 1rem; font-weight: 600; }
.footer__links { display: grid; gap: .55rem; }
.footer__links a, .footer__contact a { color: #fff; transition: color var(--t-fast); }
.footer__links a:hover, .footer__contact a:hover { color: var(--c-green); }
.footer__contact { display: grid; gap: .8rem; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: var(--c-blue-300); }
.footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background-color var(--t-fast), border-color var(--t-fast); }
.footer__social a:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: var(--fs-caption); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.ico-wa svg { color: var(--c-green-700); }
@media (max-width: 599px) {
  .cat-tile { min-height: 0; gap: .9rem; padding: .9rem; }
  .cat-tile__icon { width: 40px; height: 40px; }
  .cat-tile__name { font-size: 1.0625rem; }
}

/* ---------- Foto de embalagem (packshot recortado) ---------- */
.product-card__media.is-pack {
  background:
    radial-gradient(90% 70% at 50% 38%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f3f7fc 0%, #e6eef8 100%);
}
.product-card__media.is-pack img { object-fit: contain; transform-origin: 50% 90%; transition: transform 600ms var(--ease); }
.product-card:hover .product-card__media.is-pack img { transform: translateY(-4px) scale(1.035); }

/* ==================================================================
   TRANSIÇÃO DE PÁGINAS (bolhas) — js/motion/page-transition.js
   html.pt-in: a página chega coberta (antes do 1º paint) até o JS
   assumir; .pt: camada animada (água 2D + anéis WebGL + nome da página)
   ================================================================== */
.pt { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.pt.is-out { pointer-events: auto; cursor: progress; }
.pt__water, .pt__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt__label,
html.pt-in::after {
  font-family: var(--f-heading);
  font-weight: 600; font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.02em;
  color: #fff; text-align: center;
}
.pt__label {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  opacity: 0; transition: opacity 260ms ease;
}
.pt__label.is-on { opacity: 1; }
html.pt-in::after {
  content: attr(data-pt);
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #04245f, #03338b);
}
@media (prefers-reduced-motion: reduce) {
  html.pt-in::after, .pt { display: none; }
}

/* crédito de desenvolvimento no rodapé */
.footer__credit { color: rgba(255,255,255,.72); }
.footer__credit strong, .footer__credit a { color: #fff; font-weight: 600; letter-spacing: .02em; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.footer__credit a:hover { text-decoration-color: currentColor; }
/* espaço para o botão flutuante do WhatsApp não cobrir o rodapé */
.footer__bottom { padding-bottom: calc(1.25rem + 72px); }
@media (max-width: 599px) { .footer__bottom { flex-direction: column; } }

/* Marca sem logo: nome em texto, mesmo quadro */
.brand-tile--text { display: grid; place-items: center; padding: .5rem; background: #fff; text-align: center; }
.brand-tile--text span { font-family: var(--f-heading); font-weight: 700; font-size: clamp(.875rem, .8rem + .35vw, 1.0625rem); line-height: 1.1; letter-spacing: -.01em; color: var(--c-navy); }

/* Catálogo: marcas e revenda da categoria selecionada */
.cat-info { margin-bottom: 1.5rem; }
.cat-brands { padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--c-surface, #f3f7fc); border: 1px solid rgba(4,36,95,.08); }
.cat-brands__note { display: flex; align-items: flex-start; gap: .55rem; font-weight: 600; color: var(--c-navy); line-height: 1.45; }
.cat-brands__note svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; color: var(--c-green, #1f8a3b); }
.cat-brands__note + .cat-brands__label { margin-top: .9rem; }
.cat-brands__label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-blue); }
.cat-brands__list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.cat-brands__list li { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid rgba(4,36,95,.12); font-size: var(--fs-sm); font-weight: 600; color: var(--c-navy); }
