body {
    background: #000;
}

/* HEADER */
.logo {
    display: block;
}

.logo img {
    height: 50px;
    margin: 5px 0px 5px 20px;
}

.search-box {
    width: calc(100% - 61px);
}

.header-area.header-main {
    top: 0px;
}

.logo-carousel {
    margin-top: -100px;
}

.logo-carousel .container {
    width: 100%!important;
}

.header-area .row {
    justify-content: space-between;
}

.search-area {
    margin-top: 15px;
}

.single-logo-table img {
    filter: grayscale(100%);
    opacity: 0.6;
    height: 70px;
    margin-top: 30px;
}

.site {
    transition: 0.65s;
}

#search-box {
    background: transparent;
    border: none;
    height: 55px;
    margin-bottom: 20px;
    border-bottom: 2px solid #6d6d6d;
    transition: 0.65s;
    color: #e5e5e5;
}

#search-box:focus {
    border-bottom: 2px solid #08d665;
}

#search-button:hover > i {
    transition: 0.3s;
    background: transparent;
}


/* products results */
.side-widgest {
    right: 5%!important;
    top: 5%;
    width: 90%;
    height: 90%;
}

/* Estilos atualizados para a seção de produtos */
.products-wrap {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #000;
    padding: 20px;
}

/* Barra de pesquisa */
.products-wrap .search-bar {
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.products-wrap .search-bar input {
    width: 78%;
    display: inline-block;
    background: transparent;
    border: none;
    border-bottom: 2px solid #6d6d6d;
    padding: 15px 0;
    color: #e5e5e5;
    font-size: 18px;
    transition: 0.3s;
}

.products-wrap .search-bar a {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    margin-left: 10px;
}


.products-wrap .search-button {
    padding-right: 60px;
    line-height: 33px;
    border: 1px solid #08d665!important;
}

.products-wrap .search-button:hover {
    border: 1px solid #08d665;
}


.products-wrap .close-button {
    line-height: 60px;
    background: #3a3a3a;
    color: #191919;
    padding: 0px 20px;
}

.products-wrap .search-bar input:focus {
    border-bottom: 2px solid #08d665;
    outline: none;
}

/* Container principal */
.content-wrap {
    display: flex;
    gap: 30px;
    height: calc(100vh - 130px); /* Altura total menos o espaço da barra de pesquisa */
    overflow: hidden; /* Importante para conter o conteúdo */
}

/* Filtros */
.filters {
    width: 300px;
    min-width: 300px; /* Evita que encolha */
    background: #111;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    overflow-y: auto; /* Permite scroll nos filtros se necessário */
}

.filters h3 {
    color: #08d665;
    font-size: 24px;
    margin-bottom: 20px;
}

.filters h4 {
    color: #e5e5e5;
    font-size: 18px;
    margin: 15px 0;
}

/* Range slider personalizado */
.price-range {
    margin: 25px 0;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 5px;
    background: #333;
    border-radius: 5px;
    margin: 20px 0;
}

.range-slider .range-selected {
    height: 100%;
    position: absolute;
    background: #08d665;
    border-radius: 5px;
}

.range-slider input[type="range"] {
    -webkit-appearance: none;
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #08d665;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    margin-top: -6px;
}

/* Categorias */
.categories ul {
    list-style: none;
    padding: 0;
}

.categories li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    color: #e5e5e5;
}

.categories input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #08d665;
}

/* Lista de produtos */
.product-list {
    flex: 1;
    background: #111;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Importante para o layout flex funcionar corretamente */
}

