/* ==========================================================================
   PipStore - Dedicated Premium Search Page Layout & Advanced Filters
   Location: /css-modules/14-search-results.css
   ========================================================================== */

.pipstore-search-page-wrapper {
    max-width: 1450px;
    margin: 25px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Sleek Search Header (No Solid Dark Banner) */
.pipstore-search-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 20px 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.search-clean-title-wrap .search-pre-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.search-clean-title-wrap .search-main-heading {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: #0f1115;
    margin: 0;
    line-height: 1.1;
}

.search-count-pill {
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. SIDEBAR FULL EXPANSION (NO INTERNAL SCROLLING) */
.pipstore-search-page-wrapper .pipstore-shop-sidebar {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    position: static !important;
    height: auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 25px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.pipstore-search-page-wrapper .filter-categories-list,
.pipstore-search-page-wrapper .filter-cat-accordion {
    max-height: none !important;
    overflow: visible !important;
}

/* 3. Sidebar Widgets Styling */
.pipstore-filter-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.pipstore-filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #0f1115 !important;
    margin-bottom: 14px !important;
    border-left: 3px solid var(--color-gold, #ecc53a);
    padding-left: 8px;
}

.filter-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.clear-all-link {
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.active-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    background: #0f1115;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--color-gold, #ecc53a);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.filter-chip span {
    color: #ef4444;
    font-weight: 900;
}

/* Category List */
.filter-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-categories-list li {
    margin-bottom: 6px;
}

.filter-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-categories-list a:hover,
.filter-categories-list li.active-item a {
    background: #fffdec;
    color: #b45309;
    font-weight: 800;
}

.filter-categories-list .count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Checkbox Items */
.filter-checkbox-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-checkbox-list li {
    margin-bottom: 10px;
}

.filter-checkbox-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.custom-checkbox.checked {
    background-color: var(--color-gold, #ecc53a);
    border-color: #0f1115;
}

.custom-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f1115;
    font-size: 12px;
    font-weight: 900;
}

/* Star Ratings */
.filter-ratings-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-ratings-list li {
    margin-bottom: 8px;
}

.filter-ratings-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.filter-ratings-list a:hover,
.filter-ratings-list a.active-rating {
    background: #fffdec;
}

.stars-gold {
    color: #ecc53a;
    font-size: 15px;
    letter-spacing: 1px;
}

.star-muted {
    color: #cbd5e1;
}

.rating-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

/* Color Swatches Grid */
.filter-color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 8px;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch-item:hover,
.color-swatch-item.active-swatch {
    border-color: #0f1115;
    background: #fffdec;
}

.swatch-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    margin-bottom: 4px;
}

.swatch-name {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Attribute Chips (Sizes / Materials / Brands) */
.filter-attribute-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attr-chip-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attr-chip-btn:hover,
.attr-chip-btn.active-chip {
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    border-color: #0f1115;
}

/* Price Presets & Form */
.filter-price-presets {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}

.filter-price-presets li {
    margin-bottom: 8px;
}

.filter-price-presets a {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-price-presets a:hover,
.filter-price-presets a.active {
    background: #fffdec;
    color: #b45309;
    font-weight: 800;
}

.custom-price-inputs-form .price-input-fields {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-price-inputs-form input[type="number"] {
    width: 75px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    background: #f8fafc;
}

.custom-price-inputs-form button {
    height: 34px;
    width: 36px;
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
}

/* Tags Cloud */
.filter-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud-item {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-cloud-item:hover,
.tag-cloud-item.active-tag {
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    border-color: #0f1115;
}

/* Sidebar Brand Card */
.sidebar-brand-card {
    background: #0f1115;
    color: #ffffff;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid var(--color-gold, #ecc53a);
    margin-top: 20px;
}

.sidebar-brand-card .badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--color-gold, #ecc53a);
    font-size: 12px;
}

.sidebar-brand-card p {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* 4. Results Toolbar & Sorting */
.pipstore-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.pipstore-catalog-toolbar .results-text {
    font-size: 13.5px;
    color: #475569;
}

.pipstore-catalog-toolbar .results-text strong {
    color: #0f1115;
}

.pipstore-ajax-orderby {
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 12.5px;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

/* 5. AJAX Realtime Loading Overlay */
.pipstore-ajax-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

#pipstore-search-grid-target.is-loading .pipstore-ajax-loader-overlay {
    display: flex;
}

.pipstore-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--color-gold, #ecc53a);
    border-radius: 50%;
    animation: pipstore-spin 0.7s linear infinite;
}

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

/* 6. Empty Results Box */
.pipstore-no-results-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.pipstore-no-results-box h2 {
    font-size: 22px;
    font-weight: 900;
    color: #0f1115;
    margin: 15px 0 8px 0;
}

.pipstore-no-results-box p {
    color: #64748b;
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 25px auto;
}

/* 7. Mobile Layout */
@media (max-width: 991px) {
    .pipstore-search-clean-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pipstore-catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   PipStore - Dedicated Premium Search Page Layout & Advanced Filters
   Location: /css-modules/14-search-results.css
   ========================================================================== */

.pipstore-search-page-wrapper {
    max-width: 1450px;
    margin: 25px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Search Header */
.pipstore-search-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 20px 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.search-clean-title-wrap .search-pre-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.search-clean-title-wrap .search-main-heading {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: #0f1115;
    margin: 0;
    line-height: 1.1;
}

.search-count-pill {
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. SIDEBAR FULL EXPANSION (NO INTERNAL SCROLLING) */
.pipstore-search-page-wrapper .pipstore-shop-sidebar {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    position: static !important;
    height: auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 25px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.pipstore-search-page-wrapper .filter-categories-list {
    max-height: none !important;
    overflow: visible !important;
}

/* 3. Expand / Collapse Filter Button */
.pipstore-filter-expand-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f1115 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.pipstore-filter-expand-btn:hover {
    background: #0f1115 !important;
    color: var(--color-gold, #ecc53a) !important;
    border-color: #0f1115 !important;
}

.pipstore-filter-expand-btn .expand-icon {
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--color-gold, #ecc53a) !important;
}

/* 4. Sidebar Widgets Styling */
.pipstore-filter-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.pipstore-filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #0f1115 !important;
    margin-bottom: 14px !important;
    border-left: 3px solid var(--color-gold, #ecc53a);
    padding-left: 8px;
}

.filter-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.clear-all-link {
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.active-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    background: #0f1115;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--color-gold, #ecc53a);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.filter-chip span {
    color: #ef4444;
    font-weight: 900;
}

/* Category List */
.filter-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-categories-list li {
    margin-bottom: 6px;
}

.filter-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-categories-list a:hover,
.filter-categories-list li.active-item a {
    background: #fffdec;
    color: #b45309;
    font-weight: 800;
}

.filter-categories-list .count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Checkbox Items */
.filter-checkbox-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-checkbox-list li {
    margin-bottom: 10px;
}

.filter-checkbox-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.custom-checkbox.checked {
    background-color: var(--color-gold, #ecc53a);
    border-color: #0f1115;
}

.custom-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f1115;
    font-size: 12px;
    font-weight: 900;
}

/* Star Ratings */
.filter-ratings-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.filter-ratings-list li {
    margin-bottom: 8px;
}

.filter-ratings-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.filter-ratings-list a:hover,
.filter-ratings-list a.active-rating {
    background: #fffdec;
}

.stars-gold {
    color: #ecc53a;
    font-size: 15px;
    letter-spacing: 1px;
}

.star-muted {
    color: #cbd5e1;
}

.rating-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

/* Color Swatches Grid */
.filter-color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 8px;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch-item:hover,
.color-swatch-item.active-swatch {
    border-color: #0f1115;
    background: #fffdec;
}

.swatch-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    margin-bottom: 4px;
}

.swatch-name {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Attribute Chips (Sizes / Materials / Brands) */
.filter-attribute-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attr-chip-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attr-chip-btn:hover,
.attr-chip-btn.active-chip {
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    border-color: #0f1115;
}

/* Price Presets & Form */
.filter-price-presets {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}

.filter-price-presets li {
    margin-bottom: 8px;
}

.filter-price-presets a {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-price-presets a:hover,
.filter-price-presets a.active {
    background: #fffdec;
    color: #b45309;
    font-weight: 800;
}

.custom-price-inputs-form .price-input-fields {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-price-inputs-form input[type="number"] {
    width: 75px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    background: #f8fafc;
}

.custom-price-inputs-form button {
    height: 34px;
    width: 36px;
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
}

/* Tags Cloud */
.filter-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud-item {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-cloud-item:hover,
.tag-cloud-item.active-tag {
    background: #0f1115;
    color: var(--color-gold, #ecc53a);
    border-color: #0f1115;
}

/* Sidebar Brand Card */
.sidebar-brand-card {
    background: #0f1115;
    color: #ffffff;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid var(--color-gold, #ecc53a);
    margin-top: 20px;
}

.sidebar-brand-card .badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--color-gold, #ecc53a);
    font-size: 12px;
}

.sidebar-brand-card p {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* 5. Results Toolbar & Sorting */
.pipstore-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

.pipstore-catalog-toolbar .results-text {
    font-size: 13.5px;
    color: #475569;
}

.pipstore-catalog-toolbar .results-text strong {
    color: #0f1115;
}

.pipstore-ajax-orderby {
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    font-size: 12.5px;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

/* 6. AJAX Loading Overlay */
.pipstore-ajax-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

#pipstore-search-grid-target.is-loading .pipstore-ajax-loader-overlay {
    display: flex;
}

.pipstore-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--color-gold, #ecc53a);
    border-radius: 50%;
    animation: pipstore-spin 0.7s linear infinite;
}

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

/* 7. Empty Results Box */
.pipstore-no-results-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.pipstore-no-results-box h2 {
    font-size: 22px;
    font-weight: 900;
    color: #0f1115;
    margin: 15px 0 8px 0;
}

.pipstore-no-results-box p {
    color: #64748b;
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 25px auto;
}

/* 8. Mobile Layout */
@media (max-width: 991px) {
    .pipstore-search-clean-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pipstore-catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   Enforced Expand/Collapse Logic for Search Sidebar Filters
   ========================================================================== */

/* 1. Force hide all extra items (> 5) by default */
.pipstore-search-page-wrapper .pipstore-filter-widget .filter-extra-item {
    display: none !important;
}

/* 2. Reveal extra items when expanded */
.pipstore-search-page-wrapper .pipstore-filter-widget.is-expanded .filter-extra-item,
.pipstore-search-page-wrapper .pipstore-filter-widget .filter-extra-item.is-shown {
    display: flex !important;
}

/* Specific display modes for color swatches, tags, and attribute chips */
.pipstore-search-page-wrapper .pipstore-filter-widget .filter-color-swatches-grid .filter-extra-item.is-shown {
    display: flex !important;
}

.pipstore-search-page-wrapper .pipstore-filter-widget .filter-attribute-chips-grid .filter-extra-item.is-shown,
.pipstore-search-page-wrapper .pipstore-filter-widget .filter-tags-cloud .filter-extra-item.is-shown {
    display: inline-flex !important;
}

/* 3. Expand / Collapse Trigger Button */
.pipstore-filter-expand-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f1115 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    margin-top: 12px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    width: fit-content !important;
}

.pipstore-filter-expand-btn:hover {
    background: #0f1115 !important;
    color: var(--color-gold, #ecc53a) !important;
    border-color: #0f1115 !important;
}

.pipstore-filter-expand-btn .expand-icon {
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--color-gold, #ecc53a) !important;
}