/**
 * Hide toolbar controls except Sort By
 * Show pagination at bottom
 */

/* Hide limiter (items per page selector) */
.toolbar .limiter,
.toolbar-products .limiter {
    display: none !important;
}

/* Hide view mode switcher (grid/list) */
.toolbar .modes,
.toolbar-products .modes {
    display: none !important;
}

/* Keep only sorter visible in TOP toolbar */
.toolbar .sorter,
.toolbar-products .sorter {
    display: block;
}

/* Hide sorter in BOTTOM toolbar */
.toolbar-products:last-of-type .sorter,
#product_list_toolbar_bottom .sorter {
    display: none !important;
}

/* Hide limiter in BOTTOM toolbar */
#product_list_toolbar_bottom .limiter {
    display: none !important;
}

/* Ensure pagination is visible in BOTTOM toolbar */
.toolbar .pages,
.toolbar-products .pages,
.pages,
#product_list_toolbar_bottom .pages {
    display: block !important;
}

/* Keep toolbar amount (Items X-Y of Z) visible in BOTTOM toolbar */
.toolbar .toolbar-amount,
.toolbar-products .toolbar-amount,
#product_list_toolbar_bottom .toolbar-amount {
    display: block !important;
}

/* ============================================
   PAGINATION COLORS
   ============================================ */
.pages a.page:visited,
.pages a.page:link,
.pages .action {
    color: #222f3e;
}

.pages a.page:hover,
.pages .action:hover {
    background-color: #222f3e;
    color: #ffffff;
    border-color: #222f3e;
}

.pages .item.current strong.page,
.pages .item.current .label {
    background-color: #222f3e;
    color: #ffffff;
    border-color: #222f3e;
}

/* ============================================
   CUSTOM TOP TOOLBAR (Isolated)
   ============================================ */
.custom-toolbar-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    background: transparent !important;
    border: none !important;
    margin-bottom: 20px;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
}

.custom-toolbar-amount {
    font-size: 14px;
    color: #1d1d1f;
}

.custom-toolbar-sorter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-sorter-label {
    font-size: 14px;
    color: #1d1d1f;
    margin: 0;
}

.custom-sorter-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}

.custom-sorter-select:focus {
    border-color: #222f3e;
}

.custom-sorter-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 18px;
}

.custom-sorter-action:hover {
    color: #222f3e;
}