/* ==========================================================================
   Bertin B2C — Main Stylesheet
   Baseado no design da bertindistribuidora.com.br + estrutura header Kalunga
   ========================================================================== */

/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Marca Bertin — cores extraídas do logo oficial:
     azul #005ca9 (wordmark) + cinza-prata #7c7c7b (símbolo/tagline).
     Verde-esmeralda segue como cor de conversão. */
  --bert-primary:        #005ca9;
  --bert-primary-dark:   #004a8a;
  --bert-primary-light:  #2e7fc6;
  --bert-green:          #0f9d58;
  --bert-green-dark:     #0b7d46;
  --bert-silver:         #c6c7c5;
  --bert-silver-dark:    #7c7c7b;
  --bert-gray-bg:        #f3f5f8;
  --bert-gray-border:    #e2e6ec;
  --bert-gray-text:      #6b7280;
  --bert-text:           #1a2330;
  --bert-white:          #ffffff;
  --bert-topbar-bg:      #004a8a;
  --bert-topbar-height:  38px;
  --bert-header-bg:      #ffffff;
  --bert-header-fg:      #1a2330;
  --bert-header-height:  72px;
  --bert-navbar-bg:      #005ca9;
  --bert-navbar-height:  52px;
  --bert-footer-bg:      #f3f5f8;
  --bert-footer-text:    #4b5563;
  --bert-radius:         10px;
  --bert-radius-sm:      6px;
  --bert-shadow:         0 2px 12px rgba(0,58,107,.08);
  --bert-shadow-lg:      0 8px 32px rgba(0,58,107,.16);
  --bert-transition:     .2s ease;
  --bert-font:           'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bert-max-width:      1320px;
}

/* ─── Largura máxima global (1280px centrado) ────────────────────────────── */
.container-fluid {
  max-width: var(--bert-max-width);
}
.bert-wc-wrapper {
  max-width: var(--bert-max-width) !important;
}

/* ─── Reset / Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bert-font);
  font-size: 14px;
  color: var(--bert-text);
  background: var(--bert-white);
  margin: 0;
  padding: 0;
}

a { color: var(--bert-primary); text-decoration: none; transition: color var(--bert-transition); }
a:hover { color: var(--bert-primary-light); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

/* Inter — tipografia moderna e clean */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Botões globais ─────────────────────────────────────────────────────── */
.bert-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bert-green);
  color: var(--bert-white);
  border: 2px solid var(--bert-green);
  border-radius: var(--bert-radius);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--bert-transition), transform var(--bert-transition);
  text-decoration: none;
}
.bert-btn-primary:hover {
  background: var(--bert-green-dark);
  border-color: var(--bert-green-dark);
  color: var(--bert-white);
  transform: translateY(-1px);
}

.bert-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--bert-primary);
  border: 2px solid var(--bert-primary);
  border-radius: var(--bert-radius);
  padding: 9px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--bert-transition);
  text-decoration: none;
}
.bert-btn-secondary:hover {
  background: var(--bert-primary);
  color: var(--bert-white);
}

/* =====================================================================
   TOP BAR
   ===================================================================== */
.bert-topbar {
  background: var(--bert-topbar-bg);
  height: var(--bert-topbar-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

/* Ticker / marquee */
.bert-topbar__ticker-wrap {
  width: 100%;
  overflow: hidden;
}

/* Ticker em CSS animation (2 grupos duplicados para loop suave) */
.bert-topbar__ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  white-space: nowrap;
  animation: bert-topbar-ticker var(--bert-topbar-duration, 90s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.bert-topbar__ticker-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.bert-topbar:hover .bert-topbar__ticker-track { animation-play-state: paused; }
@keyframes bert-topbar-ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bert-topbar__ticker-track { animation: none; }
}

.bert-topbar__item {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0 22px;
  letter-spacing: .3px;
  transition: color var(--bert-transition);
  line-height: var(--bert-topbar-height);
}
a.bert-topbar__item:hover { color: var(--bert-white); }

.bert-topbar__sep {
  color: rgba(255,255,255,.45);
  font-size: 13px;
  line-height: var(--bert-topbar-height);
  flex-shrink: 0;
}

/* =====================================================================
   HEADER PRINCIPAL (Kalunga-style)
   ===================================================================== */
.bert-header {
  background: var(--bert-header-bg);
  color: var(--bert-header-fg);
  height: var(--bert-header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--bert-gray-border);

  transition: height .2s ease;
}

.bert-header.is-scrolled { height: 58px; }

.bert-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}

/* Botão menu mobile */
.bert-header__menu-btn {
  background: transparent;
  border: none;
  color: var(--bert-header-fg);
  font-size: 26px;
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Logo */
.bert-header__logo {
  flex-shrink: 0;
}

.bert-header__logo a {
  display: flex;
  align-items: center;
}

.bert-header__logo img,
.bert-header__logo .custom-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.bert-header.is-scrolled .bert-header__logo img { height: 38px; }

.bert-logo-text {
  color: var(--bert-header-fg);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Search */
.bert-header__search {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.bert-search-form__inner {
  display: flex;
  align-items: center;
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: 50px;
  overflow: hidden;
  height: 44px;
}
.bert-search-form__inner:focus-within {
  border-color: var(--bert-primary);
}

.bert-search-form__cat {
  border: none;
  outline: none;
  background: var(--bert-gray-bg);
  color: var(--bert-text);
  font-size: 13px;
  padding: 0 10px;
  height: 100%;
  border-right: 1px solid var(--bert-gray-border);
  cursor: pointer;
  flex-shrink: 0;
  max-width: 140px;
}

.bert-search-form__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--bert-font);
  color: var(--bert-text);
  background: transparent;
  min-width: 0;
}

.bert-search-form__btn {
  background: var(--bert-primary);
  border: none;
  color: var(--bert-white);
  width: 50px;
  height: 100%;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-search-form__btn:hover { background: var(--bert-primary-dark); color: var(--bert-white); }

/* Actions */
.bert-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bert-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--bert-header-fg);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--bert-radius-sm);
  text-decoration: none;
  transition: background var(--bert-transition);
  white-space: nowrap;
  font-family: var(--bert-font);
}
.bert-action-btn:hover {
  background: rgba(0,0,0,.06);
  color: var(--bert-primary);
}

.bert-action-btn i { font-size: 22px; }

.bert-action-btn__label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}
.bert-action-btn__label strong { font-size: 14px; font-weight: 700; }
.bert-action-btn__label small { opacity: .8; }

/* Cart count badge */
.bert-action-btn__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bert-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--bert-primary);
  color: var(--bert-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.bert-cart-total {
  color: var(--bert-header-fg);
  font-size: 13px;
}

/* =====================================================================
   BARRA DE NAVEGAÇÃO
   ===================================================================== */
.bert-navbar {
  background: var(--bert-navbar-bg);
  height: var(--bert-navbar-height);
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 900;
  display: none;
  align-items: center;
}

@media (min-width: 1200px) {
  .bert-navbar { display: flex; }
}

.bert-navbar__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  overflow: visible;
}

/* Categorias sempre visíveis — nav horizontal no desktop */
.bert-navbar__categories {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
  flex: 1;
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
  justify-content: space-between;
}

/* Cada item de categoria — static: o mega menu ancora na .bert-navbar */
.bert-navbar__cat-item {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

/* Link base */
.bert-navbar__cat-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 100%;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--bert-transition), background var(--bert-transition), border-color var(--bert-transition);
}
.bert-navbar__cat-link:hover,
.bert-navbar__cat-item:hover .bert-navbar__cat-link,
.bert-navbar__all-link:hover {
  color: var(--bert-white);
  border-bottom-color: var(--bert-silver);
}

/* "Todas as Categorias" — mesmo estilo base, apenas font-weight diferente */
.bert-navbar__all-link {
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.15);
  margin-right: 4px;
}

.bert-navbar__cat-arrow {
  font-size: 10px;
  opacity: .8;
  transition: transform var(--bert-transition);
}
.bert-navbar__cat-item:hover .bert-navbar__cat-arrow { transform: rotate(180deg); opacity: 1; }

/* ── MEGA MENU full-width: subcategorias + galeria marquee ─────────────── */
.bert-megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bert-white);
  border-top: 3px solid var(--bert-silver);
  border-bottom: 1px solid var(--bert-gray-border);
  box-shadow: var(--bert-shadow-lg);
  z-index: 9999;
  padding: 24px 0 22px;
}
.bert-navbar__cat-item.is-open .bert-megamenu,
.bert-navbar__cat-item:focus-within .bert-megamenu { display: block; }

/* Ponte invisível: cobre qualquer micro-gap entre o link e o painel,
   evitando que o :hover caia no trajeto do mouse. */
.bert-megamenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.bert-megamenu__inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Coluna de subcategorias */
.bert-megamenu__cats {
  flex: 0 0 250px;
  min-width: 0;
  border-right: 1px solid var(--bert-gray-border);
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  /* Mesma altura do card da galeria (150 img + nome 2 linhas + preço +
     paddings) — a lista rola por dentro e nunca passa do slider. */
  height: 246px;
}
.bert-megamenu__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--bert-primary);
  text-decoration: none;
  margin-bottom: 10px;
}
.bert-megamenu__title i { font-size: 13px; transition: transform var(--bert-transition); }
.bert-megamenu__title:hover { color: var(--bert-primary-light); }
.bert-megamenu__title:hover i { transform: translateX(3px); }

.bert-megamenu__cat-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 6px 0 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Scrollbar fina e discreta (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--bert-silver) transparent;
}
/* Scrollbar fina e discreta (Chrome/Safari/Edge) */
.bert-megamenu__cat-list::-webkit-scrollbar { width: 6px; }
.bert-megamenu__cat-list::-webkit-scrollbar-track { background: transparent; }
.bert-megamenu__cat-list::-webkit-scrollbar-thumb {
  background: var(--bert-silver);
  border-radius: 999px;
}
.bert-megamenu__cat-list::-webkit-scrollbar-thumb:hover { background: var(--bert-silver-dark); }
.bert-megamenu__cat-list li a {
  display: block;
  padding: 6px 8px;
  color: var(--bert-text);
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--bert-radius-sm);
  transition: background var(--bert-transition), color var(--bert-transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bert-megamenu__cat-list li a:hover {
  background: var(--bert-gray-bg);
  color: var(--bert-primary);
}
.bert-megamenu__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bert-primary);
  text-decoration: none;
  margin-top: auto;
  flex-shrink: 0;
}
.bert-megamenu__all:hover { text-decoration: underline; }

/* Galeria marquee de produtos da categoria pai */
.bert-megamenu__gallery {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.bert-megamenu__track {
  display: flex;
  width: max-content;
  animation: bert-mm-marquee var(--bert-mm-duration, 40s) linear infinite;
}
.bert-megamenu__gallery:hover .bert-megamenu__track { animation-play-state: paused; }
.bert-megamenu__group { display: flex; }

@keyframes bert-mm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bert-megamenu__track { animation: none; }
  .bert-megamenu__gallery { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* Mini-card de produto na galeria */
.bert-megamenu__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 200px;
  flex-shrink: 0;
  margin-right: 18px;
  padding: 14px 12px;
  border-radius: var(--bert-radius);
  text-decoration: none;
  text-align: center;
  transition: transform var(--bert-transition);
}
/* Hover minimalista: só a levantadinha, sem borda nem fundo */
.bert-megamenu__product:hover {
  transform: translateY(-2px);
}
.bert-megamenu__product-img {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bert-megamenu__product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bert-megamenu__product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bert-text);
  line-height: 1.3;
  min-height: 2.6em; /* reserva 2 linhas: cards uniformes = altura previsível */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bert-megamenu__product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--bert-primary);
}
.bert-megamenu__product-price del {
  font-size: 11px;
  font-weight: 500;
  color: var(--bert-gray-text);
  margin-right: 4px;
}
.bert-megamenu__product-price ins { text-decoration: none; }

/* Nav List (menu principal horizontal) */
.bert-navbar__menu { flex: 1; overflow: hidden; height: 100%; }

.bert-nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  overflow: hidden;
}

.bert-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.bert-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  height: 100%;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--bert-transition), border-color var(--bert-transition), background var(--bert-transition);
}
.bert-nav-link:hover,
.bert-nav-item.current-menu-item .bert-nav-link {
  color: var(--bert-white);
  border-bottom-color: var(--bert-silver);
}

/* Dropdown do nav */
.bert-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bert-white);
  min-width: 200px;
  border: 1px solid var(--bert-gray-border);
  border-top: 3px solid var(--bert-silver);
  border-radius: 0 0 var(--bert-radius) var(--bert-radius);
  z-index: 1001;
  padding: 6px 0;
}
.bert-nav-item:hover .bert-nav-dropdown { display: block; }
.bert-nav-dropdown li a {
  display: block;
  padding: 9px 16px;
  color: var(--bert-text);
  font-size: 13px;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-nav-dropdown li a:hover {
  background: var(--bert-gray-bg);
  color: var(--bert-primary);
}

/* =====================================================================
   MENU MOBILE (Offcanvas)
   ===================================================================== */
/* Menu mobile — 85% da tela (fecha tocando fora/backdrop), tema claro,
   logo no topo e conteúdo justificado: navegação cresce e as ações
   ficam ancoradas no rodapé do painel. */
.bert-mobile-menu {
  background: var(--bert-white) !important;
  width: 85vw !important;
  max-width: 400px;
}

.bert-mobile-menu__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bert-gray-border);
  justify-content: center;
}
.bert-mobile-menu__logo .custom-logo-link img {
  height: 40px;
  width: auto;
}
.bert-mobile-menu__logo .site-name-link {
  font-size: 20px; font-weight: 800; color: var(--bert-primary); text-decoration: none;
}

/* Faixa de busca mobile — sempre visível logo abaixo do header */
.bert-mobile-searchbar {
  background: var(--bert-white);
  border-bottom: 1px solid var(--bert-gray-border);
  padding: 10px 0;
}
.bert-mobile-searchbar .bert-search-form__inner { height: 42px; }

.bert-mobile-menu__body {
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
}
/* Navegação ocupa o espaço; ações descem para o rodapé do painel */
.bert-mobile-menu__actions { margin-top: auto; }

.bert-mobile-menu__cats { padding: 0; }

.bert-mobile-menu__cats li .bert-mobile-menu__cat-btn,
.bert-mobile-menu__cats li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bert-gray-border);
  color: var(--bert-text);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--bert-transition), color var(--bert-transition);
  font-family: var(--bert-font);
}
.bert-mobile-menu__cats li .bert-mobile-menu__cat-btn i {
  color: var(--bert-gray-text);
  font-size: 13px;
  transition: transform var(--bert-transition);
}
/* Chevron gira quando a categoria está aberta */
.bert-mobile-menu__cat-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.bert-mobile-menu__cat-btn[aria-expanded="true"] { color: var(--bert-primary); }
.bert-mobile-menu__cats li .bert-mobile-menu__cat-btn:active,
.bert-mobile-menu__cats li > a:active {
  background: var(--bert-gray-bg);
  color: var(--bert-primary);
}

.bert-mobile-menu__sub {
  background: var(--bert-gray-bg);
  padding: 4px 0;
}
.bert-mobile-menu__sub li a {
  display: block;
  padding: 9px 16px 9px 28px;
  color: var(--bert-gray-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.bert-mobile-menu__sub li:first-child a { color: var(--bert-primary); font-weight: 700; }
.bert-mobile-menu__sub li a:active { color: var(--bert-primary); }

.bert-mobile-menu__nav { padding: 0; }
.bert-mobile-menu__nav .menu-item a {
  display: block;
  padding: 11px 16px;
  border-bottom: 1px solid var(--bert-gray-border);
  color: var(--bert-text);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--bert-transition);
}
.bert-mobile-menu__nav .menu-item a:active {
  background: var(--bert-gray-bg);
  color: var(--bert-primary);
}

/* Ações do rodapé do menu: Conta + WhatsApp lado a lado */
.bert-mobile-menu__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 6px;
}
.bert-mobile-menu__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.bert-mobile-menu__action-btn i { font-size: 17px; }
.bert-mobile-menu__action-btn--account {
  border: 2px solid var(--bert-primary);
  color: var(--bert-primary);
  background: transparent;
}
.bert-mobile-menu__action-btn--whatsapp {
  background: var(--bert-primary);
  color: var(--bert-white);
  border: 2px solid var(--bert-primary);
}

/* =====================================================================
   HERO SLIDER
   ===================================================================== */
.bert-slider {
  position: relative;
  overflow: hidden;
}

.bert-slider__carousel { width: 100%; }

/* <picture> estica para preencher o slide */
.bert-slider__picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.bert-slider__link {
  display: block;
  width: 100%;
  line-height: 0;
}

.bert-slider__image {
  /* Arte desktop: 1920×650 — aspect-ratio mantém a proporção exata da
     arte em qualquer largura de tela, sem corte nem barra. */
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 650;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bert-slider__indicators {
  bottom: 16px;
  gap: 6px;
  margin: 0;
}
.bert-slider__indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  text-indent: 0;
  transition: background var(--bert-transition), width .25s ease, border-radius .25s ease;
}
.bert-slider__indicators .active {
  background: var(--bert-white);
  width: 20px;
  border-radius: 4px;
  transform: none;
}

.bert-slider__caption {
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  text-align: left;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
}

.bert-slider__title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
  margin-bottom: 8px;
}

.bert-slider__subtitle {
  font-size: clamp(14px, 2vw, 18px);
  opacity: .9;
  margin-bottom: 16px;
}

.bert-slider__btn {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
}

.bert-slider__prev,
.bert-slider__next {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.35);
  border-radius: 50%;
  transition: background var(--bert-transition);
  top: 50%;
  transform: translateY(-50%);
}
.bert-slider__prev:hover,
.bert-slider__next:hover { background: rgba(0,0,0,.6); }
.bert-slider__prev { left: 16px; }
.bert-slider__next { right: 16px; }

