/* =========================================================
   Editor de Páginas — estilos da página publicada
   ========================================================= */

.he-public-home {
  /* width: 100% é obrigatório: com `container-type: inline-size` a largura
     intrínseca é zero, e num pai flex em coluna (a home da plataforma, por causa
     do rodapé) o `margin: auto` encolhia a página a ~32 px — tudo virava "celular". */
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  /* Size container so the responsive block rules below track the rendered
     width of the page, not the browser viewport. On the published site this
     wrapper is ~viewport-wide, so the breakpoints fire where they always did;
     in the editor canvas it's clamped to the device width (375 / 768 / …),
     so the "Dispositivo" toggle now actually restacks the blocks. */
  container: he-page / inline-size;
}

/* Layout blocks */
.he-layout-block {
  width: 100%;
  position: relative;
  scroll-margin-top: var(--he-topo-altura, 0px);
}

/* Referência do "Sobreposição › Absoluto" (Estilo do item): como no canvas,
   o item posicionado fica preso à coluna/aba/item onde está — sem isto ele se
   posicionava pela página e "vazava" para cima de outras seções. */
.he-slot,
.he-section-header,
.he-nested-slot,
.he-tabs__panel,
.he-accordion__body {
  position: relative;
}

/* Full-width: break out of the centered container */
.he-layout-block--full-width {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  border-radius: 0 !important;
}

.he-cols-grid {
  display: grid;
  gap: 16px;
}

/* Qualquer número de colunas: o template põe `--he-cols` (block.columns).
   Proporções próprias vêm como `grid-template-columns` inline (arrastar o
   divisor no editor / "proporção das colunas"). */
.he-cols-grid { grid-template-columns: repeat(var(--he-cols, 1), minmax(0, 1fr)); }

/* Seção com altura mínima: o conteúdo fica no topo/centro/base conforme o
   "alinhamento vertical" (justify-content vem inline, de home_editor/layout.py). */
.he-layout-block--alto { display: flex; flex-direction: column; }
.he-layout-block--alto > .he-cols-grid { width: 100%; }
/* Link para a seção (#ancora) não fica escondido atrás do cabeçalho. */

/* Cabeçalho da seção (título acima das colunas, largura toda). */
.he-section-header { width: 100%; }
.he-layout-block--alto > .he-section-header { flex-shrink: 0; }

/* Cor do texto da seção: títulos, parágrafos e textos de apoio herdam.
   Card/coluna com fundo próprio volta à cor padrão (texto escuro no card
   branco de uma seção escura), a menos que tenha cor de texto própria. */
