/* Empyre - nova home e card de produto novo.
   Escopo: tudo dentro de .h-home (classes com prefixo h-), tokens em :root com prefixo --h-.
   Nao ha reset global: os resets abaixo usam :where(.h-home) (especificidade 0) para neutralizar
   regras de elemento do CSS legado (p, ul, button, a, * { font-family }) sem brigar com os componentes.
   Carregado somente na previa (?nova=1, administrador) enquanto a home antiga estiver ativa. */

:root {
  --h-n-900: #0b0b0b; --h-n-700: #2a2a2a; --h-n-500: #6b6b6b; --h-n-300: #c9c5bd;
  --h-n-200: #e6e2db; --h-n-100: #f4f2ee; --h-n-0: #ffffff;
  --h-accent: #c9a45c;          /* preenchimento; texto preto em cima 8,4:1 */
  --h-accent-ink: #6f5424;      /* texto/icone de acento sobre claro (5,9:1 em #f3ead8) */
  --h-accent-soft: #f3ead8;
  --h-font-body: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --h-font-display: "Domine", Georgia, "Times New Roman", serif;
  --h-fs-xs: .75rem; --h-fs-sm: .875rem; --h-fs-base: 1rem; --h-fs-lg: 1.125rem;
  --h-fs-h3: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --h-fs-h2: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --h-lh-tight: 1.15;
  --h-s-1: 4px; --h-s-2: 8px; --h-s-3: 12px; --h-s-4: 16px; --h-s-5: 24px; --h-s-6: 32px; --h-s-7: 48px; --h-s-8: 64px;
  --h-gutter: 16px; --h-container: 1280px;
  --h-r-sm: 4px; --h-r-lg: 12px;
  --h-sh-1: 0 1px 2px rgba(11,11,11,.06), 0 2px 8px rgba(11,11,11,.06);
  --h-sh-2: 0 8px 28px rgba(11,11,11,.16);
  --h-t: 160ms cubic-bezier(.2,.7,.2,1);
  --h-focus: 0 0 0 2px #fff, 0 0 0 4px #0b0b0b;
}
@media (min-width: 768px) { :root { --h-gutter: 24px; } }

/* ---- Neutralizacao do legado (escopo .h-home, especificidade 0) ---- */
.h-home { display: block; font: 400 var(--h-fs-base)/1.5 var(--h-font-body); color: var(--h-n-900); background: var(--h-n-0); overflow-x: clip; }
:where(.h-home) *, :where(.h-home) *::before, :where(.h-home) *::after { box-sizing: border-box; font-family: var(--h-font-body); }
:where(.h-home) p, :where(.h-home) h2, :where(.h-home) h3, :where(.h-home) ul, :where(.h-home) li,
:where(.h-home) figure, :where(.h-home) form, :where(.h-home) time { margin: 0; padding: 0; }
:where(.h-home) ul { list-style: none; }
:where(.h-home) img { display: block; max-width: 100%; height: auto; margin: 0; vertical-align: baseline; }
:where(.h-home) a { color: inherit; text-decoration: none; padding: 0; width: auto; }
:where(.h-home) button { display: inline-flex; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit;
  font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none; cursor: pointer; width: auto; }
.h-home :focus-visible { outline: none; box-shadow: var(--h-focus); border-radius: var(--h-r-sm); }
.h-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* Icone: 24x24, traco 1,5, currentColor */
.h-home .i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.h-home .i--sm { width: 18px; height: 18px; } .h-home .i--lg { width: 32px; height: 32px; }

.h-wrap { width: 100%; max-width: var(--h-container); margin-inline: auto; padding-inline: var(--h-gutter); }

/* Botoes: primario preto solido / secundario contorno */
.h-home .h-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--h-s-2); min-height: 44px; padding: 0 var(--h-s-5);
  font: 700 var(--h-fs-sm)/1 var(--h-font-body); letter-spacing: .02em; text-transform: none; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--h-n-900); border-radius: var(--h-r-sm); background: var(--h-n-900); color: var(--h-n-0); transition: background var(--h-t), color var(--h-t); }
