.products-page {
    padding: 2rem 0 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 4.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--gray-700);
    font-weight: 500;
}


.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card-image {
    position: relative;
    height: 220px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image i {
    font-size: 4rem;
    color: var(--gray-400);
}

.badge-popular {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-category {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-card-rating .stars {
    color: #f59e0b;
    font-size: 0.875rem;
}

.product-card-rating .rating-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-card-price .current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.product-card-price .original {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card-price .discount-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-sm {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-image {
        height: 180px;
    }
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops to fill without distortion */
    object-position: center;
    transition: transform 0.3s ease;
}

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

.product-thumbnail-icon {
    font-size: 3rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumbnail-icon {
    transform: scale(1.1);
}

.badge-popular {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}