/* Price Range Slider Styles */
.price-filter {
    width: 100%;
}

.slider-container {
    position: relative;
    height: 40px;
    margin-bottom: 15px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    top: 18px;
}

.slider-range {
    position: absolute;
    height: 4px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    border-radius: 2px;
    top: 18px;
}

.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #6366f1;
    border-radius: 50%;
    cursor: pointer;
    top: 10px;
    margin-left: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

.slider-thumb:active {
    transform: scale(1.05);
}

.price-filter input[type="text"] {
    text-align: center;
    font-weight: 600;
}

/* Filter Tag Styles */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 12px;
    color: #374151;
    transition: all 0.2s;
}

.filter-tag:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

.filter-tag svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.category-card-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.category-card-btn:focus-visible {
    outline: 2px solid var(--primary, #6366f1);
    outline-offset: 2px;
    border-radius: 1rem;
}

#categories-nav-bar.hidden {
    display: none !important;
}

/* Empty State */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.empty-products svg {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.empty-products h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-products p {
    font-size: 14px;
}

/* Loading State */
.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.products-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hide-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }
}
