/**
 * Perfect Store — Home enterprise
 * Preserva layout Kenner mobile; refina seções de produtos e desktop.
 */

body.is-kenner-home {
    --ps-home-gutter: 16px;
    --ps-home-section-gap: 28px;
    --ps-home-radius: 10px;
}

/* ── Seções gerais ── */
body.is-kenner-home .featured-categories-wrap,
body.is-kenner-home .grid-products-wrap,
body.is-kenner-home .landscape-tab-products-wrap,
body.is-kenner-home .landscape-products-wrap,
body.is-kenner-home .vertical-products-wrap,
body.is-kenner-home .top-brands-wrap,
body.is-kenner-home .flash-sale-and-vertical-products-wrap,
body.is-kenner-home .banner-section-wrap {
    padding-top: var(--ps-home-section-gap);
    padding-bottom: calc(var(--ps-home-section-gap) - 8px);
}

body.is-kenner-home .featured-categories-wrap .title,
body.is-kenner-home .tab-products-header .tab-item,
body.is-kenner-home .landscape-products-wrap .section-title,
body.is-kenner-home .vertical-products-wrap .section-title {
    font-family: var(--base-font-family);
    letter-spacing: 0.02em;
}

body.is-kenner-home .featured-categories-wrap .title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

body.is-kenner-home .featured-categories-wrap .excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

/* Header de seção mobile (categorias escondem tabs) */
body.is-kenner-home .ps-home-section-head {
    display: none;
    padding: 0 var(--ps-home-gutter) 12px;
}

body.is-kenner-home .ps-home-section-head .ps-home-section-head__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

body.is-kenner-home .ps-home-section-head .ps-home-section-head__sub {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 991px) {
    body.is-kenner-home .ps-home-section-head--featured {
        display: block;
    }
}

/* Tabs de produtos */
body.is-kenner-home .tab-products-header .tabs {
    gap: 4px;
}

body.is-kenner-home .tab-products-header .tab-item {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

body.is-kenner-home .tab-products-header .tab-item.active {
    background: var(--color-primary-alpha-12, rgba(0, 0, 0, 0.06));
    color: var(--color-primary);
}

body.is-kenner-home .tab-products-header hr {
    margin-top: 10px;
    border-color: #ebebeb;
}

/* Featured categories tabs desktop */
body.is-kenner-home .featured-categories-tabs .tab-item {
    border-radius: 8px;
    padding: 8px 12px;
    transition: background 0.15s ease;
}

body.is-kenner-home .featured-categories-tabs .tab-item.active {
    background: var(--color-primary-alpha-10, rgba(0, 0, 0, 0.04));
}

body.is-kenner-home .featured-category-name {
    font-size: 11px;
    font-weight: 600;
}

/* Sliders de produtos */
body.is-kenner-home .products-slider {
    padding-bottom: 28px;
}

body.is-kenner-home .products-slider .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    opacity: 0.35;
    background: #1a1a1a;
}

body.is-kenner-home .products-slider .swiper-pagination-bullet-active {
    opacity: 1;
    width: 18px;
    border-radius: 999px;
    background: var(--color-primary);
}

body.is-kenner-home .products-slider .swiper-button-next,
body.is-kenner-home .products-slider .swiper-button-prev {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1a1a;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.is-kenner-home .products-slider .swiper-button-next::after,
body.is-kenner-home .products-slider .swiper-button-prev::after {
    display: none;
}

/* Cards na home */
body.is-kenner-home .product-card {
    border: 1px solid #f0f0f0;
    border-radius: var(--ps-home-radius);
    padding: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.is-kenner-home .product-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

body.is-kenner-home .product-card .product-name {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

body.is-kenner-home .product-card .price-regular {
    font-size: 11px;
    color: #9ca3af;
}

body.is-kenner-home .product-card .price-pix strong {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
}

body.is-kenner-home .product-card .price-installment {
    font-size: 10px;
    color: #6b7280;
}

body.is-kenner-home .product-card .btn-buy {
    margin-top: auto;
    min-height: 36px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
}

/* Hero desktop */
@media (min-width: 992px) {
    body.is-kenner-home .home-section-wrap {
        padding: 16px 0 8px;
    }

    body.is-kenner-home .home-slider-wrap {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    }

    body.is-kenner-home .home-slider .swiper-slide,
    body.is-kenner-home .home-slider .slider-bg-image {
        border-radius: 12px;
    }
}

/* Top brands */
body.is-kenner-home .top-brands-wrap .section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.is-kenner-home .top-brands-wrap .top-brand-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    transition: border-color 0.15s ease;
}

body.is-kenner-home .top-brands-wrap .top-brand-item:hover {
    border-color: #d1d5db;
}

/* Banners promocionais */
body.is-kenner-home .banner-section-wrap img,
body.is-kenner-home .banner img {
    border-radius: var(--ps-home-radius);
}

/* Flash sale */
body.is-kenner-home .flash-sale-wrap {
    border-radius: var(--ps-home-radius);
    overflow: hidden;
}

/* Faixa de confiança abaixo do hero mobile */
body.is-kenner-home .ps-home-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px var(--ps-home-gutter) 4px;
}

body.is-kenner-home .ps-home-trust__item {
    flex: 1 1 calc(50% - 4px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

body.is-kenner-home .ps-home-trust__item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

@media (min-width: 992px) {
    body.is-kenner-home .ps-home-trust {
        display: none;
    }
}

@media (max-width: 576px) {
    body.is-kenner-home {
        --ps-home-gutter: 12px;
        --ps-home-section-gap: 22px;
    }
}