/* =====================================================================
   PITCH BAR
   ===================================================================== */
.bert-pitchbar {
  background: transparent;
  padding: 28px 0;
  border-bottom: 1px solid var(--bert-gray-border);
}

.bert-pitchbar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Item horizontal: ícone na lateral, texto à esquerda — ambos
   alinhados pelo TOPO (ícone acompanha a linha do título) */
.bert-pitchbar__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  padding: 6px 10px;
}

.bert-pitchbar__icon {
  font-size: 26px;
  color: var(--bert-primary);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px; /* alinha opticamente com a 1ª linha do título */
}

.bert-pitchbar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.bert-pitchbar__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bert-text);
  letter-spacing: .01em;
}

.bert-pitchbar__desc {
  display: block;
  font-size: .82rem;
  color: var(--bert-gray-text);
  line-height: 1.45;
  max-width: 28ch;
}

/* Mobile: marquee em loop infinito — itens em cards compactos */
.bert-pitchbar__marquee { padding: 4px 0; }
.bert-pitchbar__marquee .bert-marquee__group { gap: 12px; padding-right: 12px; }
.bert-pitchbar__marquee .bert-pitchbar__item {
  width: 250px;
  flex-shrink: 0;
}
.bert-pitchbar__marquee .bert-pitchbar__desc { max-width: none; }
@media (max-width: 767px) {
  .bert-pitchbar { padding: 12px 0; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.bert-footer {
  background: var(--bert-footer-bg);
  color: var(--bert-footer-text);
}

/* Footer Main */
.bert-footer__main {
  padding: 48px 0 36px;
}

.bert-footer__grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 240px;
  gap: 40px;
  align-items: start;
}

/* Coluna brand */
.bert-footer__col--brand {}

.bert-footer__logo {
  margin-bottom: 20px;
}
.bert-footer__logo img,
.bert-footer__logo .custom-logo {
  height: 48px;
  width: auto;
}
.bert-footer__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--bert-primary);
}

.bert-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bert-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  color: var(--bert-footer-text);
  font-size: 16px;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.bert-footer__social-link:hover {
  background: var(--bert-primary);
  color: var(--bert-white);
}

/* Footer title */
.bert-footer__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bert-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bert-gray-border);
}

/* Categorias col */
.bert-footer__cat-list {}

.bert-footer__cat-item {
  border-bottom: 1px solid var(--bert-gray-border);
}

.bert-footer__cat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  font-family: var(--bert-font);
  gap: 8px;
}
.bert-footer__cat-toggle a {
  color: var(--bert-footer-text);
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  text-align: left;
  transition: color var(--bert-transition);
}
.bert-footer__cat-toggle:hover a { color: var(--bert-primary); }
.bert-footer__cat-toggle i {
  font-size: 12px;
  color: var(--bert-gray-text);
  transition: transform var(--bert-transition);
  flex-shrink: 0;
}
.bert-footer__cat-toggle[aria-expanded="true"] i { transform: rotate(45deg); }

.bert-footer__cat-sub {
  padding: 4px 0 8px 12px;
}
.bert-footer__cat-sub li a {
  display: block;
  padding: 4px 0;
  color: var(--bert-gray-text);
  font-size: 12px;
  transition: color var(--bert-transition);
}
.bert-footer__cat-sub li a:hover { color: var(--bert-primary); }

/* Institucional col */
.bert-footer__inst-list li {
  margin-bottom: 6px;
}
.bert-footer__inst-list li a {
  color: var(--bert-footer-text);
  font-size: 13px;
  transition: color var(--bert-transition);
}
.bert-footer__inst-list li a:hover { color: var(--bert-primary); }

/* Contact col */
.bert-footer__contact-list { margin-bottom: 16px; }

.bert-footer__contact-list li {
  margin-bottom: 10px;
}

.bert-footer__contact-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--bert-footer-text);
  font-size: 13px;
  transition: color var(--bert-transition);
}
.bert-footer__contact-link i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.bert-footer__contact-link:hover { color: var(--bert-primary); }

.bert-footer__contact-link--text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--bert-footer-text);
  font-size: 13px;
}
.bert-footer__contact-link--text i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.bert-footer__hours-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--bert-text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.bert-footer__hours-text {
  font-size: 12px;
  color: var(--bert-gray-text);
  line-height: 1.5;
  margin: 0;
}

/* Footer Payments Bar */
.bert-footer__payments-bar {
  background: var(--bert-white);
  padding: 24px 0;
  border-top: 1px solid var(--bert-gray-border);
  border-bottom: 1px solid var(--bert-gray-border);
}

.bert-footer__payments-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.bert-footer__payments,
.bert-footer__seals {
  flex: 1;
  min-width: 200px;
}

.bert-footer__payments-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bert-text);
  margin-bottom: 12px;
}

.bert-footer__payment-icons,
.bert-footer__seal-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bert-payment-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  flex: 0 0 auto;
}
.bert-payment-icon svg {
  display: block;
  width: 100%; height: 100%;
}
/* Quando usuário sobe imagem custom no Customizer (img direto sem wrapper) */
img.bert-payment-icon {
  width: auto; height: 28px;
  border: 1px solid var(--bert-gray-border);
  padding: 2px 4px;
  background: #fff;
}

.bert-payment-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bert-gray-bg);
  border: 1px solid var(--bert-gray-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bert-text);
}

.bert-seal-icon {
  height: 40px;
  width: auto;
}

/* Footer Copyright */
/* Blocos de contato (Atendimento do site / Loja / Distribuidora) */
.bert-footer__contact-block { margin-bottom: 16px; }
.bert-footer__contact-block:last-child { margin-bottom: 0; }
.bert-footer__contact-block-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bert-primary);
  margin: 0 0 6px;
}
.bert-footer__contact-block .bert-footer__contact-list { margin-bottom: 0; }

/* Nota de parcela mínima sob as formas de pagamento */
.bert-footer__payments-note {
  font-size: 11px;
  color: var(--bert-gray-text);
  margin: 8px 0 0;
}

/* Aviso de consumo responsável (faixa de destaque) */
.bert-footer__responsible {
  background: var(--bert-primary-dark);
  color: var(--bert-white);
  padding: 12px 0;
}
.bert-footer__responsible-text {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bert-footer__responsible-text i { color: var(--bert-silver); }

.bert-footer__copyright {
  background: var(--bert-footer-bg);
  padding: 28px 0 32px;
  text-align: center;
}
.bert-footer__copy--cnpj { margin-top: 14px; }
.bert-footer__rights {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bert-gray-border);
}
.bert-footer__copy--rights {
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0;
}
.bert-footer__copy--credit { margin: 0; }
.bert-footer__copy--credit a {
  color: var(--bert-primary);
  font-weight: 700;
  text-decoration: none;
}
.bert-footer__copy--credit a:hover { text-decoration: underline; }
.bert-footer__heart { color: var(--bert-primary); }

.bert-footer__legal {
  font-size: 11px;
  color: var(--bert-gray-text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.bert-footer__disclaimer {
  font-size: 11px;
  color: var(--bert-gray-text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.bert-footer__copy {
  font-size: 12px;
  color: var(--bert-gray-text);
  margin: 0;
}

/* =====================================================================
   SIDECART (Offcanvas)
   ===================================================================== */
/* ══════════════════════════════════════════════════════════════════════════
   SIDECART — casca .cart-drawer (padrão compatível com o Digitalmart Hub)
   ──────────────────────────────────────────────────────────────────────────
   Estilo standalone do tema (usado quando o hub NÃO substitui o mini-cart).
   Quando o hub está ativo, o sidecart.css dele carrega depois e assume as
   cores/rodapé — nossa casca só garante o slide-in, o blur e um visual
   coerente caso o hub esteja desligado.
   ══════════════════════════════════════════════════════════════════════════ */
body.cart-drawer-open { overflow: hidden; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1090;
  pointer-events: none;
}
.cart-drawer.is-open { pointer-events: auto; }

/* Backdrop com blur sutil da marca (azul profundo) */
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 54, .45);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }

/* Painel deslizante */
.cart-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 85vw);
  background: var(--bert-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -6px 0 28px rgba(10, 31, 54, .18);
  will-change: transform;
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .cart-drawer__panel,
  .cart-drawer__backdrop { transition: none; }
}

/* Header — branco com título azul (seguro em qualquer modo) */
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bert-gray-border);
  flex-shrink: 0;
}
.cart-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--bert-primary);
}
.cart-drawer__title i { font-size: 20px; color: var(--bert-primary); }

.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--bert-green);
  color: var(--bert-white);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.cart-drawer__count:empty { display: none; }

.cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border: 0;
  background: var(--bert-gray-bg);
  border-radius: 50%;
  color: var(--bert-text);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.cart-drawer__close:hover { background: var(--bert-gray-border); color: var(--bert-primary); }

/* Rodapé */
.cart-drawer__foot {
  flex-shrink: 0;
  padding: 18px 20px;
  border-top: 1px solid var(--bert-gray-border);
  background: var(--bert-white);
}
.cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--bert-text);
}
.cart-drawer__subtotal-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--bert-primary);
}
.cart-drawer__actions {
  display: flex;
  gap: 10px;
}
.cart-drawer__continue {
  flex: 1;
  padding: 13px 12px;
  background: transparent;
  color: var(--bert-text);
  border: 2px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm);
  font-family: var(--bert-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--bert-transition), color var(--bert-transition);
}
.cart-drawer__continue:hover { border-color: var(--bert-primary); color: var(--bert-primary); }
.cart-drawer__checkout {
  flex: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 12px;
  background: var(--bert-primary);
  color: var(--bert-white);
  border-radius: var(--bert-radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--bert-transition);
}
.cart-drawer__checkout:hover { background: var(--bert-primary-dark); color: var(--bert-white); }
@media (max-width: 420px) {
  .cart-drawer__actions { flex-direction: column; }
}

.bert-sidecart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.bert-sidecart__empty {
  text-align: center;
  color: var(--bert-gray-text);
  padding: 40px 20px;
  font-size: 14px;
}
.bert-sidecart__empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: .4;
}

/* ── Mini-cart items ─────────────────────────────────────────────────── */
.bert-sidecart__body .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bert-sidecart__body .woocommerce-mini-cart-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bert-gray-border);
}
.bert-sidecart__body .woocommerce-mini-cart-item:last-child {
  border-bottom: none;
}

/* Thumbnail */
.bert-sidecart__body .woocommerce-mini-cart-item > a img,
.bert-sidecart__body .woocommerce-mini-cart-item > img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: var(--bert-radius-sm);
  border: 1px solid var(--bert-gray-border);
  flex-shrink: 0;
  background: #fafafa;
  padding: 4px;
}

/* Info: nome + quantidade */
.bert-minicart-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px; /* espaço para o botão remover */
}
.bert-minicart-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bert-text);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color var(--bert-transition);
}
.bert-minicart-item__name:hover { color: var(--bert-primary); }

/* Variação em small abaixo do nome (ex: "Cor: CEU-ESTRELADO") */
.bert-minicart-item__variation {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--bert-gray-text, #666);
  margin-top: 2px;
  line-height: 1.3;
}

/* Linha qty + preço no sidecart */
.bert-minicart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bert-minicart-item__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--bert-primary);
}
/* Sobrescreve tamanho do qty-wrap dentro do sidecart */
.bert-sidecart-qty-wrap.bert-product-card__qty-wrap {
  height: 28px;
  gap: 0;
}
.bert-sidecart-qty-wrap .bert-qty-btn {
  width: 26px;
  height: 28px;
  font-size: 14px;
}
.bert-sidecart-qty-wrap .bert-qty-input {
  width: 34px;
  height: 28px;
  font-size: 13px;
}
/* Loading state durante AJAX */
.bert-qty-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Botão remover — canto superior direito do item */
.bert-sidecart__body .remove_from_cart_button {
  position: absolute;
  top: 14px;
  right: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #888;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-sidecart__body .remove_from_cart_button:hover {
  background: #dc3545;
  color: #fff;
}

/* Sidecart Footer */
.bert-sidecart__footer {
  flex-shrink: 0;
  padding: 16px 20px;
  background: var(--bert-white);
  border-top: 1px solid var(--bert-gray-border);

}

.bert-sidecart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.bert-sidecart__subtotal strong { font-size: 18px; font-weight: 700; color: var(--bert-primary); }

/* Frete grátis bar */
.bert-sidecart__free-shipping { margin-bottom: 12px; }
.bert-sidecart__free-shipping-text { font-size: 12px; color: var(--bert-gray-text); margin-bottom: 4px; }
.bert-sidecart__free-shipping-text del { color: var(--bert-gray-text); }

.bert-progress-bar { background: var(--bert-green); }

.bert-sidecart__free-shipping--earned p {
  font-size: 13px;
  color: var(--bert-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}

/* Botões do sidecart */
.bert-sidecart__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.bert-sidecart__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--bert-radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: all var(--bert-transition);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--bert-font);
}

.bert-sidecart__btn--cart {
  background: transparent;
  border: 2px solid var(--bert-primary);
  color: var(--bert-primary);
}
.bert-sidecart__btn--cart:hover {
  background: var(--bert-primary);
  color: var(--bert-white);
}

.bert-sidecart__btn--checkout {
  background: var(--bert-green);
  border: 2px solid var(--bert-green);
  color: var(--bert-white);
}
.bert-sidecart__btn--checkout:hover {
  background: var(--bert-green-dark);
  border-color: var(--bert-green-dark);
  color: var(--bert-white);
}

.bert-sidecart__payments {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.bert-sidecart__payments span {
  font-size: 10px;
  background: var(--bert-gray-bg);
  border: 1px solid var(--bert-gray-border);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--bert-gray-text);
  font-weight: 600;
}

/* =====================================================================
   WOOCOMMERCE OVERRIDES
   ===================================================================== */
.bert-wc-wrapper { padding: 24px 0; }

/* Badges de produto */
.bert-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.bert-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.bert-badge--sale     { background: #e53935; color: #fff; }
.bert-badge--new      { background: var(--bert-primary); color: #fff; }
.bert-badge--featured { background: #f59e0b; color: #fff; }

/* Botão add to cart WC */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  background: var(--bert-green);
  color: var(--bert-white);
  border: none;
  border-radius: var(--bert-radius);
  font-family: var(--bert-font);
  font-weight: 700;
  transition: background var(--bert-transition);
  width: 100%;
  padding: 10px 16px;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
  background: var(--bert-green-dark);
}

/* Preços */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
  color: var(--bert-primary);
  font-weight: 700;
  font-size: 16px;
}
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
  font-size: 13px;
  color: var(--bert-gray-text);
  font-weight: 400;
}
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
  text-decoration: none;
}

/* =====================================================================
   PÁGINA DE CONTEÚDO
   ===================================================================== */
.bert-page-content { min-height: 60vh; }

/* =====================================================================
   404
   ===================================================================== */
.bert-404__icon {
  font-size: 64px;
  color: var(--bert-gray-border);
  display: block;
  margin-bottom: 16px;
}
.bert-404__code {
  font-size: 96px;
  font-weight: 900;
  color: var(--bert-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.bert-404__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bert-404__desc {
  color: var(--bert-gray-text);
  margin-bottom: 24px;
}
.bert-404__search { max-width: 400px; margin: 0 auto; }

/* =====================================================================
   POST CARDS
   ===================================================================== */
.bert-post-card {
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
}
.bert-post-card:hover {}
.bert-post-card__thumb img { width: 100%; height: 180px; object-fit: cover; }
.bert-post-card__body { padding: 16px; }
.bert-post-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.bert-post-card__title a { color: var(--bert-text); }
.bert-post-card__title a:hover { color: var(--bert-primary); }
.bert-post-card__excerpt { font-size: 13px; color: var(--bert-gray-text); margin-bottom: 12px; }

/* Pagination */
.bert-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm);
  color: var(--bert-text);
  margin: 0 2px;
  font-size: 13px;
  transition: all var(--bert-transition);
}
.bert-pagination .page-numbers:hover,
.bert-pagination .page-numbers.current {
  background: var(--bert-primary);
  border-color: var(--bert-primary);
  color: var(--bert-white);
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */

/* Tablet ≥ 1200px → Notebook */
@media (max-width: 1400px) {
  .bert-footer__grid { grid-template-columns: 180px 1fr 1fr 200px; gap: 28px; }
}

/* Tablet */
@media (max-width: 1199px) {
  .bert-pitchbar__grid { grid-template-columns: repeat(3, 1fr); }
  .bert-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bert-slider__caption { padding: 24px 32px; }

  /* Oculta nav horizontal em tablet */
  .bert-navbar__menu { display: none; }
  .bert-navbar__categories { display: none !important; }
}

/* Mobile grande */
@media (max-width: 767px) {
  :root {
    --bert-header-height: 62px;
  }

  .bert-topbar { height: var(--bert-topbar-height); }

  .bert-pitchbar__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bert-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .bert-footer__payments-inner { flex-direction: column; gap: 24px; align-items: center; }
  .bert-footer__payments, .bert-footer__seals { min-width: unset; text-align: center; }
  .bert-footer__payment-icons, .bert-footer__seal-icons { justify-content: center; }
  .bert-footer__logo { display: flex; justify-content: center; }
  .bert-footer__social { justify-content: center; }

  /* Arte mobile: 700×800 (retrato) */
  .bert-slider__image { aspect-ratio: 700 / 800; }
  .bert-slider__caption { padding: 16px 20px; }
  .bert-slider__title { font-size: 20px; }

  /* Busca do header fica espremida no mobile — usa-se a faixa fixa
     .bert-mobile-searchbar logo abaixo do header */
  .bert-header__search { display: none; }
}

/* Mobile pequeno */
@media (max-width: 479px) {
  .bert-pitchbar__grid { grid-template-columns: 1fr; }
  .bert-header__actions .bert-header__action--wishlist { display: none; }
}

/* =====================================================================
   STICKY HEADER SHADOW
   ===================================================================== */
.bert-header.is-scrolled {

}

/* =====================================================================
   SKIP LINK acessibilidade
   ===================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--bert-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  z-index: 99999;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   PRODUCT CARD — Estrutura Kalunga
   ========================================================================== */

/* ── Section Header ─────────────────────────────────────────────────────── */
.bert-product-grid-section {
  padding: 48px 0 56px;
  background: var(--bert-white);
}
.bert-product-grid-section + .bert-product-grid-section {
  padding-top: 24px;
}

.bert-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.bert-section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--bert-text);
  margin: 0;
  white-space: nowrap;
}

