/* 신상품 배너 캐러셀 — 2:1 고정, 메인·상품 목록 전용 */
.new-product-banner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--max-width);
    margin: 18px auto 10px;
    padding: 0 12px;
}

.new-product-banner__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #1c1c1c;
}

.new-product-banner__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: banner-crossfade var(--banner-span, 10s) infinite;
}

.new-product-banner[data-banner-count="1"] .new-product-banner__slide,
.new-product-banner.is-scripted .new-product-banner__slide {
    animation: none;
}

.new-product-banner[data-banner-count="1"] .new-product-banner__slide {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.new-product-banner.is-scripted .new-product-banner__slide {
    transition: opacity 0.7s ease;
}

.new-product-banner.is-scripted .new-product-banner__slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

@keyframes banner-crossfade {
    0% { opacity: 1; z-index: 1; pointer-events: auto; }
    42% { opacity: 1; z-index: 1; pointer-events: auto; }
    50% { opacity: 0; z-index: 0; pointer-events: none; }
    100% { opacity: 0; z-index: 0; pointer-events: none; }
}

.new-product-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-product-banner__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.new-product-banner__dot {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.new-product-banner__dot::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.new-product-banner__dot.is-active::after {
    width: 18px;
    margin-left: 5px;
    background: #ffffff;
}

@media (max-width: 768px) {
    .new-product-banner {
        margin: 12px auto 8px;
        padding: 0 10px;
    }

    .new-product-banner__viewport {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .new-product-banner__slide {
        transition: none;
    }
}
