/* 🔹 Slider Wrapper */
.slider-wrapper {
    position: relative;
    height: 30px;
    margin-top: 10px;
}
.slider-wrapper input[type="range"] {
    position: absolute;
    top: 12px;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 1;
}
.slider-wrapper::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e36713;
    border-radius: 2px;
    z-index: 0;
}
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4c2b;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    z-index: 3;
}
.slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4c2b;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    pointer-events: all;
}
.slider-wrapper input[type="range"]:nth-child(1) { z-index: 3; }
.slider-wrapper input[type="range"]:nth-child(2) { z-index: 4; }

/* 🔹 Price Input */
.price-values {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.price-values input {
    width: 100%;
    padding: 5px;
    font-size: 13px;
}

/* 🔹 Breadcrumb */
.breadcrumb-fullbar {
    background: #f4f4f4;
    padding: 15px 0 5px;
}
.breadcrumb {
    font-size: 14px;
    color: #333;
}
.breadcrumb a {
    text-decoration: none;
    color: #333;
    margin: 0 6px;
}
.breadcrumb span {
    font-weight: 600;
    padding-left: 4px;
}

/* 🔹 Category Layout */
.category-page-wrapper {
    background: #f4f4f4;
    padding-top: 20px;
    padding-bottom: 20px;
}
.category-container {
    display: flex;
    max-width: 1320px;
    margin: auto;
    padding: 0 15px;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.category-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.04);
}

/* 🔹 Filters */
.filter-box {
    margin-bottom: 30px;
}
.filter-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.filter-box label {
    display: block;
    margin: 5px 0;
    font-size: 14px;
}

/* 🔹 Main Content */
.category-content {
    flex: 1;
}
.category-header {
    display: flex;
    background: white;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-radius: 2px;
    padding: 4px 10px;
}

.category-header-text {
    font-size: 24px;
    padding-top: 5px;
}
.sort-options select {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #e8e8e8;
}

/* 🔹 Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 2px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-container {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .sort-options select {
        width: 100%;
    }
}

/* 🔹 No Products */
.no-products {
    font-size: 16px;
    color: #999;
    text-align: center;
    padding: 30px 0;
}

/* 🔹 Infinite Scroll Loader */
.infinite-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    font-family: Inter, sans-serif;
    color: #555;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #ccc;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loader-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