.bert-section-title__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--bert-gray-border), transparent);
  min-width: 24px;
}

.bert-section-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bert-primary);
  white-space: nowrap;
  transition: gap var(--bert-transition);
}
.bert-section-see-all:hover { gap: 9px; color: var(--bert-primary-light); }

/* ── Grid Container ─────────────────────────────────────────────────────── */
.bert-product-grid {
  display: grid;
  gap: 16px;
}

.bert-product-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.bert-product-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.bert-product-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.bert-product-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ── Card Base ──────────────────────────────────────────────────────────── */
.bert-product-card {
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: clip;
  transition: border-color var(--bert-transition);
  cursor: pointer;
}
.bert-product-card:hover {
  border-color: #c8c8c8;
}
.bert-product-card--outofstock { opacity: .65; }

/* ── Imagem ─────────────────────────────────────────────────────────────── */
.bert-product-card__image-wrap {
  position: relative;
  background: var(--bert-white);
  overflow: hidden;
  border-radius: var(--bert-radius) var(--bert-radius) 0 0;
  aspect-ratio: 1 / 1;
}


.bert-product-card__image-link {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bert-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px; /* mantém respiro igual ao do wrap original */
}

/* Imagens deslizam juntas (só ativa quando há imagem da galeria) */
.has-hover-img .bert-product-card__image--main,
.has-hover-img .bert-product-card__image--hover {
  transition: transform .42s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.bert-product-card__image--main  { z-index: 2; }
.has-hover-img .bert-product-card__image--main  { transform: translate3d(0, 0, 0); }
.has-hover-img .bert-product-card__image--hover { z-index: 1; transform: translate3d(105%, 0, 0); }

/* Hover: main sai pela esquerda, hover entra pela direita ao mesmo tempo */
.has-hover-img:hover .bert-product-card__image--main  { transform: translate3d(-105%, 0, 0); }
.has-hover-img:hover .bert-product-card__image--hover { transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .has-hover-img .bert-product-card__image--main,
  .has-hover-img .bert-product-card__image--hover { transition: opacity .2s ease; transform: none; }
  .has-hover-img .bert-product-card__image--hover { opacity: 0; }
  .has-hover-img:hover .bert-product-card__image--main  { opacity: 0; }
  .has-hover-img:hover .bert-product-card__image--hover { opacity: 1; }
}

/* ── Badges — canto superior direito da imagem ──────────────────────────── */
.bert-product-card__badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  z-index: 5;
}

.bert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1.5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bert-badge i { font-size: 10px; }

.bert-badge--discount { background: rgba(229,57,53,.82); color: #fff; }
.bert-badge--preorder {
  background: #f59e0b; color: #fff; gap: 4px;
  display: inline-flex; align-items: center;
}
.bert-badge--preorder i { font-size: .85em; }
.bert-badge--oferta   { background: rgba(229,57,53,.78); color: #fff; }
.bert-badge--frete    { background: rgba(92,60,200,.80); color: #fff; }
.bert-badge--destaque { background: rgba(245,158,11,.85); color: #fff; }
.bert-badge--novo     { background: rgba(0,92,169,.80); color: #fff; }

/* ── Corpo do card ──────────────────────────────────────────────────────── */
.bert-product-card__body {
  padding: 12px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Nome */
.bert-product-card__name-link {
  text-decoration: none;
  display: block;
}
.bert-product-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bert-text);
  margin: 0;
  line-height: 1.4;
  /* Trunca em 2 linhas — igual Kalunga */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(13px * 1.4 * 2); /* reserva espaço para 2 linhas */
  transition: color var(--bert-transition);
}
.bert-product-card__name-link:hover .bert-product-card__name {
  color: var(--bert-primary);
}

/* Preços */
.bert-product-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bert-product-card__price-old {
  font-size: 11.5px;
  color: #999;
}
.bert-product-card__price-old del {
  text-decoration: line-through;
  color: #999;
}

/* Pix em destaque (acima do preço cheio) */
.bert-product-card__price-pix {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  line-height: 1.1;
}
.bert-product-card__price-pix strong {
  font-size: 20px; font-weight: 800; color: var(--bert-primary);
}
.bert-product-card__price-pix .woocommerce-Price-amount,
.bert-product-card__price-pix bdi {
  font-size: inherit; font-weight: inherit; color: inherit;
}
.bert-product-card__price-pix .woocommerce-Price-currencySymbol {
  font-size: 13px; font-weight: 700;
}
.bert-product-card__price-pix span {
  font-size: 11px; font-weight: 600; color: var(--bert-gray-text);
  text-transform: none;
}

.bert-product-card__price-row {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bert-gray-text);
  margin-top: 2px;
  word-spacing: .03em;
}

.bert-product-card__price-or {
  font-size: inherit; color: inherit; font-weight: 500;
}

.bert-product-card__price-current {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  color: var(--bert-text);
  line-height: inherit;
  font-family: var(--bert-font);
  white-space: nowrap;
}
.bert-product-card__price-current .woocommerce-Price-amount,
.bert-product-card__price-current bdi {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
/* Sobrescreve estilo padrão do WooCommerce */
.bert-product-card__price-current .woocommerce-Price-amount,
.bert-product-card__price-current bdi {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.bert-product-card__price-current .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
}

.bert-product-card__price-label {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  align-self: center;
  margin-bottom: 1px;
}

.bert-product-card__price-vista {
  font-size: 11.5px;
  color: var(--bert-primary);
  font-weight: 600;
  margin-bottom: 1px;
}

.bert-product-card__installments {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.bert-product-card__sem-juros {
  font-size: 12px;
  color: #555;
}
.bert-product-card__installments--unavailable {
  font-size: 12px;
  color: #555;
}

.bert-product-card__out-of-stock {
  font-size: 12px;
  color: #999;
  font-style: italic;
}
.bert-product-card__consult {
  font-size: 13px;
  color: var(--bert-primary);
  font-weight: 600;
}

/* Aviso de estoque insuficiente no card */
.bert-stock-error {
  font-size: 11px;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 6px;
  text-align: center;
}
.bert-sidecart-stock-error {
  margin: 4px 0 0;
  text-align: left;
}
.bert-sp-stock-notice {
  font-size: 13px;
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 12px;
}

/* ── Footer do card: Quantidade + Botão "Comprar" ───────────────────────── */
.bert-product-card__footer {
  padding: 0 14px 14px;
  margin-top: auto;
}

/* ── Atalhos de quantidade rápida B2B ───────────────────────────────────── */
.bert-quick-qty {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bert-quick-qty__label {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  flex-shrink: 0;
}
.bert-quick-qty__btn {
  padding: 2px 10px;
  border: 1px solid var(--bert-gray-border);
  border-radius: 50px;
  background: transparent;
  color: var(--bert-text);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--bert-font);
  cursor: pointer;
  transition: border-color var(--bert-transition), background var(--bert-transition), color var(--bert-transition);
  line-height: 1.6;
}
.bert-quick-qty__btn:hover,
.bert-quick-qty__btn.is-active {
  border-color: var(--bert-primary);
  background: var(--bert-primary);
  color: #fff;
}

/* Variante na página do produto */
.bert-quick-qty--sp {
  margin-bottom: 14px;
}
.bert-quick-qty--sp .bert-quick-qty__label {
  font-size: 13px;
  color: #555;
}
.bert-quick-qty--sp .bert-quick-qty__btn {
  padding: 4px 16px;
  font-size: 13px;
}

/* Row: qty + buy-btn lado a lado */
.bert-product-card__buy-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

/* Seletor de quantidade */
.bert-product-card__qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
  flex-shrink: 0;
}
.bert-qty-btn {
  background: #f5f5f5;
  border: none;
  width: 26px;
  height: 100%;
  font-size: 16px;
  font-weight: 700;
  color: var(--bert-text);
  cursor: pointer;
  line-height: 1;
  transition: background var(--bert-transition);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bert-qty-btn:hover { background: #e8e8e8; }
.bert-qty-input {
  width: 56px;
  height: 100%;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--bert-text);
  font-family: var(--bert-font);
  background: var(--bert-white);
  padding: 6px 4px;
  -moz-appearance: textfield;
  outline: 0;
}
.bert-qty-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--bert-primary);
}
.bert-qty-input::-webkit-outer-spin-button,
.bert-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bert-product-card__buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  background: var(--bert-primary);
  color: var(--bert-white);
  border: none;
  border-radius: var(--bert-radius);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--bert-font);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--bert-transition), transform var(--bert-transition);
  line-height: 1.2;
  white-space: nowrap;
}
.bert-product-card__buy-btn:hover {
  background: var(--bert-primary-dark);
  color: var(--bert-white);
  transform: translateY(-1px);
}
.bert-product-card__buy-btn--link {
  background: transparent;
  border: 2px solid var(--bert-primary);
  color: var(--bert-primary);
}
.bert-product-card__buy-btn--link:hover {
  background: var(--bert-primary);
  color: var(--bert-white);
}

/* Estado "adicionando" via JS */
.bert-product-card__buy-btn.bert-loading {
  opacity: .7;
  pointer-events: none;
}
.bert-product-card__buy-btn.bert-added {
  background: var(--bert-primary-dark);
}

/* ── Responsividade do grid ─────────────────────────────────────────────── */
@media (max-width: 1399px) {
  .bert-product-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .bert-product-grid--cols-5 { grid-template-columns: repeat(4, 1fr); }
  .bert-product-grid--cols-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1199px) {
  .bert-product-grid--cols-4,
  .bert-product-grid--cols-5,
  .bert-product-grid--cols-6 { grid-template-columns: repeat(3, 1fr); }
  .bert-product-card__price-current { font-size: 17px; }
}
@media (max-width: 767px) {
  .bert-product-grid--cols-3,
  .bert-product-grid--cols-4,
  .bert-product-grid--cols-5,
  .bert-product-grid--cols-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bert-product-card__image-wrap .bert-product-card__image { padding: 10px; }
  .bert-product-card__body { padding: 10px 10px 6px; }
  .bert-product-card__footer { padding: 0 10px 10px; }
  .bert-product-card__price-current { font-size: 16px; }
  .bert-product-card__name { font-size: 12px; }
}
@media (max-width: 399px) {
  .bert-product-grid--cols-2,
  .bert-product-grid--cols-3,
  .bert-product-grid--cols-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SWIPE SCROLL — Mobile (touch) + Desktop (drag)
   ========================================================================== */

/* ── Wrapper externo ────────────────────────────────────────────────────── */
.bert-swipe-wrapper {
  position: relative;
  /* Gradiente fade direita — hint visual "tem mais" */
  --swipe-fade-color: #fff; /* muda via inline style ou variante */
}

/* Fade right edge (esconde quando chegou ao fim via .is-end) */
.bert-swipe-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 20px; /* não cobre os dots */
  width: 56px;
  background: linear-gradient(to right, transparent, var(--swipe-fade-color, #fff));
  pointer-events: none;
  z-index: 20;
  transition: opacity .25s ease;
  border-radius: 0 var(--bert-radius) var(--bert-radius) 0;
}
.bert-swipe-wrapper.is-end::after   { opacity: 0; }
.bert-swipe-wrapper.is-start::after { opacity: 1; }

/* Fade left edge (aparece quando não está no início) */
.bert-swipe-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 20px;
  width: 36px;
  background: linear-gradient(to left, transparent, var(--swipe-fade-color, #fff));
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity .25s ease;
}
.bert-swipe-wrapper.is-scrolled::before { opacity: 1; }

/* Variante sem os fades brancos nas laterais — banners de imagem não
   devem ganhar degradê por cima da arte. */
.bert-swipe-wrapper--no-fade::before,
.bert-swipe-wrapper--no-fade::after { display: none; }

/* ── Track (o elemento scrollável) ─────────────────────────────────────── */
.bert-swipe-track {
  /* Só ativa scroll horizontal em mobile — desktop mantém comportamento normal */
  -webkit-overflow-scrolling: touch;
}

/* ── Dots indicadores ───────────────────────────────────────────────────── */
.bert-swipe-dots {
  display: none; /* mostrado só em mobile via JS */
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 2px;
}

.bert-swipe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bert-gray-border);
  transition: background .2s ease, transform .2s ease, width .25s ease;
  flex-shrink: 0;
  cursor: pointer;
}
.bert-swipe-dot.is-active {
  background: var(--bert-primary);
  width: 20px;
  border-radius: 4px;
  transform: none;
}

/* ── Cursor drag no desktop ─────────────────────────────────────────────── */
.bert-swipe-track.is-dragging {
  cursor: grabbing !important;
  user-select: none;
}
.bert-swipe-track:not(.is-dragging) { cursor: default; }

/* ── MOBILE: overrides de layout ────────────────────────────────────────── */
@media (max-width: 991px) {

  /* Pitchbar → scroll horizontal */
  .bert-pitchbar .bert-swipe-wrapper {
    --swipe-fade-color: #f0f0f0; /* mesma cor do bg do pitchbar */
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .bert-pitchbar__grid.bert-swipe-track {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    padding: 4px 16px 4px 2px; /* padding direito extra para o gradient */
  }
  .bert-pitchbar__grid.bert-swipe-track::-webkit-scrollbar { display: none; }

  .bert-pitchbar__item.bert-swipe-item {
    scroll-snap-align: start;
    flex: 0 0 72%;  /* mostra ~1.3 itens → hint de mais conteúdo */
    min-width: 220px;
    max-width: 320px;
  }

  /* Produto grid → scroll horizontal */
  .bert-product-grid.bert-swipe-track {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    padding: 4px 24px 12px 2px; /* padding direito extra para o gradient */
    /* Cancela o grid css que definiria template-columns */
    grid-template-columns: unset !important;
  }
  .bert-product-grid.bert-swipe-track::-webkit-scrollbar { display: none; }

  /* Cada item do swipe (wrapper do card) */
  .bert-product-grid.bert-swipe-track > .bert-swipe-item {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 6px); /* tablet: 2 cards visíveis */
    min-width: 200px;
    max-width: 280px;
  }

  /* O card em si preenche o item */
  .bert-swipe-item .bert-product-card { height: 100%; }

  /* Dots visíveis */
  .bert-swipe-dots { display: flex; }
}

@media (max-width: 767px) {
  /* Mobile: 1.3 cards visíveis para dar hint */
  .bert-product-grid.bert-swipe-track > .bert-swipe-item {
    flex: 0 0 78%;
    min-width: 180px;
    max-width: 260px;
  }

  /* Pitchbar: 1.2 itens visíveis */
  .bert-pitchbar__item.bert-swipe-item {
    flex: 0 0 82%;
    min-width: 200px;
  }
}

@media (max-width: 479px) {
  .bert-product-grid.bert-swipe-track > .bert-swipe-item {
    flex: 0 0 85%;
    min-width: 160px;
  }
}

/* ── Swipe Hint Animation (primeira visita) ─────────────────────────────── */
@keyframes bert-swipe-hint {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-28px); }
  45%  { transform: translateX(-14px); }
  65%  { transform: translateX(-28px); }
  100% { transform: translateX(0); }
}

.bert-swipe-track.do-hint {
  animation: bert-swipe-hint .9s ease .4s 1 both;
}

/* ── Label "deslize" (aparece na primeira visita) ───────────────────────── */
.bert-swipe-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--bert-gray-text);
  justify-content: flex-end;
  padding-right: 4px;
  margin-bottom: 6px;
  opacity: 0;
  transition: opacity .3s ease;
}
.bert-swipe-label.is-visible { opacity: 1; }
.bert-swipe-label i { font-size: 14px; }

