.gb-shop {
    padding-bottom: 40px;
}

.gb-archive-header {
    padding: 4px 0;
}

.gb-archive-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.gb-cat-group {
    margin-bottom: 28px;
}

.gb-cat-group:last-child {
    margin-bottom: 0;
}

.gb-cat-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gb-cat-group-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.gb-cat-group-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gb-cat-group-title a:hover {
    color: var(--accent);
}

.gb-cat-group-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 3px 10px;
    background: var(--glass-bg);
    transition: all 0.25s ease;
}

.gb-cat-group-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--glow-sm);
}

.gb-category-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.chip {
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--glass-bg);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.chip:hover,
.chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--glow-rgb), 0.05);
    box-shadow: var(--glow-sm);
}

.gb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    position: sticky;
    top: 70px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 20;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gb-toolbar-count {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 36px;
}

.gb-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.gb-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gb-toolbar-btn:hover,
.gb-toolbar-btn.is-active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--glow-sm);
}

.gb-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.gb-toolbar-select-wrap {
    position: relative;
    display: inline-flex;
}

.gb-toolbar-select-wrap::after {
    content: '';
    position: absolute;
    right: 11px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.gb-toolbar-select {
    appearance: none;
    -webkit-appearance: none;
    height: 36px;
    padding: 0 30px 0 14px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: var(--glass-bg);
    color: var(--text);
    cursor: pointer;
    max-width: 190px;
    transition: border-color 0.3s ease;
}

.gb-toolbar-select:hover,
.gb-toolbar-select:focus {
    border-color: var(--accent);
    outline: none;
}

@media (max-width: 768px) {
    .gb-toolbar {
        top: 60px;
    }
}

@media (max-width: 480px) {
    .gb-toolbar {
        flex-wrap: wrap;
        padding: 6px 12px;
        border-radius: 0;
        box-sizing: border-box;
        width: calc(100% + 24px);
        margin-left: -12px;
    }

    .gb-toolbar-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .gb-toolbar-btn {
        padding: 0 11px;
    }

    .gb-toolbar-select {
        max-width: 42vw;
    }
}

.gb-products-area {
    position: relative;
    transition: opacity 0.2s ease;
}

.gb-products-area.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.gb-products-area.is-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: gb-spin 0.7s linear infinite;
    z-index: 1000;
}

@keyframes gb-spin {
    to { transform: rotate(360deg); }
}

/* FILTER DRAWER DEFAULTS */
.gb-filter-default {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gb-filter-section {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.gb-filter-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gb-filter-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.gb-filter-section .widget {
    font-size: 14px;
    color: var(--text);
}

.gb-filter-section .widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gb-filter-section .widget .product-categories > .cat-item {
    border-bottom: 1px solid var(--glass-border);
}

.gb-filter-section .widget .product-categories > .cat-item:last-child {
    border-bottom: 0;
}

.gb-filter-section .widget .product-categories .children {
    display: block;
    padding-left: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    margin: 4px 0 0 16px;
    padding: 4px 0;
}

.gb-filter-section .widget .product-categories .children li {
    padding: 0;
    position: relative;
}

.gb-filter-section .widget .product-categories .children .cat-item {
    padding: 5px 12px;
}

.gb-filter-section .widget .product-categories .children .cat-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--glass-border);
}

.gb-filter-section .widget .product-categories .children li a {
    font-size: 13px;
}

.gb-filter-section .widget .product-categories .children .children {
    background: none;
    border-radius: 0;
    margin-left: 12px;
    padding: 0;
}

.gb-filter-section .widget .product-categories .children .children .cat-item {
    padding: 4px 12px;
    font-size: 12px;
}

.gb-filter-section .widget li a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    border-radius: 4px;
}

.gb-filter-section .widget li a:hover {
    color: var(--accent);
}

.gb-filter-section .widget li .count {
    color: var(--text-muted);
    font-size: 11px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 500;
}

.gb-filter-section .widget .cat-parent > a {
    font-weight: 600;
    color: var(--text);
}

.gb-filter-section .price_slider_wrapper {
    padding-top: 4px;
}

.gb-filter-section .price_slider {
    margin-bottom: 16px;
}

.gb-filter-section .price_slider_amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.gb-filter-section .price_label {
    font-size: 14px;
    color: var(--text-muted);
}

.gb-filter-section .price_slider_amount .button {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-sm);
    transition: all 0.3s ease;
}

.gb-filter-section .price_slider_amount .button:hover {
    background: var(--accent-hover);
    box-shadow: var(--glow);
}

.ui-slider-horizontal {
    height: 4px;
    background: var(--glass-border);
    border: 0;
    border-radius: 4px;
    position: relative;
}

.ui-slider-horizontal .ui-slider-range {
    background: var(--accent);
    height: 4px;
    position: absolute;
}

.ui-slider-horizontal .ui-slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: var(--glow-sm);
    position: absolute;
    top: -6px;
    margin-left: -8px;
    cursor: pointer;
}
