.top-products {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: var(--font-size-section-title);
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 0 var(--space-lg);
    line-height: 1.2;
}

.top-products__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 282px;
    border: 1px solid var(--color-border-card);
    border-radius: var(--radius-default);
    background: linear-gradient(to bottom, var(--color-card-gradient-top), var(--color-card-gradient-bottom));
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.product-card__img-wrap {
    width: 100%;
    flex: 1;
    min-height: 0;
}

.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__title {
    width: 100%;
    font-size: 26px;
    font-weight: 600;
    color: #576770;
    text-align: center;
    line-height: 1.2;
    padding: 6px 12px 18px;
    flex-shrink: 0;
}

.top-products__footer {
    margin-top: auto;
    padding-top: 42px;
    display: flex;
    justify-content: center;
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--button-height);
    padding: 0 50px 4px;
    border: 1px solid var(--color-border-card);
    border-radius: var(--radius-button);
    background: #f9f9f9;
    color: #576770;
    font-family: var(--font-family);
    font-size: 27px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn-outline-pill:hover {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

/* 4-column grid used on the full product listing page */
.product-list__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 767px) {
    .top-products__grid {
        gap: var(--space-sm);
    }

    .product-list__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
}
