/* Subscription carousel presentation, scoped to the reusable campaign block. */
.hero-trending-now {
    padding-top: 48px;
}

.hero-trending-now__container {
    box-sizing: border-box;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-trending-now__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-trending-now__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 30px;
    font-weight: 800;
    color: #111827;
}

.hero-trending-now__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    color: #4b5563;
}

.hero-trending-now__controls {
    display: flex;
    gap: 12px;
}

.hero-trending-now__arrow {
    display: flex;
    flex: 0 0 40px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
    color: #474747;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}

.hero-trending-now__arrow svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.hero-trending-now__arrow:not(:disabled):hover {
    color: #4c935a;
    border-color: #4c935a;
}

.hero-trending-now__arrow:disabled {
    opacity: 0.2;
    cursor: default;
}

.hero-trending-now__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.hero-trending-now__track::-webkit-scrollbar {
    display: none;
}

.hero-trending-now__item {
    display: flex;
    flex: 0 0 260px;
    min-width: 0;
    scroll-snap-align: start;
}

/* Keep homepage card padding, typography, pack selectors and pricing intact. */
.hero-trending-now__item > .product-card {
    width: 100%;
}

.hero-trending-now__track img,
.hero-trending-now__track a {
    -webkit-user-drag: none;
}

.hero-trending-now__track.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
}

.hero-trending-now__track.is-dragging * {
    cursor: grabbing;
    user-select: none;
    pointer-events: none;
}

.hero-trending-now__progress {
    position: relative;
    height: 4px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 4px;
    background: #e1e1e1;
}

.hero-trending-now__progress > span {
    position: absolute;
    top: 0;
    height: 4px;
    border-radius: 4px;
    background: #4c935a;
    transition: left 150ms ease, width 150ms ease;
}

.hero-trending-now__footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.hero-trending-now__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 24px;
    border: 1px solid #8a8a8a;
    background: #fff;
    color: #4c935a;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
}

.hero-trending-now__button:hover {
    border-color: #4c935a;
    background: #f5faf6;
    color: #4c935a;
    text-decoration: none;
}

.hero-trending-now__button:focus-visible {
    outline: 2px solid #4c935a;
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .hero-trending-now__controls {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .hero-trending-now__item {
        flex-basis: calc((100% - 48px) / 4);
    }
}

@media (max-width: 767px) {
    .hero-trending-now__title {
        font-size: 22px;
        line-height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-trending-now__arrow,
    .hero-trending-now__progress > span {
        transition: none;
    }
}

/* Continuous mode leaves adjacent cards visible around the centered selection. */
.hero-trending-now__track.is-continuous {
    padding-inline: 90px;
    scroll-padding-inline: 90px;
}

.hero-trending-now__track.is-continuous .hero-trending-now__item {
    scroll-snap-align: center;
}

.hero-trending-now__brand-heading { display: flex; align-items: center; gap: 20px; }
.hero-trending-now__brand-logo { width: 96px; height: 48px; object-fit: contain; }
@media (max-width: 767px) {
    .hero-trending-now__brand-heading { flex-wrap: wrap; gap: 12px; }
}