/* ── Esconde label e dots no desktop ────────────────────────────────────── */
@media (min-width: 992px) {
  .bert-swipe-wrapper::before,
  .bert-swipe-wrapper::after { display: none; }
  .bert-swipe-dots    { display: none !important; }
  .bert-swipe-label   { display: none; }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE — B2B Moderno
   ========================================================================== */

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.bert-sp-breadcrumb {
  padding: 16px 0 12px;
}
.bert-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 12px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.bert-breadcrumb__item { display: flex; align-items: center; gap: 4px; color: var(--bert-gray-text); }
.bert-breadcrumb__item a { color: var(--bert-gray-text); transition: color var(--bert-transition); }
.bert-breadcrumb__item a:hover { color: var(--bert-primary); }
.bert-breadcrumb__item:last-child { color: var(--bert-text); font-weight: 500; }
.bert-breadcrumb__item i { font-size: 10px; color: var(--bert-gray-border); }

/* ── Layout geral ───────────────────────────────────────────────────────── */
.bert-single-product { padding: 0 0 48px; }

.bert-sp-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

/* ══════════════════════════════════════════
   GALERIA
   ══════════════════════════════════════════ */
.bert-sp-gallery {
  position: sticky;
  top: calc(var(--bert-header-height) + var(--bert-navbar-height) + 16px);
  align-self: start;
}

/* Imagem principal */
.bert-sp-gallery__main {
  position: relative;
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.bert-sp-gallery__zoom-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.bert-sp-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease, opacity .2s ease;
}
.bert-sp-gallery__main-img:hover { transform: scale(1.04); }

/* Transição ao trocar imagem */
.bert-img-fade { opacity: 0; transform: scale(.97); }

.bert-sp-gallery__discount,
.bert-sp-gallery__unavailable {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.2;
}
.bert-sp-gallery__discount   { background: #e53935; color: #fff; }
.bert-sp-gallery__unavailable{ background: #888; color: #fff; }
.bert-sp-gallery__preorder {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  display: inline-flex; align-items: center; gap: 6px;
  background: #f59e0b; color: #fff;
  padding: 6px 12px; border-radius: var(--bert-radius-sm, 6px);
  font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
}
.bert-sp-gallery__preorder i { font-size: .9rem; }

/* Bloco de pré-venda na coluna de info, antes do botão comprar */
.bert-sp-preorder-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fffbeb; border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: var(--bert-radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.bert-sp-preorder-box__icon {
  flex: 0 0 auto; font-size: 1.6rem; color: #b45309; line-height: 1;
}
.bert-sp-preorder-box__text {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-size: .9rem; color: #78350f; line-height: 1.4;
}
.bert-sp-preorder-box__text strong { color: #78350f; font-weight: 800; }
.bert-sp-preorder-box__text strong strong { color: #b45309; }

/* Setas de navegação dentro do box da imagem principal */
.bert-sp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--bert-gray-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bert-primary);
  font-size: 16px;
  padding: 0;
  line-height: 1;
  opacity: 1;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-sp-gallery__nav:hover { background: var(--bert-primary); color: var(--bert-white); border-color: var(--bert-primary); }
.bert-sp-gallery__nav--prev { left: 10px; }
.bert-sp-gallery__nav--next { right: 10px; }

.bert-sp-gallery__fullscreen {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.42);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background var(--bert-transition);
  z-index: 10;
}
.bert-sp-gallery__fullscreen:hover { background: rgba(0,0,0,.7); }

/* Thumbs */
.bert-sp-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bert-sp-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--bert-gray-border);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  background: var(--bert-white);
  transition: border-color var(--bert-transition);
  overflow: hidden;
  flex-shrink: 0;
}
.bert-sp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bert-sp-gallery__thumb:hover    { border-color: var(--bert-primary-light); }
.bert-sp-gallery__thumb.is-active{ border-color: var(--bert-primary); box-shadow: 0 0 0 1px var(--bert-primary); }

/* ══════════════════════════════════════════
   INFORMAÇÕES / COLUNA DIREITA
   ══════════════════════════════════════════ */

/* Categorias */
.bert-sp-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bert-sp-cat-link {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bert-primary);
  background: rgba(0,92,169,.08);
  padding: 3px 10px;
  border-radius: 50px;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-sp-cat-link:hover { background: var(--bert-primary); color: #fff; }

/* Título */
.bert-sp-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--bert-text);
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Meta (SKU, estoque, avaliações) */
.bert-sp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bert-sp-meta__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--bert-gray-text);
}
.bert-sp-meta__label { font-weight: 600; }
.bert-sp-meta__item--stock i { font-size: 14px; }
.bert-sp-meta__item--stock.is-instock { color: var(--bert-green-dark); }
.bert-sp-meta__item--stock.is-outstock { color: #e53935; }
.bert-sp-meta__review-count { color: var(--bert-primary); font-size: 12px; text-decoration: underline; }

/* Rating stars */
.bert-sp-meta .star-rating { font-size: 14px; }

/* Descrição curta */
.bert-sp-short-desc {
  font-size: 14px;
  color: var(--bert-gray-text);
  line-height: 1.6;
  margin-bottom: 20px;
}
.bert-sp-short-desc ul { list-style: disc; padding-left: 18px; }
.bert-sp-short-desc li { margin-bottom: 4px; }

/* ── Bloco de preço ──────────────────────────────────────────────────────── */
.bert-sp-pricing {
  margin-bottom: 20px;
}

/* "A partir de" — só visível em produto variável com range de preços, e
   removido via JS quando uma variação é selecionada. */
.bert-sp-pricing__from-prefix {
  display: block;
  font-size: 13px;
  color: var(--bert-gray-text, #666);
  margin-bottom: 4px;
  font-weight: 500;
}

/* Esconde o bloco duplicado de preço que vem do tmpl-variation-template do WC
   (já mostramos o preço da variação no .bert-sp-pricing acima). */
.bert-sp-variations-form .woocommerce-variation-price {
  display: none !important;
}

.bert-sp-pricing__old {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.bert-sp-pricing__old del { font-size: 14px; color: #bbb; }
.bert-sp-pricing__save {
  background: #fff3e0;
  color: #e65100;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid #ffe0b2;
}

/* PIX em destaque (acima do preço cheio) */
.bert-sp-pricing__pix-row {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.bert-sp-pricing__pix-value {
  font-size: clamp(28px, 4.4vw, 36px);
  font-weight: 800; color: var(--bert-primary); line-height: 1;
}
.bert-sp-pricing__pix-value .woocommerce-Price-amount,
.bert-sp-pricing__pix-value bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.bert-sp-pricing__pix-value .woocommerce-Price-currencySymbol { font-size: 18px; font-weight: 700; }
.bert-sp-pricing__pix-label {
  font-size: .82rem; font-weight: 700; color: #15803d;
  background: #dcfce7; padding: 4px 10px; border-radius: 999px;
}

.bert-sp-pricing__current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: .9rem; color: var(--bert-gray-text);
}
.bert-sp-pricing__or { color: var(--bert-gray-text); font-weight: 500; }

.bert-sp-pricing__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bert-text);
  line-height: 1;
  font-family: var(--bert-font);
}
.bert-sp-pricing__value .woocommerce-Price-amount,
.bert-sp-pricing__value bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.bert-sp-pricing__value .woocommerce-Price-currencySymbol { font-size: inherit; font-weight: inherit; }

.bert-sp-pricing__label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  margin-bottom: 2px;
  align-self: center;
}

.bert-sp-pricing__vista {
  font-size: 13px;
  color: var(--bert-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.bert-sp-pricing__installments {
  font-size: 14px;
  color: var(--bert-gray-text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bert-sp-pricing__no-interest {
  font-size: 14px;
  color: var(--bert-gray-text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.bert-sp-pricing__pix {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bert-gray-text);
  background: #fff;
  border-radius: 6px;
  padding: 7px 12px;
  border: 1px dashed #c8e6c9;
}
.bert-sp-pricing__pix i { color: #27ae60; font-size: 14px; }

.bert-sp-pricing__consult { font-size: 15px; color: var(--bert-gray-text); font-style: italic; margin: 0; }

/* ── Caixa B2B ──────────────────────────────────────────────────────────── */
.bert-sp-b2b-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,92,169,.05);
  border: 1px solid rgba(0,92,169,.18);
  border-radius: var(--bert-radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.bert-sp-b2b-box > i { font-size: 26px; color: var(--bert-primary); flex-shrink: 0; }
.bert-sp-b2b-box__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bert-sp-b2b-box__text strong { font-size: 13px; color: var(--bert-text); }
.bert-sp-b2b-box__text span   { font-size: 12px; color: var(--bert-gray-text); line-height: 1.4; }
.bert-sp-b2b-box__btn {
  flex-shrink: 0;
  background: var(--bert-primary);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--bert-transition);
}
.bert-sp-b2b-box__btn:hover { background: var(--bert-primary-dark); color: #fff; }

/* ── Add to cart custom (página de produto) ──────────────────────────────── */
.bert-sp-add-to-cart { margin-bottom: 20px; }

/* Esconde qty input nativo do WC se o single-product.php padrão for usado */
.bert-sp-add-to-cart .quantity,
.bert-sp-add-to-cart .bert-product-card__qty-wrap { display: none !important; }

/* ── Produto variável: dropdowns das variações ───────────────────────────── */
.bert-sp-variations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.bert-sp-variation {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bert-sp-variation__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bert-text, #1d2327);
}
.bert-sp-variation__select,
.bert-sp-variations select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--bert-gray-border, #c3c4c7);
  border-radius: 6px;
  background: var(--bert-white, #fff);
  font-size: 14px;
  color: var(--bert-text, #1d2327);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23666' d='M3 5l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 36px;
}
.bert-sp-variation__select:focus,
.bert-sp-variations select:focus {
  outline: none;
  border-color: var(--bert-primary, #2271b1);
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}
.bert-sp-variation__reset {
  margin: 0;
  text-align: right;
}
.bert-sp-variation__reset .reset_variations {
  font-size: 12px;
  color: var(--bert-gray-text, #666);
  text-decoration: underline;
}
/* Botão Comprar inicialmente desabilitado em variable até seleção válida */
.bert-sp-buy-btn:disabled,
.bert-sp-buy-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Single variation: mensagem de preço/estoque após escolha — herda do tema */
.single_variation_wrap .single_variation {
  margin-bottom: 12px;
}
.single_variation_wrap .single_variation .price {
  font-weight: 600;
}
.single_variation_wrap .single_variation .stock {
  font-size: 13px;
  color: var(--bert-gray-text, #666);
  margin-top: 4px;
}
.single_variation_wrap .single_variation .stock.out-of-stock {
  color: #d63638;
}

.bert-sp-buy-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Stepper de quantidade na página do produto */
.bert-sp-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  background: var(--bert-white);
  overflow: hidden;
  flex: 0 0 auto;
}
.bert-sp-qty__btn {
  width: 42px;
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  color: var(--bert-text);
  cursor: pointer;
  transition: background var(--bert-transition);
  line-height: 1;
  padding: 0;
}
.bert-sp-qty__btn:hover { background: var(--bert-gray-bg, #f4f4f5); }
.bert-sp-qty__btn:focus-visible { outline: 2px solid var(--bert-primary); outline-offset: -2px; }
.bert-sp-qty__input {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--bert-gray-border);
  border-right: 1px solid var(--bert-gray-border);
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--bert-text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.bert-sp-qty__input::-webkit-outer-spin-button,
.bert-sp-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bert-sp-qty__input:focus { outline: 2px solid var(--bert-primary); outline-offset: -2px; }
.bert-sp-buy-row .bert-sp-buy-btn { flex: 1 1 auto; }

@media (max-width: 480px) {
  .bert-sp-qty__btn { width: 38px; font-size: 20px; }
  .bert-sp-qty__input { width: 44px; font-size: 15px; }
}

/* Botão comprar — azul, tamanho maior que o card */
.bert-sp-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bert-primary);
  color: #fff;
  border: none;
  border-radius: var(--bert-radius);
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--bert-font);
  cursor: pointer;
  transition: background var(--bert-transition), transform var(--bert-transition);
  letter-spacing: .3px;
  flex: 1;
  min-width: 180px;
}
.bert-sp-buy-btn i { font-size: 20px; }
.bert-sp-buy-btn:hover {
  background: var(--bert-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.bert-sp-buy-btn.loading { opacity: .7; pointer-events: none; }

/* ── Indisponível ───────────────────────────────────────────────────────── */
.bert-sp-outofstock-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--bert-radius);
  padding: 14px 16px;
  font-size: 13px;
  color: #795548;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bert-sp-outofstock-msg i { font-size: 18px; color: #f9a825; flex-shrink: 0; }
.bert-sp-outofstock-msg a { color: var(--bert-primary); font-weight: 600; text-decoration: underline; margin-left: auto; }

/* ── Benefits mini-bar ──────────────────────────────────────────────────── */
.bert-sp-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bert-gray-bg);
  border-radius: var(--bert-radius);
  border: 1px solid var(--bert-gray-border);
}
.bert-sp-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bert-gray-text);
}
.bert-sp-benefit i { font-size: 16px; color: var(--bert-primary); flex-shrink: 0; }

/* ── Compartilhar ───────────────────────────────────────────────────────── */
.bert-sp-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bert-sp-share__label { font-size: 12px; color: var(--bert-gray-text); }
.bert-sp-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--bert-gray-border);
  font-size: 15px;
  transition: all var(--bert-transition);
  background: transparent;
  cursor: pointer;
  color: var(--bert-gray-text);
  text-decoration: none;
}
.bert-sp-share__btn--wa:hover  { background: var(--bert-primary); border-color: var(--bert-primary); color: #fff; }
.bert-sp-share__btn--copy:hover{ background: var(--bert-primary); border-color: var(--bert-primary); color: #fff; }

/* ══════════════════════════════════════════
   TABS
   ══════════════════════════════════════════ */
.bert-sp-tabs {
  margin-bottom: 48px;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
}

.bert-sp-tabs__nav {
  display: flex;
  background: var(--bert-gray-bg);
  border-bottom: 1px solid var(--bert-gray-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.bert-sp-tabs__nav::-webkit-scrollbar { display: none; }

.bert-sp-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--bert-font);
  color: var(--bert-gray-text);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color var(--bert-transition), border-color var(--bert-transition), background var(--bert-transition);
  white-space: nowrap;
}
.bert-sp-tab-btn i { font-size: 16px; }
.bert-sp-tab-btn:hover { color: var(--bert-primary); background: rgba(0,92,169,.04); }
.bert-sp-tab-btn.is-active {
  color: var(--bert-primary);
  border-bottom-color: var(--bert-primary);
  background: var(--bert-white);
}

.bert-tab-count {
  background: var(--bert-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.bert-sp-tab-panel {
  padding: 28px 32px;
  background: var(--bert-white);
}
.bert-sp-tab-panel[hidden] { display: none; }

/* Conteúdo da descrição */
.bert-sp-description { font-size: 14px; color: var(--bert-gray-text); line-height: 1.7; }
.bert-sp-description h2, .bert-sp-description h3, .bert-sp-description h4 { color: var(--bert-text); margin-top: 20px; margin-bottom: 8px; }
.bert-sp-description ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.bert-sp-description li { margin-bottom: 4px; }
.bert-sp-description img { max-width: 100%; border-radius: 6px; margin: 12px 0; }

.bert-sp-no-content { color: var(--bert-gray-text); font-style: italic; font-size: 14px; }

/* Tabela de especificações */
.bert-sp-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bert-sp-specs-table tr { border-bottom: 1px solid var(--bert-gray-border); }
.bert-sp-specs-table tr:last-child { border-bottom: none; }
.bert-sp-specs-table th {
  width: 34%;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--bert-text);
  background: var(--bert-gray-bg);
  text-align: left;
  vertical-align: top;
}
.bert-sp-specs-table td {
  padding: 12px 16px;
  color: var(--bert-gray-text);
  vertical-align: top;
}
.bert-sp-specs-table tr:nth-child(even) td { background: rgba(0,0,0,.01); }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.bert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.bert-lightbox[hidden] { display: none; }

.bert-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--bert-radius);

}
.bert-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--bert-transition);
}
.bert-lightbox__close:hover { background: rgba(255,255,255,.28); }

/* ── Related products section ────────────────────────────────────────────── */
.bert-sp-related { border-top: 1px solid var(--bert-gray-border); }
.bert-sp-related .bert-product-grid-section { padding-top: 36px; }

/* ══════════════════════════════════════════
   RESPONSIVE — Single Product
   ══════════════════════════════════════════ */
@media (max-width: 1199px) {
  .bert-sp-layout { grid-template-columns: 420px 1fr; gap: 32px; }
}

@media (max-width: 991px) {
  .bert-sp-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bert-sp-gallery { position: static; }
  .bert-sp-gallery__main { max-width: 500px; margin: 0 auto 6px; }
  .bert-sp-gallery__thumbs { justify-content: center; }
  .bert-sp-cats { margin-bottom: 6px; }
  .bert-sp-title { margin-bottom: 8px; }
}

@media (max-width: 767px) {
  .bert-sp-tab-btn { padding: 13px 16px; font-size: 13px; }
  .bert-sp-tab-panel { padding: 20px 16px; }
  .bert-sp-specs-table th,
  .bert-sp-specs-table td { padding: 10px 12px; }
  .bert-sp-benefits { grid-template-columns: 1fr 1fr; }
  .bert-sp-b2b-box { flex-wrap: wrap; }
  .bert-sp-b2b-box__btn { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════ */
.bert-search-page { padding: 32px 0 60px; }

.bert-search-page__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bert-gray-border);
}

.bert-search-page__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bert-dark);
  margin: 0;
}

.bert-search-page__term { color: var(--bert-primary); }

.bert-search-page__count {
  font-size: .875rem;
  color: var(--bert-gray-text);
  margin: 0;
}

/* Paginação */
.bert-pagination { margin-top: 40px; text-align: center; }
/* O Bootstrap dá display:flex (à esquerda) na classe .pagination, que o
   WP também usa no <nav class="navigation pagination"> — recentra. */
.bert-pagination .navigation.pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}
.bert-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.bert-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--bert-gray-border);
  border-radius: 6px;
  font-size: .875rem;
  color: var(--bert-dark);
  text-decoration: none;
  transition: background var(--bert-transition), border-color var(--bert-transition), color var(--bert-transition);
}
.bert-pagination .page-numbers:hover { background: var(--bert-primary); border-color: var(--bert-primary); color: #fff; }
.bert-pagination .page-numbers.current { background: var(--bert-primary); border-color: var(--bert-primary); color: #fff; font-weight: 700; }
.bert-pagination .page-numbers.dots { border: none; pointer-events: none; }

/* Resultado não-produto */
.bert-search-post-card {
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
}
.bert-search-post-card:hover {}
.bert-search-post-card__link { display: block; text-decoration: none; color: inherit; }
.bert-search-post-card__thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.bert-search-post-card__body { padding: 16px; }
.bert-search-post-card__type {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bert-primary);
  display: block;
  margin-bottom: 6px;
}
.bert-search-post-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--bert-dark); }
.bert-search-post-card__excerpt { font-size: .875rem; color: var(--bert-gray-text); margin: 0; line-height: 1.5; }
.bert-search-post-card__excerpt p { margin: 0; }

