/* ============================================
   PAGINAÇÃO
   ============================================ */

.toolbar.toolbar-products {
    display: none;
}

/* Informações de produtos */
.toolbar-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666666;
}

.toolbar-amount strong {
    color: #333333;
    font-weight: 600;
}

/* Lista de páginas */
.pages {
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 29px;
    align-items: center;
}

.pages-items {
    display: flex!important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0!important;
    padding: 0!important;
    gap: 8px;
}

.pages-items .item {
    display: inline-block;
}

/* Links de página */
.pages-items .item a,
.pages-items .item strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #FFFFFF;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pages-items .item a:hover {
    background: #F5F5F5;
    border-color: #FF8C00;
    color: #FF8C00;
}

/* Página atual */
.pages-items .item.current strong {
    background: #FF8C00;
    border-color: #FF8C00;
    color: #FFFFFF;
    font-weight: 600;
}
.pages-items .item.current strong span,
.pages .action:hover:before,
.pages .action:active:before {
    color: white!important;
}

/* Reticências */
.pages-items .item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999999;
    font-size: 14px;
}
.pages-items .item.current strong span {
    color: white;
}
/* Botões Anterior/Próxima */
.pages-items .pages-item-previous a,
.pages-items .pages-item-next a {
    padding: 0 16px;
    font-weight: 600;
}
.custom-pagination-wrapper .pages .action {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pages-items .pages-item-previous a:hover,
.pages-items .pages-item-next a:hover {
    background: #FF8C00;
    color: #FFFFFF;
}

/* Seletor de itens por página */
.limiter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}

.limiter-options {
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #FFFFFF;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.limiter-options:hover,
.limiter-options:focus {
    border-color: #FF8C00;
    outline: none;
}

/* Ordenação */
.sorter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.sorter-label {
    font-size: 14px;
    color: #666666;
}

.sorter-options {
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #FFFFFF;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sorter-options:hover,
.sorter-options:focus {
    border-color: #FF8C00;
    outline: none;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .toolbar-amount {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pages-items {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pages-items .item a,
    .pages-items .item strong {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* Esconder Primeira/Última em mobile */
    .pages-item-first,
    .pages-item-last {
        display: none;
    }
    .custom-pagination-wrapper .pages-item-previous,
    .custom-pagination-wrapper .pages-item-next {
        position:initial;
    }
}

@media (max-width: 480px) {
    .pages-items .item a,
    .pages-items .item strong {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .limiter {
        flex-direction: column;
        gap: 8px;
    }
    .item.pages-item-dots {
        border: 1px solid #ccc;
        border-radius: 6px;
        min-width: 25px;
        height: 32px;
        font-size: 12px;
        padding: 0 4px;
    }
}