/* ================================================================
   catalogo/assets/css/catalogo.css
   CSS estático do frontend do catálogo.
   Cores, fontes e tamanhos dinâmicos vêm via CSS Variables
   definidas em sections/head.php como :root { --ch: ...; }
   ================================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #F9F9F9;
}

body.catalogo { background: #F9F9F9; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { padding: 0 !important; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; margin: 0; }
h1 { font-size: 1.8rem; }
h2.section-title { font-size: 1.5rem; }

.cor_titulo { color: var(--cor-titulo); }

/* ── Bootstrap gutter override ─────────────────────────────────── */
.container { --bs-gutter-x: 0.4rem !important; }

/* ── Header ────────────────────────────────────────────────────── */
header { background: var(--ch); width: 100%; border-bottom: 1px solid rgba(0,0,0,.08); }

.catalog-header { padding: 10px; }

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.loja-info { display: flex; gap: 12px; align-items: center; }

.logo-loja-com-borda {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.logo-loja-sem-borda {
  max-width: 120px; max-height: 110px;
  object-fit: contain;
}

.loja-texto { max-width: 520px; }
.loja-texto h1 { font-size: 20px; margin: 0; }

.descricao { font-size: 13px; color: var(--ch-text); margin: 2px 0; }

.loja-meta { font-size: 13px; font-weight: bold; color: var(--ch-text); }
.loja-meta span { margin-right: 10px; }

.loja-acoes { display: flex; gap: 8px; justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; }

/* Botões do header */
.btn-busca, .btn-menu {
  border: 1px solid rgba(0,0,0,.15);
  background: white;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: #666;
  height: 40px;
}
.btn-busca:hover, .btn-menu:hover { background: rgba(0,0,0,.05); }

.btn-seguir {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--seguir-bg);
  color: var(--seguir-text);
  cursor: pointer;
  transition: all .2s ease;
  height: 40px;
}

.btn-seguir:hover { opacity: .85; }

.btn-whats-contato {
  display: inline-flex; align-items: center; gap: 5px;
  background: #058101;
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: 500;
  height: 40px;
}
.btn-whats-contato:hover { opacity: .9; }

.btn-cart {
  background: var(--wpp-bg) !important;
  color: var(--wpp-text) !important;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  height: 40px;
}
.btn-cart:hover { opacity: .9; }

.btn-painel { border-radius: 20px; height: 40px;}

.hamburger {
  background: none; border: none;
  font-size: 35px; cursor: pointer;
  color: var(--ch-text);
  padding: 0px !important;
  height: 45px;
}
.hamburger:hover{
  background: none; border: none;
  color: var(--wpp-bg);
}

/* Overlay de busca */
.busca-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%); opacity: 0;
  transition: all .35s ease;
  z-index: 999;
}
.busca-overlay.ativa { transform: translateY(0); opacity: 1; }

.busca-container {
  display: flex; align-items: center; gap: 15px;
  width: 90%; max-width: 700px;
  border-bottom: 1px solid #ddd; padding: 10px;
}
.busca-container form { width: 90%; max-width: 700px; }
.busca-container input {
  width: 100%; flex: 1; border: none; outline: none;
  font-size: 18px; background: none;
}
.busca-container button {
  border: none; background: none; cursor: pointer; font-size: 20px; color: #666;
}

.backdrop { display: none; }

/* ── Topbar ─────────────────────────────────────────────────────── */
.top-bar {
  padding: 4px 0;
  background: var(--ctb);
  color: var(--ctb-text);
}
.top-bar a { color: var(--ctb-text); }