/* Estado vazio */
.bert-search-page__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--bert-gray-text);
}
.bert-search-page__empty .bi-search { font-size: 3rem; display: block; margin-bottom: 16px; color: var(--bert-gray-border); }
.bert-search-page__empty p { font-size: 1.1rem; margin: 0 0 8px; }
.bert-search-page__empty-hint { font-size: .9rem; }
.bert-search-page__empty .search-form { margin-top: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   PRODUCT ARCHIVE (Loja / Categorias / Tags)
   ══════════════════════════════════════════ */

/* Breadcrumb */
.bert-archive__breadcrumb {
  padding: 14px 0 0;
}

/* Header da categoria */
.bert-archive__header {
  background: transparent;
  padding: 16px 0 0;
}
.bert-archive__header.has-image {
  background: transparent;
}
.bert-archive__header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bert-archive__header-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--bert-radius);
  background: rgba(255,255,255,.12);
  padding: 6px;
  flex-shrink: 0;
}
.bert-archive__title-row {
  margin-bottom: 4px;
}
.bert-archive__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--bert-primary);
}
.bert-archive__desc {
  font-size: .875rem;
  color: var(--bert-gray-text);
  margin: 0;
  max-width: 600px;
}
.bert-archive__desc p { margin: 0; }

/* ── Archive main ───────────────────────────────────────────────────────── */
.bert-archive { padding: 0 0 60px; }

/* Layout: sidebar + content */
.bert-archive__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding-top: 20px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

/* No desktop: sobrescreve Bootstrap offcanvas para virar sidebar estático */
@media (max-width: 991.98px) {
  .bert-archive__sidebar.offcanvas {
    width: 85vw !important;
    max-width: 380px;
  }
}
@media (min-width: 992px) {
  .bert-archive__sidebar.offcanvas {
    position: sticky;
    /* Compensa o sticky header (72px cheio / 58px encolhido): sem isso
       a sidebar grudava a 16px do viewport e sumia POR BAIXO do header. */
    top: calc(var(--bert-header-height) + 16px);
    transform: none !important;
    visibility: visible !important;
    height: auto;
    width: 220px;
    max-height: calc(100vh - var(--bert-header-height) - 32px);
    overflow-y: auto;
    border: 1px solid var(--bert-gray-border);
    border-radius: var(--bert-radius);
    background: var(--bert-white);
    box-shadow: var(--bert-shadow);
    z-index: 1;
  }
  .bert-archive__sidebar-body { padding: 0; overflow: visible; }
}

/* Mobile: usa offcanvas Bootstrap normalmente */
@media (max-width: 991px) {
  .bert-archive__sidebar .bert-filter-group__toggle { border-radius: 0; }
}

.bert-archive__sidebar-header {
  background: var(--bert-primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.bert-archive__sidebar-header .offcanvas-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bert-white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.bert-archive__sidebar-header .offcanvas-title i { font-size: 20px; }
.bert-archive__sidebar-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: color var(--bert-transition);
}
.bert-archive__sidebar-close:hover { color: var(--bert-white); }

/* Grupo de filtro */
.bert-filter-group {
  border-bottom: 1px solid var(--bert-gray-border);
}
.bert-filter-group:last-child { border-bottom: none; }

.bert-filter-group__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 13px 16px;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--bert-font);
  color: var(--bert-text);
  cursor: pointer;
  text-align: left;
  gap: 6px;
  transition: background var(--bert-transition);
}
.bert-filter-group__toggle:hover { background: var(--bert-gray-bg); }
.bert-filter-group__toggle .bi-chevron-down {
  margin-left: auto;
  font-size: .75rem;
  transition: transform var(--bert-transition);
}
.bert-filter-group__toggle[aria-expanded="false"] .bi-chevron-down { transform: rotate(-90deg); }
.bert-filter-group__badge {
  background: var(--bert-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  line-height: 1.6;
}

/* Lista de filtros */
.bert-filter-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.bert-filter-list__item { margin: 0; }
.bert-filter-list__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: .82rem;
  color: var(--bert-text);
  text-decoration: none;
  transition: background var(--bert-transition), color var(--bert-transition);
}
.bert-filter-list__link:hover { background: var(--bert-gray-bg); color: var(--bert-primary); }
.bert-filter-list__link.is-current {
  color: var(--bert-primary);
  font-weight: 700;
}
.bert-filter-list__name { flex: 1; }
.bert-filter-list__count {
  font-size: .74rem;
  color: var(--bert-gray-text);
  background: var(--bert-gray-bg);
  border-radius: 20px;
  padding: 1px 7px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* Checkboxes de marca */
.bert-filter-check { cursor: pointer; }
.bert-filter-check__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--bert-gray-border);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
  transition: background var(--bert-transition), border-color var(--bert-transition);
}
.bert-filter-check.is-active .bert-filter-check__box {
  background: var(--bert-primary);
  border-color: var(--bert-primary);
  color: #fff;
}
.bert-filter-check.is-active { color: var(--bert-primary); font-weight: 600; }
.bert-filter-check.is-active .bert-filter-list__count { background: rgba(0,92,169,.1); color: var(--bert-primary); }

/* Filtros ativos (sidebar) */
.bert-filter-active {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bert-gray-border);
  background: rgba(0,92,169,.04);
}
.bert-filter-active__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: 8px;
}
.bert-filter-active__header span { font-weight: 700; color: var(--bert-text); }
.bert-filter-active__clear {
  font-size: .75rem;
  color: var(--bert-primary);
  text-decoration: underline;
}
.bert-filter-active__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Chips de filtro */
.bert-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bert-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background var(--bert-transition);
}
.bert-filter-chip:hover { background: var(--bert-primary-dark); color: #fff; }
.bert-filter-chip--clear {
  background: var(--bert-gray-bg);
  color: var(--bert-gray-text);
  border: 1px solid var(--bert-gray-border);
}
.bert-filter-chip--clear:hover { background: var(--bert-gray-border); color: var(--bert-text); }

/* ── Área de conteúdo ───────────────────────────────────────────────────── */
.bert-archive__content { min-width: 0; }

/* Toolbar */
.bert-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--bert-gray-border);
  margin-bottom: 20px;
}
.bert-archive__toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bert-archive__count {
  font-size: .875rem;
  color: var(--bert-gray-text);
  margin: 0;
}

/* Botão "Filtrar" (mobile) */
.bert-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bert-white);
  border: 1.5px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm);
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--bert-font);
  color: var(--bert-text);
  cursor: pointer;
  transition: border-color var(--bert-transition);
  position: relative;
}
.bert-filter-toggle-btn:hover { border-color: var(--bert-primary); color: var(--bert-primary); }
.bert-filter-toggle-btn .bi-funnel-fill { color: var(--bert-primary); }
.bert-filter-toggle-btn__badge {
  background: var(--bert-primary);
  color: #fff;
  font-size: .68rem;
  border-radius: 20px;
  padding: 1px 6px;
  line-height: 1.6;
}

/* Sort dropdown (WooCommerce .woocommerce-ordering) */
.bert-archive__sort .woocommerce-ordering { margin: 0; }
.bert-archive__sort select.orderby {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bert-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm);
  padding: 7px 34px 7px 12px;
  font-size: .875rem;
  font-family: var(--bert-font);
  color: var(--bert-text);
  cursor: pointer;
  transition: border-color var(--bert-transition);
}
.bert-archive__sort select.orderby:focus {
  outline: none;
  border-color: var(--bert-primary);
}

/* Chips acima do grid (visible em todos os tamanhos) */
.bert-archive__active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Empty state */
.bert-archive__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--bert-gray-text);
}
.bert-archive__empty .bi-box-seam {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  color: var(--bert-gray-border);
}
.bert-archive__empty p {
  font-size: 1.1rem;
  margin: 0 0 20px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .bert-archive__layout {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
  /* Bootstrap offcanvas (position:fixed) tira a sidebar do flow automaticamente.
     Não usar display:none aqui — quebraria a abertura pelo data-bs-toggle. */
}

@media (max-width: 767px) {
  .bert-archive__title { font-size: 1.2rem; }
  .bert-archive__toolbar { flex-wrap: wrap; gap: 8px; }
  .bert-archive__toolbar-left { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .bert-archive__toolbar { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   BARRA DE NAVEGAÇÃO MINHA CONTA (desktop — aparece após o header)
   ===================================================================== */

.bert-account-nav {
  background: var(--bert-navbar-bg);
  border-top: 1px solid rgba(255,255,255,.1);
}

.bert-account-nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 46px;
}

.bert-account-nav__item a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 100%;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all var(--bert-transition);
  white-space: nowrap;
}

.bert-account-nav__item a:hover {
  color: var(--bert-white);
  background: rgba(255,255,255,.1);
  border-bottom-color: rgba(255,255,255,.4);
}

.bert-account-nav__item.is-active a {
  color: var(--bert-white);
  font-weight: 700;
  background: rgba(255,255,255,.15);
  border-bottom-color: var(--bert-white);
}

/* Ícones — reutiliza os mesmos ::before definidos abaixo para o sidebar */
.bert-account-nav__item a::before {
  font-family: bootstrap-icons;
  font-size: .9rem;
  flex-shrink: 0;
  color: rgba(255,255,255,.7);
}

.bert-account-nav__item.is-active a::before,
.bert-account-nav__item a:hover::before {
  color: var(--bert-white);
}

/* Sair — empurrado para a direita e em vermelho suave */
.bert-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-left: auto;
}

/* "Sair": mesmo estilo dos demais itens da barra (altura/hover iguais),
   alinhado à direita, com o ícone de logout e separador sutil. */
.bert-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout a {
  border-left: 1px solid rgba(255,255,255,.18);
}
.bert-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  content: "\f1c3"; /* box-arrow-right */
  font-family: bootstrap-icons;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  width: auto;
  background: none;
}
.bert-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout a:hover::before {
  color: var(--bert-white);
}

/* =====================================================================
   MINHA CONTA (WooCommerce My Account)
   ===================================================================== */

.woocommerce-account .bert-wc-wrapper { padding-top: 0; padding-bottom: 48px; }

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

/* ── Dashboard: saudação ──────────────────────────────────────────── */
.bert-account-dashboard { display: flex; flex-direction: column; gap: 24px; }

.bert-account-greeting {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--bert-primary) 0%, var(--bert-primary-light) 100%);
  color: var(--bert-white);
  padding: 28px 32px;
  border-radius: var(--bert-radius);
}

.bert-account-greeting__avatar {
  font-size: 3rem;
  line-height: 1;
  opacity: .85;
  flex-shrink: 0;
}

.bert-account-greeting__info { flex: 1; min-width: 0; }

.bert-account-greeting__name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--bert-white);
}

.bert-account-greeting__email {
  font-size: .83rem;
  margin: 0;
  opacity: .75;
}

.bert-account-greeting__logout {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--bert-radius-sm);
  padding: 7px 14px;
  transition: all var(--bert-transition);
  flex-shrink: 0;
}

.bert-account-greeting__logout:hover {
  background: rgba(255,255,255,.15);
  color: var(--bert-white);
}

/* ── Dashboard: acesso rápido ─────────────────────────────────────── */
.bert-account-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.bert-account-quicklink {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  padding: 18px 18px;
  text-decoration: none;
  color: var(--bert-text);
  transition: all var(--bert-transition);
  box-shadow: var(--bert-shadow);
  min-height: 76px;
}

.bert-account-quicklink:hover {
  border-color: var(--bert-primary-light);

  transform: translateY(-2px);
  color: var(--bert-primary);
}

.bert-account-quicklink__icon {
  width: 44px;
  height: 44px;
  background: #eef1fb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--bert-primary);
  flex-shrink: 0;
  transition: background var(--bert-transition);
}

.bert-account-quicklink:hover .bert-account-quicklink__icon {
  background: var(--bert-primary);
  color: var(--bert-white);
}

.bert-account-quicklink__label {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
}

.bert-account-quicklink__arrow {
  color: var(--bert-gray-text);
  font-size: .8rem;
  flex-shrink: 0;
}

/* ── Título das seções de conta ───────────────────────────────────── */
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > .woocommerce-column__title,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bert-primary);
  padding: 20px 0 14px;
  border-bottom: 2px solid var(--bert-gray-border);
  margin-bottom: 20px;
}

/* ── Remove padding duplo na área de conteúdo ─────────────────────── */
.woocommerce-MyAccount-content { padding-top: 24px; }

/* Navegacao lateral — oculta no desktop (substituída pela barra do header) */
.woocommerce-MyAccount-navigation {
  display: none;
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
  box-shadow: var(--bert-shadow);
  position: sticky;
  top: calc(var(--bert-header-height) + 16px);
}

.woocommerce-MyAccount-navigation::before {
  content: "";
  display: block;
  background: var(--bert-primary);
  height: 4px;
}

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px 0; }
.woocommerce-MyAccount-navigation ul li { margin: 0; }

.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--bert-text);
  font-size: .9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--bert-transition);
  text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--bert-gray-bg);
  color: var(--bert-primary);
  border-left-color: var(--bert-primary-light);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #eef1fb;
  color: var(--bert-primary);
  font-weight: 700;
  border-left-color: var(--bert-primary);
}

.woocommerce-MyAccount-navigation ul li a::before {
  font-family: bootstrap-icons;
  font-size: 1rem;
  color: var(--bert-primary);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

/* Codepoints do SUBSET da fonte (os antigos não existiam no subset e
   renderizavam vazio — ex.: "Detalhes da conta" sem ícone) */
.woocommerce-MyAccount-navigation-link--dashboard a::before        { content: "\f425"; } /* house */
.woocommerce-MyAccount-navigation-link--orders a::before           { content: "\f1c7"; } /* box-seam */
.woocommerce-MyAccount-navigation-link--downloads a::before        { content: "\f3b9"; } /* file-text */
.woocommerce-MyAccount-navigation-link--edit-address a::before     { content: "\f3e8"; } /* geo-alt */
.woocommerce-MyAccount-navigation-link--payment-methods a::before  { content: "\f5b0"; } /* tag */
.woocommerce-MyAccount-navigation-link--edit-account a::before     { content: "\f4d3"; } /* person-badge */
.woocommerce-MyAccount-navigation-link--customer-logout a::before  { content: "\f1c3"; } /* box-arrow-right */

/* Sair na SIDEBAR: igual aos demais itens; só um separador estrutural.
   Regra ESCOPADA à sidebar — sem escopo ela vazava para a barra
   superior da conta (mesma classe do WC) pintando o Sair de vermelho
   e criando o recorte branco. */
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid var(--bert-gray-border);
  margin-top: 4px;
  padding-top: 4px;
}

.woocommerce-MyAccount-content { min-width: 0; }

/* Tabela de pedidos */
.woocommerce-orders-table,
.woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
  font-size: .875rem;
  box-shadow: var(--bert-shadow);
}

.woocommerce-orders-table thead,
.woocommerce-MyAccount-content table thead { background: var(--bert-primary); }

.woocommerce-orders-table thead th,
.woocommerce-MyAccount-content table thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bert-white);
  border: none;
}

.woocommerce-orders-table tbody tr:nth-child(even),
.woocommerce-MyAccount-content table tbody tr:nth-child(even) { background: var(--bert-gray-bg); }

