/* css/products.css */
.products-page {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.page-header-section { 
    background: var(--background-light); 
    padding: 50px 0; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
}
.page-header-section h1 { 
    color: var(--secondary-color); 
    font-size: 2.5rem; 
}


.products-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.filter-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.category-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.category-card:hover,
.category-card.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.category-card .category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background-color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
    color: white;
    background-color: var(--primary-dark);
}

.category-card .category-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-card:hover .category-details h4,
.category-card.active .category-details h4 {
    color: white;
}

.category-card .product-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.category-card:hover .product-count,
.category-card.active .product-count {
    color: rgba(255, 255, 255, 0.8);
}


.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
}

.search-form button {
    background: #e91e63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e91e63;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 0.9rem;
}

.final-price {
    font-weight: 600;
    color: #e91e63;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    background: #e91e63;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #c2185b;
}

.view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.view-product:hover {
    background: #e9ecef;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.no-products i {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-products p {
    color: #888;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .products-filters {
        grid-template-columns: 1fr;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

