.deadstar-product-carousel {
    --dpc-gap: 18px;
    --dpc-card-bg: transparent;
    margin: 2rem 0;
    position: relative;
}

.deadstar-product-carousel__header {
    background: transparent;
    min-height: 0;
    padding: 0 12px 10px;
}

.deadstar-product-carousel__header h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.deadstar-product-carousel__stage {
    position: relative;
}

.deadstar-product-carousel__nav {
    align-items: center;
    background: #bbb;
    border: 0;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    min-width: 34px;
    padding: 0;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 8;
}

.deadstar-product-carousel__prev {
    left: -12px;
}

.deadstar-product-carousel__next {
    right: -12px;
}

.deadstar-product-carousel__nav:hover,
.deadstar-product-carousel__nav:focus {
    background: #9a9a9a;
    color: #fff;
}

.deadstar-product-carousel__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.deadstar-product-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.deadstar-product-carousel__track {
    align-items: stretch;
    display: flex;
    gap: var(--dpc-gap);
    padding: 0 0 4px;
}

.deadstar-product-carousel__item {
    background: var(--dpc-card-bg);
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex: 0 0 calc((100% - (var(--dpc-gap) * (var(--dpc-desktop) - 1))) / var(--dpc-desktop));
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    position: relative;
}

.deadstar-product-carousel__image-wrap {
    background: #fff;
    overflow: hidden;
    position: relative;
}

.deadstar-product-carousel__image-link {
    display: block;
}

.deadstar-product-carousel__image-link img {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform .2s ease;
    width: 100%;
}

.deadstar-product-carousel__image-link:hover img,
.deadstar-product-carousel__image-link:focus img {
    transform: scale(1.02);
}

/* Historical WPCSP-style diagonal ribbons. */
.deadstar-product-carousel__ribbons {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.deadstar-product-carousel__ribbon {
    background: #a4c741;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    left: -42px;
    line-height: 1.2;
    padding: 5px 0;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 24px;
    transform: rotate(-45deg);
    transform-origin: center;
    width: 160px;
}

.deadstar-product-carousel__ribbon:nth-child(2) {
    top: 52px;
}

.deadstar-product-carousel__ribbon:nth-child(3) {
    top: 80px;
}

.deadstar-product-carousel__ribbon--featured {
    background: #ffc500;
}

.deadstar-product-carousel__ribbon--soldout {
    background: #dd3333;
}

.deadstar-product-carousel__body {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px 6px 14px;
    text-align: center;
}

.deadstar-product-carousel__product-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto 8px;
    min-height: 2.6em;
    text-align: center;
    width: 100%;
}

.deadstar-product-carousel__product-title a,
.deadstar-product-carousel__product-title a:hover,
.deadstar-product-carousel__product-title a:focus {
    color: #fff;
    font-weight: 700;
}

.deadstar-product-carousel__price {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 7px 0;
    text-align: center;
}

.deadstar-product-carousel__rating {
    color: #ffc500;
    margin: 0 auto 4px;
    text-align: center;
}

.deadstar-product-carousel__rating .star-rating {
    float: none;
    margin: 0 auto;
}

.deadstar-product-carousel__excerpt {
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    margin: 8px 0 12px;
    text-align: center;
}

.deadstar-product-carousel__cart.button {
    align-self: center;
    background: #fe5e00;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    text-align: center;
}

.deadstar-product-carousel__cart.button:hover,
.deadstar-product-carousel__cart.button:focus {
    background: #e54500;
    color: #000;
}

@media (max-width: 900px) {
    .deadstar-product-carousel__item {
        flex-basis: calc((100% - (var(--dpc-gap) * (var(--dpc-tablet) - 1))) / var(--dpc-tablet));
    }
}

@media (max-width: 600px) {
    .deadstar-product-carousel__item {
        flex-basis: calc((100% - (var(--dpc-gap) * (var(--dpc-mobile) - 1))) / var(--dpc-mobile));
    }

    .deadstar-product-carousel__header {
        padding-left: 8px;
        padding-right: 8px;
    }

    .deadstar-product-carousel__header h2 {
        font-size: 1.05rem;
    }

    .deadstar-product-carousel__prev {
        left: -4px;
    }

    .deadstar-product-carousel__next {
        right: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .deadstar-product-carousel__viewport {
        scroll-behavior: auto;
    }

    .deadstar-product-carousel__image-link img {
        transition: none;
    }
}