.h-home .h-btn:hover { background: var(--h-n-700); }
.h-home .h-btn--outline { background: transparent; color: var(--h-n-900); }
.h-home .h-btn--outline:hover { background: var(--h-n-900); color: var(--h-n-0); }
.h-home .h-btn--on-dark { background: var(--h-n-0); color: var(--h-n-900); border-color: var(--h-n-0); }
.h-home .h-btn--on-dark:hover { background: var(--h-accent); border-color: var(--h-accent); color: var(--h-n-900); }
.h-home .h-btn--block { width: 100%; }
.h-home .h-badge { display: inline-block; padding: 3px var(--h-s-2); font: 700 var(--h-fs-xs)/1.2 var(--h-font-body); letter-spacing: .06em; text-transform: none; border-radius: var(--h-r-sm); background: var(--h-n-900); color: var(--h-n-0); }
.h-home .h-badge--sale { background: var(--h-accent); color: var(--h-n-900); }
.h-home .h-eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--h-fs-xs)/1 var(--h-font-body); letter-spacing: .03em; color: var(--h-accent-ink); }
.h-home .h-eyebrow--light { color: var(--h-accent); }

/* ---- Barra de beneficios ---- */
.h-bar { background: var(--h-n-100); border-bottom: 1px solid var(--h-n-200); font-size: var(--h-fs-xs); font-weight: 700; letter-spacing: .02em; }
.h-bar__list { display: none; justify-content: center; gap: var(--h-s-6); padding: var(--h-s-2) var(--h-gutter); }
.h-bar__list li { display: inline-flex; align-items: center; gap: 8px; }
.h-bar__list .i { color: var(--h-accent-ink); }
.h-bar__list small { display: block; font-size: var(--h-fs-xs); font-weight: 400; color: var(--h-n-500); }
.h-bar__compact { padding: var(--h-s-2) var(--h-gutter); text-align: center; line-height: 1.4; }
@media (min-width: 768px) { .h-bar__list { display: flex; } .h-bar__compact { display: none; } }

/* ---- Hero ---- */
.h-hero { position: relative; background: var(--h-n-100); }
.h-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.h-hero__track::-webkit-scrollbar { display: none; }
.h-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--h-sl-bg, var(--h-n-100)); color: var(--h-n-900); }
.h-slide--a { --h-sl-bg: var(--h-accent-soft); } .h-slide--b { --h-sl-bg: var(--h-n-100); }
.h-slide--c { --h-sl-bg: var(--h-n-900); color: var(--h-n-0); }
.h-slide__media { position: relative; aspect-ratio: 750 / 520; overflow: hidden; }
.h-slide__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.h-slide__media--trio > img { position: absolute; inset: auto; top: 50%; width: 44%; height: auto; aspect-ratio: 1; object-fit: cover; mix-blend-mode: normal;
  background: #fff; border-radius: var(--h-r-lg); box-shadow: var(--h-sh-2); transform: translateY(-50%); }
.h-slide__media--trio > img:nth-child(1) { left: 5%; } .h-slide__media--trio > img:nth-child(3) { right: 5%; }
.h-slide__media--trio > img:nth-child(2) { left: 50%; width: 52%; transform: translate(-50%, -50%); z-index: 1; }
.h-slide__copy { padding: var(--h-s-5) var(--h-gutter) 76px; min-height: 280px; }
.h-slide__title { margin: var(--h-s-2) 0 var(--h-s-3); font: 600 clamp(1.625rem, 1.2rem + 2vw, 2.75rem)/var(--h-lh-tight) var(--h-font-display); max-width: 18ch; }
.h-home .h-slide__title { font-family: var(--h-font-display); }
.h-slide__text { margin: 0 0 var(--h-s-5); max-width: 42ch; font-size: var(--h-fs-lg); }
.h-slide__fine { margin: var(--h-s-3) 0 0; max-width: 46ch; font-size: var(--h-fs-xs); color: #d9d5cd; }
.h-slide--c .h-eyebrow { color: var(--h-accent); }
.h-hero__ctrl[hidden] { display: none; }
.h-hero__ctrl { position: absolute; left: var(--h-gutter); bottom: var(--h-s-4); display: flex; align-items: center; gap: var(--h-s-1); padding: 2px var(--h-s-2) 2px 2px; background: var(--h-n-0); border-radius: 999px; box-shadow: var(--h-sh-1); }
.h-hero__btn { width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--h-n-900); border-radius: 999px; }
.h-hero__btn:hover { background: var(--h-n-900); color: var(--h-n-0); }
.h-hero__dots { display: flex; }
.h-hero__dot { width: 28px; height: 44px; align-items: center; justify-content: center; }
.h-hero__dot::after { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--h-n-500); transition: background var(--h-t), width var(--h-t); }
.h-hero__dot[aria-current="true"]::after { background: var(--h-n-900); width: 24px; }
@media (min-width: 768px) {
  .h-slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "copy media"; align-items: center; aspect-ratio: 1920 / 700; max-height: 640px; min-height: 420px; }
  .h-slide__media { grid-area: media; aspect-ratio: auto; height: 100%; }
  .h-slide__copy { grid-area: copy; padding: 0 var(--h-s-6) 40px max(var(--h-gutter), calc((100vw - var(--h-container)) / 2 + var(--h-gutter))); min-height: 0; }
  .h-hero__ctrl { left: max(var(--h-gutter), calc((100vw - var(--h-container)) / 2 + var(--h-gutter))); bottom: var(--h-s-5); }
}