.product-list h3 {
    color: #08d665;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ordenação e paginação */
.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.sorting select {
    background: #222;
    border: none;
    color: #e5e5e5;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.pagination {
    display: flex;
    gap: 15px;
    align-items: center;
    background: transparent;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.pagination button {
    background: #222;
    border: none;
    color: #e5e5e5;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.pagination button:hover {
    background: #08d665;
}

.pagination span {
    color: #e5e5e5;
}

/* Cards de produtos */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
    align-items: start;
}

/* Card individual */
.product-item {
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    height: 300px; /* Altura fixa */
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(8, 214, 101, 0.2);
}

/* Container da imagem */
.product-item .image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Altura fixa para a imagem */
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-item .image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ícone da plataforma */
.platform-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgb(240,240,240);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Conteúdo do card */
.product-item-content {
    padding: 15px;
    height: 100px; /* Altura fixa para o conteúdo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Título do produto */
.product-item h4 {
    color: #e5e5e5;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Informações de preço e cashback */
.price-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-item .price {
    color: #08d665;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.cashback-info {
    flex-direction: row;
    text-align: right;
    display: flex;
    gap: 5px;
}

.cashback-value {
    color: #08d665;
    font-size: 16px;
    font-weight: bold;
    display: block;
}

.cashback-percent {
    color: #666;
    font-size: 12px;
    font-weight: 300;
}

/* Filtro por texto */
.text-filter {
    margin-bottom: 25px;
}

.text-filter input {
    width: 100%;
    background: #222;
    border: none;
    border-bottom: 2px solid #333;
    padding: 8px 12px;
    color: #e5e5e5;
    border-radius: 5px;
    transition: 0.3s;
}

.text-filter input:focus {
    border-bottom-color: #08d665;
    outline: none;
}

/* @media screen and (max-width: 768px) {
    .logo img {
        height: 30px;
        margin: 5px 0px 5px 10px;
    }
} */

/* Bloqueio de scroll do body */
body.products-open {
    overflow: hidden;
}

/* Scrollbars personalizados */
.filters::-webkit-scrollbar,
.product-grid::-webkit-scrollbar {
    width: 8px;
}

.filters::-webkit-scrollbar-track,
.product-grid::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

.filters::-webkit-scrollbar-thumb,
.product-grid::-webkit-scrollbar-thumb {
    background: #08d665;
    border-radius: 4px;
}

/* Ajuste do alinhamento das categorias e plataformas */
.categories li, .platforms li {
    margin: 12px 0;
    display: flex;
    align-items: center;
    color: #e5e5e5;
}

.categories label, .platforms label {
    margin: 0;
    padding-left: 10px;
    line-height: 20px;
    cursor: pointer;
}

.categories input[type="checkbox"], .platforms input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botão de toggle dos filtros */
.filters-toggle {
    display: none; /* Escondido por padrão em desktop */
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #08d665;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(8, 214, 101, 0.3);
}

.filters-toggle i {
    transition: transform 0.3s ease;
}

/* Media query para mobile */
@media screen and (max-width: 768px) {
    .filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content-wrap {
        position: relative;
    }

    .filters {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        transition: all 0.3s ease;
        z-index: 9999;
        margin: 0;
        border-radius: 0;
    }

    /* Quando os filtros estiverem ativos */
    .filters.active {
        left: 0;
    }

    /* Mover o botão junto com o painel */
    .filters.active + .filters-toggle {
        left: calc(80% + 10px); /* 80% é a largura do painel */
    }

    .filters.active + .filters-toggle i {
        transform: rotate(180deg);
    }

    .filters-toggle {
        transition: all 0.3s ease;
    }

    .filters-toggle.active {
        left: 310px!important;
        display: block!important;
    }

    /* Ajuste do layout principal */
    .product-list {
        width: 100%;
        margin-left: 0;
    }
}

/* Overlay para quando os filtros estiverem abertos */
.filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filters-overlay.active {
    display: block;
    opacity: 1;
}

/* Loading state */
.product-list.loading .product-grid {
    filter: blur(4px);
    pointer-events: none;
}

.loading-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.loading-overlay.active {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #222;
    border-radius: 50%;
    border-top-color: #08d665;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


.section-padding {
    padding: 30px;
}

.service-area {
    padding-bottom: 40px;
}