/* Modern Product List Styles */
.filter{
    cursor:pointer;
    padding:3px 5px;
    border-radius:3px;
    width:100%;
    transition: all 0.2s ease;
}

.filter:hover , .clear_all:hover , .clear_filter:hover{
    background-color: rgb(61, 60, 60);
}

.filter.active{
    background-color: rgb(78, 78, 78);
    color: white;
}

.clear_all{
    cursor:pointer;
    padding: 3px 5px;
    border-radius:3px;
}

.clear_filter{
    display:none;
    padding: 3px 5px;
    border-radius:3px;
}

.clear_filter.active{
    cursor:pointer;
    display:block !important;
}

/* Modern Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Filter Checkboxes */
.filter-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* Loading and Empty States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 16px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination-btn {
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search and Sort Controls */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sort-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Filter Sidebar */
.filter-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Price Range Slider */
.noUi-target {
    background: #e5e7eb;
    border: none;
    border-radius: 4px;
    height: 6px;
}

.noUi-connect {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.noUi-handle {
    border: 2px solid #3b82f6;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.noUi-handle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Fullscreen Layout */
#main {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

#mainInnerContainer {
    min-height: calc(100vh - 80px); /* Subtract header height */
}

/* Ensure full width */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    #sidebar {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    #mainInnerContainer {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
        min-width: 100%;
        max-height: none;
    }
}