.topbar-wrapper {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.topbar-swiper { width: 600px; overflow: hidden; }
.topbar-swiper .swiper-slide { text-align: center; white-space: nowrap; }
.topbar-nav {
  background: transparent; border: none;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  color: var(--ctb-text);
}

@media (max-width: 768px) {
  .topbar-swiper { width: 360px; }
  .topbar-nav { display: none; }
}

/* ── Menu de categorias ─────────────────────────────────────────── */
.bottom-bar { width: 100%; }

.menu-tradicional { background: var(--cm) !important; }

.bottom-bar .categories {
  display: flex; flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden;
  white-space: nowrap; -webkit-overflow-scrolling: touch;
  margin: 0; list-style: none; gap: .75rem;
  scrollbar-width: none; scroll-snap-type: x mandatory;
}
.bottom-bar .categories::-webkit-scrollbar { display: none; }
.bottom-bar .categories li { flex: 0 0 auto; scroll-snap-align: start; }

.menu-tradicional .categories a {
  display: inline-block; padding: 10px 15px;
  transition: .2s; font-weight: 600;
  color: var(--cm-link) !important;
  background: var(--cm-link-bg);
}
.menu-tradicional .categories a:hover {
  background: var(--cm-link-bg-hover); color: var(--cm-link-hover) !important;
}

/* Menu tags/grid */
.cs-bottom-bar { background: var(--cm) !important; padding: 10px; }

.menu-categorias-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  overflow-x: hidden; white-space: normal;
}
.menu-categorias-tags li { flex: none; }
.menu-categorias-tags a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  font-size: .9rem; font-weight: 600;
  background: var(--cm-link-bg); color: var(--cm-link) !important;
  border: 1px solid rgba(0,0,0,.1);
}
.menu-categorias-tags a:hover {
  background: var(--cm-link-bg-hover); transform: scale(1.03);
}
@media (max-width: 480px) {
  .menu-categorias-tags a { font-size: .85rem; padding: 7px 12px; }
}

/* Menu instagram */
.category-item { min-width: 70px; }
.category-img { display: flex; justify-content: center; }
.category-img img {
  width: 60px; height: 60px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--cm-link-bg);
  padding: 2px;
}
.category-name { font-size: 11px; display: block; text-align: center; margin-top: 3px; }
.category-name a { color: var(--cm-link) !important; }

/* Links de menu genérico */
.cor_menu_bg_link {
  background: var(--cm-link-bg) !important;
  color: var(--cm-link) !important;
}
.cor_menu_bg_link:hover {
  background: var(--cm-link-bg-hover) !important;
  color: var(--cm-link-hover) !important;
}

/* ── Sidebar mobile ─────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: -100%;
  width: 80%; max-width: 320px; height: 100%;
  background: #fff; box-shadow: 2px 0 10px rgba(0,0,0,.15);
  z-index: 1050; transition: left .3s ease;
  display: flex; flex-direction: column;
}
.sidebar.active { left: 0; }

.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1040; opacity: 0; visibility: hidden;
  transition: opacity .3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 1rem; border-bottom: 1px solid #eee;
}
.sidebar-header .search-box { flex: 1; position: relative; }
.sidebar-header .search-box input {
  width: 100%; border-radius: 30px; border: 1px solid #ddd;
  padding: 8px 40px 8px 14px; font-size: 14px;
}
.sidebar-header .search-box button {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%); border: none; background: none; color: #777;
}

.close-sidebar {
  background: transparent; border: none;
  font-size: 2rem; color: #666; cursor: pointer;
}

.sidebar-content {
  flex: 1; overflow-y: auto; padding: 1rem 1.5rem;
}
.sidebar-content::-webkit-scrollbar { width: 6px; }
.sidebar-content::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.sidebar-title { font-size: 12px; text-transform: uppercase; color: #888; margin: 15px 0 10px; }

.sidebar-footer {
  font-size: 12px; color: #999; text-align: center;
  padding: 12px; border-top: 1px solid #eee; background: #fafafa;
}

.menu-container { position: relative; width: 100%; overflow: hidden; min-height: 200px; }
.menu-level { position: absolute; top: 0; left: 100%; width: 100%; transition: all .3s ease; }
.menu-level.active { left: 0; }
.menu-level.prev { left: -100%; }

.menu-back {
  display: flex; align-items: center; gap: 6px;
  border: none; background: none; font-size: 15px; color: #333;
  margin-bottom: 10px; cursor: pointer;
}

.sidebar-menu li { border-bottom: 1px solid #f1f1f1; }
.sidebar-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px; text-decoration: none; color: #333;
}
.sidebar-menu li a:hover { background: #f6f6f6; padding-left: 10px; }

.menu-right { display: flex; align-items: center; gap: 10px; }
.menu-arrow { font-size: 14px; color: #999; }

/* ── Grid de produtos ───────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 8px;
  justify-content: center;
  /* mobile: 2 colunas por padrão */
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 265px), var(--grid-min, 265px)));
  }
  .offcanvas { --bs-offcanvas-width: 550px !important; }
}

