/* ==================== 產品滑動卡片區塊 ==================== */
.card-slider {
    width: 100vw;
    height: 100vh;
    background: #2a9fd4;  
    position: relative;
    padding-bottom: 100px;
}

/* 產品區塊底部波浪 */
.product-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.product-wave-bottom svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* 左右箭頭導航 */
.nav .prev,
.nav .next {
    position: absolute;
    height: 2rem;
    width: 2rem;
    stroke: #fff;
    cursor: pointer;
    z-index: 3;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.nav .next {
    top: 4rem;
    right: 4rem;
    transform: scale(2) rotate(180deg);
}

.nav .prev {
    top: 4rem;
    left: 4rem;
    transform: scale(2);
}

.nav .prev:hover,
.nav .next:hover {
    opacity: 0.7;
}

/* 卡片項目 */
.card-slider .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.card-slider .item.is-active {
    pointer-events: auto;
}

/* 產品標題 */
.card-slider .item .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: serif;
    font-size: 10vw;
    color: #FFF ;
    text-transform: uppercase;
    line-height: 1.5;
    z-index: 2;
}

.card-slider .item .title span {
    display: inline-block;
    white-space: nowrap;
}

.card-slider .item .title .letter {
    display: inline-block;
}

/* 產品卡片 */
.card {
    height:800px;
    width: 850px;
    position: relative;
}

.card img {
    width: 100%;
    object-fit: contain;
    opacity: 1;
}

.card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.2);
    transition: all 2s cubic-bezier(0.86, 0, 0.07, 1);
}

.card.is-active .card-bg {
    transform: scale(1);
}

/* ==================== 響應式 ==================== */
@media (max-width: 900px) {
    .card-slider .item .title {
        font-size: 16vw;
    }

    .card {
        height: 600px;
        width: 300px;
    }

    .nav .prev {
        top: 2rem;
        left: 2rem;
    }

    .nav .next {
        top: 2rem;
        right: 2rem;
    }
}

@media (max-width: 480px) {
    .card {
        height: 500px;
        width: 250px;
    }

    .card-slider .item .title {
        font-size: 12vw;
    }
}