/* ========== Product Carousel ========== */
.product-carousel {
    background-color: var(--pc-bg, #F9C97A);
    color: var(--pc-text, #1A1A1A);
    padding-top: var(--section-padding-top, 60px);
    padding-bottom: var(--section-padding-bottom, 60px);

  padding-left: 0;
  padding-right: 0;
}


.product-carousel  .container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.product-carousel__inner {
    display: flex;
    gap: 48px;
    align-items: stretch;
}

/* ========== Left Text Area ========== */
.product-carousel__text {
    width: 30%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8px;
}

.product-carousel__label {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 10px;
}

.product-carousel__heading {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.product-carousel__desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
    max-width: 220px;
}

/* ========== Right Slider Area ========== */
.product-carousel__right {
    width: 70%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 80px;
}

.product-carousel__viewport {
    flex: 1;
}

.product-carousel__track {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.product-carousel__track >div{
      flex: 0 0 calc((100% - 60px) / 3);
}

/* ========== Card ========== */
.product-carousel__card {
    position: relative;
    height: 220px;
    width: 220px;

  
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease,
    box-shadow 0.4s ease;
}

.product-carousel__card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-carousel__card-img {
    position: absolute;
    width: 100%;
    height: 180px;
    top: -20%;
    overflow: hidden;
    background: transparent;
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-carousel__card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.product-carousel__card:hover .product-carousel__card-img img {
    transform: scale(1.05);
}

/* 中间激活卡片突出显示 */
.product-carousel__card.is-active {
    transform: translateY(-8px) scale(1.1);
    z-index: 2;
}

.product-carousel__card.is-active .product-carousel__card-img {
    height: 200px;
    top: -30%;
}

.product-carousel__card-body {
    padding: 16px 12px;
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.product-carousel__card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ========== Footer: Progress + Arrows ========== */
.product-carousel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    flex-direction: column;
    width: 100%;
}

.product-carousel__progress {

    height: 2px;
    background: #000000;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    width: 100%;
    margin-bottom: 10px
}

.product-carousel__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width;
}

.product-carousel__arrows {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.product-carousel__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: #FFFFFF;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0;
}



.product-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.product-carousel__arrow--next {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
}

/* ========== Mobile ========== */
@media screen and (max-width: 767px) {

    .product-carousel {
        border-radius: 0;
        padding: 25px 10px;
    }

    .product-carousel .container {

        padding: 0px;
    }

    .product-carousel__inner {
        flex-direction: column;
        gap: 28px;
    }

    .product-carousel__track {
        gap: 15px;
    }

    .product-carousel__text {
        width: 100%;
        padding-top: 0;
    }

    .product-carousel__label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-carousel__heading {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .product-carousel__desc {
        font-size: 14px;
        max-width: 100%;
        line-height: 1.5;
    }

    .product-carousel__card {
        flex: 0 0 calc(66% - 8px);
    }

    .product-carousel__card-img {

        transition: none;
    }

    .product-carousel__card.is-active .product-carousel__card-img {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .product-carousel__card.is-active {
        transform: none;
        box-shadow: none;
    }

    .product-carousel__card-body {
        padding: 14px 10px;
    }

    .product-carousel__card-title {
        font-size: 15px;
    }

    .product-carousel__footer {
        margin-top: 20px;
    }

    .product-carousel__progress {
        width: 100%;
    }

    .product-carousel__arrows {
        margin-left: auto;
    }

    .product-carousel__right {
        width: 100%;
    }
}