/* ══════════════════════════════════════════════════
   Página inicial
   ══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f5f4f0;
    color: #1a1a1a;
    overflow-x: hidden;
}

.home {
    --h-ink: #17131c;
    --h-muted: #6e6875;
    --h-line: rgba(23, 19, 28, .08);
    --h-surface: #ffffff;
    --h-soft: #efede8;
    --h-brand: #860bab;
    --h-brand-dark: #6c0890;
    --h-brand-soft: #f4e9f8;
    --h-sale: #d9184b;
    --h-radius: 20px;
    --h-gap: 1.25rem;
    color: var(--h-ink);
}

/* ── Hero ──────────────────────────────────────── */
.hero-wrap { padding: 1.25rem 0 0; }

.hero-shell {
    border-radius: var(--h-radius);
    overflow: hidden;
    position: relative;
    background: var(--h-soft);
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 50px -20px rgba(23,19,28,.28);
}

/* style.css fixa altura 360px/260px no hero; aqui a altura segue a proporção da arte */
.home .hero-slide {
    position: relative; display: block;
    min-height: 0; height: auto;
    border-radius: 0;
    background: var(--h-soft);
}

.home .hero-img {
    height: auto; min-height: 0;
    width: 100%;
    aspect-ratio: 1600 / 542; /* proporção dos banners enviados: mostra a arte inteira */
    object-fit: cover;
    display: block;
}

.hero-shell .carousel-control-prev,
.hero-shell .carousel-control-next {
    width: 46px; height: 46px;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.92);
    border-radius: 50%;
    margin: 0 1rem;
    opacity: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    transition: opacity .2s, transform .2s;
}

.hero-shell:hover .carousel-control-prev,
.hero-shell:hover .carousel-control-next,
.hero-shell .carousel-control-prev:focus-visible,
.hero-shell .carousel-control-next:focus-visible { opacity: 1; }

.hero-shell .carousel-control-prev-icon,
.hero-shell .carousel-control-next-icon {
    width: 1.1rem; height: 1.1rem;
    filter: invert(1) grayscale(1) brightness(.2);
}

.hero-shell .carousel-indicators {
    margin: 0 0 1rem;
    gap: .35rem;
}

.hero-shell .carousel-indicators [data-bs-target] {
    width: 22px; height: 5px;
    border-radius: 99px;
    margin: 0;
    background: #fff;
    opacity: .55;
    border: none;
    transition: width .3s ease, opacity .3s ease;
}

.hero-shell .carousel-indicators .active {
    width: 38px;
    opacity: 1;
}

/* Hero sem banners */
.empty-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(134,11,171,.55), transparent 55%),
        var(--h-ink);
    border-radius: var(--h-radius);
    padding: 4rem 2.5rem;
    color: #fff;
    min-height: 320px;
    display: flex; align-items: center;
}

.empty-hero-kicker {
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,.6);
    margin-bottom: .75rem;
}

.empty-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
    margin-bottom: .9rem;
}

.empty-hero p { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; max-width: 40ch; }

/* ── Vantagens ─────────────────────────────────── */
.h-perks-wrap { padding: 1.25rem 0 0; }

.h-perks {
    list-style: none;
    margin: 0;
    padding: .5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-radius);
}

.h-perk {
    display: flex; align-items: center; gap: .85rem;
    padding: .9rem 1.1rem;
    min-width: 0;
}

.h-perk + .h-perk { border-left: 1px solid var(--h-line); }

.h-perk-icon {
    flex: 0 0 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--h-brand-soft);
    color: var(--h-brand);
    font-size: 1.15rem;
}

.h-perk strong {
    display: block;
    font-size: .86rem; font-weight: 700;
    color: var(--h-ink); line-height: 1.25;
}

.h-perk small {
    display: block;
    font-size: .76rem; color: var(--h-muted);
    margin-top: .1rem;
}

/* ── Seções ────────────────────────────────────── */
.h-section { padding: 3.5rem 0 0; }
.h-section-tight { padding-top: 3rem; }

.h-section-alt {
    margin-top: 3.5rem;
    padding: 3rem 0;
    background: var(--h-surface);
    border-block: 1px solid var(--h-line);
}

.h-section-alt + .full-banner-wrap,
.h-section-alt + .h-section { padding-top: 3rem; }

.h-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; margin-bottom: 1.5rem;
}

.h-kicker {
    display: inline-block;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--h-brand);
    margin-bottom: .4rem;
}

.h-kicker-light { color: rgba(255,255,255,.65); }

.h-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800; color: var(--h-ink);
    margin: 0; letter-spacing: -.03em; line-height: 1.1;
}

.h-head-actions {
    display: flex; align-items: center; gap: 1rem;
    flex-shrink: 0;
}

.h-link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .85rem; font-weight: 700;
    color: var(--h-ink); text-decoration: none;
    white-space: nowrap;
}

.h-link i { transition: transform .2s; }
.h-link:hover { color: var(--h-brand); }
.h-link:hover i { transform: translateX(3px); }

