/* ============================================
   HEADER DA CATEGORIA/BUSCA
   ============================================ */

.category-header-wrapper {
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 32px;
    margin-bottom: 30px;
}

.category-header-content {
    max-width: 1241px;
    margin: 0 auto;
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

/* ============================================
   BREADCRUMB (Esquerda)
   ============================================ */

.category-header-breadcrumb {
    justify-self: start;
}

.category-header-breadcrumb .breadcrumbs {
    margin: 0;
    padding: 0;
}

.category-header-breadcrumb .breadcrumbs .items {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-header-breadcrumb .breadcrumbs .item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666666;
}

.category-header-breadcrumb .breadcrumbs .item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-header-breadcrumb .breadcrumbs .item a:hover {
    color: #FF6B00;
}

.category-header-breadcrumb .breadcrumbs .item strong {
    color: #333333;
    font-weight: 500;
}

.category-header-breadcrumb .breadcrumbs .item:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #999999;
}

/* ============================================
   TÍTULO (Centro)
   ============================================ */

.category-header-title {
    text-align: center;
    justify-self: center;
}

.category-header-title .page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-header-wrapper .category-header-title .page-title {
    font-size: 24px;
    text-transform: none;
}

/* ============================================
   ORDENAÇÃO (Direita)
   ============================================ */

.category-header-toolbar {
    justify-self: end;
}

.category-header-toolbar .toolbar-sorter {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: right;
}

.category-header-toolbar .toolbar-label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
}

.category-header-toolbar .sorter-action {
    padding: 10px 20px;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-header-toolbar .sorter-action:hover {
    border-color: #FF6B00;
    color: #FF6B00;
}

.category-header-toolbar .sorter-action::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
}

/* Select dropdown */
.category-header-toolbar select {
    padding: 0px 34px 0px 15px;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
    width: 47%;
}

.category-header-toolbar select:hover {
    border-color: #FF6B00;
}

.category-header-toolbar select:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Remover outros elementos da toolbar que não queremos no header */
.category-header-toolbar .toolbar-amount,
.category-header-toolbar .limiter,
.category-header-toolbar .pages {
    display: none;
}

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

@media (max-width: 1024px) {
    .category-header-content {
        grid-template-columns: 1fr;
        gap: 17px;
    }
    
    .category-header-breadcrumb,
    .category-header-title,
    .category-header-toolbar {
        justify-self: center;
        text-align: center;
    }
    
    .category-header-title .page-title {
        font-size: 28px;
    }
    .category-header-breadcrumb .breadcrumbs {
        display: block;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    
    .category-header-wrapper {
        padding: 12px 0;
    }
    
    .category-header-title .page-title {
        font-size: 24px;
    }
    
    .category-header-breadcrumb .breadcrumbs .item {
        font-size: 12px;
    }
    
    .category-header-toolbar .toolbar-label {
        font-size: 12px;
    }
    
    .category-header-toolbar select {
        width: 74%;
        text-align: left;
        font-size: 15px;
        background-size: 9px;
        padding: 0;
        height: 24px;
        padding: 0 1rem;
    }
    .category-header-toolbar .toolbar-sorter:after {
        content: '';
        display: block;
        height: 100%;
        width: 2px;
        background: #e0e0e0;
        position: absolute;
        right: 2px;
    }
    .category-header-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        border-top: 1px solid #e0e0e0;
        padding-top: .9rem;
        width: 100%;
    }
    .category-header-toolbar .toolbar-sorter {
        width: 49%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        position: relative;
    }
    .btn-filter-mobile {
        width: 49%;
        display: flex;
        align-items: center;
        justify-content: center;
        grid-gap: 13px;
    }
    .btn-filter-mobile span {
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    
    .category-header-title .page-title {
        font-size: 20px;
    }
}

/* ============================================
   AJUSTES NA TOOLBAR ABAIXO (se existir)
   ============================================ */

/* Esconder toolbar padrão abaixo dos produtos */
.products.wrapper .toolbar.toolbar-products {
    display: none;
}

/* Ou mantê-la apenas com paginação */
.products.wrapper .toolbar.toolbar-products .toolbar-sorter {
    display: none;
}