/* ═══════════════════════════════════════════════════════════════════
   BCX Theme, components.css (v1.2 padrão Guedes mockup aprovado)
   Topbar + Header + Pix-strip + Breadcrumb + Footer-pre + Footer +
   Botões + Badges + Mobile menu + WhatsApp FAB
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Helpers ──────────────────────────────────────────────────────── */
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ico-inline { display: inline-flex; align-items: center; gap: 6px; }
svg { display: inline-block; vertical-align: middle; }
.tb-mobile { display: none; }
.tb-desktop { display: inline-flex; }

/* ═══════════════════════════════════════════════════════════════════
   TOPBAR azul
   ═══════════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--gm-blue);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 0;
  font-weight: 600;
}
.topbar-inner {
  max-width: var(--bcx-container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.topbar a:hover { opacity: 0.85; }
.tb-login {
  background: rgba(255,255,255,0.18);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.tb-wa {
  background: var(--gm-green);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff !important;
}
.tb-wa:hover { background: var(--gm-green-dark); }

/* ═══════════════════════════════════════════════════════════════════
   HEADER branco sticky
   ═══════════════════════════════════════════════════════════════════ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gm-border);
  position: sticky;
  top: 0;
  z-index: var(--bcx-z-sticky);
  box-shadow: var(--gm-shadow-sm);
}
.header-inner {
  max-width: var(--bcx-container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 28px;
  align-items: center;
}
.logo { display: inline-block; }
.logo img { height: 54px; display: block; max-width: 100%; }
.bcx-logo-text {
  font-family: var(--bcx-font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--gm-blue);
  letter-spacing: -0.5px;
}
.search {
  display: flex;
  border: 1.5px solid var(--gm-text);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.search input {
  flex: 1;
  padding: 11px 16px;
  border: 0;
  font-size: 13.5px;
  font-family: inherit;
  background: transparent;
  width: 100%;
  min-width: 0;
}
.search input:focus { outline: none; }
.search button {
  background: var(--gm-blue);
  color: #fff;
  border: 0;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.search button:hover { background: var(--gm-blue-dark); }
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}
.ha-login {
  background: var(--gm-text);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s;
  text-decoration: none;
}
.ha-login:hover { background: #000; }
.ha-social {
  display: flex; gap: 10px;
  color: var(--gm-blue);
  align-items: center;
}
.ha-social a {
  display: flex; align-items: center;
  color: inherit;
  transition: color 0.2s;
}
.ha-social a:hover { color: var(--gm-blue-dark); }
.ha-cart {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gm-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
  color: var(--gm-text) !important;
  text-decoration: none;
}
.ha-cart:hover { background: var(--gm-bg); }
.ha-cart-badge, .cart-float-badge, .bcx-cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gm-red);
  color: #fff !important;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  min-width: 14px;
  text-align: center;
  line-height: 1.4;
}
.bcx-cart-count[data-count="0"] { display: none; }
.bcx-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--gm-text);
}

/* ═══════════════════════════════════════════════════════════════════
   PIX STRIP preta
   ═══════════════════════════════════════════════════════════════════ */
