.hero {
    height: 100vh;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* IMAGEM / VÍDEO DO HERO */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* OVERLAY ESCURO */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.6)
    );
    z-index: 1;
    pointer-events: none;
}

/* CONTEÚDO DO HERO (TEXTO + BOTÃO) */
.hero-content {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

/* BOTÃO HERO */
.hero-btn {
    display: inline-block;
    margin-top: 22px;
    padding: 14px 36px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: #fff;
    color: #000;
}

/*
   No celular, imagens verticais de moda não devem ser forçadas para 16:9/fullscreen.
   A primeira imagem fica no fluxo normal e define a altura real do Hero.
*/
@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: 0;
        margin-top: 0;
        display: grid;
        background: #000;
    }

    .hero-img {
        grid-area: 1 / 1;
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }

    .hero-slide {
        transition: opacity .35s ease;
    }

    .hero video.hero-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero::after {
        grid-area: 1 / 1;
        position: relative;
        z-index: 1;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.08),
            rgba(0,0,0,0.40)
        );
    }

    .hero-content {
        grid-area: 1 / 1;
        align-self: end;
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        padding: 0 20px 42px;
        z-index: 2;
    }
}

/* ================= SEÇÕES ================= */

.section-padding {
    padding: 88px 0 110px;
}

/* ================= GRID PRODUTOS ================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2px;
    row-gap: 34px;
    width: 100%;
}

.product-card,
.product-card a {
    min-width: 0;
}

.product-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Proporção visual mais elegante e compacta, semelhante às vitrines de luxo. */
.product-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f3f3f3;
    overflow: hidden;
    position: relative;
}

/*
   O base.html possui uma regra global antiga com !important em .product-img.
   Aqui sobrescrevemos especificamente os cards da vitrine.
*/
.product-img-wrapper .product-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    transition: transform .35s ease;
}

.product-card:hover .product-img {
    transform: scale(1.015);
}

.product-info {
    padding: 10px 8px 0;
}

.product-name {
    margin: 0;
    font-size: clamp(15px, 2.4vw, 18px);
    line-height: 1.25;
    font-weight: 500;
    color: #111;
}

.product-price {
    margin: 4px 0 0;
    font-size: clamp(14px, 2.2vw, 17px);
    line-height: 1.25;
    font-weight: 400;
    color: #111;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 64px 0 90px;
    }

    .section-padding > .container {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .section-padding > .container > h2,
    main.container.section-padding > h1 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-grid {
        column-gap: 2px;
        row-gap: 30px;
    }

    .product-info {
        padding: 9px 10px 0;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 4px;
        row-gap: 44px;
    }

    .product-img-wrapper {
        aspect-ratio: 4 / 5;
    }

    .product-info {
        padding: 12px 10px 0;
    }
}

/* ================= HERO COM HEADER SOBREPOSTO ================= */
/* Na home, a mídia começa no topo da página e passa por trás do header,
   como em vitrines de moda/luxo. Em páginas internas o header continua branco. */
body:has(.hero) {
    padding-top: 0 !important;
}

body:has(.hero) .hero {
    margin-top: 0 !important;
}

body:has(.hero) header.main-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none !important;
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

body:has(.hero) header.main-header .logo,
body:has(.hero) header.main-header .header-icon-button,
body:has(.hero) header.main-header .nav-links a {
    color: #fff;
}

body:has(.hero) header.main-header .header-icon-button svg {
    stroke: #fff;
}

body:has(.hero) header.main-header.header-scrolled {
    background: #fff;
    border-bottom-color: rgba(0,0,0,.10);
    box-shadow: 0 2px 15px rgba(0,0,0,.06) !important;
}

body:has(.hero) header.main-header.header-scrolled .logo,
body:has(.hero) header.main-header.header-scrolled .header-icon-button,
body:has(.hero) header.main-header.header-scrolled .nav-links a {
    color: var(--primary-color);
}

body:has(.hero) header.main-header.header-scrolled .header-icon-button svg {
    stroke: var(--primary-color);
}
