.best-sellers {
    padding: 0 16px 72px;
    margin-top: -8px;
    background: #ffffff;
}

.best-sellers__inner {
    width: min(100%, 1380px);
    margin: 0 auto;
}

.best-sellers__header {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.best-sellers__eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.best-sellers__title {
    margin: 0 0 10px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.3vw, 2.7rem);
    font-weight: 700;
}

.best-sellers__subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.best-sellers__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.best-sellers__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(27, 106, 92, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(24, 24, 24, 0.04);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.best-sellers__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(24, 24, 24, 0.1);
}

.best-sellers__media {
    position: relative;
    aspect-ratio: 4 / 3;
    /* default media padding for section cards; overridden for product-card */
    padding: 10px 10px 0;
    background: transparent;
}

.best-sellers__image {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    transition: opacity 280ms ease;
}

/* Product-card specific overrides to make the image the hero */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0; /* ensure no internal padding */
    background: transparent;
}

.product-card .best-sellers__media {
    padding: 0; /* remove padding so image starts at top edge */
    background: transparent;
    flex: 1 1 auto; /* let media fill the article area */
    position: relative;
    min-height: 0;
}

.product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .best-sellers__image {
    border-radius: 18px 18px 0 0; /* respect card top corners */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__content {
    flex: 0 0 12%; /* compact content area */
    padding: 10px 12px;
}

.product-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__price {
    display: block;
    font-size: 0.95rem;
    margin-top: 4px;
}

.best-sellers__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.best-sellers__icon-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    box-shadow: 0 8px 18px rgba(24, 24, 24, 0.08);
}

.best-sellers__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}

.best-sellers__product-name {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.best-sellers__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0;
}

.best-sellers__price-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.best-sellers__current-price {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.best-sellers__original-price {
    color: var(--color-text-muted);
    font-size: 0.86rem;
    text-decoration: line-through;
}

.best-sellers__quick-view {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 10px;
}

.best-sellers__add-cart {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(27, 106, 92, 0.16);
}

.best-sellers__grid--skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.best-sellers__card--skeleton {
    pointer-events: none;
}

.best-sellers__media--skeleton {
    background: linear-gradient(90deg, rgba(27, 106, 92, 0.08) 0%, rgba(27, 106, 92, 0.14) 50%, rgba(27, 106, 92, 0.08) 100%);
    background-size: 200% 100%;
    animation: best-sellers-pulse 1.2s ease-in-out infinite;
}

.best-sellers__skeleton-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(27, 106, 92, 0.08) 0%, rgba(27, 106, 92, 0.14) 50%, rgba(27, 106, 92, 0.08) 100%);
    background-size: 200% 100%;
    animation: best-sellers-pulse 1.2s ease-in-out infinite;
}

.best-sellers__skeleton-line--title {
    width: 70%;
    height: 14px;
}

.best-sellers__skeleton-line--price {
    width: 45%;
    height: 12px;
}

.best-sellers__skeleton-line--button {
    width: 100%;
    height: 42px;
    border-radius: 999px;
}

@keyframes best-sellers-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (min-width: 768px) {
    .best-sellers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .best-sellers__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