.pix-strip {
  background: var(--gm-text);
  color: #fff;
  padding: 12px 0;
}
.pix-strip-inner {
  max-width: var(--bcx-container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.pix-pig {
  width: 36px; height: 36px;
  background: var(--gm-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pix-text {
  font-size: 13.5px;
  line-height: 1.4;
}
.pix-text strong {
  color: var(--gm-green-light);
  font-weight: 800;
  font-size: 17px;
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--gm-border); }
.breadcrumb {
  max-width: var(--bcx-container-max);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 12px;
  color: var(--gm-text-soft);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--gm-blue); }
.breadcrumb .sep, .breadcrumb .delimiter { margin: 0 6px; opacity: 0.5; }
.breadcrumb .current { color: var(--gm-text); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS BCX (compatibilidade)
   ═══════════════════════════════════════════════════════════════════ */
.bcx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bcx-space-2);
  padding: 11px 22px;
  font-family: var(--bcx-font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-align: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.bcx-btn-primary { background: var(--gm-blue); color: #fff !important; }
.bcx-btn-primary:hover { background: var(--gm-blue-dark); color: #fff !important; }
.bcx-btn-ghost {
  background: transparent; color: var(--gm-text) !important; border-color: var(--gm-border);
  text-transform: none; letter-spacing: 0;
}
.bcx-btn-ghost:hover { background: var(--gm-bg); border-color: var(--gm-text-soft); }
.bcx-btn-success { background: var(--gm-green); color: #fff !important; }
.bcx-btn-success:hover { background: var(--gm-green-dark); color: #fff !important; }
.bcx-btn-lg { font-size: 14px; padding: 14px 28px; }
.bcx-btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   BADGES BCX
   ═══════════════════════════════════════════════════════════════════ */
.bcx-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 800;
  border-radius: var(--radius-full);
  line-height: 1;
  letter-spacing: 0.3px;
}
.bcx-badge-sale { background: var(--gm-green); color: #fff; }
.bcx-badge-info { background: var(--gm-blue); color: #fff; }
.bcx-badge-soft { background: var(--gm-blue-light); color: var(--gm-blue-dark); }
.bcx-badge-out  { background: var(--gm-text-soft); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER PRE azul, 4 trust badges
   ═══════════════════════════════════════════════════════════════════ */
.footer-pre {
  background: var(--gm-blue);
  color: #fff;
  padding: 28px 0;
}
.footer-pre-inner {
  max-width: var(--bcx-container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.footer-pre-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.footer-pre-item .icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.footer-pre-item .txt { text-align: left; font-size: 12.5px; line-height: 1.3; }
.footer-pre-item .txt strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER preto, 4 colunas + h4 amarelo
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--gm-text);
  color: #fff;
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: var(--bcx-container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--gm-yellow);
  font-family: inherit;
}
.footer p, .footer li, .footer a {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  text-decoration: none;
}
.footer a:hover { color: var(--gm-yellow); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer-bottom p { font-size: 12px; color: inherit; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   CART FLOAT (desktop fallback) + Sticky CTA mobile
   ═══════════════════════════════════════════════════════════════════ */
.cart-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: var(--gm-text);
  color: #fff !important;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--gm-shadow-lg);
  z-index: 40;
  text-decoration: none;
}
.cart-float .cart-float-badge { top: 6px; right: 6px; font-size: 10px; padding: 2px 6px; min-width: 18px; }

/* WhatsApp FAB do bcx-theme antigo, agora desabilitado em favor da topbar */
.bcx-whatsapp-fab { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE MENU off-canvas
   ═══════════════════════════════════════════════════════════════════ */
.bcx-mobile-menu {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--bcx-z-modal);
}
.bcx-mobile-menu[hidden] { display: none; }
.bcx-mobile-menu-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 88%; max-width: 380px;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
}
.bcx-mobile-menu-close {
  position: absolute; top: 6px; right: 14px;
  font-size: 36px; line-height: 1; color: var(--gm-text);
  background: transparent; border: 0; cursor: pointer;
}
.bcx-mobile-menu-section-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gm-blue);
  margin-top: 24px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gm-blue);
}
.bcx-mobile-menu-section-title:first-of-type { margin-top: 28px; }
.bcx-mobile-menu-list { list-style: none; margin: 0; padding: 0; }
.bcx-mobile-menu-list li { border-bottom: 1px solid var(--gm-border); }
.bcx-mobile-menu-list a {
  display: block; padding: 12px 0;
  color: var(--gm-text); font-weight: 600; text-decoration: none;
  font-size: 14px;
}
.bcx-mobile-menu-list a:hover { color: var(--gm-blue); }
.bcx-mobile-menu-whats {
  margin-top: 24px !important;
  background: var(--gm-green) !important;
  color: #fff !important;
}
.bcx-mobile-menu-whats:hover { background: var(--gm-green-dark) !important; }

/* ═══════════════════════════════════════════════════════════════════
   CONTAINER + LAYOUT helpers (compatibilidade bcx-*)
   ═══════════════════════════════════════════════════════════════════ */
.bcx-container {
  width: 100%;
  max-width: var(--bcx-container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.bcx-container-tight { max-width: 800px; }
.bcx-container-wide  { max-width: 1440px; }
.bcx-text-center { text-align: center; }

/* Skip link a11y */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--gm-text); color: #fff;
  padding: 12px 16px;
  z-index: var(--bcx-z-toast);
}
.skip-link:focus { left: 0; top: 0; }
:focus-visible {
  outline: 2px solid var(--gm-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.bcx-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.bcx-hidden { display: none !important; }
.bcx-mobile-only { display: none; }
.bcx-desktop-only { display: block; }

/* ═══════════════════════════════════════════════════════════════════
   404 page
   ═══════════════════════════════════════════════════════════════════ */
.bcx-404 { padding: 80px 0; text-align: center; }
.bcx-404-icon {
  font-size: 96px; font-weight: 900; line-height: 1;
  color: var(--gm-blue); margin-bottom: 16px;
}
.bcx-404-actions {
  display: flex; justify-content: center; gap: 12px;
  margin: 24px 0;
}
.bcx-404-search { margin-top: 32px; }

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════ */
.bcx-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 32px;
}
.bcx-pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  padding: 8px 14px;
  border: 1px solid var(--gm-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gm-text);
  font-weight: 600;
  background: #fff;
}
.bcx-pagination .page-numbers.current, .woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--gm-blue); color: #fff; border-color: var(--gm-blue);
}
.bcx-pagination .page-numbers:hover:not(.current), .woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--gm-blue-light); border-color: var(--gm-blue);
}

/* ═══════════════════════════════════════════════════════════════════
   CONSENT BANNER LGPD
   ═══════════════════════════════════════════════════════════════════ */
.bcx-consent-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--gm-text); color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--gm-shadow-lg);
  z-index: var(--bcx-z-toast);
  font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.bcx-consent-text { flex: 1 1 280px; }
