/**
 * Home (index.html) — prefixo hm-. O header e a faixa dourada moram em
 * styles/site-header.css e o card de perfume em styles/product-card.css
 * (carregar os dois antes deste). Mobile-first: a base é o celular,
 * @media (min-width: 768px) acrescenta o desktop.
 */

:root {
    /* Banner montado: preto do logo indo ao vinho da marca */
    --hm-night: #0B0B0B;
    --hm-wine: var(--ds-wine);

    /* Faixa: altura do carrossel e do trecho em que o dourado se dissolve no fundo.
       Mobile-first; o desktop redefine nos @media. */
    --hm-banner-h: 232px;
    --hm-hero-tail: 72px;   /* dourado que sobra abaixo do banner (os cards da etapa 3 sobem aqui) */
    --hm-overlap: 0px;      /* quanto os módulos sobem por cima do banner (só no desktop) */

    /* Seta dos CTAs (máscara; a cor vem do currentColor) */
    --hm-arrow: 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 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

body.hm-page { background: var(--ds-bg); }

/* Foco visível em tudo que é clicável da home */
.hm-page :focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 2px; }
.hm-page .hm-search input:focus-visible { outline: none; } /* o form já acende com :focus-within */
.hm-page .hm-slide :focus-visible,
.hm-page .hm-hero-dot:focus-visible { outline-color: var(--ds-gold-light); }

/* ========== CARROSSEL ========== */
.hm-hero {
    padding: 4px 16px var(--hm-hero-tail);
}
.hm-hero-frame {
    position: relative;
    max-width: var(--ds-page-max);
    height: var(--hm-banner-h);
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--hm-night);
    box-shadow: 0 10px 30px -12px rgba(58, 15, 30, 0.45);
}
.hm-hero-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.hm-hero-track::-webkit-scrollbar { display: none; }
.hm-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: var(--hm-night);
}
/* Banner PNG transparente (setup-home-banner.html): sem fundo e sem sombra,
   a arte fica sobre a faixa dourada. A moldura recebe a classe do slide
   ativo. -m no celular; do tablet para cima vale -d (a arte do computador). */
.hm-slide.is-clear-m,
.hm-hero-frame.is-clear-m { background: transparent; }
.hm-hero-frame.is-clear-m { box-shadow: none; }
@media (min-width: 768px) {
    .hm-slide.is-clear-m:not(.is-clear-d),
    .hm-hero-frame.is-clear-m:not(.is-clear-d) { background: var(--hm-night); }
    .hm-hero-frame.is-clear-m:not(.is-clear-d) { box-shadow: 0 10px 30px -12px rgba(58, 15, 30, 0.45); }
    .hm-slide.is-clear-d,
    .hm-hero-frame.is-clear-d { background: transparent; }
    .hm-hero-frame.is-clear-d { box-shadow: none; }
}
.hm-slide-link { display: block; height: 100%; }
.hm-slide picture,
.hm-slide picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Celular sem arte própria de celular (HomeHero, fitsMobile): a arte do
   computador (3,2:1) aparece inteira em vez de cortada nas laterais. Com todos
   os slides assim, a moldura assume a proporção da arte e não sobram faixas.
   A arte de celular (1080×730), quando enviada, continua preenchendo os 232px. */
.hm-hero-frame.is-wide-m { height: auto; aspect-ratio: 2560 / 800; }
.hm-slide.is-fit-m picture img { object-fit: contain; }
@media (min-width: 768px) {
    .hm-hero-frame.is-wide-m { height: var(--hm-banner-h); aspect-ratio: auto; }
    .hm-slide.is-fit-m picture img { object-fit: cover; }
}

/* Slide montado (enquanto a arte não chega) */
.hm-slide-composed {
    position: relative;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 140% at 85% 110%, rgba(212, 175, 55, 0.22) 0, transparent 45%),
        linear-gradient(115deg, var(--hm-night) 30%, var(--hm-wine) 100%);
    box-shadow: inset 0 0 0 1px rgba(246, 226, 122, 0.18);
}
.hm-slide-copy {
    position: relative;
    z-index: 2;
    /* Só a parte do banner que os módulos não cobrem. Arte pronta (1280×400)
       precisa seguir a mesma regra: nada importante nos 150px de baixo. */
    height: calc(100% - var(--hm-overlap));
    max-width: 62%;
    padding: 20px 0 36px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}
