.products-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products-page h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #bdc3c7;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 28px;
}

.filter-btn:hover {
    background: #3498db;
    color: white;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.filter-btn.true {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.current-filter {
    margin-top: 15px;
    color: #27ae60;
    font-weight: bold;
}

.products-list {
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #91b3ff;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
    margin: 10px 0;
}

.product-category {
    color: #7f8c8d;
    font-size: 0.9em;
    margin: 5px 0;
}

.product-stock {
    color: #e67e22;
    font-size: 0.9em;
    margin: 5px 0;
    font-weight: bold;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.no-products {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-products h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.page-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    transition: all 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-admin {
    background: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        flex-direction: column;
    }

    .filter-btn {
        text-align: center;
    }

    .product-actions {
        flex-direction: column;
    }

    .products-page {
        padding: 10px;
    }
}