.product-features-section {
    padding: 0;
    background-color: #000;
}

.product-features {
    background-color: #000;
    padding: 0 0 120px;
}

.product-features:first-child {
    padding-top: 200px;
}

.product-features:last-child {
    padding-bottom: 70px;
}

.product-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 120px;
    margin-bottom: 80px;
}

.product-features__intro {
    display: flex;
    gap: 105px;
    align-items: center;
}

.product-features__box {
    flex-shrink: 0;
}

.product-features__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding-left: 65px;
    border-left: 12px solid transparent;
    position: relative;
}

.product-features__content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 12px;
    height: 0;
    background-color: var(--brand-color, #FFD700);
    transition: height 1s ease-out;
}

.product-features__content.animate::before {
    height: 100%;
}

.product-features__title {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 39px;
    color: #fff;
    margin: 0;
}

.product-features__title--mobile {
    display: none;
}

.product-features__description {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 33px;
    color: #fff;
    margin: 0;
}


/* Reverse layout for even items */
.product-features--reverse .product-features__intro {
    flex-direction: row-reverse;
}

.product-features__carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.features-carousel__track {
    display: flex;
    gap: 30px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: calc(max((100vw - 1440px) / 2, 0px) + 120px);
}

.features-carousel__item {
    flex: 0 0 585px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.features-carousel__item.active {
    opacity: 1;
}

.features-carousel__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.features-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: featureImageZoom 6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    transform-origin: center center;
}

@keyframes featureImageZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.features-carousel__item-title {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 27px;
    color: #fff;
    margin: 0;
}

.features-carousel__item-text {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 24px;
    color: #fff;
    margin: 0;
}

.product-features__nav {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin: 0 auto;
    max-width: 1200px;
}

.features-nav__btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    padding: 0;
}

.features-nav__btn--prev {
    transform: rotate(180deg);
}

.features-nav__btn:hover {
    color: var(--brand-color, #FFD700);
}

.features-nav__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.features-nav__btn svg {
    width: 45px;
    height: auto;
}

@media (max-width: 1025px) and (min-width: 768px) {
    .product-features {
        padding: 0 0 100px;
        position: relative;
    }

    .product-features:first-child {
        padding-top: 150px;
    }

    .product-features:last-child {
        padding-bottom: 100px;
    }

    .product-features__container {
        padding: 0 30px;
        margin-bottom: 60px;
    }

    .product-features__intro {
        gap: 50px;
    }

    .product-features__content {
        gap: 20px;
        padding-left: 40px;
    }

    .product-features__content::before {
        width: 7px;
    }

    .product-features__title {
        font-size: 18px;
        font-weight: 700;
        line-height: 32px;
    }

    .product-features__description {
        font-size: 14px;
        font-weight: 500;
        line-height: 28px;
        word-break: break-all;
        text-wrap: wrap;
        text-wrap-style: auto;
    }

    .features-carousel__item-title {
        word-break: break-all;
        text-wrap: wrap;
        text-wrap-style: auto;
    }

    .features-carousel__item-text {
        word-break: break-all;
        text-wrap: wrap;
        text-wrap-style: auto;
    }

    .features-carousel__track {
        padding-left: 30px;
    }

    .features-carousel__item {
        flex: 0 0 530px;
    }

    .features-nav__btn {
        color: var(--brand-color, #FFD700);
    }

    .features-nav__btn:hover {
        color: var(--brand-color, #FFD700);
    }

    .features-nav__btn:disabled {
        color: #FFFFFF;
    }

    .features-nav__btn svg {
        width: 38px;
    }

    .product-features__nav {
        position: absolute;
        bottom: 110px;
        right: 30px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    /* 5a: Reduce spacing between feature sections */
    .product-features {
        padding: 0 0 70px;
    }

    /* 4a: Expand top padding */
    .product-features:first-child {
        padding-top: 150px;
    }

    .product-features__container {
        padding: 0 1rem;
        margin-bottom: 50px;
    }

    /* 4e: Reduce gap between title and description */
    .product-features__intro {
        flex-direction: column !important;
        gap: 20px;
        align-items: flex-start;
    }

    /* Mobile: Brand box + title on same row */
    .product-features__intro > .product-features__box,
    .product-features__intro > .product-features__title--mobile {
        display: inline-flex;
    }

    .product-features__intro {
        flex-wrap: wrap;
    }

    .product-features__intro > .product-features__box {
        flex: 0 0 auto;
        gap: 20px;
        display: flex;
        align-items: center;
    }

    .product-features__intro > .product-features__title--mobile {
        flex: 1;
        align-items: center;
        font-size: 16px;
        margin-left: 20px;
    }

    /* Hide desktop title on mobile */
    .product-features__title--desktop {
        display: none;
    }

    /* 4c: Match brand page mobile title */
    .product-features__title--mobile {
        text-align: left;
        display: block;
        font-size: 15px;
        font-weight: 600;
        line-height: 27px;
        flex: 1;
        word-break: break-all;
        text-wrap: wrap;
    }

    .features-carousel__image {
        aspect-ratio: 16 / 9;
    }

    /* Description below with border */
    /* 4b: Match border-left width to PRODUCTS strip (9px) */
    .product-features__content {
        width: 100%;
        padding-left: 20px;
        border-left-width: 9px;
        gap: 0;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
    }

    .product-features__content::before {
        left: -9px;
        width: 9px;
    }

    /* 4c: Match brand page mobile description */
    .product-features__description {
        font-size: 13px;
        font-weight: 450;
        line-height: 24px;
        overflow: visible;
        display: block;
        max-height: none;
        word-break: break-all;
        text-wrap: wrap;
    }

    .features-carousel__track {
        padding: 0 1rem;
    }

    .features-carousel__item {
        flex: 0 0 calc(100vw - 2rem);
        gap: 20px;
    }

    .features-carousel__item-title {
        text-align: left !important;
        font-size: 15px;
        word-break: break-all;
        text-wrap: wrap;
    }

    .features-carousel__item-text {
        text-align: left !important;
        font-size: 12px;
        word-break: break-all;
        text-wrap: wrap;
    }

    .features-nav__btn {
        color: var(--brand-color, #FFD700);
    }

    .features-nav__btn:hover {
        color: var(--brand-color, #FFD700);
    }

    .features-nav__btn:disabled {
        color: #FFFFFF;
    }

    .features-nav__btn svg {
        width: 25px;
    }

    .product-features__carousel-wrapper {
        margin-bottom: 0;
    }

    .product-features__nav {
        padding: 0 20px;
        margin-top: 20px;
        margin-right: 0px;
    }
}
