/* ===============================================================
   PILAR ONLINE | VITRINE MODELO 2026
   Carregado DEPOIS de home_avaliacoes_vendas.css para prevalecer.
   Afeta exclusivamente o slider principal e os carrosseis de produto.
   =============================================================== */

/* Container centralizado como a vitrine de referência.
   O banner abaixo extrapola intencionalmente o container. */
.po-home { overflow-x: clip; }
.po-home .po-home-shell {
    width: 100%;
    max-width: 1510px;
    padding-inline: 16px;
    margin-inline: auto;
}

/* =========== BANNER PRINCIPAL: LARGURA TOTAL =========== */
.po-home .po-home-section--slider {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}
.po-home .po-home-section--slider > .po-home-section-head { display: none; }
.po-home .po-home-section--slider .po-home-gallery {
    display: flex;
    width: 100%;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.po-home .po-home-section--slider .po-home-gallery::-webkit-scrollbar { display: none; }
.po-home .po-home-section--slider .po-home-gallery > .po-home-banner {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-height: 0 !important;
    max-height: none;
    aspect-ratio: 32 / 9;
    margin: 0;
    padding: 0;
    border-radius: 0;
    scroll-snap-align: start;
}
.po-home .po-home-section--slider .po-home-banner picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.po-home .po-home-section--slider .po-home-banner picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* Caso o banco registre texto adicional sobre uma arte completa,
   ele não deve acrescentar faixa opaca nem empurrar a altura. */
.po-home .po-home-section--slider .po-home-banner-copy {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: transparent;
}
/* Controles antigos permanecem no DOM: ocultos apenas nestes sliders. */
.po-home .po-home-section--slider .po-home-scroll-actions,
.po-home .po-home-section--slider .po-home-slider-actions { display: none !important; }

.po-home .po-vitrine-banner-nav {
    position: absolute;
    z-index: 7;
    inset: 50% clamp(10px,2vw,36px) auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.po-home .po-vitrine-banner-nav[hidden] { display: none !important; }
.po-home .po-vitrine-banner-nav > button {
    display: inline-grid;
    place-items: center;
    width: clamp(34px,3.2vw,52px);
    height: clamp(34px,3.2vw,52px);
    padding: 0;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: rgba(255,255,255,.91);
    color: #24303c;
    font-family: Poppins,Arial,sans-serif;
    font-size: clamp(26px,3vw,35px);
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 7px 23px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);
    cursor: pointer;
    pointer-events: auto;
    transition: color .18s,background .18s,transform .18s;
}
.po-home .po-vitrine-banner-nav > button:hover { background: #fff; color: #C1272D; transform: scale(1.05); }
.po-home .po-vitrine-banner-nav > button:focus-visible,
.po-home .po-vitrine-product-nav > button:focus-visible,
.po-home .po-vitrine-dots button:focus-visible { outline: 3px solid #F47016; outline-offset: 3px; }
.po-home .po-vitrine-banner-dots {
    position: absolute;
    z-index: 9;
    bottom: clamp(10px,1.5vw,22px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.po-home .po-vitrine-banner-dots[hidden] { display: none !important; }
.po-home .po-vitrine-banner-dots button {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border: 1px solid rgba(255,255,255,.98);
    border-radius: 99px;
    padding: 0;
    background: rgba(255,255,255,.38);
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    cursor: pointer;
}
.po-home .po-vitrine-banner-dots button.is-active { background: #fff; }

/* =========== PRODUTOS: 6 CARDS, SEM BORDA, SEM BARRA =========== */
.po-home .po-home-section.po-vitrine-products-section {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: 25px 26px 32px;
    border: 1px solid #e6e9ed;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17,24,39,.025);
}
.po-home .po-vitrine-products-section > .po-home-section-head {
    margin-bottom: 19px;
    min-height: 32px;
    padding-right: 102px;
}
.po-home .po-vitrine-products-section > .po-home-section-head h2 {
    font-size: clamp(18px,1.4vw,22px);
    font-weight: 600;
    line-height: 1.35;
    color: #252a33;
}
.po-home .po-vitrine-products-section .po-home-products {
    display: flex;
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    margin: 0;
    scroll-padding-inline: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.po-home .po-vitrine-products-section .po-home-products::-webkit-scrollbar { display: none; }
.po-home .po-vitrine-products-section .po-home-products > .po-home-product {
    position: relative;
    flex: 0 0 calc((100% - 110px) / 6);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: start;
}
.po-home .po-vitrine-products-section .po-home-products > .po-home-product:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}
.po-home .po-vitrine-products-section .po-home-product-image {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
    background: #f6f6f6;
}
.po-home .po-vitrine-products-section .po-home-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .2s;
}
.po-home .po-vitrine-products-section .po-home-product:hover .po-home-product-image img {
    transform: scale(1.02);
}
.po-home .po-vitrine-products-section .po-home-product-name {
    margin: 12px 0 5px;
    min-height: 44px;
    color: #30353d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.48;
    -webkit-line-clamp: 2;
}
.po-home .po-vitrine-products-section .po-home-product-store {
    margin: 5px 0;
    color: #7b838e;
    font-size: 11px;
    font-weight: 400;
}
.po-home .po-vitrine-products-section .po-home-product del { color: #858d97; font-size: 10px; }
.po-home .po-vitrine-products-section .po-home-product-price {
    margin-top: 4px;
    color: #242a33;
    font-size: clamp(17px,1.4vw,23px);
    font-weight: 500;
    line-height: 1.25;
}
/* Avaliações e vendidos continuam funcionando; conteúdo real preservado. */
.po-home .po-vitrine-products-section .po-home-products > .po-home-product :is(.po-home-rating,.po-card-rating,.po-home-product-rating) {
    color: #8a94a0;
    font-size: 10px;
}
/* Navegação legada abaixo da rolagem deixa de ocupar espaço. */
.po-home .po-vitrine-products-section .po-home-scroll-actions { display: none !important; }
.po-home .po-vitrine-products-section .po-vitrine-product-nav {
    position: absolute;
    z-index: 7;
    top: var(--po-product-arrows-y, 50%);
    left: 0;
    right: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.po-home .po-vitrine-products-section .po-vitrine-product-nav[hidden] { display: none !important; }
.po-home .po-vitrine-product-nav > button {
    position: absolute;
    top: 0;
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 1px solid #e8ecf0;
    border-radius: 50%;
    background: #fff;
    color: #C1272D;
    font-size: 35px;
    font-family: Poppins,Arial,sans-serif;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 9px 24px rgba(20,30,40,.11);
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
}
.po-home .po-vitrine-product-nav > button[data-po-previous] { left: -28px; }
.po-home .po-vitrine-product-nav > button[data-po-next] { right: -28px; }
.po-home .po-vitrine-product-nav > button:hover { background: #fff8f8; border-color: #C1272D; }
.po-home .po-vitrine-product-nav > button[hidden] { display: none !important; }
.po-home .po-vitrine-product-dots {
    position: absolute;
    top: 27px;
    right: 27px;
    z-index: 6;
    display: flex;
    gap: 5px;
    align-items: center;
}
.po-home .po-vitrine-product-dots[hidden] { display: none !important; }
.po-home .po-vitrine-product-dots > button {
    width: 7px;
    height: 7px;
    min-width: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e2e4e7;
    cursor: pointer;
}
.po-home .po-vitrine-product-dots > button.is-active { background: #C1272D; }

/* =========== RESPONSIVIDADE =========== */
@media (max-width: 1300px) {
    .po-home .po-vitrine-products-section .po-home-products > .po-home-product {
        flex-basis: calc((100% - 4 * 18px) / 5);
    }
    .po-home .po-vitrine-products-section .po-home-products { gap: 18px; }
}
@media (max-width: 1050px) {
    .po-home .po-vitrine-products-section .po-home-products > .po-home-product {
        flex-basis: calc((100% - 3 * 16px) / 4);
    }
    .po-home .po-vitrine-products-section .po-home-products { gap: 16px; }
}
@media (max-width: 800px) {
    .po-home .po-vitrine-products-section .po-home-products > .po-home-product {
        flex-basis: calc((100% - 2 * 14px) / 3);
    }
    .po-home .po-vitrine-products-section .po-home-products { gap: 14px; }
    .po-home .po-vitrine-products-section .po-home-product-name { font-size: 12px; }
    .po-home .po-vitrine-products-section .po-vitrine-product-nav > button { width: 48px; height: 48px; font-size: 28px; }
    .po-home .po-vitrine-product-nav > button[data-po-previous] { left: -9px; }
    .po-home .po-vitrine-product-nav > button[data-po-next] { right: -9px; }
}
@media (max-width: 560px) {
    .po-home .po-home-shell { padding-inline: 10px; }
    .po-home .po-vitrine-products-section.po-home-section { padding: 17px 12px 20px; }
    .po-home .po-vitrine-products-section .po-home-products { gap: 10px; }
    .po-home .po-vitrine-products-section .po-home-products > .po-home-product {
        flex-basis: calc((100% - 10px) / 2);
    }
    .po-home .po-vitrine-products-section .po-home-section-head h2 { font-size: 17px; }
    .po-home .po-vitrine-products-section .po-home-product-name { min-height: 43px; font-size: 11.5px; }
    .po-home .po-vitrine-products-section .po-home-product-price { font-size: 17px; }
    .po-home .po-vitrine-product-nav > button { width: 42px; height: 42px; font-size: 25px; }
    .po-home .po-vitrine-banner-nav { left: 5px; right: 5px; }
    .po-home .po-vitrine-banner-nav > button { width: 33px; height: 33px; font-size: 23px; }
    .po-home .po-vitrine-banner-dots { bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .po-home .po-home-section--slider .po-home-gallery,
    .po-home .po-vitrine-products-section .po-home-products { scroll-behavior: auto; }
    .po-home .po-vitrine-products-section .po-home-product-image img { transition: none; }
}