.woocommerce-orders-table tbody tr:hover,
.woocommerce-MyAccount-content table tbody tr:hover { background: #eef1fb; }

.woocommerce-orders-table tbody td,
.woocommerce-orders-table tbody th,
.woocommerce-MyAccount-content table tbody td,
.woocommerce-MyAccount-content table tbody th {
  padding: 14px 16px;
  border-top: 1px solid var(--bert-gray-border);
  color: var(--bert-text);
  vertical-align: middle;
}
/* Primeira coluna (nº do pedido) com respiro da borda arredondada.
   Especificidade alta + cobertura de todas as variantes do shop_table
   para vencer qualquer regra base/plugin. */
.woocommerce-MyAccount-content .woocommerce-orders-table thead th:first-child,
.woocommerce-MyAccount-content .woocommerce-orders-table tbody td:first-child,
.woocommerce-MyAccount-content .woocommerce-orders-table tbody th:first-child,
.woocommerce-MyAccount-content .shop_table thead th:first-child,
.woocommerce-MyAccount-content .shop_table tbody td:first-child,
.woocommerce-MyAccount-content .shop_table tbody th:first-child,
.woocommerce-orders-table thead th:first-child,
.woocommerce-orders-table tbody td:first-child,
.woocommerce-orders-table tbody th:first-child,
.woocommerce-orders-table__cell-order-number {
  padding-left: 28px !important;
}
/* Última coluna com o mesmo respiro à direita */
.woocommerce-MyAccount-content .shop_table thead th:last-child,
.woocommerce-MyAccount-content .shop_table tbody td:last-child {
  padding-right: 28px !important;
}

/* Ações do pedido (Pagar / Visualizar / Cancelar): botões CLEAN e
   uniformes — todos fantasma (borda cinza, texto escuro), sem
   variação de cor; hover só realça a borda/texto em azul. */
.woocommerce-orders-table__cell-order-actions,
.woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-actions {
  white-space: nowrap;
}
.woocommerce-orders-table__cell-order-actions .button {
  margin: 3px 8px 3px 0 !important;
  background: var(--bert-white) !important;
  color: var(--bert-text) !important;
  border: 1px solid var(--bert-gray-border) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.woocommerce-orders-table__cell-order-actions .button:last-child { margin-right: 0 !important; }
.woocommerce-orders-table__cell-order-actions .button:hover {
  color: var(--bert-primary) !important;
  border-color: var(--bert-primary) !important;
  background: var(--bert-white) !important;
  transform: none;
}

/* Status badges */
mark.order-status { padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: none; box-shadow: none; }
mark.order-status.status-processing { background: #dbeafe; color: #1d4ed8; }
mark.order-status.status-completed  { background: #dcfce7; color: #15803d; }
mark.order-status.status-on-hold    { background: #fef9c3; color: #92400e; }
mark.order-status.status-cancelled  { background: #fee2e2; color: #b91c1c; }
mark.order-status.status-pending    { background: #f3f4f6; color: #374151; }
mark.order-status.status-refunded   { background: #ede9fe; color: #6d28d9; }

/* Botões padrão dentro de qualquer página WC (Minha Conta, view-order,
   carrinho, etc.). !important nas cores defende contra o seletor global
   "a { color: var(--bert-primary) }" que estava deixando o texto invisível
   sobre o fundo navy do botão. */
.woocommerce .button,
.woocommerce a.button,
.woocommerce-page .button,
.woocommerce-page a.button,
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content a.button,
.woocommerce-cart .button,
.woocommerce-checkout .button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bert-primary) !important;
  color: var(--bert-white) !important;
  border: none; border-radius: var(--bert-radius-sm);
  padding: 8px 16px; font-size: .85rem; font-weight: 700;
  font-family: var(--bert-font); cursor: pointer;
  transition: background var(--bert-transition), transform .15s;
  text-decoration: none; line-height: 1.2;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content a.button:hover {
  background: var(--bert-primary-dark) !important;
  color: var(--bert-white) !important;
  transform: translateY(-1px);
}

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce-MyAccount-content .button.alt {
  background: var(--bert-green) !important;
  color: var(--bert-white) !important;
}
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--bert-green-dark) !important;
}

/* Botão "Cancelar" em view-order: estilo outline para diferenciar */
.woocommerce a.button.cancel,
.woocommerce-MyAccount-content a.button.cancel {
  background: transparent !important;
  color: var(--bert-text, #222) !important;
  border: 1px solid var(--bert-gray-border) !important;
}
.woocommerce a.button.cancel:hover {
  background: var(--bert-gray-bg, #f4f4f4) !important;
  color: var(--bert-text, #222) !important;
}

/* Formularios */
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  padding: 28px 32px;
  box-shadow: var(--bert-shadow);
}

.woocommerce-form-login legend,
.woocommerce-form-register legend {
  font-size: 1.1rem; font-weight: 700; color: var(--bert-primary);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--bert-gray-border); width: 100%;
}

.woocommerce-account:not(.logged-in) .woocommerce {}

.woocommerce-account:not(.logged-in) .col2-set {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.woocommerce-account:not(.logged-in) .col2-set .col-1,
.woocommerce-account:not(.logged-in) .col2-set .col-2 {
  flex: 1;
  width: auto;
  float: none;
}

.woocommerce-MyAccount-content label,
.woocommerce-form-login label,
.woocommerce-form-register label { font-size: .875rem; font-weight: 600; color: var(--bert-text); margin-bottom: 4px; display: block; }

.woocommerce-MyAccount-content input[type=text],
.woocommerce-MyAccount-content input[type=email],
.woocommerce-MyAccount-content input[type=password],
.woocommerce-MyAccount-content input[type=tel],
.woocommerce-MyAccount-content input[type=date],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea,
.woocommerce-form-login input[type=text],
.woocommerce-form-login input[type=password],
.woocommerce-form-register input[type=text],
.woocommerce-form-register input[type=email],
.woocommerce-form-register input[type=password] {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm);
  font-family: var(--bert-font); font-size: .9rem; color: var(--bert-text);
  transition: border-color var(--bert-transition);
  background: var(--bert-white);
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus,
.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus { outline: none; border-color: var(--bert-primary); box-shadow: 0 0 0 3px rgba(0,92,169,.12); }

.woocommerce-form-login .woocommerce-button,
.woocommerce-form-register .woocommerce-button,
.woocommerce-MyAccount-content [type=submit] {
  background: var(--bert-primary); color: var(--bert-white); border: none;
  border-radius: var(--bert-radius-sm); padding: 10px 24px;
  font-size: .9rem; font-weight: 700; font-family: var(--bert-font); cursor: pointer;
  transition: background var(--bert-transition);
}

.woocommerce-form-login .woocommerce-button:hover,
.woocommerce-form-register .woocommerce-button:hover,
.woocommerce-MyAccount-content [type=submit]:hover { background: var(--bert-primary-dark); }
.woocommerce-form-login .lost_password a { font-size: .82rem; color: var(--bert-gray-text); }

/* Enderecos */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.woocommerce-account .woocommerce-Address {
  background: var(--bert-white); border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius); padding: 24px; box-shadow: var(--bert-shadow);
}

.woocommerce-account .woocommerce-Address-title {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--bert-gray-border);
}

.woocommerce-account .woocommerce-Address-title h3 { font-size: 1rem; font-weight: 700; color: var(--bert-primary); margin: 0; }
.woocommerce-account address { font-style: normal; font-size: .875rem; color: var(--bert-gray-text); line-height: 1.7; }

/* Detalhes do pedido */
.woocommerce-order-details, .woocommerce-customer-details {
  background: var(--bert-white); border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--bert-shadow);
}

.woocommerce-order-details__title, .woocommerce-column__title {
  font-size: 1rem; font-weight: 700; color: var(--bert-primary);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--bert-gray-border);
}

@media (max-width: 991px) {
  .bert-account-quicklinks { grid-template-columns: repeat(2, 1fr); }
  .bert-account-greeting { padding: 20px; }
  .bert-account-greeting__name { font-size: 1.1rem; }

  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account:not(.logged-in) .col2-set { flex-direction: column; }
  .woocommerce-account:not(.logged-in) .col2-set .col-1,
  .woocommerce-account:not(.logged-in) .col2-set .col-2 { width: 100%; }

  /* Mostra o nav lateral no mobile (a barra do header fica oculta) */
  .woocommerce-MyAccount-navigation {
    display: block;
    position: static;
    overflow-x: auto;
    margin-bottom: 8px;
  }

  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: nowrap; padding: 0; }
  .woocommerce-MyAccount-navigation ul li a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 12px 16px; font-size: .82rem; }
  .woocommerce-MyAccount-navigation ul li a:hover,
  .woocommerce-MyAccount-navigation ul li.is-active a { border-left-color: transparent; border-bottom-color: var(--bert-primary); background: #eef1fb; }
  .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout { border-top: none; border-left: 1px solid var(--bert-gray-border); margin-top: 0; padding-top: 0; margin-left: auto; }
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
  .woocommerce-account:not(.logged-in) .woocommerce { grid-template-columns: 1fr; max-width: 100%; }
}

@media (max-width: 575px) {
  .bert-account-quicklinks { grid-template-columns: 1fr; }
  .bert-account-greeting__logout { display: none; }

  .woocommerce-form-login, .woocommerce-form-register,
  .woocommerce-EditAccountForm, .woocommerce-address-fields { padding: 20px 16px; }
  .woocommerce-orders-table thead { display: none; }
  .woocommerce-orders-table tbody tr { display: block; border: 1px solid var(--bert-gray-border); border-radius: var(--bert-radius-sm); margin-bottom: 12px; padding: 12px; background: var(--bert-white) !important; }
  .woocommerce-orders-table tbody td { display: flex; justify-content: space-between; align-items: center; border-top: none; padding: 6px 0; font-size: .82rem; }
  .woocommerce-orders-table tbody td::before { content: attr(data-title); font-weight: 700; color: var(--bert-gray-text); font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; }
}
/* ══════════════════════════════════════════
   MINHA CONTA — Título da página (bert-page__title)
   ══════════════════════════════════════════ */
.woocommerce-MyAccount-content > .bert-page__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bert-primary);
  padding: 0 0 14px;
  border-bottom: 2px solid var(--bert-gray-border);
  margin: 0 0 20px;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Header mobile (< xl / 1200px)
   ══════════════════════════════════════════ */
@media (max-width: 1199.98px) {
  /* Centering trick: make inner relative, logo absolute centered */
  .bert-header__inner {
    position: relative;
  }
  .bert-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  /* Hide search bar — space is used by menu btn + logo + actions */
  .bert-header__search {
    display: none;
  }
  /* Hide wishlist on mobile — keep account + cart only */
  .bert-header__action--wishlist {
    display: none;
  }
  /* Push account+cart to the far right */
  .bert-header__actions {
    margin-left: auto;
  }
}

/* ══════════════════════════════════════════
   SPLIDE — Carrossel de produtos
   ══════════════════════════════════════════ */

/* Wrapper flex: setas nas laterais, carrossel no meio */
.bert-splide-wrapper {
  position: relative;
}

/* Carrossel ocupa 100% da largura do container */
.bert-products-splide {
  width: 100%;
}

/* Botões de navegação sobrepostos nas bordas do carrossel */
.bert-splide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  background: var(--bert-white);
  border: 1.5px solid var(--bert-gray-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bert-primary);
  font-size: 17px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background var(--bert-transition), border-color var(--bert-transition), color var(--bert-transition);
}
.bert-splide-nav--prev { left: -19px; }
.bert-splide-nav--next { right: -19px; }
.bert-splide-nav:hover {
  background: var(--bert-primary);
  border-color: var(--bert-primary);
  color: var(--bert-white);
}

/* Mobile: espaço para os dots abaixo do carrossel */
@media (max-width: 767px) {
  .bert-products-splide { padding-bottom: 36px; }
  .bert-product-grid-section { padding-top: 28px; padding-bottom: 0; }
  .bert-product-grid-section + .bert-product-grid-section { padding-top: 20px; }
}

/* Paginação (dots no mobile) — mesmo estilo do pitchbar */
.bert-products-splide .splide__pagination {
  bottom: 6px;
  gap: 6px;
}
.bert-products-splide .splide__pagination__page {
  background: var(--bert-gray-border);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 1;
  padding: 0;
  border: none;
  flex-shrink: 0;
  transition: background .2s ease, width .25s ease, border-radius .25s ease;
}
.bert-products-splide .splide__pagination__page.is-active {
  background: var(--bert-primary);
  width: 20px;
  border-radius: 4px;
  transform: none;
}

/* Slide: garante que o card ocupe 100% da largura do slide */
.bert-products-splide .splide__slide { height: auto; }
.bert-products-splide .splide__slide .bert-product-card { height: 100%; }

/* ══════════════════════════════════════════
   STICKY ADD-TO-CART — página de produto
   ══════════════════════════════════════════ */
.bert-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--bert-white);
  border-top: 2px solid var(--bert-gray-border);

  padding: 10px 0;
  /* Inicialmente fora da tela (abaixo) */
  transform: translateY(110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.4,0,.2,1), visibility .32s;
}
.bert-sticky-atc.is-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.bert-sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bert-sticky-atc__product {
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.bert-sticky-atc__thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm);
  flex-shrink: 0;
}
.bert-sticky-atc__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bert-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bert-sticky-atc__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Preço no sticky bar — espelha o bloco principal, mais compacto.
   Mobile: ocupa o espaço (produto oculto). Desktop: alinhado à
   direita, entre o nome e o botão Comprar. */
.bert-sticky-atc__price {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .bert-sticky-atc__price {
    flex: 0 0 auto;
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
  }
}
.bert-sticky-atc__pix-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.bert-sticky-atc__pix-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--bert-primary);
  line-height: 1;
}
.bert-sticky-atc__pix-value .woocommerce-Price-amount,
.bert-sticky-atc__pix-value bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.bert-sticky-atc__pix-value .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 700; }
.bert-sticky-atc__pix-badge {
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.bert-sticky-atc__current {
  font-size: 11px;
  color: var(--bert-gray-text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bert-sticky-atc__current-value {
  font-weight: 700;
  color: var(--bert-text);
}
.bert-sticky-atc__current-value .woocommerce-Price-amount,
.bert-sticky-atc__current-value bdi { font-size: inherit; font-weight: inherit; color: inherit; }
@media (max-width: 767.98px) {
  .bert-sticky-atc__inner { gap: 12px; }
  .bert-sticky-atc__actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .bert-sticky-atc__btn {
    flex: 0 0 auto;
    padding: 12px 22px;
  }
}
.bert-sticky-atc__btn {
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 20px;
}
.bert-sticky-atc .bert-qty-btn {
  width: 46px;
  height: 46px;
  font-size: 22px;
}
.bert-sticky-atc .bert-qty-input {
  width: 58px;
  height: 46px;
  font-size: 18px;
}

/* ══════════════════════════════════════════
   SHOW/HIDE PASSWORD — botão dentro do input
   ══════════════════════════════════════════ */
span.password-input {
  position: relative;
  display: block;
}
span.password-input input[type="password"],
span.password-input input[type="text"] {
  padding-right: 44px !important;
  width: 100%;
}
.show-password-input {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--bert-gray-text);
  font-size: 0; /* oculta caractere do WooCommerce icon font */
  line-height: 1;
  z-index: 2;
  transition: color var(--bert-transition);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  outline: none;
}
.show-password-input i {
  font-size: 18px;
}
.show-password-input:hover { color: var(--bert-primary); }

/* ══════════════════════════════════════════
   MINHA CONTA — Endereços
   ══════════════════════════════════════════ */
.bert-addresses__intro {
  color: var(--bert-gray-text);
  margin-bottom: 24px;
  font-size: 14px;
}

.bert-address-box {
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  overflow: hidden;
  height: 100%;
  background: var(--bert-white);
  box-shadow: var(--bert-shadow);
}

.bert-address-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bert-gray-bg);
  border-bottom: 1px solid var(--bert-gray-border);
}

.bert-address-box__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bert-primary);
  margin: 0;
}

.bert-address-box__edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bert-primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--bert-radius-sm);
  transition: background var(--bert-transition);
}
.bert-address-box__edit:hover { background: rgba(0,92,169,.08); color: var(--bert-primary); }

.bert-address-box__body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bert-text);
}

.bert-address-box__body address { font-style: normal; }

.bert-address-box__empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bert-gray-text);
  font-size: 13px;
  margin: 0;
}
.bert-address-box__empty i { font-size: 18px; }

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Cupom 1ª compra (faixa navy full-width)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-coupon-banner {
  background: var(--bert-primary);
  color: #fff;
  padding: 14px 0;
}
.bert-coupon-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.bert-coupon-banner__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: .95rem; line-height: 1.4;
}
.bert-coupon-banner__title { font-weight: 800; margin-right: 6px; }
.bert-coupon-banner__subtitle { font-weight: 500; opacity: .96; }

/* Pílula com código + botão copiar */
.bert-coupon-banner__action {
  display: inline-flex; align-items: stretch;
  border: 2px dashed rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 4px;
  background: transparent;
  flex: 0 0 auto;
}
.bert-coupon-banner__code {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: transparent; color: #fff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .92rem; font-weight: 800; letter-spacing: .06em;
  white-space: nowrap;
}
.bert-coupon-banner__copy {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: #fff; color: var(--bert-primary);
  padding: 6px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  transition: background .15s, color .15s, transform .15s;
}
.bert-coupon-banner__copy:hover {
  background: rgba(255,255,255,.92); transform: translateY(-1px);
}
.bert-coupon-banner__copy.is-copied {
  background: #15803d; color: #fff;
}