/* Na página de categoria (com sidebar) o grid alinha à esquerda */
.page-categoria .grid {
  justify-content: start;
}

/* Modo lista */
.list { display: flex; flex-direction: column; gap: 6px; }

.produto-lista-item {
  padding: 10px; background: #fff; gap: 10px;
  border: 1px solid #f7f7f7; border-radius: 20px;
  display: flex; align-items: center;
}
.produto-lista-item:hover { background: #f7f7f7; border-color: #eee; }

.produto-lista-img {
  width: 100px !important; height: 100px !important;
  object-fit: cover; border-radius: 8px;
}
.produto-lista-info h4 { font-size: 16px; margin: 0; }
.produto-lista-acoes { display: flex; align-items: start; }

@media (max-width: 768px) {
  .produto-lista-img { width: 75px !important; height: 75px !important; }
}

/* ── Cards de produto ───────────────────────────────────────────── */
.btn-add-carrinho {
  background: var(--card-btn-bg) !important;
  color: var(--card-btn-text) !important;
  border-radius: 20px;
  border: 1px solid var(--card-btn-bg-hover);
  font-weight: bold;
}
.btn-add-carrinho:hover {
  background: var(--card-btn-bg-hover) !important;
  color: var(--card-btn-text-hover) !important;
}

.price { color: var(--price-color); font-size: var(--price-size); }
.price-de { color: #666; font-size: 14px; text-decoration: line-through; display: block; }

.text-parcelamento { font-size: 12px; color: #666; }

.produtoNome { font-size: 14px; line-height: 1.3; }

/* Badge de desconto */
.badge-desconto {
  position: absolute; top: 0; right: 0; margin: 8px;
  background: #e53935; color: #fff; font-size: 11px;
  font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

/* ── Página de produto ──────────────────────────────────────────── */
.page-produto { background: #f9f9f9; padding: 5px; max-width: 1100px; margin: 10px auto;}
.container-produto { padding: 10px 20px; }

.product-attributes h1 { color: var(--titulo-color); font-size: var(--price-size); }
.product-attributes ul { margin-left: 30px !important; }

.product-title h1 { color: var(--titulo-color); }

.is_related {
  background: var(--ctb); color: var(--ctb-text);
  padding: 8px 20px;
}
.is_related #containerProdutos {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}

.is_destaque, .is_promocao { padding-top: 10px; }

@media (max-width: 768px) {
  .page-produto { background: #fff; padding: 1px; }
  .product-title { margin-top: 20px; }
}

/* ── Sidebar de filtros (categoria) ────────────────────────────── */
.filtros-box { padding: 7px 10px; border: 1px solid #e5e5e5; border-radius: 5px; }
.filtros-box h5 { font-size: 16px !important; }

.filtro-grupo { margin-bottom: 8px; }
.filtro-header { cursor: pointer; font-weight: 600; padding: 4px 0; }

.cat-item { padding: 3px 0; display: flex; }
.cat-item a { color: var(--ch-text) !important; }

.nivel-0 { font-weight: 600; color: #000 !important; }
.nivel-1 { padding-left: 15px; font-size: .95rem; color: #555 !important; }
.nivel-2 { padding-left: 30px; font-size: .9rem; color: #777 !important; }

.cat-right { display: flex; align-items: center; gap: 6px; }
.cat-count { font-size: 12px; color: #999; }
.cat-arrow { font-size: 12px; color: #bbb; }
.active-cat { color: #000; font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  background: var(--cf-bg);
  color: var(--cf-text) !important;
  width: 100%;
  padding: 30px 0;
}
footer .text-muted { color: var(--cf-text) !important; }
footer a { color: var(--cf-text); }
footer a:hover { opacity: .8; }

.footer-logo { border: 2px solid #fff; max-width: 120px; }
.footer-secure img { max-width: 100px; }

.feitocom { font-size: 16px; }
.feito-com { color: #0D74DF; font-weight: 600; }

/* ── Rating / Avaliações ─────────────────────────────────────────── */
.rating { font-size: 14px; }
.avatar-review {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
}

/* ── Swiper produto (galeria) ────────────────────────────────────── */
.product { display: flex; gap: 12px; }
.mySwiper { width: 80px; flex-shrink: 0; height: 420px; max-height: 80vh; }
.mySwiper .swiper-slide { width: 80px; height: 80px; cursor: pointer; opacity: .6; border-radius: 6px; overflow: hidden; }
.mySwiper .swiper-slide-thumb-active { opacity: 1; border: 2px solid var(--ch); }
.mySwiper.swiper-hidden { display: none; }
.mySwiper2 { flex: 1; }
.mySwiper2 img {
  width: 100%;
  aspect-ratio: var(--card-img-ratio, 1/1);
  object-fit: cover;
  border-radius: 8px;
}

.play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px; color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,.6);
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
nav { padding: 0 5px; }

/* ── Botão CTA genérico ──────────────────────────────────────────── */
.btn-whats {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  border: none;
}
.btn-whats:hover { opacity: .9; }

/* ── Home container ──────────────────────────────────────────────── */
.home-container { padding: 5px; margin: 0 auto; }
.home-container img { width: 100%; border-radius: 15px; }

/* ── Misc ────────────────────────────────────────────────────────── */
.text-parcelamento { font-size: .8rem; color: #666; }

/* Ferramentas de grid na listagem */
.tools-grid { font-size: 13px; }
.btn-grid { font-size: 18px; }
.btn-grid.active { color: var(--ch); }

/* Como funciona box */
.como-funciona-box { background: #f9f9f9; border-radius: 8px; padding: 12px 16px; }

/* Filtro offcanvas mobile */
.offcanvas-body { padding: 1rem; }

/* Texto de filtros ativos */
.filtros-ativos-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f0f0; border-radius: 20px;
  padding: 2px 10px; font-size: 12px; margin: 2px;
}

/* Seção depoimentos */
.secao-depoimentos { padding: 20px 0; }


/* ── Produto card (vitrine / lista) ─────────────────────────────── */
.produto-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.produto-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); transform: translateY(-2px); }

/* Vitrine */
.produto-card.vitrine .img-box { position: relative; overflow: hidden; }
.produto-card.vitrine .img-box img {
  width: 100%; aspect-ratio: var(--card-img-ratio, 1/1); object-fit: cover;
  transition: transform .3s ease;
}
.produto-card.vitrine:hover .img-box img { transform: scale(1.04); }
.produto-card.vitrine .info { padding: 8px 10px 12px; }
.produto-card.vitrine .produto-titulo {
  font-size: 13px; font-weight: 500; line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: #222; margin-bottom: 4px;
}
.produto-card.vitrine .preco { margin: 0; font-size: 14px; font-weight: 700; color: var(--price-color); }
.produto-card.vitrine .preco .old {
  display: block; font-size: 11px; color: #aaa;
  text-decoration: line-through; font-weight: 400;
}
.produto-card.vitrine .preco .promo { color: var(--price-color); }

/* Badge overlay no card vitrine */
.badge-overlay {
  position: absolute; top: 6px; left: 6px;
  display: flex; flex-direction: column; gap: 3px; z-index: 2;
}

/* Lista */
.produto-card.lista {
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px; padding: 8px;
  border: 1px solid #f0f0f0;
}
.produto-card.lista a { display: flex; gap: 10px; width: 100%; }
.produto-card.lista .img-box { flex-shrink: 0; width: 90px; height: 90px; border-radius: 8px; overflow: hidden; }
.produto-card.lista .img-box img { width: 100%; height: 100%; object-fit: cover; }
.produto-card.lista .info { flex: 1; }
.produto-card.lista h3 { font-size: 14px; font-weight: 500; line-height: 1.35; color: #222; margin-bottom: 4px; }
.produto-card.lista .preco { font-size: 14px; font-weight: 700; color: var(--price-color); margin: 0; }
.produto-card.lista .preco .old { font-size: 11px; color: #aaa; text-decoration: line-through; }

/* ── Props produto (disponibilidade, frete, etc) ────────────────── */
.props-produto { font-size: 13px; margin: 4px 0; display: flex; align-items: center; gap: 4px; }

/* ── Atributos do produto ────────────────────────────────────────── */
.attributes-bb {
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 12px;
  font-size: 16px;
}

/* ── Seções de home ──────────────────────────────────────────────── */
.secao { padding-top: 0px; }

.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgb(34, 34, 34);
    margin: 1.5rem 0px;
}

.section-title.depoimentos { font-size: 1.4rem; }
.section-title.lancamentos { font-size: 1.4rem; }
.section-title.categoria   { font-size: 1.4rem; }

/* ====== ESTILO GERAL DAS SEÇÕES ====== */
.section-title {
  font-weight: 700;
  font-size: 1.8rem;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.5rem 0 1.5rem;
  color: #222;
}

/* ====== LINHA DECORATIVA ABAIXO DO TÍTULO ====== */
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff7a00, #ffb400);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ====== VERSÃO COLORIDA OPCIONAL POR SEÇÃO ====== */
.section-title.promocoes::after {
  background: linear-gradient(90deg, #ff0000, #ff6a00);
}
.section-title.lancamentos::after {
  background: linear-gradient(90deg, #007bff, #00c6ff);
}
.section-title.depoimentos::after {
  background: linear-gradient(90deg, #00b894, #55efc4);
}
.section-title.categoria::after {
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

/* ── Banners Swiper ──────────────────────────────────────────────── */
.banner-img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 320px; }
.banner-slide { line-height: 0; }

/* ── Siga-nos ────────────────────────────────────────────────────── */
.secao-siganos .social-link {
  font-size: 3.5rem; color: #555;
  transition: color .2s ease, transform .2s ease;
}
.secao-siganos .social-link:hover { color: #111; transform: scale(1.12); }
.siganos-call { color: #666; font-size: 1.05rem; }

/* ── Produtos relacionados ───────────────────────────────────────── */
.produtos-relacionados { padding-bottom: 16px; }

/* ── Página institucional ────────────────────────────────────────── */
.pagina-conteudo { line-height: 1.75; font-size: 15px; }
.pagina-conteudo p { margin-bottom: 10px; }

/* ── Aside sidebar filtros ───────────────────────────────────────── */
.aside {
  font-size: 13px;
  min-width: 0;    /* evita overflow que quebra o layout no mobile */
  word-break: break-word;
}

/* ================================================================
   HEADERS 2 / 3 / 4
   Comuns: meta-item, dot-online, logo quadrado
   ================================================================ */

.meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #666;
}
.dot-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: #25D366; display: inline-block; margin-right: 3px; vertical-align: middle;
}

/* Logo quadrado (Header 4) */
.logo-loja-quadrado {
  width: 72px; height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.45);
}

.h1-logo {
  width: 100px; height: 100px; margin-bottom: 10px;
  min-width: 100px;
  min-height: 100px;
}

.lbl-texto-cart{
  font-size: 14px;;
}

/* ── Header 2 — Centralizado ───────────────────────────────────── */
.header-2 {
  background: var(--ch);
  border-bottom: 1px solid rgba(0,0,0,.08);
  width: 100%;
}

.h2-wrapper {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px 16px;
}

.h2-logo-link { display: block; }

.h2-logo {
  width: 80px; height: 80px; margin-bottom: 10px;
}

.h2-name {
  font-size: 22px; font-weight: 600;
  color: var(--ch-text); margin: 0;
}

.h2-tagline {
  font-size: 14px; color: var(--ch-text); opacity: .75;
  margin: 4px 0 0;
}

.h2-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 8px 0 0; color: var(--ch-text); opacity: .7;
}

.h2-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 14px;
}

/* ── Header 3 — Minimalista (navbar de uma linha) ───────────────── */
.header-3 {
  width: 100%;
  background: var(--ch);
  border-bottom: 1px solid rgba(0,0,0,.09);
  position: sticky;
  top: 0;
  z-index: 100;
}

.h3m-bar { width: 100%; }

.h3m-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}

/* Marca: logo + nome */
.h3m-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.h3m-logo-img {
  width: 52px; height: 52px; object-fit: contain;
}

/* Nav central */
.h3m-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;   /* não cortar submenus absolutos */
  scrollbar-width: none;
}
.h3m-nav::-webkit-scrollbar { display: none; }

.h3m-link {
  font-size: 14px; font-weight: 500;
  color: var(--ch-text);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
  text-decoration: none;
}
.h3m-link:hover { background: rgba(0,0,0,.06); }

/* Dropdown de subcategorias */
.h3m-dropdown { position: static; display: flex; align-items: center; }

.h3m-chevron { font-size: 11px; transition: transform .2s; }

/* Botão seta — abre/fecha o submenu ao clique */
.h3m-drop-btn {
  background: transparent;
  border: none;
  padding: 4px 4px 4px 0;
  cursor: pointer;
  color: var(--ch-text);
  display: flex; align-items: center;
  line-height: 1;
}
.h3m-drop-btn:hover { opacity: .7; }

.h3m-submenu {
  position: fixed;
  top: 99px;   /* altura do .h3m-inner */
  left: auto;
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px 0;
  z-index: 200;
  list-style: none;
  margin: 0;
}
/* Fechado por padrão; JS remove a classe para abrir */
.h3m-submenu--fechado { display: none !important; }

.h3m-submenu li a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: #1f2328;
  text-decoration: none;
  white-space: nowrap;
}
.h3m-submenu li a:hover { background: #f5f5f5; }

/* Ícones de ação */
.h3m-actions {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}

.h3m-icon-btn {
  background: transparent;
  border: none;
  color: var(--ch-text);
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  position: relative;
}
.h3m-icon-btn:hover { background: rgba(0,0,0,.07); }

/* Badge do carrinho */
.h3m-cart-btn { position: relative; }
.h3m-cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.h3m-cart-count:empty,
.h3m-cart-count[data-zero="true"] { display: none; }

/* Logo circular no minimalista: menor */
.h3m-logo-img.logo-loja-com-borda {
  width: 52px !important; height: 52px !important;
}
.h3m-logo-img.logo-loja-sem-borda {
  max-width: 100px; max-height: 52px;
  width: auto !important; height: auto !important;
}

/* Botão seguir sobre fundo colorido */
.h4-btn-seguir {
  background: rgba(255,255,255,.18) !important;
  color: var(--ch-text) !important;
  border: 1px solid rgba(255,255,255,.4) !important;
}
.h4-btn-seguir:hover { background: rgba(255,255,255,.3) !important; }

.h4-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.h4-actions-bottom { display: flex; gap: 8px; align-items: center; }

/* ── Header 4 — Hero + Capa ─────────────────────────────────────── */
.header-4 { width: 100%; }

/* Banner */
.h4-banner {
  padding: 35px 0 2px;   /* padding-bottom grande para dar espaço ao logo que sai */
  position: relative;
  min-height: 160px;
  background: var(--ch);
}
/* Sem capa: banner menor */
.header-4:not(.header-4--capa) .h4-banner {
  padding: 20px 0 16px;
}

.h4-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
}

.h4-content {
  position: relative; z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.h4-text { flex: 1; min-width: 0; }

.h4-name {
  font-size: 22px; font-weight: 600;
  color: var(--ch-title); margin: 0;
}
.h4-name--capa {
  color: var(--ch-text);
}

.h4-tagline {
  font-size: 14px; color: var(--ch-text); opacity: .8; margin: 4px 0 0;
}

/* Desktop: ações agrupadas no canto direito */
.h4-actions-top {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.h4-act-left  { display: flex; align-items: center; gap: 6px; }
.h4-act-right { display: flex; align-items: center; gap: 6px; }

/* Mobile: ocupa toda a largura, esquerda vs direita */
@media (max-width: 767px) {
  .h4-actions-top {
    width: 100%;
    justify-content: space-between;
  }
}

/* Logo flutuante: centralizado, metade saindo para baixo do banner */
.h4-logo-float {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 2;
}

.h4-logo-wrap { display: block; }

.h4-logo-img {
  width: 80px; height: 80px;
  display: block;
}

/* Logo com borda circular estilo rede social */
.h4-logo-circle {
  width: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.h4-bottom {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 0px 0;
}

/* Com capa: padding-top para não sobrepor o logo que sai do banner */
.header-4--capa .h4-bottom {
  padding-top: 0px;   /* logo 84px / 2 = 42px + 12px folga */
}
.h4-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ── Responsividade headers 2/3/4 ───────────────────────────────── */
@media (max-width: 768px) {
  .h4-content { flex-wrap: wrap; gap: 10px; }
  .h4-actions-top { align-self: auto; }
  .h4-bottom-inner { gap: 6px; }
  .h4-meta { font-size: 11px; }
  .h2-name { font-size: 18px; }
  /* Minimalista mobile: logo à esquerda, ícones à direita */
  .h3m-inner { height: 54px; gap: 10px; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════
   COMPLEMENTOS — classes usadas por componentes/footer
   ═══════════════════════════════════════════════════════ */

/* Footer: links de redes sociais */
.footer-links-sociais { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.footer-links-sociais a { font-size: 20px; color: var(--cf-text); }
.footer-links-sociais a:hover { opacity: .75; }

/* Footer: bloco de rodapé */
.footer-bottom { font-size: 12px; color: var(--cf-text); }
.footer-info { font-size: 13px; }

/* Footer: imagem do selo seguro */
.footer-secure { opacity: .85; }

/* Classe adicionada ao footer quando há produto (adiciona padding inferior) */
.product-footer { padding-bottom: 80px; }

/* Seção de conteúdo HTML livre */
.home-secao-texto .conteudo-texto { line-height: 1.75; font-size: 15px; }
.home-secao-texto .conteudo-texto p { margin-bottom: 10px; }
.home-secao-texto .conteudo-texto img { border-radius: 8px; max-width: 100%; }

/* Review item */
.review-item { margin-bottom: 16px; }

/* Ícones de meios de pagamento */
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.payment-icons img { height: 28px; width: auto; border-radius: 3px; }

/* Rating modal — estrelas interativas */
.rating-stars .bi { transition: color .15s; }

/* Badge customizado outline (etiquetas) */
.badge-outline-danger  { border: 1px solid #dc3545; color: #dc3545; background: transparent; }
.badge-outline-primary { border: 1px solid #0d6efd; color: #0d6efd; background: transparent; }
.badge-outline-success { border: 1px solid #198754; color: #198754; background: transparent; }
.badge-outline-warning { border: 1px solid #ffc107; color: #856404; background: transparent; }

/* Página de produto — padding inferior mobile (evita que o footer tape o botão de compra) */
@media (max-width: 768px) {
  body.catalogo.page-produto-body { padding-bottom: 70px; }
}


.swiper-button-next, .swiper-button-prev {
      color:var(--cor-titulo) !important;
}