.he-layout-block--cor :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, .he-icone-texto__texto, .he-icone-texto__titulo) { color: inherit; }
.he-layout-block--cor :is(.he-caixa--fundo:not(.he-caixa--cor), .he-slot--fundo) { color: var(--on-surface, #1b1c1a); }

/* Cabeçalho dividido: título à esquerda, texto à direita, colunas embaixo em
   largura total. Empilha no tablet/celular. */
.he-section-header--dividido {
  display: grid; grid-template-columns: var(--he-cab-larg, 40%) minmax(0, 1fr);
  column-gap: 48px; align-items: start;
}
.he-cab-parte { min-width: 0; }
@container he-page (max-width: 768px) {
  .he-section-header--dividido { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
}

/* Título da seção ao lado das colunas (em vez de acima). Empilha no tablet. */
.he-layout-block--cab-lado {
  display: flex; flex-direction: row; justify-content: flex-start !important;
  align-items: var(--he-cab-alinha, flex-start); gap: var(--he-cab-gap, 48px);
}
.he-layout-block--cab-lado > .he-section-header { flex: 0 0 var(--he-cab-larg, 35%); width: auto; min-width: 0; }
.he-layout-block--cab-lado > .he-cols-grid { flex: 1 1 0; min-width: 0; margin: 0 !important; }
@container he-page (max-width: 768px) {
  .he-layout-block--cab-lado { flex-direction: column; align-items: stretch; gap: min(var(--he-cab-gap, 48px), 32px); }
  .he-layout-block--cab-lado > .he-section-header { flex: none; width: 100%; }
}

/* Coluna com fundo/borda/sombra (cartão): ocupa a altura toda da linha. */
.he-slot--cartao { align-self: stretch; box-sizing: border-box; }

/* Tablet: por padrão 3+ colunas viram 2 (inclusive com proporção própria);
   a seção pode pedir 1 ou 2 colunas, ou manter as do computador. */
@container he-page (max-width: 768px) {
  .he-cols-grid--3mais,
  .he-cols-grid--t2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .he-cols-grid--t1 { grid-template-columns: 1fr !important; }
  /* Ajustes próprios do tablet (painel da seção › Tablet e celular). */
  .he-cols-grid--gtt { grid-template-columns: var(--he-gtc-t) !important; }
  .he-cols-grid--gapt { gap: var(--he-gap-t) !important; --he-gap: var(--he-gap-t); }
  .he-layout-block--padt { padding: var(--he-pad-t) !important; }
}

/* Divisórias verticais entre colunas: linha no meio do espaço entre elas.
   Só com as colunas lado a lado (no tablet/celular a grade se reorganiza). */
.he-cols-grid--div > .he-slot + .he-slot::before {
  content: ''; position: absolute; pointer-events: none;
  left: calc(var(--he-gap, 16px) / -2 - var(--he-div-larg, 1px) / 2);
  top: var(--he-div-inset, 12%); bottom: var(--he-div-inset, 12%);
  border-left: var(--he-div-larg, 1px) solid var(--he-div-cor, #e5e7eb);
}
@container he-page (max-width: 768px) {
  .he-cols-grid--div > .he-slot + .he-slot::before { display: none; }
}

/* Com setas centralizadas, as colunas ocupam a altura da linha (a seta fica no
   meio da linha, não da coluna) e o conteúdo segue o alinhamento vertical. */
.he-cols-grid--setas:not(.he-cols-grid--setas-topo) > .he-slot {
  align-self: stretch; display: flex; flex-direction: column; justify-content: var(--he-alinha, flex-start);
}
/* Setas entre as colunas (passo a passo): no meio do espaço entre elas; com
   as colunas empilhadas no celular, apontam para baixo. Some quando a grade
   se reorganiza em 2 colunas (a seta ficaria fora de ordem). */
.he-cols-grid--setas > .he-slot + .he-slot::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  left: calc(var(--he-gap, 16px) / -2); top: 50%;
  width: clamp(14px, calc(var(--he-gap, 16px) * .7), 28px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--he-seta-cor, currentColor); opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Seta no topo: na altura do início do conteúdo (ícone/número da etapa). */
.he-cols-grid--setas-topo > .he-slot + .he-slot::after { top: 28px; }
@container he-page (max-width: 768px) {
  .he-cols-grid--setas:is(.he-cols-grid--3mais, .he-cols-grid--t2, .he-cols-grid--gtt) > .he-slot + .he-slot::after { display: none; }
  .he-cols-grid--setas.he-cols-grid--t1 > .he-slot + .he-slot::after {
    left: 50%; top: calc(var(--he-gap, 16px) / -2); transform: translate(-50%, -50%) rotate(90deg);
  }
}
@container he-page (max-width: 480px) {
  .he-cols-grid--setas:not(.he-cols-grid--m2, .he-cols-grid--mrev) > .he-slot + .he-slot::after {
    display: block; left: 50%; top: calc(var(--he-gap, 16px) / -2); transform: translate(-50%, -50%) rotate(90deg);
  }
  .he-cols-grid--setas:is(.he-cols-grid--m2, .he-cols-grid--mrev) > .he-slot + .he-slot::after { display: none; }
}

/* Celular: toda seção com várias colunas empilha — ou fica em 2 colunas, ou
   empilha de baixo para cima (imagem que estava à direita sobe). */
@container he-page (max-width: 480px) {
  .he-cols-grid { grid-template-columns: 1fr !important; }
  .he-cols-grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .he-cols-grid--m3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .he-cols-grid--mrev { display: flex; flex-direction: column-reverse; }
  .he-cols-grid--mrev > .he-slot { width: 100%; }
  .he-layout-block--padm { padding: var(--he-pad-m) !important; }
  .he-cols-grid--gapm { gap: var(--he-gap-m) !important; }
  /* Colunas internas (bloco Colunas) também empilham no celular. */
  .he-nested-columns { grid-template-columns: 1fr !important; }
  .he-nested-columns--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .he-nested-columns--m3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .he-layout-block--alto[style*="100vh"] { min-height: 80vh !important; }
}

/* Espaçador */
.he-spacer { height: var(--he-h, 32px); }
@container he-page (max-width: 480px) {
  .he-spacer { height: var(--he-hm, var(--he-h, 32px)); }
}

/* Acordeão (bloco 'accordion') — mesmas classes no canvas e no site */
.he-accordion { display: flex; flex-direction: column; gap: 8px; }
.he-accordion__item {
  border: 1px solid var(--outline-variant, #e2d6d0);
  border-radius: 10px;
  background: var(--surface-container-lowest, #ffffff);
  overflow: hidden;
}
.he-accordion--linhas { gap: 0; }
.he-accordion--linhas .he-accordion__item {
  border: 0;
  border-bottom: 1px solid var(--outline-variant, #e2d6d0);
  border-radius: 0;
  background: transparent;
}
.he-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.he-accordion--linhas .he-accordion__summary { padding-left: 0; padding-right: 0; }
.he-accordion__summary::-webkit-details-marker { display: none; }
.he-accordion__summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--outline, #87736b);
  transition: transform 0.2s;
}
.he-accordion__item[open] > .he-accordion__summary::after { transform: rotate(45deg); }
.he-accordion__item[data-open="true"] > .he-accordion__summary::after { transform: rotate(45deg); }
.he-accordion__body { padding: 0 16px 14px; }
.he-accordion--linhas .he-accordion__body { padding-left: 0; padding-right: 0; }

/* Image blocks */
.he-image-block img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text blocks */
.he-text-block {
  line-height: inherit; /* herda a altura de linha definida no bloco */
}

.he-text-block h1 { font-size: 2rem; margin-bottom: 0.5em; }
.he-text-block h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
.he-text-block h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.he-text-block h4 { font-size: 1.1rem; margin-bottom: 0.5em; }
.he-text-block p  { margin-bottom: 0.75em; }
.he-text-block h5 { font-size: 1rem; margin-bottom: 0.5em; }
.he-text-block h6 { font-size: 0.875rem; margin-bottom: 0.5em; text-transform: uppercase; letter-spacing: 0.05em; }
.he-text-block blockquote {
  margin: 0 0 0.75em; padding: 0.5em 1em;
  border-left: 4px solid var(--primary, #823b18);
  background: #00000008; font-style: italic;
}
.he-text-block pre {
  margin: 0 0 0.75em; padding: 0.75em 1em; border-radius: 6px;
  background: #1b1c1a0d; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.9em;
  white-space: pre-wrap; overflow-x: auto;
}
.he-text-block hr { border: none; border-top: 1px solid #0000001f; margin: 1em 0; }
.he-text-block sup, .he-text-block sub { font-size: 0.7em; line-height: 0; }

/* ─── Product card (single) ─────────────────────────────── */
.he-product-card {
  background: var(--surface-container-lowest, #ffffff);
  border-radius: var(--r-lg, 1rem);
  overflow: hidden;
  box-shadow: 0 2px 32px rgba(160, 82, 45, 0.08), 0 1px 4px rgba(160, 82, 45, 0.04);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (hover: hover) and (pointer: fine) { .he-product-card:hover {
  box-shadow: 0 8px 32px rgba(160, 82, 45, 0.15), 0 2px 8px rgba(160, 82, 45, 0.06);
  transform: translateY(-3px);
} }

.he-product-card__img-link {
  display: block;
  overflow: hidden;
  background: var(--surface-container, #efeeea);
}

.he-product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) { .he-product-card:hover img {
  transform: scale(1.04);
} }

.he-product-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ─── Product grid ───────────────────────────────────────── */
.he-product-grid {
  display: grid;
  gap: 20px;
}

.he-product-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.he-product-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.he-product-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@container he-page (max-width: 768px) {
  .he-product-grid--cols-3,
  .he-product-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@container he-page (max-width: 480px) {
  .he-product-grid--cols-2,
  .he-product-grid--cols-3,
  .he-product-grid--cols-4 { grid-template-columns: 1fr; }
}

/* Colunas próprias por dispositivo (bloco Grade de produtos › Celular e tablet). */
@container he-page (max-width: 768px) {
  .he-product-grid--t1 { grid-template-columns: 1fr; }
  .he-product-grid--t2 { grid-template-columns: repeat(2, 1fr); }
  .he-product-grid--t3 { grid-template-columns: repeat(3, 1fr); }
  .he-product-grid--t4 { grid-template-columns: repeat(4, 1fr); }
}
@container he-page (max-width: 480px) {
  .he-product-grid--m1 { grid-template-columns: 1fr; }
  .he-product-grid--m2 { grid-template-columns: repeat(2, 1fr); }
  .he-product-grid--m3 { grid-template-columns: repeat(3, 1fr); }
  .he-product-grid--m2, .he-product-grid--m3 { gap: 10px; }
}

.he-product-grid__item {
  position: relative;
  min-width: 0;  /* grid item: don't let image/text min-content blow the track past 1fr */
  transition: transform 0.25s;
}

@media (hover: hover) and (pointer: fine) { .he-product-grid__item:hover { transform: translateY(-3px); } }

.he-product-grid__card {
  background: var(--surface-container-lowest, #ffffff);
  border-radius: var(--r-lg, 1rem);
  height: 100%;
  overflow: hidden;
  box-shadow: 0 2px 32px rgba(160, 82, 45, 0.08), 0 1px 4px rgba(160, 82, 45, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

@media (hover: hover) and (pointer: fine) { .he-product-grid__card:hover {
  box-shadow: 0 8px 32px rgba(160, 82, 45, 0.15), 0 2px 8px rgba(160, 82, 45, 0.06);
} }

/* Coração de favoritar sobre a foto (card único e grid) — só na loja pública. */
.he-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.he-product-grid__card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--surface-container, #efeeea);
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) { .he-product-grid__card:hover img {
  transform: scale(1.04);
} }

.he-product-grid__placeholder {
  width: 100%;
  height: 220px;
  background: var(--surface-container, #efeeea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--outline, #87736b);
  font-size: 32px;
}

.he-product-grid__info {
  padding: 14px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.he-product-grid__footer {
  padding: 0 18px 16px;
}

.he-product-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--outline, #888);
  font-family: var(--font-body, system-ui, sans-serif);
}

/* ─── Shared product card internals ──────────────────────── */

/* Category tag */
.he-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary, #823b18);
  margin-bottom: 7px;
}

.he-product-tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Product name */
.he-product-card__name,
.he-product-grid__name {
  font-family: var(--font-display, 'Libre Caslon Text', Georgia, serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--on-surface, #1b1c1a);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

/* Price block */
.he-product-card__price,
.he-product-grid__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}

.he-price-prefix {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--on-surface-variant, #54433c);
  padding-bottom: 2px;
}

.he-price-amount {
  font-family: var(--font-display, 'Libre Caslon Text', Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--on-surface, #1b1c1a);
  letter-spacing: -0.02em;
  line-height: 1;
}

.he-price--original {
  text-decoration: line-through;
  color: var(--outline, #87736b);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13px;
}

.he-price--promo {
  font-family: var(--font-display, 'Libre Caslon Text', Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary, #823b18);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ─── Color swatches ─────────────────────────────────────── */
.he-color-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.he-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  display: block;
  transition: transform 0.15s, border-color 0.15s;
}

.he-color-swatches--square .he-color-swatch { border-radius: 6px; }
.he-color-swatches--sm .he-color-swatch { width: 28px; height: 28px; padding: 0; font-size: 12px; }
.he-color-swatches--md .he-color-swatch { width: 44px; height: 44px; }
.he-color-swatches--lg .he-color-swatch { width: 60px; height: 60px; }

@media (hover: hover) and (pointer: fine) { .he-color-swatch:hover {
  transform: scale(1.08);
  border-color: rgba(0,0,0,0.2);
} }

.he-color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.he-color-swatch--mais {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-container, #efeeea);
  color: var(--on-surface-variant, #54433c);
}
.he-color-swatches--sm .he-color-swatch--mais { font-size: 12px; }

.he-color-swatch--text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-container, #efeeea);
  color: var(--on-surface-variant, #54433c);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  overflow: hidden;
  word-break: break-word;
}

/* Button block */
.he-button-block {
  padding: 4px 0;
}

.he-button-block a,
.he-button-block button {
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
}

@media (hover: hover) and (pointer: fine) { .he-button-block a:hover, .he-button-block button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
} }

/* Ícone de linha (Lucide, SVG inline): mede 1em como os ícones FA. */
.he-icone-linha { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }

/* Botão (bloco Botão e Grupo de botões): ícone antes/depois do texto. */
.he-botao { cursor: pointer; transition: opacity 0.15s, transform 0.1s; font-family: inherit; box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) { .he-botao:hover { opacity: 0.88; transform: translateY(-1px); } }
.he-botao__conteudo { display: inline-flex; align-items: center; gap: 0.5em; }

/* Grupo de botões: lado a lado, quebra quando não cabe; no celular pode empilhar. */
.he-botoes { display: flex; flex-wrap: wrap; align-items: center; padding: 4px 0; }
@container he-page (max-width: 480px) {
  .he-botoes--empilhar { flex-direction: column; align-items: stretch; }
  .he-botoes--empilhar > .he-botao { display: block !important; width: 100%; text-align: center; }
}

/* Caixa (card): contêiner com fundo/borda/sombra que guarda outros blocos. */
.he-caixa { position: relative; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; min-width: 0; }
.he-caixa--total { flex: 1; }
.he-slot > div:has(> .he-caixa), .he-nested-slot > div:has(> .he-caixa),
.he-caixa > div:has(> .he-caixa) { display: flex; flex-direction: column; }
.he-slot > div > .he-caixa, .he-nested-slot > div > .he-caixa,
.he-caixa > div > .he-caixa { flex: 1; }
/* Cor do texto do card vale também para títulos e textos de apoio. */
.he-caixa--cor :is(h1, h2, h3, h4, h5, h6, p, li, .he-icone-texto__texto) { color: inherit; }
.he-icone-texto--cor :is(.he-icone-texto__texto, .he-icone-texto__titulo) { color: inherit; }
.he-caixa .he-text-block > :last-child { margin-bottom: 0; }
.he-caixa__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.he-caixa--link { transition: transform 0.15s, box-shadow 0.15s; }
@media (hover: hover) and (pointer: fine) { .he-caixa--link:hover { transform: translateY(-2px); } }
/* "Altura total": a coluna/slot estica e o wrapper do card acompanha, então
   cards lado a lado ficam da mesma altura. */
.he-slot:has(> div > .he-caixa--total),
.he-nested-slot:has(> div > .he-caixa--total) { display: flex; flex-direction: column; align-self: stretch; }
.he-slot > div:has(> .he-caixa--total),
.he-nested-slot > div:has(> .he-caixa--total) { flex: 1; display: flex; flex-direction: column; }

/* Stretch the editor's extra wrappers as well as published cards. */
.he-editor-slot > div:has(> div > .he-caixa--total) { flex: 1; display: flex; flex-direction: column; }
.he-caixa--total > .he-editor-slot > [data-he-id]:has(.he-button-block):last-child,
.he-caixa--total > .he-editor-slot > [data-he-type="button"]:last-child,
.he-caixa--total > div:has(> .he-button-block):last-child { margin-top: auto; }

.he-pricing { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--outline-variant, #e5e7eb); border-radius: 16px; background: var(--surface, #fff); box-sizing: border-box; }
.he-pricing--featured { border: 2px solid var(--primary, #823b18); }
.he-pricing__badge { min-height: 1.5em; color: var(--primary, #823b18); font-weight: 700; }
.he-pricing h3, .he-pricing p { margin: 0; }
.he-pricing__price { font-size: 2rem; }
.he-pricing ul { list-style: none; padding-left: 0; margin: 0 0 12px; }
.he-pricing li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.he-pricing li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--primary, #823b18); font-weight: 700; }
.he-pricing__button { margin-top: auto; padding: 12px 20px; border-radius: 8px; background: var(--primary, #823b18); color: var(--on-primary, #fff); text-align: center; text-decoration: none; font-weight: 600; }
.he-slot:has(> div > .he-pricing) { display: flex; flex-direction: column; align-self: stretch; }
.he-slot > div:has(> .he-pricing) { display: flex; flex-direction: column; flex: 1; }

/* Imagem que vaza da coluna para um lado (só no computador; o tamanho vem
   em --he-vazar). A margem negativa alarga o bloco; a página não ganha rolagem
   lateral (overflow-x: clip, como em .he-bleed). */
.he-image-block--vazar-direita { margin-right: calc(-1 * var(--he-vazar, 80px)); }
.he-image-block--vazar-esquerda { margin-left: calc(-1 * var(--he-vazar, 80px)); }
.he-image-block--vazar img,
.he-image-block--vazar .he-moldura { width: 100% !important; }
body:has(.he-image-block--vazar) { overflow-x: clip; }
@container he-page (max-width: 768px) {
  .he-image-block--vazar-direita,
  .he-image-block--vazar-esquerda { margin-left: 0; margin-right: 0; }
}

/* Moldura de dispositivo (bloco Imagem), toda em CSS: navegador, notebook, celular. */
.he-moldura { max-width: 100%; box-sizing: border-box; }
.he-moldura__tela { overflow: hidden; line-height: 0; }
.he-moldura__tela img { border-radius: 0 !important; }
.he-moldura--navegador {
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 40px #0f172a1f;
}
.he-moldura__barra { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.he-moldura__barra span { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.he-moldura__barra span:nth-child(1) { background: #f87171; }
.he-moldura__barra span:nth-child(2) { background: #fbbf24; }
.he-moldura__barra span:nth-child(3) { background: #34d399; }
.he-moldura--notebook { padding: 0 6%; }
.he-moldura--notebook .he-moldura__tela {
  background: #111827; padding: 2.2% 2.2% 3%; border-radius: 14px 14px 0 0;
  box-shadow: 0 18px 40px #0f172a29;
}
.he-moldura__base {
  position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -7%;
  background: linear-gradient(#e5e7eb, #9ca3af); border-radius: 0 0 14px 14px;
}
.he-moldura__base::before {
  content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 40%;
  background: #6b7280; border-radius: 0 0 8px 8px;
}
.he-moldura--celular {
  max-width: min(100%, 320px); border: 10px solid #111827; border-radius: 36px; overflow: hidden;
  box-shadow: 0 18px 40px #0f172a29; background: #111827;
}
.he-moldura--celular .he-moldura__tela { border-radius: 26px; }

/* Imagem com legenda, degradê e efeito de hover (cards de categoria). */
.he-img-sobre { isolation: isolate; }
.he-img-sobre img { transition: transform .45s ease, filter .3s ease; }
.he-img-sobre__degrade { position: absolute; inset: 0; pointer-events: none; }
.he-img-sobre__texto {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px 20px;
  font-weight: 700; line-height: 1.2; text-shadow: 0 2px 10px #00000066; pointer-events: none; white-space: pre-line;
}
@media (hover: hover) and (pointer: fine) { .he-img-sobre--zoom:hover img { transform: scale(1.06); } }
@media (hover: hover) and (pointer: fine) { .he-img-sobre--escurecer:hover img { filter: brightness(.78); } }
.he-img-sobre--elevar { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) { .he-img-sobre--elevar:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #00000033; } }

/* Separator block */
.he-separator-block hr {
  border: none;
  margin: 0;
}

/* Video block */
.he-video-block {
  width: 100%;
}

.he-video-wrapper iframe {
  border: none;
}

/* Carousel */
.he-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #333;
  -webkit-user-select: none;
  user-select: none;
}

.he-carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
}

.he-carousel--fixo { height: var(--he-car-h, 400px); }
@container he-page (max-width: 768px) {
  .he-carousel--fixo { height: var(--he-car-h-t, var(--he-car-h, 400px)); }
}
.he-carousel--auto { aspect-ratio: var(--he-car-ar, 16 / 9); }
@container he-page (max-width: 480px) {
  .he-carousel--fixo { height: var(--he-car-h-m, var(--he-car-h-t, var(--he-car-h, 400px))); }
  .he-carousel--auto { aspect-ratio: var(--he-car-ar-m, var(--he-car-ar, 16 / 9)); }
}

.he-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.he-slide__img,
.he-slide__vazio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.he-slide__vazio { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.he-slide__img--mobile { display: none; }
@container he-page (max-width: 480px) {
  .he-slide--com-mobile .he-slide__img { display: none; }
  .he-slide--com-mobile .he-slide__img--mobile { display: block; }
}
.he-slide__overlay { position: absolute; inset: 0; pointer-events: none; }
.he-slide__link { position: absolute; inset: 0; z-index: 1; }
.he-slide__conteudo {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 56px;
  box-sizing: border-box;
  pointer-events: none;
}
.he-slide__conteudo .he-botao { pointer-events: auto; }
.he-slide__titulo {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.2;
  text-shadow: 0 2px 12px #00000080;
  max-width: 640px;
}
.he-slide__subtitulo {
  color: #ffffffe6;
  margin: 0 0 24px;
  font-size: clamp(14px, 1.8vw, 18px);
  text-shadow: 0 1px 6px #00000066;
  max-width: 600px;
}
@container he-page (max-width: 480px) {
  .he-slide__conteudo { padding: 20px 24px; }
}

.he-carousel-prev,
.he-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #00000073;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.he-carousel-prev { left: 14px; }
.he-carousel-next { right: 14px; }
.he-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.he-dot { height: 8px; border-radius: 4px; }

@media (hover: hover) and (pointer: fine) { .he-carousel-prev:hover, .he-carousel-next:hover {
  background: rgba(0, 0, 0, 0.65) !important;
} }

.he-dot {
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  padding: 0;
}

@container he-page (max-width: 480px) {
  .he-carousel-prev,
  .he-carousel-next {
    display: none !important;
  }
}

/* HTML embed */
.he-html-embed {
  width: 100%;
}

/* Buy button */
.he-btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  border-radius: var(--r-lg, 1rem);
  border: none;
  background: var(--primary, #823b18);
  color: var(--on-primary, #ffffff);
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  margin-top: auto;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) { .he-btn-buy:hover {
  background: var(--primary-container, #a0522d);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(130, 59, 24, 0.32);
  color: var(--on-primary, #ffffff);
} }

/* =========================================================
   Condições de exibição — visibilidade por dispositivo.
   Emitidas como classes pelo servidor (home_editor/rendering.py);
   os breakpoints acompanham os de he-cols-grid (tablet ≤768, mobile ≤480).
   ========================================================= */
@container he-page (min-width: 769px) {
  .he-hide-desktop { display: none !important; }
}
@container he-page (min-width: 481px) and (max-width: 768px) {
  .he-hide-tablet { display: none !important; }
}
@container he-page (max-width: 480px) {
  .he-hide-mobile { display: none !important; }
}

/* Espaço de foto dos modelos de loja ainda sem foto (render_image_block). */
.he-imagem-decorativa {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  font-size: clamp(56px, 9cqw, 112px);
  opacity: 0.95;
}
.he-imagem-decorativa svg { opacity: 0.55; }

/* Estilos de texto prontos (Texto > Estilo pronto). Seguem as cores e fontes da loja. */
.he-text-block .he-sobretitulo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary, #823b18);
  margin-bottom: 8px;
}
.he-text-block .he-destaque {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--on-surface-variant, #54433c);
}
.he-text-block .he-legenda {
  font-size: 12px;
  color: var(--outline, #87736b);
}

/* Formatação inline do bloco de texto (editor + home publicada) */
.he-text-block b, .he-text-block strong { font-weight: 700; }
.he-text-block i, .he-text-block em { font-style: italic; }
.he-text-block u { text-decoration: underline; }
.he-text-block s, .he-text-block strike { text-decoration: line-through; }
.he-text-block ul { list-style: disc; padding-left: 1.5em; margin-bottom: 0.75em; }
.he-text-block ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 0.75em; }
.he-text-block[contenteditable]:empty::before { content: attr(data-placeholder); color: #bbb; }

/* Conteúdo em largura total da tela (Estilo > Largura total da tela) */
.he-bleed .he-carousel,
.he-bleed .he-image-block img { border-radius: 0 !important; }
body:has(.he-bleed, .he-layout-block--full-width) { overflow-x: clip; }

/* Sem espaço no topo da home: o espaçamento vertical é dos blocos (margem/padding do layout). */
.he-public-home { padding-top: 0; }

/* ─── Responsividade ─────────────────────────────────────────
   Breakpoints por container (.he-public-home, `he-page`): valem para a largura
   da página na home e para o quadro do dispositivo no editor. */

/* Nada estoura a coluna: filhos de grid podem encolher; mídia e texto quebram. */
.he-cols-grid > *,
.he-slot { min-width: 0; }
.he-public-home img,
.he-public-home video,
.he-public-home iframe { max-width: 100%; }
.he-text-block { overflow-wrap: anywhere; }
/* Tamanho dos títulos: padrão maior no computador, que encolhe com a página;
   o bloco pode definir o seu por dispositivo (painel do Texto › Tamanho dos
   títulos → --he-hN / -t / -m, ver home_editor/layout.py tamanhos_titulos). */
.he-text-block h1 { font-size: var(--he-h1, clamp(1.75rem, 5.5cqw, 2.5rem)); }
.he-text-block h2 { font-size: var(--he-h2, clamp(1.375rem, 4cqw, 1.875rem)); }
.he-text-block h3 { font-size: var(--he-h3, 1.25rem); }
.he-text-block h4 { font-size: var(--he-h4, 1.1rem); }
@container he-page (max-width: 768px) {
  .he-text-block h1 { font-size: var(--he-h1-t, var(--he-h1, clamp(1.75rem, 5.5cqw, 2.5rem))); }
  .he-text-block h2 { font-size: var(--he-h2-t, var(--he-h2, clamp(1.375rem, 4cqw, 1.875rem))); }
  .he-text-block h3 { font-size: var(--he-h3-t, var(--he-h3, 1.25rem)); }
  .he-text-block h4 { font-size: var(--he-h4-t, var(--he-h4, 1.1rem)); }
}
@container he-page (max-width: 480px) {
  .he-text-block h1 { font-size: var(--he-h1-m, var(--he-h1-t, var(--he-h1, clamp(1.75rem, 5.5cqw, 2.5rem)))); }
  .he-text-block h2 { font-size: var(--he-h2-m, var(--he-h2-t, var(--he-h2, clamp(1.375rem, 4cqw, 1.875rem)))); }
  .he-text-block h3 { font-size: var(--he-h3-m, var(--he-h3-t, var(--he-h3, 1.25rem))); }
  .he-text-block h4 { font-size: var(--he-h4-m, var(--he-h4-t, var(--he-h4, 1.1rem))); }
}

@container he-page (max-width: 768px) {
  .he-public-home { padding-inline: 12px; }
  .he-cols-grid { gap: 12px; }
  /* Altura fixa sem altura própria para o celular acompanha a largura (a altura
     vira só o teto). Altura automática e "altura no celular" não são limitadas. */
  .he-carousel--fixo:not(.he-carousel--altura-m) { max-height: max(220px, 62cqw); }
  .he-product-grid { gap: 12px; }
}

/* 2 colunas empilham já no tablet estreito, não só no celular. */
@container he-page (max-width: 640px) {
  .he-cols-grid--2 { grid-template-columns: 1fr !important; }
}

/* Celular: vitrine em 2 colunas (1 só em telas bem pequenas). */
@container he-page (max-width: 480px) {
  .he-product-grid--cols-2,
  .he-product-grid--cols-3,
  .he-product-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .he-product-grid__info { padding: 10px 12px 12px; }
}
@container he-page (max-width: 320px) {
  .he-product-grid--cols-2,
  .he-product-grid--cols-3,
  .he-product-grid--cols-4 { grid-template-columns: 1fr; }
}

/* Abas (bloco 'tabs') — mesmas classes no canvas do editor e no site */
.he-tabs__list {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* linha fina sob a fileira; sombra interna fica por baixo do sublinhado da aba ativa */
  box-shadow: inset 0 -1px 0 var(--outline-variant, #dac1b8);
}
/* Centraliza sem cortar o início quando as abas transbordam (justify-content: center cortaria). */
.he-tabs--center .he-tabs__tab:first-child { margin-left: auto; }
.he-tabs--center .he-tabs__tab:last-child { margin-right: auto; }
.he-tabs__tab {
  flex: 0 0 auto;
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin: 0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--outline, #87736b);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
@media (hover: hover) and (pointer: fine) { .he-tabs__tab:hover { color: var(--on-surface, #1b1c1a); } }
.he-tabs__tab[aria-selected="true"] {
  color: var(--on-surface, #1b1c1a);
  border-bottom-color: var(--primary, #823b18);
}
.he-tabs__tab:focus-visible {
  outline: 2px solid var(--primary, #823b18);
  outline-offset: -2px;
}
.he-tabs__panel { padding-top: 16px; }
.he-tabs__panel:focus-visible { outline: 2px solid var(--primary, #823b18); outline-offset: 2px; }
.he-tabs__panel[hidden] { display: none !important; }

/* Tabela (bloco 'table') — mesmas classes no canvas do editor e no site */
.he-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.he-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: var(--on-surface, #1b1c1a);
}
.he-table--left { text-align: left; }
.he-table--center { text-align: center; }
.he-table--right { text-align: right; }
.he-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding-bottom: 8px;
  color: var(--on-surface, #1b1c1a);
}
.he-table th,
.he-table td {
  padding: 10px 14px;
  min-width: 80px; /* no celular rola para o lado em vez de espremer */
  text-align: inherit;
  vertical-align: top;
  border-bottom: 1px solid var(--outline-variant, #dac1b8);
}
.he-table thead th {
  font-weight: 700;
  background: var(--surface-container, #efeeea);
  border-bottom: 2px solid var(--outline-variant, #dac1b8);
}
.he-table tbody th { font-weight: 600; }
.he-table--striped tbody tr:nth-child(even) { background: var(--surface-container-low, #f5f3ef); }
.he-table--bordered th,
.he-table--bordered td { border: 1px solid var(--outline-variant, #dac1b8); }
.he-table--compact th,
.he-table--compact td { padding: 6px 10px; font-size: 14px; }

/* ─── Animação de entrada (painel Avançado › Animação) ───────
   O wrapper recebe .he-anim + data-he-anim; anim_public.js põe
   .he-anim--visivel quando o item entra na tela. */
.he-anim { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.he-anim[data-he-anim="subir"] { transform: translateY(32px); }
.he-anim[data-he-anim="esquerda"] { transform: translateX(-40px); }
.he-anim[data-he-anim="direita"] { transform: translateX(40px); }
.he-anim[data-he-anim="zoom"] { transform: scale(.9); }
.he-anim.he-anim--visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .he-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── Componentes: formulário, ícone+texto, lista, depoimentos, contador,
   mapa, redes sociais, galeria, popup (templates em blocks/*_block.html) ─── */
.he-form { display: flex; flex-direction: column; gap: 12px; }
.he-form__titulo { margin: 0; font-size: 1.25rem; }
.he-form__campos { display: grid; gap: 12px; }
.he-form--duas .he-form__campos { grid-template-columns: 1fr 1fr; }
.he-form--duas .he-form__campo--largo { grid-column: 1 / -1; }
@container he-page (max-width: 480px) { .he-form--duas .he-form__campos { grid-template-columns: 1fr; } }
.he-form__campo { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.he-form__campo input:not([type=checkbox]), .he-form__campo textarea, .he-form__campo select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 8px;
  font: inherit; background: #fff;
}
.he-form__campo--erro input, .he-form__campo--erro textarea, .he-form__campo--erro select { border-color: #dc2626; }
.he-form__erro { color: #dc2626; font-size: 12px; }
.he-form__check { display: flex; gap: 8px; align-items: center; }
.he-form__isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.he-form__botao {
  align-self: flex-start; padding: 11px 24px; border-radius: 8px; border: 2px solid var(--primary, #823b18);
  background: var(--primary, #823b18); color: #fff; cursor: pointer; font: inherit; font-weight: 600;
}
.he-form__botao:disabled { opacity: .6; cursor: wait; }
.he-form__aviso { color: #dc2626; margin: 0; font-size: 14px; }
.he-form__sucesso { margin: 0; padding: 14px 16px; border-radius: 8px; background: #ecfdf5; color: #065f46; font-weight: 600; }

.he-icone-texto { display: flex; flex-direction: column; gap: 10px; }
.he-icone-texto--lado { flex-direction: row; align-items: flex-start; text-align: left !important; gap: 14px; }
.he-icone-texto--lado-direita { flex-direction: row-reverse; align-items: flex-start; text-align: right !important; gap: 14px; }
.he-icone-texto--centro { align-items: center; }
.he-icone-texto__icone { color: var(--primary, #823b18); line-height: 1; flex-shrink: 0; }
.he-icone-texto__icone--fundo { display: inline-flex; align-items: center; justify-content: center; }
.he-icone-texto__icone--circulo { border-radius: 50%; }
.he-icone-texto__icone--quadrado { border-radius: 24%; }
.he-icone-texto__titulo { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.he-icone-texto__titulo a { color: inherit; }
.he-icone-texto__texto { margin: 0; color: #555; }

.he-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--he-lista-gap, 8px); }
.he-lista li { display: flex; gap: 10px; align-items: baseline; }
.he-lista li > i { color: var(--he-lista-cor, var(--primary, #823b18)); font-size: calc(.85em * var(--he-lista-tam, 1)); flex-shrink: 0; }
/* Marcador do CSS (ponto, círculo, número, letra, romano): tipo no style do <ul>/<ol>. */
.he-lista--css { padding-left: 1.8em; }
.he-lista--css li { display: list-item; }
.he-lista--css li::marker { color: var(--he-lista-cor, var(--primary, #823b18)); font-size: calc(1em * var(--he-lista-tam, 1)); }
.he-lista--nenhum { padding-left: 0; }

.he-depoimentos { display: grid; grid-template-columns: repeat(var(--he-dep-cols, 3), 1fr); gap: 16px; }
@container he-page (max-width: 768px) { .he-depoimentos { grid-template-columns: repeat(min(2, var(--he-dep-cols, 3)), 1fr); } }
@container he-page (max-width: 480px) { .he-depoimentos { grid-template-columns: 1fr; } }
.he-depoimento { margin: 0; padding: 18px; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 12px; }
.he-depoimento blockquote { margin: 0; font-style: italic; color: #333; }
.he-depoimento__nota { color: #f59e0b; font-size: 13px; display: flex; gap: 2px; }
.he-depoimento figcaption { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.he-depoimento figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.he-depoimento figcaption span { display: flex; flex-direction: column; font-size: 14px; }
.he-depoimento figcaption small { color: #888; }

.he-contador { text-align: center; color: var(--he-cont-cor, inherit); }
.he-contador__titulo { font-weight: 700; margin-bottom: 10px; }
.he-contador__caixas { display: inline-flex; gap: 10px; }
.he-contador__caixas div {
  display: flex; flex-direction: column; min-width: 64px; padding: 10px 8px; border-radius: 10px;
  background: var(--he-cont-fundo, var(--primary, #823b18)); color: #fff;
}
.he-contador__caixas b { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.he-contador__caixas small { font-size: 12px; text-transform: uppercase; opacity: .85; }
.he-contador__fim { font-weight: 700; }

.he-mapa { width: 100%; border-radius: 10px; overflow: hidden; }
.he-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.he-redes { display: flex; flex-wrap: wrap; gap: 10px; }
.he-redes a {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  color: var(--he-redes-cor, var(--primary, #823b18)); transition: transform .15s, opacity .15s;
}
@media (hover: hover) and (pointer: fine) { .he-redes a:hover { transform: translateY(-2px); opacity: .85; } }
.he-redes--sm a { width: 32px; height: 32px; font-size: 15px; }
.he-redes--md a { width: 42px; height: 42px; font-size: 19px; }
.he-redes--lg a { width: 54px; height: 54px; font-size: 24px; }
.he-redes--circulo a, .he-redes--quadrado a { background: var(--he-redes-cor, var(--primary, #823b18)); color: #fff; }
.he-redes--circulo a { border-radius: 50%; }
.he-redes--quadrado a { border-radius: 8px; }
.he-redes--simples a { width: auto; height: auto; }

.he-galeria { display: grid; grid-template-columns: repeat(var(--he-gal-cols, 3), 1fr); gap: var(--he-gal-gap, 8px); }
@container he-page (max-width: 480px) { .he-galeria { grid-template-columns: repeat(min(2, var(--he-gal-cols, 3)), 1fr); } }
.he-galeria__item { display: block; overflow: hidden; border-radius: var(--he-gal-raio, 6px); }
.he-galeria__item img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: var(--he-gal-prop, auto); transition: transform .3s; }
@media (hover: hover) and (pointer: fine) { .he-galeria--lightbox .he-galeria__item:hover img, a.he-galeria__item:hover img { transform: scale(1.04); } }
.he-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.he-lightbox[hidden] { display: none; }
.he-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.he-lightbox button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

.he-popup { position: fixed; inset: 0; z-index: 1900; display: flex; align-items: center; justify-content: center; padding: 16px; }
.he-popup[hidden] { display: none; }
.he-popup__fundo { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.he-popup__caixa {
  position: relative; width: min(460px, 100%); max-height: 90vh; overflow: auto; background: #fff;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: he-popup-in .25s ease;
}
@keyframes he-popup-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.he-popup__x { position: absolute; top: 6px; right: 10px; background: rgba(255,255,255,.85); border: 0; border-radius: 50%; width: 32px; height: 32px; font-size: 22px; cursor: pointer; }
.he-popup__img { width: 100%; display: block; max-height: 240px; object-fit: cover; }
.he-popup__corpo { padding: 20px 22px 22px; text-align: center; }
.he-popup__corpo h3 { margin: 0 0 8px; }
.he-popup__corpo p { margin: 0 0 16px; color: #555; }
.he-popup__botao { display: inline-block; padding: 10px 22px; border-radius: 8px; background: var(--primary, #823b18); color: #fff; text-decoration: none; font-weight: 600; }
/* No canvas do editor o popup aparece no lugar, como um cartão. */
.he-canvas-surface .he-popup { position: static; padding: 0; }
.he-canvas-surface .he-popup[hidden] { display: flex; }
.he-canvas-surface .he-popup__fundo { display: none; }
.he-canvas-surface .he-popup__caixa { margin: 0 auto; animation: none; box-shadow: 0 4px 18px rgba(0,0,0,.15); }


/* ── Carrossel de cards (depoimentos, grade de produtos) ─────────────────── */
.he-rolagem { position: relative; }
.he-rolagem__seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: #ffffffee; color: #222; font-size: 22px; line-height: 1;
  box-shadow: 0 2px 10px #00000030; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.he-rolagem__seta--ant { left: -8px; }
.he-rolagem__seta--prox { right: -8px; }
@media (hover: hover) and (pointer: fine) { .he-rolagem__seta:hover { background: #fff; } }
.he-depoimentos--carrossel,
.he-product-grid.he-product-grid--carrossel {
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--he-n, var(--he-dep-cols, 3)) - 1) * 16px) / var(--he-n, var(--he-dep-cols, 3)));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.he-depoimentos--carrossel::-webkit-scrollbar,
.he-product-grid--carrossel::-webkit-scrollbar { display: none; }
.he-depoimentos--carrossel > *, .he-product-grid--carrossel > * { scroll-snap-align: start; }
@container he-page (max-width: 768px) {
  .he-depoimentos--carrossel { grid-template-columns: none; --he-n: min(2, var(--he-dep-cols, 3)); }
  .he-product-grid.he-product-grid--carrossel { grid-template-columns: none; --he-n: var(--he-n-t, 2); }
}
@container he-page (max-width: 480px) {
  .he-depoimentos--carrossel { grid-template-columns: none; --he-n: 1; }
  .he-product-grid.he-product-grid--carrossel { grid-template-columns: none; --he-n: var(--he-n-m, 1); }
  .he-rolagem__seta { display: none; }
}
.he-depoimentos__resumo { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 15px; }
.he-depoimentos__media i { color: #f59e0b; }
.he-depoimentos__google { color: inherit; text-decoration: underline; font-size: 13px; }
.he-product-grid__cabecalho { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.he-product-grid__titulo { margin: 0; font-size: 1.4em; }
.he-product-grid__ver-todos { color: var(--primary, #823b18); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .he-product-grid__ver-todos:hover { text-decoration: underline; } }

/* ── Barra de avisos ────────────────────────────────────────────────────── */
.he-barra-avisos { display: flex; align-items: center; min-height: 36px; padding: 8px 16px; position: relative; text-align: center; }
.he-barra-avisos__item { display: none; font-weight: 600; width: 100%; }
.he-barra-avisos__item--ativo { display: block; animation: he-barra-entra .4s ease; }
.he-barra-avisos a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .he-barra-avisos a:hover { text-decoration: underline; } }
@keyframes he-barra-entra { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Feed do Instagram ──────────────────────────────────────────────────── */
.he-ig-feed__cabecalho { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.he-ig-feed__titulo { margin: 0; font-size: 1.4em; }
.he-ig-feed__perfil { color: inherit; font-weight: 600; text-decoration: none; }
.he-ig-feed__grade { display: grid; grid-template-columns: repeat(var(--he-ig-cols, 3), 1fr); gap: var(--he-ig-gap, 8px); }
.he-ig-feed__item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #eee; }
.he-ig-feed__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
@media (hover: hover) and (pointer: fine) { .he-ig-feed__item:hover img { transform: scale(1.06); } }
@container he-page (max-width: 480px) { .he-ig-feed__grade { grid-template-columns: repeat(min(3, var(--he-ig-cols, 3)), 1fr); } }