.hm-slide-eyebrow {
    margin: 0;
    font: 600 10px/1.2 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ds-gold);
}
.hm-slide-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.15;
    color: var(--ds-gold-light);
    text-wrap: balance;
}
.hm-slide-text {
    display: none; /* no celular o título já diz tudo; o texto volta no desktop */
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.74);
    max-width: 46ch;
}
.hm-slide-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    margin-top: 4px;
    border-radius: 10px;
    background: var(--ds-gold);
    color: var(--hm-ink);
    font: 600 14px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.hm-slide-cta:hover { background: var(--ds-gold-light); transform: translateY(-1px); }

/* Garrafas: a do meio na frente, as laterais menores e atrás, com sombra de chão */
.hm-slide-bottles {
    position: absolute;
    right: 0;
    bottom: var(--hm-overlap);
    height: calc((100% - var(--hm-overlap)) * 0.84);
    width: 40%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hm-slide-bottles::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 4%;
    height: 14%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
    z-index: 0;
}
.hm-bottle {
    position: relative;
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.hm-bottle-0 { z-index: 2; }
.hm-bottle-1,
.hm-bottle-2 { height: 78%; z-index: 1; opacity: 0.92; }
.hm-bottle-1 { order: -1; margin-right: -8%; }
.hm-bottle-2 { margin-left: -8%; }
/* No celular cabe uma garrafa só; as laterais voltam no desktop */
.hm-bottle-1,
.hm-bottle-2 { display: none; }

/* Fotos em moldura (slide com `photos`): para foto com fundo — os JPG dos
   cosméticos —, que não dá para sobrepor como garrafa recortada. A do meio na
   frente e maior; as laterais só voltam no desktop. */
.hm-slide-photos {
    position: absolute;
    right: 4%;
    bottom: var(--hm-overlap);
    height: calc((100% - var(--hm-overlap)) * 0.78);
    width: 36%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4%;
}
.hm-slide-photo {
    position: relative;
    z-index: 2;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    padding: 6%;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(246, 226, 122, 0.35);
}
.hm-slide-photo img { width: 100%; height: 100%; object-fit: contain; }
.hm-slide-photo-1,
.hm-slide-photo-2 { display: none; height: 72%; z-index: 1; }
.hm-slide-photo-1 { order: -1; margin-right: -10%; transform: rotate(-5deg); }
.hm-slide-photo-2 { margin-left: -10%; transform: rotate(5deg); }

/* Setas: só no desktop (no celular o dedo arrasta) */
.hm-hero-arrow {
    display: none;
    position: absolute;
    top: calc((100% - var(--hm-overlap)) / 2);
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    /* Translúcida para não cobrir a arte; volta ao branco cheio no hover. */
    background: rgba(255, 255, 255, 0.55);
    color: var(--hm-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}
.hm-hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hm-hero-prev { left: 14px; }
.hm-hero-next { right: 14px; }

.hm-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--hm-overlap) + 6px);
    z-index: 3;
    display: flex;
    justify-content: center;
}
.hm-hero-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hm-hero-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}
.hm-hero-dot.is-active::before { width: 18px; background: var(--ds-gold-light); }

@media (prefers-reduced-motion: reduce) {
    .hm-hero-track { scroll-behavior: auto; }
    .hm-slide-cta, .hm-hero-arrow, .hm-hero-dot::before { transition: none; }
}

/* ========== MÓDULOS DE PERFUMES ==========
   Celular: módulos empilhados, cada um rolando na horizontal pelos perfumes.
   Desktop: módulos lado a lado, subindo --hm-overlap px por cima do banner,
   cada um com 1 perfume em destaque. */