/* ---- Secoes ---- */
.h-sec { padding-block: var(--h-s-7); }
.h-sec[id] { scroll-margin-top: 72px; }
.h-sec--tint { background: var(--h-n-100); } .h-sec--dark { background: var(--h-n-900); color: var(--h-n-0); }
.h-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--h-s-2) var(--h-s-4); margin-bottom: var(--h-s-5); }
.h-sec__intro { flex: 1 1 280px; }
.h-home .h-sec__title { font: 600 var(--h-fs-h2)/var(--h-lh-tight) var(--h-font-display); }
.h-sec__sub { margin-top: var(--h-s-1); color: var(--h-n-500); }
.h-sec--dark .h-sec__sub { color: #d9d5cd; }
.h-sec__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--h-fs-sm); font-weight: 700; border-bottom: 1.5px solid var(--h-accent); white-space: nowrap; }
.h-sec__nav { display: none; gap: var(--h-s-2); }
.h-sec__nav button { width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--h-n-0); border: 1px solid var(--h-n-300); border-radius: 999px; }
.h-sec__nav button:hover:not(:disabled) { background: var(--h-n-900); color: var(--h-n-0); }
.h-sec__nav button:disabled { opacity: .4; cursor: default; }
@media (min-width: 992px) { .h-sec__nav { display: flex; } .h-sec { padding-block: var(--h-s-8); } .h-sec__link { min-height: 0; } }