@media (max-width: 575px) {
  .bert-coupon-banner__inner { gap: 12px; }
  .bert-coupon-banner__text  { flex-basis: 100%; text-align: center; }
  .bert-coupon-banner__action { width: 100%; justify-content: center; }
  .bert-coupon-banner__code { flex: 1 1 auto; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MARQUEE — letreiro contínuo (usado em marcas e categorias)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-marquee {
  position: relative;
  width: 100%; overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.bert-marquee__track {
  display: flex; width: max-content;
  animation: bert-marquee var(--bert-marquee-duration, 90s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.bert-marquee__group {
  display: flex; gap: 24px; padding-right: 24px;
  flex: 0 0 auto;
}
@keyframes bert-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.bert-marquee--slow .bert-marquee__track { --bert-marquee-duration: 120s; }
@media (prefers-reduced-motion: reduce) {
  .bert-marquee__track { animation: none; }
  .bert-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* Header de seção centralizado (default em product-grid e marquees) */
.bert-section-header--center {
  flex-direction: column; align-items: center; text-align: center;
  gap: 6px; margin-bottom: 18px;
}
.bert-section-header--center .bert-section-title { white-space: normal; }

/* "Ver todos" centralizado abaixo do carousel */
.bert-section-see-all-wrap {
  display: flex; justify-content: center;
  margin-top: 18px;
}
.bert-section-see-all-btn {
  padding: 10px 22px; font-size: .9rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.bert-section-see-all-btn i { transition: transform .2s; }
.bert-section-see-all-btn:hover i { transform: translateX(3px); }
.bert-section-header--center .bert-section-title__line {
  width: 80px; height: 4px;
  background: var(--bert-primary);
  border-radius: 2px;
  margin: 0 auto;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 4' fill='none'%3E%3Cpath d='M0 2 Q 10 0 20 2 T 40 2 T 60 2 T 80 2' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 4' fill='none'%3E%3Cpath d='M0 2 Q 10 0 20 2 T 40 2 T 60 2 T 80 2' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Navegação por categorias (marquee igual marcas)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-catnav { padding: 16px 0 8px; }

.bert-catnav-card {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
}
.bert-catnav-card__link {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  width: 100%; padding: 8px 6px;
  text-decoration: none; color: var(--bert-text, #222);
  transition: transform .18s;
}
.bert-catnav-card__link:hover { transform: translateY(-3px); }
.bert-catnav-card__img-wrap {
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%; overflow: hidden;
}
.bert-catnav-card__img {
  width: 100%; height: 100%; object-fit: cover;
}
.bert-catnav-card__name {
  font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--bert-text, #222);
}

@media (max-width: 575px) {
  .bert-catnav-card { flex: 0 0 160px; width: 160px; }
  .bert-catnav-card__img-wrap { width: 130px; height: 130px; }
  .bert-catnav-card__name { font-size: .9rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — 3 Banners promocionais
   ══════════════════════════════════════════════════════════════════════════ */
.bert-triple-banner { padding: 20px 0; }
.bert-triple-banner__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.bert-triple-banner__item { border-radius: var(--bert-radius); overflow: hidden; }
.bert-triple-banner__link { display: block; }
.bert-triple-banner__img {
  display: block; width: 100%; height: auto; border-radius: var(--bert-radius);
  transition: transform .25s;
}
.bert-triple-banner__link:hover .bert-triple-banner__img { transform: scale(1.02); }

@media (max-width: 767px) {
  .bert-triple-banner__grid {
    grid-template-columns: none;
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  /* Um banner por vez, INTEIRO (100%) — a espiada de 86% cortava a
     arte nas laterais. Navegação pelo swipe + dots. */
  .bert-triple-banner__item { flex: 0 0 100%; scroll-snap-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Marcas
   ══════════════════════════════════════════════════════════════════════════ */
.bert-brands { padding: 24px 0; }

/* CARDS — dimensões padronizadas (também valem dentro do marquee) */
.bert-brand-card {
  flex: 0 0 200px;
  width: 200px;
  display: flex;
}
.bert-brand-card__link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 120px;
  padding: 16px;
  background: transparent; border: 0; border-radius: var(--bert-radius);
  transition: transform .18s;
}
.bert-brand-card__link:hover {
  transform: translateY(-2px);
}
.bert-brand-card__logo {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(20%); transition: filter .18s;
}
.bert-brand-card__link:hover .bert-brand-card__logo { filter: grayscale(0%); }

@media (max-width: 575px) {
  .bert-brand-card { flex: 0 0 160px; width: 160px; }
  .bert-brand-card__link { height: 100px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ELEMENTOR — wrapper sem container/padding
   ══════════════════════════════════════════════════════════════════════════
   Páginas/posts construídos com Elementor renderizam dentro de
   .bert-page--elementor / .bert-single--elementor — sem container Bootstrap
   e sem padding, pra deixar o builder controlar 100% do layout. */
.bert-page--elementor,
.bert-single--elementor {
  padding: 0;
  margin: 0;
  max-width: none;
}
.bert-page--elementor > .bert-page__article,
.bert-single--elementor > article {
  padding: 0;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   TOASTS — substituem os notices nativos do WooCommerce
   ══════════════════════════════════════════════════════════════════════════
   - Posição fixa no rodapé direito (canto), empilháveis
   - Dura 5s, com botão fechar
   - Cores por tipo: success / error / info / warning
   - Off-white com borda colorida lateral, on-brand
*/

/* Esconde os notices nativos quando promovidos a toast */
.woocommerce-notices-wrapper:has(.bert-toast-mirror),
.bert-toast-mirror { display: none !important; }

.bert-toasts {
  position: fixed;
  bottom: calc(20px + var(--bert-toasts-offset, 0px));
  right: 20px;
  z-index: 100000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  width: 380px;
  transition: bottom .25s ease;
}

.bert-toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bert-header-bg, #fafafa); /* off-white igual ao header */
  color: var(--bert-text, #222);
  border: 1px solid var(--bert-gray-border);
  border-left: 4px solid var(--bert-primary);
  border-radius: var(--bert-radius);
  padding: 14px 12px 14px 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
  font-size: .9rem; line-height: 1.4;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s;
}
.bert-toast.is-visible { transform: translateX(0); opacity: 1; }
.bert-toast.is-leaving { transform: translateX(120%); opacity: 0; }

.bert-toast--success { border-left-color: #15803d; }
.bert-toast--success .bert-toast__icon i { color: #15803d; }
.bert-toast--error   { border-left-color: #b91c1c; }
.bert-toast--error .bert-toast__icon i   { color: #b91c1c; }
.bert-toast--info    { border-left-color: var(--bert-primary); }
.bert-toast--info .bert-toast__icon i    { color: var(--bert-primary); }
.bert-toast--warning { border-left-color: #b45309; }
.bert-toast--warning .bert-toast__icon i { color: #b45309; }

.bert-toast__icon { flex: 0 0 auto; font-size: 1.2rem; line-height: 1; padding-top: 1px; }
.bert-toast__body {
  flex: 1 1 auto; min-width: 0;
  word-wrap: break-word;
}
.bert-toast__body a {
  color: var(--bert-primary); font-weight: 700; text-decoration: underline;
}
.bert-toast__close {
  flex: 0 0 auto;
  width: 28px; height: 28px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  color: var(--bert-gray-text); font-size: 1.1rem; line-height: 1;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.bert-toast__close:hover { background: rgba(0,0,0,.06); color: var(--bert-text, #222); }

@media (max-width: 575px) {
  .bert-toasts { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .bert-toast { transform: translateY(120%); }
  .bert-toast.is-leaving { transform: translateY(120%); }
}

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINA DE CARRINHO
   ══════════════════════════════════════════════════════════════════════════ */
.bert-cart-page { padding: 24px 0 60px; }

.bert-cart-header {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bert-gray-border);
}
.bert-cart-header__title {
  margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--bert-text, #222);
  display: inline-flex; align-items: center; gap: 10px;
}
.bert-cart-header__title i { color: var(--bert-primary); }
.bert-cart-header__count {
  margin: 0; color: var(--bert-gray-text); font-size: .9rem; font-weight: 600;
}

.bert-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.bert-cart-grid__items { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bert-cart-grid__totals { position: sticky; top: 96px; }

@media (max-width: 991px) {
  .bert-cart-grid { grid-template-columns: 1fr; }
  .bert-cart-grid__totals { position: static; }
}

/* ITEM SIMPLES */
.bert-cart-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.6fr) auto auto auto;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  transition: border-color .15s;
}
.bert-cart-item:hover { border-color: var(--bert-primary); }
.bert-cart-item__thumb img {
  width: 90px; height: 90px; object-fit: contain;
  border: 1px solid var(--bert-gray-border); border-radius: var(--bert-radius-sm, 6px);
  background: #fff;
}
.bert-cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bert-cart-item__name {
  color: var(--bert-text, #222); font-weight: 600; font-size: .95rem;
  line-height: 1.35; text-decoration: none; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bert-cart-item__name:hover { color: var(--bert-primary); }
.bert-cart-item__unit { font-size: .85rem; color: var(--bert-gray-text); }
.bert-cart-item__qty .quantity input.qty {
  width: 64px; padding: 8px 6px; text-align: center; font-weight: 700;
  border: 1px solid var(--bert-gray-border); border-radius: var(--bert-radius-sm, 6px);
}
.bert-cart-item__total-value { font-weight: 800; font-size: 1rem; color: var(--bert-primary); }
.bert-cart-item__remove {
  display: inline-flex; align-items: center; gap: 6px;
  width: 36px; height: 36px; justify-content: center;
  border-radius: var(--bert-radius-sm, 6px);
  background: #fbe9e9; color: #b71c1c;
  text-decoration: none; transition: background .15s;
}
.bert-cart-item__remove:hover { background: #f8d7d7; color: #b71c1c; }
.bert-cart-item__remove span { display: none; }

.bert-cart-item__total {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}

/* AÇÕES (cupom + atualizar + continuar comprando) */
.bert-cart-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 8px; padding: 14px 0;
}
.bert-cart-coupon { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; }
.bert-cart-coupon__input {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--bert-gray-border); border-radius: var(--bert-radius-sm, 6px);
  font-size: .9rem;
}
.bert-cart-coupon__input:focus {
  outline: 0; border-color: var(--bert-primary);
  box-shadow: 0 0 0 3px rgba(26,42,122,.12);
}
.bert-cart-coupon__btn { padding: 10px 16px; font-size: .9rem; }
.bert-cart-update {
  padding: 10px 16px; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.bert-cart-continue {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 700; color: var(--bert-primary); text-decoration: none;
}
.bert-cart-continue:hover { color: var(--bert-primary); text-decoration: underline; }

/* TOTAIS (sidebar) */
.bert-cart-grid__totals .bert-cart-totals,
.bert-cart-grid__totals .cart_totals {
  background: #fff;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  padding: 22px;
  box-shadow: var(--bert-shadow);
}
.bert-cart-grid__totals h2 {
  margin: 0 0 14px; padding-bottom: 12px;
  font-size: 1.1rem; font-weight: 700; color: var(--bert-primary);
  border-bottom: 1px solid var(--bert-gray-border);
}
.bert-cart-grid__totals .shop_table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
.bert-cart-grid__totals .shop_table th,
.bert-cart-grid__totals .shop_table td {
  padding: 10px 0; border-bottom: 1px solid var(--bert-gray-border);
  text-align: left;
}
.bert-cart-grid__totals .shop_table tr:last-child th,
.bert-cart-grid__totals .shop_table tr:last-child td {
  border-bottom: 0;
}
.bert-cart-grid__totals .shop_table th { color: var(--bert-gray-text); font-weight: 600; }
.bert-cart-grid__totals .shop_table .order-total td {
  font-size: 1.15rem; font-weight: 800; color: var(--bert-primary);
}
.bert-cart-grid__totals .wc-proceed-to-checkout {
  margin-top: 16px; padding: 0;
}
.bert-cart-grid__totals .wc-proceed-to-checkout .checkout-button,
.bert-cart-grid__totals .checkout-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--bert-primary); color: #fff;
  border: 0; border-radius: var(--bert-radius-sm, 6px);
  font-size: 1rem; font-weight: 800; letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.bert-cart-grid__totals .checkout-button:hover {
  background: #0f1d52; transform: translateY(-1px);
}

/* Frete: layout de cards radio (em vez do td bagunçado padrão WC) */
.bert-cart-grid__totals .shop_table .shipping th,
.bert-cart-grid__totals .shop_table .shipping td {
  display: block; width: 100%;
  padding-top: 12px; padding-bottom: 12px;
}
.bert-cart-grid__totals .shop_table .shipping th { padding-bottom: 4px; }
.bert-cart-grid__totals .woocommerce-shipping-methods {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.bert-cart-grid__totals .woocommerce-shipping-methods li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius-sm, 6px);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bert-cart-grid__totals .woocommerce-shipping-methods li:hover {
  border-color: var(--bert-primary); background: #fafbff;
}
.bert-cart-grid__totals .woocommerce-shipping-methods li:has(input:checked) {
  border-color: var(--bert-primary); background: #eef1fb;
}
.bert-cart-grid__totals .woocommerce-shipping-methods input[type="radio"] {
  flex: 0 0 auto; margin: 3px 0 0;
  accent-color: var(--bert-primary);
}
.bert-cart-grid__totals .woocommerce-shipping-methods label {
  flex: 1 1 auto; min-width: 0;
  font-size: .85rem; line-height: 1.45; cursor: pointer;
  color: var(--bert-text, #222); font-weight: 600;
}
.bert-cart-grid__totals .woocommerce-shipping-methods label .amount {
  color: var(--bert-primary); font-weight: 800;
}
.bert-cart-grid__totals .woocommerce-shipping-destination {
  margin: 10px 0 0; font-size: .8rem; color: var(--bert-gray-text);
  line-height: 1.5;
}
.bert-cart-grid__totals .woocommerce-shipping-calculator {
  margin-top: 10px;
}
.bert-cart-grid__totals .woocommerce-shipping-calculator a {
  font-size: .82rem; font-weight: 700; color: var(--bert-primary);
}

/* Estado loading do item enquanto AJAX roda */
.bert-cart-item.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .65;
}
.bert-cart-item.is-loading::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.5);
  border-radius: var(--bert-radius);
}

/* MOBILE: itens do carrinho viram cards */
@media (max-width: 767px) {
  .bert-cart-item {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas:
      "thumb info  remove"
      "thumb qty   total";
    gap: 10px;
  }
  .bert-cart-item__thumb   { grid-area: thumb; }
  .bert-cart-item__thumb img { width: 70px; height: 70px; }
  .bert-cart-item__info    { grid-area: info; }
  .bert-cart-item__qty     { grid-area: qty; }
  .bert-cart-item__total   { grid-area: total; text-align: right; }
  .bert-cart-item__remove  { grid-area: remove; }
}

/* ══════════════════════════════════════════════════════════════════════════
   AGE GATE — verificação de idade 18+
   ══════════════════════════════════════════════════════════════════════════ */
.bert-agegate {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, rgba(0,58,107,.94) 0%, rgba(0,92,169,.96) 100%);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity .35s ease;
}
.bert-agegate.is-leaving { opacity: 0; pointer-events: none; }
.bert-agegate[hidden] { display: none; }

.bert-agegate__card {
  width: 100%;
  max-width: 460px;
  background: var(--bert-white);
  border-radius: 16px;
  border-top: 4px solid var(--bert-primary);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 36px 32px 28px;
  text-align: center;
}
.bert-agegate__logo { display: flex; justify-content: center; margin-bottom: 14px; }
.bert-agegate__logo img { max-height: 56px; width: auto; }
.bert-agegate__logo .site-name-link,
.bert-agegate__logo .bert-logo-text {
  font-size: 24px; font-weight: 800; color: var(--bert-primary); text-decoration: none;
}
.bert-agegate__welcome {
  margin: 0 0 4px;
  font-size: 14px; font-weight: 600;
  color: var(--bert-gray-text);
  text-transform: uppercase; letter-spacing: .06em;
}
.bert-agegate__title {
  margin: 0 0 20px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: var(--bert-text);
}
.bert-agegate__actions {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 16px;
}
.bert-agegate__btn {
  flex: 1 1 0;
  max-width: 170px;
  padding: 13px 20px;
  font-family: var(--bert-font);
  font-size: 15px; font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--bert-transition);
}
.bert-agegate__btn--yes {
  background: var(--bert-primary);
  color: var(--bert-white);
  border: 2px solid var(--bert-primary);
}
.bert-agegate__btn--yes:hover {
  background: var(--bert-primary-dark);
  border-color: var(--bert-primary-dark);
  transform: translateY(-1px);
}
.bert-agegate__btn--no {
  background: transparent;
  color: var(--bert-primary);
  border: 2px solid var(--bert-silver);
}
.bert-agegate__btn--no:hover { border-color: var(--bert-primary); }

.bert-agegate__underage {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--bert-radius);
  background: #fdecec;
  color: #b71c1c;
  font-size: 13px; font-weight: 600;
}
.bert-agegate__underage[hidden] { display: none; }

.bert-agegate__note {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--bert-gray-text);
  line-height: 1.5;
}
.bert-agegate__moderation {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--bert-gray-border);
  font-size: 12px; font-weight: 700;
  color: var(--bert-primary);
  letter-spacing: .02em;
}

/* trava o scroll do body enquanto o gate está aberto */
body.bert-agegate-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════
   OFERTAS RELÂMPAGO — seção com countdown
   ══════════════════════════════════════════════════════════════════════════ */
.bert-product-grid-section--flash {
  background: linear-gradient(180deg, var(--bert-gray-bg) 0%, rgba(243,245,248,0) 100%);
  padding: 24px 0 8px;
  border-top: 1px solid var(--bert-gray-border);
}
/* Header do flash CENTRALIZADO: título com raio em cima, contador
   logo abaixo — em todas as telas. */
.bert-section-header--flash {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 12px;
  text-align: center;
}
.bert-section-header--flash .bert-section-title {
  display: inline-flex; align-items: center; gap: 8px;
}
.bert-section-header--flash .bert-section-title__line { display: none; }
.bert-section-header--flash .bert-flash-countdown { justify-content: center; flex-wrap: wrap; }
.bert-flash-bolt { color: var(--bert-primary); flex-shrink: 0; }

.bert-flash-countdown {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.bert-flash-countdown__label {
  font-size: 13px; font-weight: 600; color: var(--bert-gray-text);
  margin-right: 4px;
}
.bert-flash-countdown__unit {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 44px;
  padding: 5px 6px 3px;
  background: var(--bert-primary);
  color: var(--bert-white);
  border-radius: var(--bert-radius-sm);
  line-height: 1.1;
}
.bert-flash-countdown__unit b {
  font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.bert-flash-countdown__unit small {
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--bert-silver);
}
.bert-flash-countdown__sep {
  font-weight: 800; color: var(--bert-primary);
}

@media (max-width: 767px) {
  .bert-flash-countdown__label { display: block; width: 100%; margin: 0 0 2px; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Banner promocional do meio (carrossel boxed)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-midbanner { margin: 32px 0; }
.bert-midbanner__carousel {
  border-radius: var(--bert-radius);
  overflow: hidden;
  box-shadow: var(--bert-shadow);
}
.bert-midbanner__picture,
.bert-midbanner__link { display: block; width: 100%; line-height: 0; }
.bert-midbanner__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 450;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 767px) {
  .bert-midbanner { margin: 20px 0; }
  /* Mobile: a imagem manda — altura natural da arte enviada, sem
     forçar proporção nem corte. !important blinda contra regra antiga
     em cache. */
  .bert-midbanner__image {
    aspect-ratio: auto !important;
    height: auto !important;
    object-fit: unset;
  }
}
.bert-midbanner__indicators [data-bs-target] {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bert-silver);
  border: 0; opacity: 1;
  transition: all var(--bert-transition);
}
.bert-midbanner__indicators .active {
  width: 20px; border-radius: 999px;
  background: var(--bert-white);
}
.bert-midbanner__nav { width: 8%; opacity: 0; transition: opacity var(--bert-transition); }
.bert-midbanner__carousel:hover .bert-midbanner__nav { opacity: .9; }

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINA QUEM SOMOS (page-quem-somos.php)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-about__hero {
  background: linear-gradient(160deg, var(--bert-topbar-bg) 0%, var(--bert-primary) 100%);
  color: var(--bert-white);
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
/* Imagem destacada da página como fundo, bem translúcida sob o gradiente */
.bert-about__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: saturate(.85);
  pointer-events: none;
}
.bert-about__hero-content { position: relative; z-index: 1; }
.bert-about__hero-kicker {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--bert-silver);
  margin: 0 0 12px;
}
.bert-about__hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin: 0 auto 16px;
  max-width: 720px;
  line-height: 1.15;
}
.bert-about__hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Números */
.bert-about__stats {
  background: var(--bert-primary-dark);
  color: var(--bert-white);
  padding: 28px 0;
}
.bert-about__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.bert-about__stat strong {
  display: block;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}
.bert-about__stat span {
  font-size: 13px; font-weight: 600;
  color: var(--bert-silver);
}
@media (max-width: 767px) {
  .bert-about__stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Linha do tempo */
.bert-about__timeline-wrap { padding: 48px 0 24px; }
.bert-about__timeline {
  list-style: none;
  margin: 8px auto 0;
  padding: 0;
  max-width: 760px;
  position: relative;
}
.bert-about__timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--bert-primary), var(--bert-silver));
}
.bert-about__milestone {
  position: relative;
  padding: 0 0 32px 44px;
}
.bert-about__milestone::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bert-white);
  border: 4px solid var(--bert-primary);
}
.bert-about__milestone-year {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--bert-white);
  background: var(--bert-primary);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.bert-about__milestone-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--bert-text);
  margin: 0 0 6px;
}
.bert-about__milestone p {
  color: var(--bert-gray-text);
  line-height: 1.65;
  margin: 0;
}

/* Conteúdo extra do editor */
.bert-about__content { padding: 8px 0 24px; }
.bert-about__content-inner {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--bert-text);
}
.bert-about__content-inner h2,
.bert-about__content-inner h3 { color: var(--bert-primary); margin: 24px 0 10px; }

/* Valores */
.bert-about__values {
  background: var(--bert-gray-bg);
  padding: 40px 0 48px;
}
.bert-about__values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.bert-about__value {
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--bert-transition), box-shadow var(--bert-transition);
}
.bert-about__value:hover { transform: translateY(-2px); box-shadow: var(--bert-shadow); }
.bert-about__value i {
  font-size: 28px;
  color: var(--bert-primary);
  display: block;
  margin-bottom: 10px;
}
.bert-about__value h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--bert-text); }
.bert-about__value p { font-size: 13px; color: var(--bert-gray-text); line-height: 1.55; margin: 0; }
@media (max-width: 991px) { .bert-about__values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .bert-about__values-grid { grid-template-columns: 1fr; } }

/* Unidades */
.bert-about__units { padding: 44px 0 24px; }
.bert-about__units-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 8px auto 0;
}
.bert-about__unit {
  border: 1px solid var(--bert-gray-border);
  border-top: 3px solid var(--bert-primary);
  border-radius: var(--bert-radius);
  padding: 22px 22px 18px;
  background: var(--bert-white);
}
.bert-about__unit-title {
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--bert-primary);
  margin: 0 0 12px;
}
.bert-about__unit-list { list-style: none; margin: 0; padding: 0; }
.bert-about__unit-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--bert-text);
  padding: 5px 0;
  line-height: 1.5;
}
.bert-about__unit-list i { color: var(--bert-primary); flex-shrink: 0; margin-top: 1px; }
.bert-about__unit-list a { color: var(--bert-primary); text-decoration: none; }
.bert-about__unit-list a:hover { text-decoration: underline; }
@media (max-width: 767px) { .bert-about__units-grid { grid-template-columns: 1fr; } }

/* CTA final */
.bert-about__cta {
  text-align: center;
  padding: 40px 0 64px;
}
.bert-about__cta-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--bert-text);
  margin: 0 0 8px;
}
.bert-about__cta-sub { color: var(--bert-gray-text); margin: 0 0 20px; }
.bert-about__cta-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* Quem Somos — vídeo institucional + diferenciais */
.bert-about__video-wrap { padding: 40px 0 16px; }
/* Layout centralizado: texto do editor em coluna centrada e o vídeo
   logo abaixo, também centrado — equilibra textos longos. */
.bert-about__video-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.bert-about__video-text { width: 100%; max-width: 760px; }
.bert-about__video-text .bert-btn-secondary { margin-top: 4px; }
.bert-about__video-frame { width: 100%; }
/* O texto desta coluna vem do EDITOR da página: h1/h2/h3 em azul,
   parágrafos no cinza padrão. */
.bert-about__video-text h1,
.bert-about__video-text h2,
.bert-about__video-text h3,
.bert-about__video-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--bert-primary);
  margin: 0 0 12px;
}
.bert-about__video-text h3 { font-size: clamp(17px, 2.2vw, 21px); }
.bert-about__video-text p {
  color: var(--bert-gray-text);
  line-height: 1.7;
  margin: 0 0 14px;
}
.bert-about__video-text strong { color: var(--bert-text); }
.bert-about__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--bert-radius);
  overflow: hidden;
  box-shadow: var(--bert-shadow-lg);
  background: var(--bert-primary-dark);
}
.bert-about__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767px) {
  .bert-about__video-grid { gap: 20px; }
}