.hm-modules-wrap {
    position: relative;
    z-index: 5;
    max-width: var(--ds-page-max);
    margin: calc(-1 * var(--hm-hero-tail) + 12px) auto 32px;
    padding: 0 16px;
}
.hm-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hm-mod {
    background: var(--ds-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px -16px rgba(58, 15, 30, 0.25);
    padding: 16px 0 16px;
    min-width: 0;
}
.hm-mod-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 10px;
}
.hm-mod-head h2 {
    margin: 0;
    font: 600 17px/1.25 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ds-text);
}
.hm-mod-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -12px 0;
    font: 600 14px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--hm-link);
    text-decoration: none;
}
.hm-mod-all:hover { text-decoration: underline; }

.hm-mod-list {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.hm-mod-list::-webkit-scrollbar { display: none; }
.hm-prod {
    flex: 0 0 136px;
    min-width: 0;
    scroll-snap-align: start;
}

/* Esqueleto enquanto carrega */
.hm-mod-skeleton { padding: 16px; }
.hm-sk {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--ds-bg) 0, #EFEFEF 50%, var(--ds-bg) 100%);
    background-size: 200% 100%;
    animation: hm-shimmer 1.2s linear infinite;
}
.hm-sk-title { height: 18px; width: 55%; margin-bottom: 14px; }
.hm-sk-img { aspect-ratio: 1 / 1; width: 136px; margin-bottom: 10px; }
.hm-sk-line { height: 12px; width: 80%; margin-bottom: 8px; }
.hm-sk-short { width: 45%; }
@keyframes hm-shimmer { to { background-position: -200% 0; } }

.hm-modules-error {
    background: var(--ds-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hm-modules-error p { margin: 0; color: var(--ds-text); }
.hm-modules-error button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--ds-gold);
    color: var(--hm-ink);
    font: 600 14px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
}
.hm-modules-error a { color: var(--hm-link); font-size: 14px; }

/* ========== FAIXA COM SETAS (HScroller) ==========
   Setas só no desktop; no celular o dedo arrasta. */
.hm-hs { position: relative; }
/* O trilho também é referência de posição: sem isto, filho com position:absolute
   (o .hm-sr-only do "Ver todos", o selo do card) se ancora no .hm-hs, que fica
   FORA da área rolável — escapa do corte e cria scroll horizontal na página. */
.hm-hs-track { position: relative; }
.hm-hs-arrow { display: none; }


/* Card "Cosméticos" dos módulos (chamariz para a home de cosméticos): foto JPG
   de fundo branco numa caixa branca. Sem preço e sem texto de convite — quem
   convida é o "Ver todos" do módulo. */
.hm-teaser-img { background: #fff; box-shadow: inset 0 0 0 1px var(--ds-border); }
.hm-teaser-img img { padding: 8%; box-sizing: border-box; }

/* ========== PRATELEIRAS (HomeShelf) ==========
   Celular: ~2,3 cards por tela, arrastando. Tablet: 3. Desktop largo: 5, e a
   seta anda 5 de cada vez. */
.hm-shelves {
    max-width: var(--ds-page-max);
    margin: 0 auto 32px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hm-shelf {
    background: var(--ds-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 0 12px;
    min-width: 0;
}
.hm-shelf-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
}
.hm-shelf-head h2 {
    margin: 0;
    min-width: 0;
    font: 600 18px/1.25 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ds-text);
}
.hm-shelf-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -12px 0;
    font: 600 14px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--hm-link);
    text-decoration: none;
}
.hm-shelf-all:hover { text-decoration: underline; }

