/* 탭 높이와 간격은 기존 공통 스타일을 사용하고 선택 탭은 파란 배경과 흰 글자로 표시한다. */
.event-tab-sticky {
    background: var(--scWhite, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#eventCategory > .swiper-slide {
    border-radius: 8px;
    background: var(--scWhite, #fff);
    color: var(--scBlack, #333);
    font-weight: 500;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#eventCategory > .swiper-slide.on {
    border-color: var(--scPoint, #314ad7);
    background: var(--scPoint, #314ad7);
    color: #fff;
    font-weight: 600;
}

#eventCategory > .swiper-slide:focus-visible {
    outline: 2px solid var(--scPoint);
    outline-offset: -4px;
}

@media (hover: hover) {
    #eventCategory > .swiper-slide:not(.on):hover {
        border-color: var(--scPoint);
        color: var(--scPoint);
    }
}

#div-event-detail .event-product-loading-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#div-event-detail .event-product-skeleton-card {
    cursor: default;
    min-height: var(--event-skeleton-height, auto);
}

#div-event-detail .event-product-skeleton-image,
#div-event-detail .event-product-skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: event-product-skeleton 1.5s ease-in-out infinite;
    border-radius: 6px;
}

#div-event-detail .event-product-skeleton-image {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
}

#div-event-detail .event-product-skeleton-line {
    height: 14px;
    width: 85%;
    margin-bottom: 12px;
}

#div-event-detail .event-product-skeleton-title {
    width: 100%;
    height: 20px;
}

#div-event-detail .event-product-skeleton-price {
    width: 55%;
    height: 24px;
    margin-top: 8px;
}

/* 아직 화면에 접근하지 않은 카테고리는 자리만 유지하고 조회가 시작되면 애니메이션을 켠다. */
#div-event-detail .event-product-placeholder .event-product-skeleton-image,
#div-event-detail .event-product-placeholder .event-product-skeleton-line { animation: none; }

@keyframes event-product-skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* 기존 카드의 PC 4열·태블릿 3열·모바일 2열에 맞춰 한 행만 표시한다. */
@media (min-width: 992px) and (max-width: 1380px) {
    #div-event-detail .event-product-loading li:nth-child(n+4) { display: none; }
}

@media (max-width: 991px) {
    #div-event-detail .event-product-loading li:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #eventCategory > .swiper-slide { transition: none; }

    #div-event-detail .event-product-skeleton-image,
    #div-event-detail .event-product-skeleton-line { animation: none; }
}