/* ---- Tiles ---- (imagem 4:3 composta, texto sobre a faixa livre inferior) */
.h-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--h-s-3); }
.h-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--h-r-lg); background: var(--h-n-100); border: 1px solid var(--h-n-200); isolation: isolate; --tl-ink: var(--h-n-900); --tl-sub: var(--h-n-500); --tl-fade: rgba(255,255,255,.92); }
.h-tile--dark { --tl-ink: #fff; --tl-sub: rgba(255,255,255,.78); --tl-fade: rgba(11,11,11,.9); border-color: #1a1a1a; }
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.h-tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(to top, var(--tl-fade) 8%, transparent); z-index: 1; }
.h-tile:hover img { transform: scale(1.04); }
.h-tile__txt { position: absolute; z-index: 2; left: var(--h-s-4); right: 56px; bottom: var(--h-s-4); display: flex; flex-direction: column; gap: 2px; color: var(--tl-ink); }
.h-home .h-tile__name { font: 600 var(--h-fs-h3)/1.15 var(--h-font-display); color: var(--tl-ink); }
.h-tile__desc { font-size: var(--h-fs-sm); color: var(--tl-sub); line-height: 1.3; }
.h-tile__go { position: absolute; z-index: 2; right: var(--h-s-3); bottom: var(--h-s-3); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: var(--h-n-900); color: var(--h-n-0); transition: background var(--h-t), color var(--h-t); }
.h-tile--dark .h-tile__go { background: #fff; color: var(--h-n-900); }
.h-tile:hover .h-tile__go { background: var(--h-accent); color: var(--h-n-900); }
.h-tile--wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
@media (min-width: 768px) {
  .h-tiles { grid-template-columns: repeat(3, 1fr); gap: var(--h-s-4); }
  .h-tile, .h-tile--wide { aspect-ratio: 4 / 3; grid-column: auto; }
}
@media (max-width: 400px) { .h-tile__desc { display: none; } .h-tile__txt { right: 48px; } .h-home .h-tile__name { font-size: 1rem; } }

/* ---- Card de produto ---- */
.h-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--h-n-0); border: 1px solid var(--h-n-200); border-radius: var(--h-r-lg); overflow: hidden; transition: box-shadow var(--h-t); }
.h-card:hover { box-shadow: var(--h-sh-1); }
.h-card__media { position: relative; display: block; aspect-ratio: 1; background: #fff; }
.h-card__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--h-s-3); }
.h-card__badge { position: absolute; left: var(--h-s-3); top: var(--h-s-3); z-index: 1; }
.h-card__fav { position: absolute; right: var(--h-s-2); top: var(--h-s-2); z-index: 1; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; color: var(--h-n-900); }
.h-card__fav:hover { color: var(--h-accent-ink); }
.h-card__fav.active .i, .h-card__fav[aria-pressed="true"] .i { fill: currentColor; }
.h-card__body { display: flex; flex-direction: column; gap: var(--h-s-1); padding: var(--h-s-1) var(--h-s-4) var(--h-s-4); flex: 1; }
.h-home .h-card__title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; font: 400 var(--h-fs-base)/1.35 var(--h-font-body); }
.h-card__title a:hover { text-decoration: underline; }
.h-card__price { margin-top: var(--h-s-2); font: 700 var(--h-fs-lg)/1.2 var(--h-font-body); }
.h-card__price del { margin-right: 6px; font-weight: 400; font-size: var(--h-fs-sm); color: var(--h-n-500); }
.h-card__rating { display: flex; align-items: center; gap: 4px; font-size: var(--h-fs-sm); color: var(--h-n-700); }
.h-card__rating .i { width: 16px; height: 16px; fill: var(--h-accent); stroke: var(--h-accent-ink); }
.h-card__sub { min-height: 2.8em; margin-bottom: var(--h-s-3); font-size: var(--h-fs-sm); line-height: 1.4; color: var(--h-n-500); }
.h-card__sub span { display: block; }
.h-home .h-card__cta { margin-top: auto; }

/* ---- Linha rolavel ---- */
.h-row { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: var(--h-s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; margin: -2px; overscroll-behavior-x: contain; }
.h-row::-webkit-scrollbar { display: none; }
.h-row > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px) { .h-row { grid-auto-columns: calc((100% - 2 * var(--h-s-3)) / 3); } }
@media (min-width: 992px) { .h-row { grid-auto-columns: calc((100% - 4 * var(--h-s-4)) / 5); gap: var(--h-s-4); } }

/* ---- Kits para presente ---- */
.h-gift { display: grid; gap: var(--h-s-4); }
.h-gift__feature { position: relative; display: grid; grid-template-rows: auto auto; background: var(--h-n-900); color: var(--h-n-0); border-radius: var(--h-r-lg); overflow: hidden; }
.h-gift__feature img { width: 100%; aspect-ratio: 16 / 11; object-fit: contain; background: #fff; padding: var(--h-s-4); }
.h-gift__txt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--h-s-3); padding: var(--h-s-5); }
.h-home .h-gift__name { font: 600 var(--h-fs-h2)/var(--h-lh-tight) var(--h-font-display); }
.h-gift__price { font-size: var(--h-fs-sm); color: #e6e2db; }
.h-gift__feature:hover .h-btn--on-dark { background: var(--h-accent); border-color: var(--h-accent); }
.h-gift__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--h-s-3); align-content: start; }
.h-gift__grid .h-card:nth-child(3) { display: none; }
@media (min-width: 992px) {
  .h-gift { grid-template-columns: 5fr 7fr; }
  .h-gift--solo { grid-template-columns: 1fr; }
  .h-gift__feature { grid-template-rows: 1fr auto; }
  .h-gift__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; align-content: stretch; align-items: stretch; gap: var(--h-s-4); } .h-gift__grid .h-card:nth-child(3) { display: flex; }
  /* Cards dos kits com a mesma altura do destaque: a imagem absorve a altura extra e o botao fica sempre na base */
  .h-gift__grid .h-card { height: 100%; }
  .h-gift__grid .h-card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 190px; }
}