.hm-shelf-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.hm-shelf-tabs::-webkit-scrollbar { display: none; }
.hm-shelf-tab {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: var(--ds-card);
    color: var(--ds-text);
    font: 500 14px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hm-shelf-tab:hover { border-color: var(--hm-ink); }
.hm-shelf-tab.is-active { background: var(--hm-ink); border-color: var(--hm-ink); color: var(--ds-gold-light); }

.hm-shelf-track {
    display: flex;
    gap: 12px;
    padding: 14px 16px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.hm-shelf-track::-webkit-scrollbar { display: none; }
.hm-shelf-item {
    flex: 0 0 42%;
    min-width: 0;
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
    .hm-sk { animation: none; }
}

/* ========== DESTAQUE + PRATELEIRA (HomeFeature) ==========
   Card de destaque com um toque da faixa do topo (dourado claro + treliça),
   para se separar das prateleiras brancas sem gritar. */
.hm-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hm-feature-card {
    display: flex;
    flex-direction: column;
    background: var(--ds-card);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 32px -20px rgba(165, 124, 27, 0.45);
    overflow: hidden;
    min-width: 0;
}
.hm-feature-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    padding: 16px;
    background:
        var(--hm-lattice),
        radial-gradient(90% 80% at 50% 60%, #FFFBEA 0, #F8EDC3 55%, #F1E0A6 100%);
}
.hm-feature-img::after {
    /* sombra de chão sob o frasco */
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: 14px;
    height: 16px;
    background: radial-gradient(closest-side, rgba(58, 15, 30, 0.28), transparent);
}
.hm-feature-img img {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
    transition: transform 0.3s ease;
}
.hm-feature-card:hover .hm-feature-img img { transform: translateY(-3px) scale(1.02); }

.hm-feature-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    min-width: 0;
    flex: 1;
}
.hm-feature-eyebrow {
    margin: 0 0 4px;
    font: 600 11px/1.2 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hm-link);
}
.hm-feature-brand {
    margin: 0;
    font: 600 11px/1.3 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ds-text-muted);
}
.hm-feature-name {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
}
.hm-feature-name a { color: var(--ds-text); text-decoration: none; }
.hm-feature-name a:hover { color: var(--hm-link); }
.hm-feature-summary {
    margin: 2px 0 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ds-text-muted);
}

.hm-feature-perf { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.hm-feature-meter {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "label bar" ". value";
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
}
.hm-feature-meter-label { grid-area: label; font-size: 13px; font-weight: 600; color: var(--ds-text); }
.hm-feature-meter-bar {
    grid-area: bar;
    height: 6px;
    border-radius: 999px;
    background: var(--ds-border);
    overflow: hidden;
}
.hm-feature-meter-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ds-gold) 0, var(--ds-wine) 100%);
}
.hm-feature-meter-value { grid-area: value; font-size: 12px; color: var(--ds-text-muted); }

.hm-feature-foot {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hm-feature-foot .hm-prod-card { font-size: 24px; }
/* Ação principal do destaque: mesma família do CTA do banner (dourado cheio,
   texto escuro), não preto — o preto com texto dourado não aparecia em nenhum
   outro botão da página e pesava sobre o card claro. */
.hm-feature-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 10px;
    background: var(--ds-gold);
    color: var(--hm-ink);
    box-shadow: inset 0 -2px 0 rgba(165, 124, 27, 0.35);
    font: 600 15px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.hm-feature-cta:hover { background: var(--ds-gold-light); transform: translateY(-1px); }
.hm-feature-cta:hover::after { transform: translateX(3px); }

/* Seta dos CTAs do destaque e das marcas: máscara em currentColor, avança no hover. */
.hm-feature-cta::after,
.hm-brand-cta::after {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--hm-arrow) center / contain no-repeat;
    mask: var(--hm-arrow) center / contain no-repeat;
    transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .hm-feature-img img { transition: none; }
}

/* ========== CARDS DE MARCA (HomeBrands) ==========
   Texto + logo à esquerda (fundo branco, onde os logos escuros funcionam) e
   painel com frascos à direita, alternando o dourado da faixa e o preto/vinho
   do banner. O card inteiro é o link. */
.hm-brands {
    display: grid;
    gap: 12px;
}
.hm-brand {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    min-height: 184px;
    background: var(--ds-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}
.hm-brand:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 28px -18px rgba(58, 15, 30, 0.45); }
.hm-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    min-width: 0;
}
.hm-brand-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    object-position: left center;
}
.hm-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    color: var(--ds-text);
}
.hm-brand-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ds-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Contorno dourado fino, texto --hm-link: o card inteiro já é o link, o botão
   só sinaliza — e deixa o painel de frascos/fotos ser o destaque. No hover do
   card ganha o tom translúcido dos "Ver todos" e a seta anda. */
