.popular-page-content {
    max-width: 1400px;
}

.section-category-group {
    margin-bottom: 60px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.05em;
    color: #333;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

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

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Override product-price for better visibility as requested */
.popular-page-content .product-price {
    font-size: 18px !important;
    font-weight: 700;
    color: #333333;
    margin: 1rem 0 0;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card .product-title:hover {
    color: #000;
}

/* Pagination overrides */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    margin: 0 4px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-wrapper .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    background: #f5f5f5;
}