.h-rail-nav { display: flex; gap: .4rem; }

.h-rail-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--h-line);
    background: var(--h-surface);
    color: var(--h-ink);
    font-size: .95rem;
    transition: background .18s, color .18s, border-color .18s, opacity .18s;
}

.h-rail-btn:hover:not(:disabled) {
    background: var(--h-ink); color: #fff; border-color: var(--h-ink);
}

.h-rail-btn:disabled { opacity: .35; cursor: default; }

/* ── Trilho de produtos ────────────────────────── */
.h-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * var(--h-gap)) / 4);
    gap: var(--h-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scroll-padding-inline: .25rem;
    padding: .25rem .25rem 1rem;
    margin: -.25rem -.25rem 0;
    scrollbar-width: none;
}

.h-rail::-webkit-scrollbar { display: none; }

.h-rail > .pcard { scroll-snap-align: start; }

/* ── Card de produto ───────────────────────────── */
.pcard {
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-radius);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -18px rgba(23,19,28,.35);
}

.pcard-img-wrap {
    position: relative; overflow: hidden;
    display: block; flex-shrink: 0;
    background: var(--h-soft);
}

.pcard-img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
    transition: opacity .35s ease, transform .5s ease;
}

.pcard-img-hover { position: absolute; inset: 0; opacity: 0; }

.pcard:hover .pcard-img-hover { opacity: 1; transform: scale(1.04); }
.pcard:hover .pcard-img-main  { opacity: 0; transform: scale(1.04); }

.pcard-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    background: var(--h-sale); color: #fff;
    font-size: .72rem; font-weight: 800; letter-spacing: .02em;
    padding: .3rem .6rem; border-radius: 8px;
}

.pcard-body {
    display: flex; flex-direction: column; flex: 1;
    padding: 1rem 1.1rem 1.1rem;
}

.pcard-title {
    font-size: .9rem; font-weight: 600;
    line-height: 1.35; min-height: 2.7em;
    margin: 0 0 .55rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard-title a { color: var(--h-ink); text-decoration: none; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.pcard-price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem;
    margin-bottom: 1rem;
}

.pcard-price-normal,
.pcard-price-promo {
    font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em;
    color: var(--h-ink);
}

.pcard-price-promo { color: var(--h-sale); }

.pcard-price-old {
    font-size: .8rem; color: #9b96a0;
    text-decoration: line-through;
}

.pcard-btn {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    margin-top: auto;
    padding: .65rem .75rem;
    border-radius: 12px;
    background: var(--h-brand-soft);
    color: var(--h-brand);
    font-size: .82rem; font-weight: 700;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.pcard-btn i { transition: transform .2s; }

.pcard:hover .pcard-btn,
.pcard-btn:focus-visible {
    background: var(--h-brand); color: #fff;
}

.pcard:hover .pcard-btn i { transform: translateX(3px); }

/* ── Categorias ────────────────────────────────── */
.h-cats {
    display: grid;
    grid-template-columns: repeat(var(--cats, 6), minmax(0, 1fr));
    gap: var(--h-gap);
}

@media (max-width: 991.98px) {
    .h-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.h-cat {
    display: flex; flex-direction: column;
    text-decoration: none; color: var(--h-ink);
}

.h-cat-img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--h-radius);
    overflow: hidden;
    background: var(--h-soft);
    border: 1px solid var(--h-line);
    margin-bottom: .7rem;
}

.h-cat-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}

.h-cat:hover .h-cat-img img { transform: scale(1.06); }

.h-cat-name {
    font-size: .92rem; font-weight: 700; line-height: 1.25;
}

.h-cat:hover .h-cat-name { color: var(--h-brand); }

.h-cat-count { font-size: .76rem; color: var(--h-muted); }

/* ── Banners ───────────────────────────────────── */
.top-banners { padding: 3rem 0 0; }

.top-banner-card,
.full-banner-card {
    display: block;
    border-radius: var(--h-radius);
    overflow: hidden;
    background: var(--h-soft);
}

.top-banner-card img,
.full-banner-card img {
    width: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}

/* Proporções iguais às das artes enviadas (1600×796 e 1600×467), sem cortar texto */
.top-banner-card img  { aspect-ratio: 2 / 1; }
.full-banner-card img { aspect-ratio: 1600 / 467; }

.top-banner-card:hover img,
.full-banner-card:hover img { transform: scale(1.03); }

.full-banner-wrap { padding: 3rem 0 0; }

/* ── Chamada personalizados ────────────────────── */
.h-cta-wrap { padding: 3.5rem 0 0; }

.h-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;
    padding: 2.75rem 3rem;
    border-radius: calc(var(--h-radius) + 4px);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.14), transparent 45%),
        linear-gradient(120deg, var(--h-brand-dark), var(--h-brand) 60%, #a52bc9);
}

.h-cta h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    margin: 0 0 .5rem;
}