.hm-brand-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--hm-link);
    box-shadow: inset 0 0 0 1.5px var(--ds-gold);
    font: 600 13px/1.2 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.hm-brand:hover .hm-brand-cta {
    background: var(--ds-accent-bg);
    box-shadow: inset 0 0 0 1.5px var(--ds-gold-dark);
}
.hm-brand:hover .hm-brand-cta::after { transform: translateX(3px); }

.hm-brand-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 8px 0;
    min-width: 0;
    overflow: hidden;
}
.hm-brand.is-gold .hm-brand-panel {
    background:
        var(--hm-lattice),
        radial-gradient(90% 90% at 50% 70%, #FFFBEA 0, #F8EDC3 55%, var(--hm-band) 100%);
}
.hm-brand.is-night .hm-brand-panel {
    background:
        radial-gradient(100% 80% at 50% 110%, rgba(212, 175, 55, 0.28) 0, transparent 60%),
        linear-gradient(160deg, var(--hm-night) 20%, var(--hm-wine) 100%);
}
.hm-brand-bottles {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 88%;
    width: 100%;
}
.hm-brand-bottle {
    height: 100%;
    width: auto;
    min-width: 0;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    position: relative;
}
.hm-brand-bottle-0 { z-index: 2; }
.hm-brand-bottle-1,
.hm-brand-bottle-2 { height: 74%; z-index: 1; }
.hm-brand-bottle-1 { order: -1; margin-right: -14%; }
.hm-brand-bottle-2 { margin-left: -14%; }
.hm-brand:hover .hm-brand-bottle-0 { transform: translateY(-4px); }

/* Fotos com fundo branco (cosméticos): `multiply` apaga o branco do JPG sobre o
   painel claro, e o produto parece pousado nele. Só funciona em painel claro —
   por isso cosmético não usa o tom `night`. */
.hm-brand-photos {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 88%;
    width: 100%;
    padding-bottom: 8px;
}
/* A moldura (span) NÃO pode ter z-index nem transform: viraria contexto de
   empilhamento e o `multiply` da imagem misturaria só com ela mesma, deixando o
   retângulo branco à vista. Camada e hover ficam na própria <img>. */
.hm-brand-photo {
    height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
}
.hm-brand-photo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.hm-brand-photo-0 img { z-index: 2; }
.hm-brand-photo-1,
.hm-brand-photo-2 { height: 70%; }
.hm-brand-photo-1 { order: -1; margin-right: -22%; }
.hm-brand-photo-2 { margin-left: -22%; }
.hm-brand:hover .hm-brand-photo-0 img { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
    .hm-brand-bottle, .hm-brand-photo img, .hm-brand-cta, .hm-brand { transition: none; }
    .hm-feature-cta, .hm-feature-cta::after, .hm-brand-cta::after { transition: none; }
    .hm-feature-cta:hover { transform: none; }
}
/* ========== VER TODOS (fecho da página) ========== */
.hm-see-all {
    margin-top: 8px;
    padding: 28px 20px;
    border-radius: 12px;
    background: var(--hm-band);
    color: var(--hm-ink);
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
/* Mesma treliça da faixa do topo: a página abre e fecha no dourado. */
.hm-see-all::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--hm-lattice);
    background-position: center;
    pointer-events: none;
}
.hm-see-all h2 {
    margin: 0 0 6px;
    font: 600 22px/1.2 'Playfair Display', Georgia, serif;
}
.hm-see-all p {
    margin: 0 auto 18px;
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.45;
    color: var(--hm-ink-soft);
}
.hm-see-all-cta {
    width: 100%;
    padding: 0 24px;
    background: var(--hm-ink);
    color: #fff;
    box-shadow: none;
}
.hm-see-all-cta:hover { background: var(--ds-wine); }

/* ========== BENEFÍCIOS (depois dos módulos) ==========
   Números da configuração de preços (sitePaymentFacts). 2x2 no celular,
   uma linha só no desktop. */
