/* Faceted Search System Styles */

/* Line clamp utilities for product cards */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filter option hover states */
.filter-option:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.filter-option:hover .filter-checkbox {
    border-color: var(--color-primary, #FF9500);
}

/* Disabled filter option styles */
.filter-option.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.filter-option.disabled .filter-checkbox {
    cursor: not-allowed;
    opacity: 0.5;
}

.filter-option.disabled .filter-label {
    color: #9CA3AF !important; /* text-medium-gray fallback */
    cursor: not-allowed;
}

/* Checkbox focus states */
.filter-checkbox:focus {
    ring: 2px;
    ring-color: var(--color-primary, #FF9500);
    ring-opacity: 0.5;
}

/* Reset button hover effect */
#reset-all-filters:hover {
    background-color: #F3F4F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Product cards layout adjustments */
#product-list-container .grid {
    min-height: 200px;
}

/* Loading states for product cards */
.product-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Filter count badge styling */
.filter-count {
    font-size: 0.875rem;
    font-weight: 500;
}

/* No results message styling */
#no-results-message {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Results counter styling */
#results-count {
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #filter-sidebar {
        padding: 1rem;
    }
    
    .filter-group h3 {
        font-size: 1rem;
    }
    
    .filter-option {
        padding: 0.5rem 0;
    }
}

/* Product card hover effects */
.product-card {
    transition: all 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button styles for consistency */
.product-card button {
    transition: all 0.2s ease-in-out;
    background-color: var(--color-primary, #FF9500);
}

.product-card button:hover {
    background-color: var(--color-primary-dark, #E8850F);
    transform: translateY(-1px);
} 