/* Home redesign — Populares (carrossel) e Provedores (só ativo com body.home-redesign) */

body.home-redesign .bgcategoria,
body.home-redesign .fixed-top.bgcategoria {
    display: none !important;
}

/* ── Cabeçalho de seção ── */
body.home-redesign .home-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    margin: 16px 0 10px;
}

body.home-redesign .home-section-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

body.home-redesign .home-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
}

body.home-redesign .home-section-spacer {
    flex: 1;
}

body.home-redesign .home-section-more {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 6px;
}

body.home-redesign .home-section-more:hover {
    color: var(--background-itens-selected, #f5c84c);
}

body.home-redesign .home-section-nav {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

body.home-redesign .home-section-nav button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

body.home-redesign .home-section-nav button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ── Populares: carrossel horizontal de jogos ── */
body.home-redesign #popular.home-popular-block .home-popular-games-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 2px 4px 8px;
    margin-bottom: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.home-redesign #popular.home-popular-block .home-popular-games-track::-webkit-scrollbar {
    display: none;
}

body.home-redesign #popular.home-popular-block .home-popular-games-track > * {
    flex: 0 0 29%;
    min-width: 100px;
    max-width: 130px;
    scroll-snap-align: start;
}

body.home-redesign #popular.home-popular-block .text-center.mb-1,
body.home-redesign #popular.home-popular-block .flex.justify-center.items-center.w-full {
    display: none !important;
}

/* ── Provedores ── */
body.home-redesign .home-providers {
    padding: 0 4px;
    margin-bottom: 8px;
}

body.home-redesign .home-providers-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

body.home-redesign .home-providers-scroll::-webkit-scrollbar {
    display: none;
}

body.home-redesign .home-provider-tile {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

body.home-redesign .home-provider-tile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 200, 76, 0.35);
    transform: translateY(-1px);
}

body.home-redesign .home-provider-tile img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

body.home-redesign .home-provider-tile span {
    display: none;
}

/* ── Demais categorias ── */
body.home-redesign .page-container .category-section > .absolute.top-0 {
    display: none !important;
}

body.home-redesign .page-container .category-section .flex.items-center.p-1.mb-2.relative.z-10 {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.home-redesign .page-container .category-section .flex.items-center.p-1.mb-2.relative.z-10 h2,
body.home-redesign .page-container .category-section .flex.items-center.p-1.mb-2.relative.z-10 .text-\[\#9692ba\] {
    color: #fff !important;
    font-size: 0.95rem !important;
    margin-left: 8px !important;
}

body.home-redesign .page-container .category-section .flex.items-center.p-1.mb-2.relative.z-10 img {
    height: 20px !important;
}

body.home-redesign #popular.home-popular-block .flex.items-center.p-1.mb-2.relative.z-10 {
    display: none !important;
}

body.home-redesign .page-container .category-section {
    margin-bottom: 1.25rem !important;
}

body.home-redesign .page-container .category-section:not(#popular) .grid {
    gap: 0.5rem !important;
}

body.home-redesign .page-container .text-center.mb-1.text-color {
    display: none;
}

body.home-redesign .page-container .flex.justify-center.items-center.w-full button {
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

body.home-redesign #popular.home-popular-block {
    order: -2;
}

body.home-redesign .home-providers-wrap {
    order: -1;
}

body.home-redesign .page-container .content-wrapper > div > div {
    display: flex;
    flex-direction: column;
}

body.home-redesign .slider-container {
    margin-top: 8px;
}