.hm-benefits {
    max-width: var(--ds-page-max);
    margin: 0 auto 16px;
    padding: 0 16px;
}
.hm-benefits-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ds-border-light); /* vira a linha entre os itens */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.hm-benefit { min-width: 0; background: var(--ds-card); }
.hm-benefit-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
a.hm-benefit-link:hover strong { color: var(--hm-link); }
.hm-benefit-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hm-band);
    color: var(--hm-ink);
}
.hm-benefit-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-benefit-text strong { font-size: 14px; line-height: 1.25; color: var(--ds-text); }
.hm-benefit-text span { font-size: 12px; line-height: 1.35; color: var(--ds-text-muted); }

/* ========== ATALHOS DE CATEGORIA (só celular) ==========
   Fileira logo abaixo do banner, no dourado que sobra da faixa. No desktop os
   mesmos atalhos estão no menu do header. */
.hm-quick {
    position: relative;
    /* Sobe para o dourado que sobra do banner, no mesmo ponto em que os módulos
       subiriam; o padding-bottom devolve esse espaço para os módulos (que sobem
       --hm-hero-tail - 12px) começarem 12px abaixo dos atalhos, sem cobri-los. */
    margin-top: calc(-1 * var(--hm-hero-tail) + 12px);
    padding-bottom: var(--hm-hero-tail);
}
.hm-quick-list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 16px;
    list-style: none;
    overflow-x: auto;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.hm-quick-list::-webkit-scrollbar { display: none; }
