/* Products Page Styles */

/* Main Content */
.products-main {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-section label {
    font-weight: 600;
    color: #1e293b;
}

.filter-section select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-section select:hover,
.filter-section select:focus {
    border-color: #3b82f6;
    outline: none;
}

.results-info {
    margin-left: auto;
    color: #64748b;
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.product-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-body {
    padding: 1.5rem;
    flex: 1;
}

.product-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-features {
    margin-bottom: 1.5rem;
}

.product-features h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    margin-bottom: 0.5rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.product-details {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    display: block;
    color: #1e293b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.product-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid #e2e8f0;
    background-color: #f8fafc;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-results p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    color: #7f1d1d;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #991b1b;
}

.error-message p {
    color: #7f1d1d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .products-hero p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-info {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 1.25rem;
    }
}
