/* ============================================
   ZENDOTECH AUDIO — SHOP PAGE STYLES
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.breadcrumb a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-size: 9px;
}

.breadcrumb .current {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- Shop Layout --- */
.shop-section {
    padding: 32px 0 48px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* --- Sidebar --- */
.shop-sidebar {
    position: sticky;
    top: 160px;
    align-self: start;
}

.sidebar-header-mobile {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Filter Widgets */
.filter-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 2px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-body);
    transition: all var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background: rgba(59, 59, 152, .06);
    color: var(--primary);
    font-weight: 500;
}

.category-list .count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.category-item {
    position: relative;
}

.category-item.has-children {
    padding-bottom: 4px;
}

.category-item-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-body);
    transition: color var(--transition), font-weight var(--transition);
}

.category-link.active {
    color: var(--primary);
    font-weight: 500;
}

.child-toggle {
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 0;
    transition: color var(--transition);
    cursor: pointer;
}

.child-toggle:hover {
    color: var(--primary);
}

.child-toggle .toggle-icon i {
    font-size: 14px;
}

.child-toggle .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.child-toggle-placeholder {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.child-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.32s ease;
}

.category-item.expanded .child-category-list {
    margin: 6px 0 0;
    max-height: 1000px;
    opacity: 1;
}

.child-category-list li {
    margin-bottom: 2px;
}

.child-category-list li a {
    padding: 6px 12px 6px 30px;
    font-size: 12px;
    color: var(--text-muted);
}

.child-category-list li a:hover,
.child-category-list li a.active {
    color: var(--primary);
    font-weight: 500;
}

/* Price Range — Dual Range Slider */
.price-range-wrap {
    padding: 4px 0;
}

.range-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-bottom: 14px;
}

.range-slider-container .range-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
}

.range-slider-container .range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #5252B8);
    border-radius: 3px;
}

.range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(59, 59, 152, .25);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 2;
    transition: transform .15s ease, box-shadow .15s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(59, 59, 152, .4);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(59, 59, 152, .25);
    cursor: pointer;
    pointer-events: all;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(59, 59, 152, .4);
}

.range-input:focus {
    outline: none;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-field {
    flex: 1;
}

.price-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.price-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg);
    font-family: var(--font);
}

.price-sep {
    color: var(--text-muted);
    padding-top: 18px;
}

.btn-filter {
    width: 100%;
    padding: 9px;
    background: var(--cta);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.btn-filter:hover {
    background: var(--cta-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 29, 34, .3);
}

/* Brand / Status / Rating Checkbox Lists */
.brand-filter-list,
.status-filter-list,
.rating-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-filter-list li,
.status-filter-list li,
.rating-filter-list li {
    margin-bottom: 4px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 13px;
    color: var(--text-body);
}

.check-label:hover {
    background: rgba(59, 59, 152, .04);
}

.check-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition);
    flex-shrink: 0;
}

.check-label input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.check-label input:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bl-name {
    flex: 1;
}

.check-label .count {
    font-size: 12px;
    color: var(--text-muted);
}

.rating-stars {
    display: flex;
    gap: 2px;
    font-size: 12px;
    color: #F59E0B;
}

.rating-stars .fa-regular {
    color: var(--border);
}

/* Sidebar CTA Banner */
.sidebar-banner {
    background: linear-gradient(135deg, #ea1d22 0%, #c81a1e 50%, #3B3B98 100%);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    color: var(--white);
    text-align: center;
    margin-top: 4px;
}

.sb-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.sidebar-banner h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.sidebar-banner p {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 18px;
}

.sidebar-banner .btn {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.sidebar-banner .btn:hover {
    background: rgba(255, 255, 255, .9);
    transform: translateY(-2px);
}

/* --- Active Filters --- */
.active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.af-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.af-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.af-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 59, 152, .08);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.af-tag button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    display: flex;
    opacity: .7;
    transition: opacity var(--transition);
}

.af-tag button:hover {
    opacity: 1;
}

.af-clear {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.af-clear:hover {
    opacity: .75;
}

/* --- Shop Toolbar --- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.results-count {
    font-size: 13px;
    color: var(--text-body);
}

.results-count strong {
    color: var(--text-dark);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    width: 38px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    font-size: 14px;
}

.view-btn+.view-btn {
    border-left: 1px solid var(--border);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.sort-dropdown select {
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font);
    color: var(--text-body);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D5470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
}

.filter-toggle-btn:hover {
    background: var(--primary-dark);
}

/* --- Shop Grid --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.shop-grid.single-result {
    /* grid-template-columns: 1fr; */
    grid-template-columns: repeat(3, 1fr);

}

/* List View */
.shop-grid.list-view {
    grid-template-columns: 1fr;
}

.shop-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.shop-grid.list-view .pc-img {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.shop-grid.list-view .pc-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px;
}

.shop-grid.list-view .pc-body h4 {
    font-size: 16px;
}

.shop-grid.list-view .pc-pricing {
    margin-bottom: 14px;
}

.shop-grid.list-view .atc-btn {
    width: fit-content !important;
    max-width: none !important;
    padding: 12px 30px !important;
    display: inline-flex;
    justify-content: center;
    border-radius: 50px !important;
}

/* --- Pagination --- */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.pg-btn {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.pg-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 59, 152, .06);
}

.pg-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 59, 152, .3);
}

.pg-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pg-dots {
    font-size: 16px;
    color: var(--text-muted);
    padding: 0 4px;
    letter-spacing: 3px;
}

/* =============================================
   RESPONSIVE — SHOP PAGE
   ============================================= */

/* Tablet Landscape */
@media (max-width: 1100px) {
    .shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        background: var(--bg);
        transition: left .3s ease;
        overflow-y: auto;
        padding: 0;
        box-shadow: 0 20px 55px rgba(0, 0, 0, .35);
    }

    .shop-sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease;
        pointer-events: none;
    }

    .shop-sidebar.open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .sidebar-inner {
        padding: 20px;
        height: 100%;
        overflow-y: auto;
    }

    .sidebar-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-header-mobile h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-dark);
    }

    .sidebar-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: var(--border);
        color: var(--text-dark);
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition);
    }

    .sidebar-close:hover {
        background: var(--accent-red);
        color: var(--white);
    }

    .filter-toggle-btn {
        display: inline-flex;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-title {
        font-size: 22px;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .results-count {
        width: 100%;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    .shop-grid.list-view {
        grid-template-columns: 1fr;
    }

    .shop-grid.list-view .product-card {
        grid-template-columns: 140px 1fr;
    }

    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .af-clear {
        margin-left: 0;
    }

    .pg-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}
