/* archive-product 2.css */
:root {
    --primary: #FF3600;
    --main-bg: #292D36;
    --card-bg: #1f2229;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --green-status: #10b981;
    --red-status: #ef4444;
}

body {
    background-color: var(--main-bg);
    color: var(--text-main);
}

.pm-shop-wrapper {
    display: flex;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--main-bg);
    color: var(--text-main);
    box-sizing: border-box;
}

/* Sidebar */
.pm-filters {
    width: 280px;
    flex-shrink: 0;
    background: var(--card-bg);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.pm-filters__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
}
.pm-filter-section {
    margin-bottom: 24px;
}
.pm-filter-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}
.pm-filter-section__toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s;
}
.pm-filter-section__toggle.collapsed svg {
    transform: rotate(180deg);
}
.pm-filter-section__body {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 500px;
}
.pm-filter-section__body.collapsed {
    max-height: 0;
}
.pm-filters__divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* Range Slider */
.pm-price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.pm-price-input {
    width: 100%;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    text-align: center;
    -moz-appearance: textfield;
}
.pm-price-input::-webkit-outer-spin-button,
.pm-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pm-price-inputs__btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.pm-range-slider {
    position: relative;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.pm-range-slider__track {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}
.pm-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 16px;
    top: -6px;
    left: 0;
    -webkit-appearance: none;
    pointer-events: none;
    background: transparent;
    margin: 0;
}
.pm-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px var(--card-bg); /* Add slight gap effect */
}
.pm-range-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px var(--card-bg);
}

/* Brands list */
.pm-brand-search {
    position: relative;
    margin-bottom: 16px;
}
.pm-brand-search__input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
}
.pm-brand-search__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}
.pm-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}
.pm-brand-list::-webkit-scrollbar { width: 4px; }
.pm-brand-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.pm-brand-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}
.pm-brand-item.hidden {
    display: none;
}
.pm-brand-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
}
.pm-brand-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}
.pm-brand-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.pm-brand-name {
    flex: 1;
    color: var(--text-main);
    font-size: 14px;
}
.pm-brand-count {
    color: var(--text-muted);
    font-size: 12px;
}

/* Main content */
.pm-main {
    flex: 1;
}
.pm-main__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}
.pm-main__count {
    color: var(--text-muted);
}
.pm-main__count span {
    font-weight: 600;
    color: var(--text-main);
}
.pm-view-toggle {
    display: flex;
    gap: 8px;
}
.pm-view-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pm-view-btn:hover, .pm-view-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}


/* Pagination */
.pm-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.pm-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.pm-pagination .page-numbers:hover {
    background: rgba(255,255,255,0.1);
}
.pm-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Mobile Toggles */
.pm-filters-mobile-toggle {
    display: none;
}

@media (max-width: 900px) {
    .pm-shop-wrapper {
        flex-direction: column;
    }
    .pm-filters {
        width: 100%;
    }
    .pm-filters-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 12px 20px;
        border-radius: 8px;
        cursor: pointer;
        margin-bottom: 20px;
        font-weight: 600;
        width: 100%;
    }
    .pm-filters.mobile-hidden {
        display: none;
    }
}
.pm-price-inputs__sep {
	line-height: 207% !important;
}