.bcx-consent-text a { color: var(--gm-blue-light); text-decoration: underline; }
.bcx-consent-actions { display: flex; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE responsive
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-pre-inner { grid-template-columns: repeat(2, 1fr); }
  .header-inner { grid-template-columns: 200px 1fr 280px; gap: 20px; }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; gap: 12px; }
  .header-actions { justify-content: flex-end; }
  .search { order: 3; }
}
@media (max-width: 768px) {
  .topbar { font-size: 11.5px; }
  .topbar-left { gap: 12px; }
  .tb-mobile { display: inline-flex; }
  .tb-desktop { display: none !important; }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 16px;
  }
  .logo img { height: 40px; }
  .bcx-logo-text { font-size: 18px; }
  .search { display: none; }
  .header-actions { gap: 8px; }
  .ha-login, .ha-social { display: none; }

  .pix-strip { padding: 8px 0; }
  .pix-pig { width: 28px; height: 28px; }
  .pix-text { font-size: 12px; }
  .pix-text strong { font-size: 14px; }

  .breadcrumb { padding: 8px 16px; font-size: 11px; }

  .footer-pre { padding: 20px 0; }
  .footer-pre-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-pre-item { gap: 10px; justify-content: flex-start; }
  .footer-pre-item .icon { width: 36px; height: 36px; }

  .footer { padding: 32px 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { padding-top: 16px; }

  .cart-float { display: flex; }

  .bcx-mobile-only { display: block; }
  .bcx-desktop-only { display: none; }
}
@media (max-width: 480px) {
  .footer-pre-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { padding: 0 16px; }
  .pix-strip-inner { padding: 0 16px; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════════ */
@media print {
  .topbar, .pix-strip, .footer-pre, .footer, .cart-float, .bcx-mobile-menu, .bcx-consent-banner { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ═══════════════════════════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