/* ---- Duas linhas ---- */
.h-brands { display: grid; gap: var(--h-s-4); }
.h-brand { display: grid; grid-template-columns: 40% 1fr; align-items: center; background: #1a1a1a; border: 1px solid #2f2f2f; border-radius: var(--h-r-lg); overflow: hidden; color: var(--h-n-0); }
.h-brand__img { width: 100%; height: 100%; object-fit: contain; background: #fff; aspect-ratio: 1; padding: var(--h-s-2); }
.h-brand__txt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--h-s-2); padding: var(--h-s-4) var(--h-s-5); }
.h-home .h-brand__name { font: 600 var(--h-fs-h3)/1.2 var(--h-font-display); }
.h-brand__desc { font-size: var(--h-fs-sm); color: #d9d5cd; }
.h-brand__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--h-fs-sm); font-weight: 700; color: var(--h-accent); }
.h-brand__go:hover { text-decoration: underline; }
@media (min-width: 768px) { .h-brands { grid-template-columns: 1fr 1fr; } .h-brand { grid-template-columns: 44% 1fr; } }
@media (max-width: 480px) { .h-brand__desc { display: none; } .h-brand__txt { padding: var(--h-s-3) var(--h-s-4); } }

/* ---- Confianca ---- */
.h-trust { display: grid; grid-template-columns: 1fr; gap: var(--h-s-5); }
.h-trust li { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--h-s-4); align-content: start; }
.h-trust .i { grid-row: span 2; color: var(--h-accent-ink); }
.h-home .h-trust h3 { font-size: var(--h-fs-base); font-weight: 700; }
.h-trust h3 a { text-decoration: underline; text-decoration-color: var(--h-accent); text-underline-offset: 3px; }
.h-trust p { margin-top: 2px; font-size: var(--h-fs-sm); color: var(--h-n-700); }
@media (min-width: 768px) { .h-trust { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .h-trust li { grid-template-columns: 1fr; row-gap: var(--h-s-2); } .h-trust .i { grid-row: auto; } }

/* ---- Blog ---- */
.h-blog { display: grid; grid-template-columns: 1fr; gap: var(--h-s-4); }
.h-post { display: flex; flex-direction: column; background: var(--h-n-0); border: 1px solid var(--h-n-200); border-radius: var(--h-r-lg); overflow: hidden; }
.h-post__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--h-n-100); }
.h-post__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: var(--h-s-2); padding: var(--h-s-4); }
.h-post__date { font-size: var(--h-fs-sm); color: var(--h-n-500); }
.h-home .h-post__title { font: 600 var(--h-fs-h3)/1.25 var(--h-font-display); }
.h-post__title a:hover { text-decoration: underline; }
.h-post .h-btn { margin-top: auto; }
@media (min-width: 768px) { .h-blog { grid-template-columns: repeat(3, 1fr); gap: var(--h-s-4); } }

/* ---- Newsletter (a do rodape fica oculta na previa; o JS legado atua por form[name="newsletter"]) ---- */
.h-news { display: grid; gap: var(--h-s-4); align-items: start; padding-block: var(--h-s-7); }
.h-news__form { display: flex; flex-wrap: wrap; gap: var(--h-s-2); }
.h-news__form input[type="email"] { flex: 1 1 220px; width: auto; min-height: 44px; padding: 0 var(--h-s-4); font: inherit; color: var(--h-n-900); background: var(--h-n-0); border: 1.5px solid var(--h-n-300); border-radius: var(--h-r-sm); }
.h-news__form input::placeholder { color: var(--h-n-500); opacity: 1; }
.h-news__form input:hover { border-color: var(--h-n-500); }
.h-news__form input:focus-visible { border-color: var(--h-n-900); }
.h-news__note, .h-news__msg { flex: 1 0 100%; font-size: var(--h-fs-sm); color: var(--h-n-500); }
.h-news__msg { min-height: 1.4em; color: var(--h-n-900); font-weight: 700; }
@media (min-width: 768px) { .h-news { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .h-home *, .h-home *::before, .h-home *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