/* Quem Somos — galeria "Nossa história em imagens" */
.bert-about__gallery-wrap { padding: 40px 0 8px; }
.bert-about__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
/* Células uniformes (sem masonry): todas as imagens no mesmo tamanho */
.bert-about__gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--bert-radius);
  aspect-ratio: 4 / 3;
}
.bert-about__gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.bert-about__gallery-img,
.bert-about__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.bert-about__gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
  .bert-about__gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINA FALE CONOSCO (page-fale-conosco.php)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-contact__channels { padding: 36px 0 8px; }
.bert-contact__channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 8px auto 0;
}
.bert-contact__channel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  background: var(--bert-white);
  padding: 20px;
  text-decoration: none;
  transition: transform var(--bert-transition), box-shadow var(--bert-transition), border-color var(--bert-transition);
}
a.bert-contact__channel:hover {
  transform: translateY(-2px);
  box-shadow: var(--bert-shadow);
  border-color: var(--bert-primary);
}
.bert-contact__channel i {
  font-size: 24px;
  color: var(--bert-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.bert-contact__channel strong {
  display: block;
  font-size: 15px;
  color: var(--bert-text);
  margin-bottom: 2px;
}
.bert-contact__channel span {
  font-size: 13.5px;
  color: var(--bert-gray-text);
  line-height: 1.5;
}
@media (max-width: 767px) { .bert-contact__channels-grid { grid-template-columns: 1fr; } }

.bert-contact__form-wrap { padding: 36px 0 24px; }
.bert-contact__form-inner {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════════════
   LIGHTBOX — galeria (zoom + navegação)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 18, 33, .92);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.bert-lightbox.is-open { opacity: 1; }
.bert-lightbox[hidden] { display: none; }

.bert-lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--bert-radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  user-select: none;
}

.bert-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--bert-white);
  font-size: 22px;
  cursor: pointer;
  transition: background var(--bert-transition);
}
.bert-lightbox__btn:hover { background: var(--bert-primary); }
.bert-lightbox__btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.bert-lightbox__btn--next { right: 16px; top: 50%; transform: translateY(-50%); }
.bert-lightbox__btn--close { top: 16px; right: 16px; }

.bert-lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bert-silver);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
@media (max-width: 767px) {
  .bert-lightbox__btn { width: 40px; height: 40px; font-size: 18px; }
  .bert-lightbox__btn--prev { left: 8px; }
  .bert-lightbox__btn--next { right: 8px; }
}
body.bert-lightbox-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════
   HOME — Nossa história (vídeo institucional, final da página)
   ══════════════════════════════════════════════════════════════════════════ */
.bert-historia {
  background: linear-gradient(160deg, var(--bert-topbar-bg) 0%, var(--bert-primary) 100%);
  color: var(--bert-white);
  padding: clamp(40px, 7vw, 72px) 0;
  margin-top: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Mesma imagem destacada do Quem Somos, translúcida sob o gradiente */
.bert-historia__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: saturate(.85);
  pointer-events: none;
}
.bert-historia__container { position: relative; z-index: 1; }
.bert-historia__inner { max-width: 860px; margin: 0 auto; }
.bert-historia__kicker {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--bert-silver);
  margin: 0 0 10px;
}
.bert-historia__title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
}
.bert-historia__sub {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.bert-historia__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--bert-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  margin: 0 0 26px;
  background: var(--bert-primary-dark);
}
.bert-historia__video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.bert-historia__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px; font-weight: 700;
  color: var(--bert-primary);
  background: var(--bert-white);
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--bert-transition), box-shadow var(--bert-transition), color var(--bert-transition);
}
.bert-historia__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  color: var(--bert-primary-dark);
}
.bert-historia__btn i { transition: transform var(--bert-transition); }
.bert-historia__btn:hover i { transform: translateX(3px); }

/* Detalhes da conta — fieldset "Dados pessoais" (CPF/celular/nascimento) */
.bert-account-extra {
  margin-top: 24px;
  padding: 20px 20px 8px;
  border: 1px solid var(--bert-gray-border);
  border-radius: var(--bert-radius);
  background: var(--bert-gray-bg);
}
.bert-account-extra legend {
  font-size: 14px;
  font-weight: 800;
  color: var(--bert-primary);
  padding: 0 8px;
}
/* Campo de data: nativo não estica sozinho — força largura/altura dos demais */
.woocommerce-MyAccount-content input[type=date] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
  max-width: 100%;
}
.woocommerce-MyAccount-content input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .6;
}

/* Botão "Salvar alterações" — pílula com presença, à altura do formulário */
.woocommerce-EditAccountForm button[name="save_account_details"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 48px;
  padding: 0 36px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,92,169,.28);
  transition: background var(--bert-transition), transform var(--bert-transition), box-shadow var(--bert-transition);
}
.woocommerce-EditAccountForm button[name="save_account_details"]:hover {
  background: var(--bert-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,92,169,.35);
}
@media (max-width: 575px) {
  .woocommerce-EditAccountForm button[name="save_account_details"] { width: 100%; min-width: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL TRABALHE CONOSCO (link do rodapé) — LinkedIn ou e-mail
   ══════════════════════════════════════════════════════════════════════════ */
.bert-jobs-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bert-jobs-modal[hidden] { display: none; }
.bert-jobs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 54, .45);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.bert-jobs-modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bert-white);
  border-top: 4px solid var(--bert-primary);
  border-radius: 16px;
  box-shadow: var(--bert-shadow-lg);
  padding: 28px 26px 24px;
  animation: bert-auth-in .25s ease;
}
.bert-jobs-modal__close {
  position: absolute;
  top: 10px; right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--bert-gray-text);
  cursor: pointer;
  padding: 4px;
}
.bert-jobs-modal__close:hover { color: var(--bert-text); }
.bert-jobs-modal__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--bert-primary);
  margin: 0 0 6px;
}
.bert-jobs-modal__sub {
  font-size: 14px;
  color: var(--bert-gray-text);
  line-height: 1.55;
  margin: 0 0 18px;
}
.bert-jobs-modal__options { display: grid; gap: 12px; }
.bert-jobs-modal__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--bert-gray-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color var(--bert-transition), box-shadow var(--bert-transition), transform var(--bert-transition);
}
.bert-jobs-modal__opt:hover {
  border-color: var(--bert-primary);
  box-shadow: 0 6px 18px rgba(0,92,169,.14);
  transform: translateY(-1px);
}
.bert-jobs-modal__opt-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,92,169,.08);
  color: var(--bert-primary);
}
.bert-jobs-modal__opt-icon svg { width: 20px; height: 20px; }
.bert-jobs-modal__opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bert-jobs-modal__opt-text strong { font-size: 15px; font-weight: 700; color: var(--bert-text); }
.bert-jobs-modal__opt-text small {
  font-size: 12.5px;
  color: var(--bert-gray-text);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.bert-jobs-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════
   BACKDROP DOS OFFCANVAS (menu mobile + sidecart) — blur sutil no site
   ══════════════════════════════════════════════════════════════════════════ */
.offcanvas-backdrop {
  background-color: #0a1f36; /* azul profundo da marca em vez do preto */
  -webkit-backdrop-filter: blur(0);
          backdrop-filter: blur(0);
  transition: opacity .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease;
}
.offcanvas-backdrop.show {
  opacity: .45;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* Mantém o véu azul da marca + blur no backdrop do drawer MESMO quando o
   Digitalmart Hub está ativo (o sidecart.css dele pinta o backdrop de preto
   liso rgba(0,0,0,.5); o !important preserva nossa identidade e o blur). */
.cart-drawer__backdrop {
  background-color: rgba(10, 31, 54, .45) !important;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════════════════════════════════
   LOGIN / CADASTRO (Minha Conta deslogado) — card com abas, mobile-first
   ══════════════════════════════════════════════════════════════════════════ */
.bert-auth {
  display: flex;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px) 0 56px;
}
.bert-auth__card {
  width: 100%;
  max-width: 460px;
  background: var(--bert-white);
  border: 1px solid var(--bert-gray-border);
  border-top: 4px solid var(--bert-primary);
  border-radius: 16px;
  box-shadow: var(--bert-shadow-lg);
  padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 32px) 22px;
}

/* Abas Entrar | Criar conta */
.bert-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bert-gray-bg);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
}
.bert-auth__tab {
  border: 0;
  background: transparent;
  padding: 11px 10px;
  border-radius: 999px;
  font-family: var(--bert-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--bert-gray-text);
  cursor: pointer;
  transition: background var(--bert-transition), color var(--bert-transition), box-shadow var(--bert-transition);
}
.bert-auth__tab.is-active {
  background: var(--bert-primary);
  color: var(--bert-white);
  box-shadow: 0 2px 8px rgba(0,92,169,.35);
}

/* Painéis */
.bert-auth__panel { display: none; }
.bert-auth__panel.is-active { display: block; animation: bert-auth-in .25s ease; }
@keyframes bert-auth-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Zera o "cartão dentro do cartão": os formulários Woo trazem borda/padding
   próprios das regras genéricas da Minha Conta — aqui o card é o .bert-auth__card */
.bert-auth .woocommerce-form-login,
.bert-auth .woocommerce-form-register {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* Painel da marca (aside) — só no desktop */
.bert-auth__aside { display: none; }

@media (min-width: 992px) {
  .bert-auth__card {
    max-width: 900px;
    display: grid;
    grid-template-columns: 360px 1fr;
    padding: 0;
    border-top: 1px solid var(--bert-gray-border);
    overflow: hidden;
  }
  .bert-auth__aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 44px 36px 32px;
    background: linear-gradient(160deg, var(--bert-primary) 0%, var(--bert-primary-dark) 85%);
    color: var(--bert-white);
  }
  .bert-auth__aside-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--bert-white);
    margin: 0 0 22px;
  }
  .bert-auth__aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 13px;
  }
  .bert-auth__aside-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(255,255,255,.92);
    line-height: 1.45;
  }
  .bert-auth__aside-list i {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-size: 13px;
  }
  .bert-auth__aside-safe {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,.75);
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .bert-auth__aside-safe i { font-size: 16px; }
  .bert-auth__main { padding: 40px 44px 26px; }
  /* No desktop o aside já lista os benefícios e o selo de segurança */
  .bert-auth__panel .bert-auth__benefits { display: none; }
  .bert-auth__main .bert-auth__safe { display: none; }
}

/* Variante estreita — recuperar/redefinir senha (sem painel lateral) */
.bert-auth__head { text-align: center; margin-bottom: 20px; }
.bert-auth__head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(0,92,169,.08);
  color: var(--bert-primary);
  font-size: 24px;
  margin-bottom: 12px;
}
.bert-auth__head-icon--ok { background: rgba(15,157,88,.1); color: var(--bert-green); }
.bert-auth__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--bert-text);
  margin: 0 0 6px;
}
.bert-auth__sub {
  font-size: 14px;
  color: var(--bert-gray-text);
  line-height: 1.55;
  margin: 0;
}
.bert-auth__back { text-align: center; margin: 16px 0 0; font-size: 14px; }
.bert-auth__back a { color: var(--bert-primary); font-weight: 600; text-decoration: none; }
.bert-auth__back a:hover { text-decoration: underline; }
.bert-auth--narrow .lost_reset_password { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.bert-auth--narrow .lost_reset_password .form-row { width: 100%; float: none; }
@media (min-width: 992px) {
  .bert-auth--narrow .bert-auth__card {
    display: block;
    max-width: 480px;
    padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 32px) 22px;
    border-top: 4px solid var(--bert-primary);
    overflow: visible;
  }
  .bert-auth--narrow .bert-auth__main { padding: 0; }
  .bert-auth--narrow .bert-auth__main .bert-auth__safe { display: flex; }
}

/* Campos grandes (48px) — confortáveis no dedo */
.bert-auth .form-row { margin: 0 0 14px; padding: 0; }
.bert-auth .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bert-text);
  margin-bottom: 6px;
}
.bert-auth .input-text {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-family: var(--bert-font);
  border: 1px solid var(--bert-gray-border);
  border-radius: 10px;
  background: var(--bert-white);
  transition: border-color var(--bert-transition), box-shadow var(--bert-transition);
}
.bert-auth .input-text:focus {
  outline: none;
  border-color: var(--bert-primary);
  box-shadow: 0 0 0 3px rgba(0,92,169,.12);
}

/* Lembrar-me + esqueci a senha */
.bert-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 16px;
  flex-wrap: wrap;
}
.bert-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--bert-gray-text);
  cursor: pointer;
  margin: 0;
}
.bert-auth__remember input { width: 17px; height: 17px; accent-color: var(--bert-primary); }
.bert-auth__lost { font-size: 13px; font-weight: 600; color: var(--bert-primary); text-decoration: none; }
.bert-auth__lost:hover { text-decoration: underline; }

/* Botão principal full-width */
.bert-auth__submit,
.bert-auth .woocommerce-form-login__submit,
.bert-auth .woocommerce-form-register__submit {
  display: block !important;
  width: 100%;
  height: 50px;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  justify-content: center;
  background: var(--bert-primary);
  color: var(--bert-white);
  border: 0;
  font-family: var(--bert-font);
  cursor: pointer;
  transition: background var(--bert-transition);
}
.bert-auth__submit:hover { background: var(--bert-primary-dark); color: var(--bert-white); }

/* Benefícios do cadastro */
.bert-auth__benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--bert-gray-bg);
  border-radius: var(--bert-radius);
}
.bert-auth__benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--bert-text);
  padding: 4px 0;
}
.bert-auth__benefits li i {
  color: var(--bert-green);
  font-size: 15px;
  flex-shrink: 0;
}

.bert-auth__note { font-size: 13px; color: var(--bert-gray-text); margin: 0 0 14px; }

/* Selo de segurança no rodapé do card */
.bert-auth__safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bert-gray-border);
  font-size: 12px;
  color: var(--bert-gray-text);
}
.bert-auth__safe i { color: var(--bert-primary); }