.hm-quick-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ds-card);
    color: var(--hm-ink);
    box-shadow: 0 1px 2px rgba(11, 11, 11, 0.12);
    font: 600 14px/1 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: nowrap;
    text-decoration: none;
}
.hm-quick-link:active { background: var(--hm-ink); color: #fff; }

/* ========== DESKTOP ========== */
@media (min-width: 768px) {
    .hm-quick { display: none; }
    .hm-benefits { padding: 0 24px; margin-bottom: 20px; }
    .hm-benefits-list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
    .hm-benefit-link { flex-direction: row; align-items: center; gap: 12px; padding: 18px 20px; }
    .hm-benefit-text strong { font-size: 15px; }
    .hm-see-all { padding: 40px 24px; }
    .hm-see-all h2 { font-size: 26px; }
    .hm-see-all-cta { width: auto; min-width: 280px; }
    :root { --hm-banner-h: 320px; --hm-hero-tail: 110px; --hm-fade: 260px; --hm-overlap: 100px; }
    .hm-hero { padding: 8px 24px var(--hm-hero-tail); }

    .hm-slide-copy { max-width: 56%; padding: 20px 0 24px 76px; gap: 12px; } /* 76px: livra a seta */
    .hm-slide-eyebrow { font-size: 12px; letter-spacing: 3px; }
    .hm-slide-title { font-size: 30px; }
    .hm-slide-cta { padding: 0 22px; font-size: 15px; }

    .hm-slide-bottles { right: 3%; width: 40%; }
    .hm-slide-photos { right: 5%; width: 42%; }
    .hm-slide-photo-1,
    .hm-slide-photo-2 { display: block; }
    .hm-bottle-1,
    .hm-bottle-2 { display: block; }

    .hm-hero-arrow { display: inline-flex; }

    /* Módulos: linha única por cima do banner, 1 perfume em destaque por módulo */
    .hm-modules-wrap {
        margin-top: calc(-1 * (var(--hm-hero-tail) + var(--hm-overlap)));
        padding: 0 24px;
    }
    .hm-modules {
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* respiro para a sombra dos cards não ser cortada pelo overflow */
        padding-bottom: 12px;
        margin-bottom: -12px;
    }
    .hm-modules::-webkit-scrollbar { display: none; }
    .hm-mod {
        flex: 0 0 calc((100% - 5 * 16px) / 6);
        min-width: 176px;
        scroll-snap-align: start;
        padding: 16px;
        display: flex;
        flex-direction: column;
    }
    /* O cabeçalho some como caixa e os filhos viram itens do card: título em
       cima, "Ver todos" no pé (como o "Ver produto" do e-commerce). */
    .hm-mod-head { display: contents; }
    .hm-mod-head h2 { order: 0; font-size: 16px; margin-bottom: 12px; }
    .hm-mod-list { order: 1; padding: 0; overflow: visible; flex: 1; }
    .hm-mod-all {
        order: 2;
        justify-content: center;
        min-height: 36px;
        margin: 12px 0 0;
        border-radius: 8px;
        background: var(--ds-accent-bg);
        font-size: 13px;
    }
    .hm-mod-all:hover { text-decoration: none; background: rgba(212, 175, 55, 0.2); }
    .hm-mod-list > .hm-prod:not(:first-child) { display: none; }
    .hm-prod { flex: 1 1 auto; }
    .hm-prod-img { margin-bottom: 12px; }
    .hm-prod-card { font-size: 20px; }

    .hm-hs-arrow {
        display: inline-flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: var(--ds-card);
        color: var(--hm-ink);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: transform 0.15s ease;
    }
    .hm-hs-arrow:hover { transform: translateY(-50%) scale(1.06); }
    .hm-hs-prev { left: 4px; }
    .hm-hs-next { right: 4px; }

    /* Prateleira: seta metade para fora do card, na altura da foto */
    .hm-shelf .hm-hs-arrow { top: 42%; }
    .hm-shelf .hm-hs-prev { left: -14px; }
    .hm-shelf .hm-hs-next { right: -14px; }

    .hm-shelves { padding: 0 24px; gap: 20px; }
    .hm-shelf { padding: 20px 0 16px; }
    .hm-shelf-head, .hm-shelf-tabs { padding-left: 20px; padding-right: 20px; }
    .hm-shelf-head h2 { font-size: 20px; }
    /* Vão = padding lateral (20px): o próximo grupo começa exatamente na borda,
       sem um pedaço do 6º card aparecendo. */
    .hm-shelf-track { gap: 20px; padding: 16px 20px 4px; scroll-padding: 0 20px; }
    .hm-shelf-item { flex-basis: calc((100% - 2 * 20px) / 3); }

    .hm-brands { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hm-brand { min-height: 240px; }
    .hm-brand-copy { padding: 24px; gap: 12px; }
    .hm-brand-logo { height: 68px; max-width: 180px; }
    .hm-brand-text { font-size: 14px; }

    .hm-feature { gap: 20px; }
    .hm-feature-card { flex-direction: row; }
    .hm-feature-img { width: 40%; height: auto; min-height: 320px; flex-shrink: 0; }
    .hm-feature-body { padding: 24px; }
    .hm-feature-name { font-size: 30px; }
}

@media (min-width: 1024px) {
    /* Faixa ~550px abaixo do header, banner de 400px (padrão do e-commerce) */
    :root { --hm-banner-h: 400px; --hm-hero-tail: 142px; --hm-fade: 300px; --hm-overlap: 150px; }
    .hm-slide-copy { padding-left: 84px; }
    .hm-slide-title { font-size: 36px; }
    .hm-slide-text { display: block; }
    .hm-slide-bottles { right: 6%; width: 38%; }

    /* 5 perfumes por tela; a seta anda os 5 */
    .hm-shelf-item { flex-basis: calc((100% - 4 * 20px) / 5); }

    .hm-brand { min-height: 260px; }
    .hm-brand-copy { padding: 28px 32px; }
    .hm-brand-logo { height: 84px; max-width: 220px; }
    .hm-brand-text { font-size: 15px; }
    .hm-brand-cta { min-height: 44px; padding: 0 18px; font-size: 14px; }

    /* Destaque 1/3 + prateleira 2/3: ali a prateleira mostra 3 por tela */
    .hm-feature {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: stretch;
    }
    .hm-feature.is-reversed { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .hm-feature.is-reversed .hm-feature-card { order: 2; }
    .hm-feature-card { flex-direction: column; }
    .hm-feature-img { width: auto; height: 230px; min-height: 0; }
    /* A prateleira estica até a altura do destaque: os cards ficam no meio,
       em vez de um vão branco embaixo. */
    .hm-feature .hm-shelf { display: flex; flex-direction: column; }
    .hm-feature .hm-shelf-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .hm-feature-body { padding: 20px 24px 24px; }
    .hm-feature-name { font-size: 28px; }
    .hm-feature .hm-shelf-item { flex-basis: calc((100% - 2 * 20px) / 3); }
}