.h-cta p {
    margin: 0; max-width: 52ch;
    color: rgba(255,255,255,.82);
    font-size: .95rem;
}

.h-cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    flex-shrink: 0;
    padding: .9rem 1.5rem;
    border-radius: 14px;
    background: #fff; color: var(--h-ink);
    font-weight: 700; font-size: .92rem;
    text-decoration: none;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
    transition: transform .18s, box-shadow .18s;
}

.h-cta-btn:hover {
    color: var(--h-ink);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(0,0,0,.45);
}

.h-cta-btn .bi-whatsapp { color: #1fa855; font-size: 1.1rem; }

/* ── Newsletter ────────────────────────────────── */
.newsletter-section { padding: 3.5rem 0 0; }

.newsletter-box {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch;
    background: var(--h-ink);
    color: #fff;
    border-radius: calc(var(--h-radius) + 4px);
    overflow: hidden;
}

.newsletter-content { padding: 3rem; }

.newsletter-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800; letter-spacing: -.03em;
}

.newsletter-content p { color: rgba(255,255,255,.7); }

.newsletter-form { display: flex; gap: .6rem; margin-top: 1.25rem; }

.newsletter-form input {
    flex: 1; min-width: 0;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 12px;
    padding: .85rem 1.1rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,.5);
}

.newsletter-form button {
    border: none;
    border-radius: 12px;
    padding: .85rem 1.4rem;
    background: var(--h-brand); color: #fff;
    font-weight: 700;
    transition: background .18s;
}

.newsletter-form button:hover { background: var(--h-brand-dark); }

.newsletter-image img { width: 100%; height: 100%; object-fit: cover; }

/* Respiro antes do rodapé */
.home > :last-child { margin-bottom: 4rem; }

/* ── Animação de entrada ───────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .pcard, .pcard-img, .h-cat-img img, .top-banner-card img, .full-banner-card img { transition: none; }
}

/* ── Responsivo ────────────────────────────────── */
@media (max-width: 991.98px) {
    .h-rail { grid-auto-columns: calc((100% - 2 * var(--h-gap)) / 3); }

    .h-perks { grid-template-columns: repeat(2, 1fr); }
    .h-perk:nth-child(3) { border-left: none; }
    .h-perk:nth-child(n+3) { border-top: 1px solid var(--h-line); }
}

@media (max-width: 767.98px) {
    .home { --h-gap: .85rem; --h-radius: 16px; }

    .hero-wrap { padding-top: .85rem; }
    .hero-shell .carousel-indicators { margin-bottom: .5rem; }
    .hero-shell .carousel-indicators [data-bs-target] { width: 14px; height: 4px; }
    .hero-shell .carousel-indicators .active { width: 24px; }
    .hero-shell .carousel-control-prev,
    .hero-shell .carousel-control-next { display: none; }

    .h-perks-wrap { padding-top: .85rem; }
    /* 2 × 2, sem rolagem lateral */
    .h-perks { padding: .25rem; }
    .h-perk {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
        padding: .85rem .8rem;
    }
    .h-perk-icon {
        flex: 0 0 auto;
        width: 36px; height: 36px;
        border-radius: 10px;
        font-size: 1rem;
    }
    .h-perk strong { font-size: .8rem; }
    .h-perk small  { font-size: .72rem; line-height: 1.3; }

    .h-section, .h-section-tight,
    .top-banners, .full-banner-wrap,
    .h-cta-wrap, .newsletter-section { padding-top: 2.25rem; }
    .h-section-alt { margin-top: 2.25rem; padding: 2rem 0; }
    .h-section-alt + .full-banner-wrap,
    .h-section-alt + .h-section { padding-top: 2rem; }

    .h-head { margin-bottom: 1rem; }
    .h-rail-nav { display: none; }

    .h-rail {
        grid-auto-columns: 46%;
        margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
        scroll-padding-left: .25rem;
    }

    .h-cats {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 34%;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-right: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    }
    .h-cats::-webkit-scrollbar { display: none; }
    .h-cat { scroll-snap-align: start; }

    .pcard-body { padding: .8rem .85rem .9rem; }
    .pcard-title { font-size: .82rem; }
    .pcard-price-normal, .pcard-price-promo { font-size: 1rem; }
    .pcard-price { margin-bottom: .75rem; }
    .pcard-btn { font-size: .78rem; padding: .55rem .5rem; border-radius: 10px; }
    .pcard-btn i { display: none; }

    .h-cta {
        flex-direction: column; align-items: flex-start;
        gap: 1.25rem;
        padding: 2rem 1.5rem;
    }
    .h-cta-btn { width: 100%; justify-content: center; }

    .newsletter-box { grid-template-columns: 1fr; }
    .newsletter-content { padding: 2rem 1.5rem; }
    .newsletter-form { flex-direction: column; }

    .home > :last-child { margin-bottom: 2.75rem; }
}

@media (max-width: 479.98px) {
    .h-head-actions .h-link { font-size: .8rem; }
}
