/* 商品詳情頁-start */
.product-detail-breadcrumb-section {
    padding: 24px 0 0;
    font-size: 14px;

    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .breadcrumb__link {
        display: inline-flex;
        align-items: center;
        color: var(--yellow-color);

        svg {
           width: 18px;
           height: 18px;
        }

        &.category {
            position: relative;

            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 1px;
                background: var(--yellow-color);
                transition: width 0.2s ease;
            }
        }

        &:hover {
            color: var(--yellow-color);

            &.home {
                svg {
                    path {
                        fill: var(--yellow-color);
                    }
                }
            }

            &.category {
                &::after {
                    width: 100%;
                }
            }
        }
    }

    .breadcrumb__separator {
        color: #18181869;
    }
}

.product-detail-section {
    padding-top: 24px;
    padding-bottom: 90px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 720px minmax(0, 1fr);
    gap: 90px;
    align-items: start;
}

/* 商品圖庫-start */
.product-detail-gallery {
    min-width: 0;
}

.product-detail-gallery__main {
    position: relative;
    background: #f8f9fb;
    border-radius: 16px;
    overflow: hidden;

    &:hover {
        .product-detail-gallery__nav {
            opacity: 1;
        }
    }
}

.product-detail-main-swiper {
    width: 100%;
}

.product-detail-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #f8f9fb;
}

.product-detail-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-top: -22px;
    border: none;
    border-radius: 50%;
    background: var(--main-color);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    overflow: hidden;

    &:before {
        content: "";
        position: absolute;
        width: 0;
        inset-block: -1px;
        inset-inline-start: -1px;
        z-index: -1;
        transition: width .3s;
        border-radius: 50%;
        background-color: var(--yellow-color);
    }

    &:hover:before {
        width: calc(100% + 2px);
    }
}

.product-detail-gallery__nav svg {
    width: 18px;
    height: 18px;
}

.product-detail-gallery__nav:hover {
    opacity: 0.88;
}

.product-detail-gallery__nav--prev {
    left: 16px;
}

.product-detail-gallery__nav--next {
    right: 16px;
}

.product-detail-gallery__thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.product-detail-thumb-swiper {
    flex: 1;
    min-width: 0;
}

.product-detail-thumb-swiper .swiper-slide {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f3f4f6;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.product-detail-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-thumb-swiper .swiper-slide-thumb-active {
    border-color: var(--black-color);
}

.product-detail-gallery__thumb-nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-detail-gallery__thumb-nav svg {
    width: 16px;
    height: 16px;
}

.product-detail-gallery__thumb-nav:hover {
    color: var(--black-color);
}

.product-detail-gallery__thumb-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* 商品圖庫-end */

/* 商品資訊-start */
.product-detail-info {
    min-width: 0;
    padding-top: 8px;
}

.product-detail__title {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--main-color);
}

.product-detail__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-detail__rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.product-detail__rating-stars svg {
    width: 14px;
    height: 14px;
    color: var(--yellow-color);
}

.product-detail__rating-score,
.product-detail__rating-count {
    font-size: 14px;
    line-height: 1;
    color: var(--black-color);
}

.product-detail__rating-sep {
    width: 1px;
    height: 14px;
    background: #d1d5db;
    flex-shrink: 0;
}

.product-detail__intro {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(24, 24, 24, 0.72);
}

.product-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(24, 24, 24, 0.08);
}

.product-detail__sku {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(24, 24, 24, 0.55);

    span {
        color: var(--black-color);
        font-weight: 500;
    }
}

.product-detail__categories {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 0;

    .product-detail__categories-label {
        flex-shrink: 0;
        font-size: 14px;
        line-height: 28px;
        color: rgba(24, 24, 24, 0.55);
    }

    .product-detail__category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .product-detail__category-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        background: #ffffff;
        font-size: 14px;
        line-height: 1;
        color: var(--yellow-color);
        text-decoration: none;
        transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;

        &::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: -1px;
            width: 0;
            height: 1px;
            background: var(--yellow-color);
            transition: width 0.2s ease;
        }

        &:hover {
            &::after {
                width: 100%;
            }
        }
    }
}

.product-detail__price-row {
    margin: 0 0 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-detail__price {
    font-size: 24px;
    font-weight: 400;
    color: var(--black-color);
}

.product-detail__price-old {
    font-size: 16px;
    color: #18181889;
    position: relative;
}

.product-detail__price-old::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: rotate(-15deg);
    border-bottom: 1px solid #ef4444;
}

.product-detail__option {
    margin-bottom: 24px;
}

.product-detail__option-label {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 400;
    color: var(--black-color);
}

.product-detail__option-label span {
    font-weight: 500;
}

.product-detail__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product-detail__swatch {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--swatch-color, #cccccc);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.product-detail__swatch.is-active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--black-color);
}

.product-detail__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-detail__pill {
    min-height: 30px;
    padding: 0 18px;
    border: none;
    background: #f3f4f6;
    color: var(--black-color);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;

    &:hover {
        background: rgba(248, 188, 36, 0.2);
    }
}

.product-detail__pill.is-active {
    background: var(--yellow-color);
    color: #ffffff;
}

.product-detail__purchase {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.product-detail__purchase-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-detail__qty {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 58px;
    padding: 0 6px;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    background: #ffffff;
}

.product-detail__qty-btn {
    width: 42px;
    height: 58px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.product-detail__qty-btn img {
    width: 18px;
    height: 18px;
}

.product-detail__qty-btn:hover {
    opacity: 0.65;
}

.product-detail__qty-input {
    width: 28px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--black-color);
    outline: none;
    background: transparent;
    pointer-events: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-detail__qty-input::-webkit-outer-spin-button,
.product-detail__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail__purchase-top .product-detail__btn--primary {
    flex: 1;
    min-width: 0;
}

.product-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 24px;
    transition: opacity 0.2s ease;
}

.product-detail__btn--primary {
    max-width: 280px;
    background: var(--yellow-color);
    color: #ffffff;

    &::before {
        background-color: var(--main-color);
    }
}

.product-detail__btn--dark {
    width: 100%;
    max-width: 418px;
    background: var(--main-color);
    color: #ffffff;
}

.product-detail__btn:hover {
    opacity: 0.9;
}

/* 商品資訊-end */

/* 描述與評價 Tab-start */
.product-detail-tabs-section {
    padding: 72px 0 88px;
    border-top: 1px solid rgba(24, 24, 24, 0.06);
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 28%);
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        /* background-image: url(/static/image/block-bg.png); */
        background-size: 4096px 100%;
        background-repeat: repeat-x;
        background-image: url(/static/image/about-bg-1.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        opacity: 0.5;
        /* animation: scrollBackground 50s linear infinite; */
    }

    /* &::after {
        content: '';
        background-color: rgba(255, 255, 255, 0.4);
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        backdrop-filter: blur(20px);
    } */

    .my-container {
        max-width: 1120px;
        padding-bottom: 24px;
    }
}

@keyframes scrollBackground {
    from {
        background-position: 0 0;
    }
    to {
        /* 这里必须对应上面的 background-size 的宽度 */
        background-position: 4096px 0; 
    }
}

.product-detail-tabs__nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 48px;
    padding: 6px;
    border: 1px solid rgba(24, 24, 24, 0.08);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(24, 24, 24, 0.04);
    width: fit-content;
    max-width: 100%;
}

.product-detail-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail-tabs__slider {
    position: absolute;
    top: 6px;
    left: 0;
    z-index: 0;
    height: calc(100% - 12px);
    border-radius: 999px;
    background: var(--main-color);
    box-shadow: 0 8px 18px rgba(30, 140, 230, 0.25);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    will-change: transform, width;
}

.product-detail-tabs__btn {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(24, 24, 24, 0.55);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    &:hover {
        color: var(--black-color);
    }

    &.is-active {
        color: #ffffff;
        background: transparent;
        box-shadow: none;
    }

    &.is-active::after {
        display: none;
    }
}

.product-detail-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(24, 24, 24, 0.08);
    color: inherit;
    font-size: 12px;
    font-weight: 600;

    .product-detail-tabs__btn.is-active & {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }
}

.product-detail-tabs__panel {
    display: none;
    width: 100%;
    padding: 30px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(24, 24, 24, 0.04);
}

.product-detail-tabs__panel.is-active {
    display: block;
}

.product-detail-tabs__content {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(24, 24, 24, 0.72);
}

/* 產品規格-start */
.product-detail-specs {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 0 16px;
}

.product-detail-specs__title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: var(--main-color);
    text-align: center;
}

.product-detail-specs__lead {
    margin: 0 auto 36px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(24, 24, 24, 0.62);
    text-align: center;
}

.product-detail-specs__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-detail-specs__item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(24, 24, 24, 0.08);

    &:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    &:first-child {
        padding-top: 0;
    }
}

.product-detail-specs__label {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.06em;
    color: var(--main-color);
}

.product-detail-specs__value {
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: #465059;
}

/* 產品規格-end */

/* 產品描述-start */
.product-detail-desc-layout {
    display: flex;
    flex-direction: column;
    gap: 56px;
    align-items: start;
    padding: 8px 0;

    .product-detail-desc-layout__media {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .big-img-wrapper {
        width: 100%;
        max-height: 380px;
        object-position: center;
        aspect-ratio: 1;
        border-radius: 16px;
        object-fit: cover;
        display: block;
        overflow: hidden;

        .big-img {
            width: 100%;
            max-height: 380px;
            object-position: center;
            aspect-ratio: 1;
            border-radius: 16px;
            object-fit: cover;
            display: block;
            margin: 0 auto;
            transition: all 2s ease;
        }

        &:hover {
            .big-img {
                transform: scale(1.04);
            }
        }
    }

    

    .product-detail-desc-layout__img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 16px;
        object-fit: cover;
        display: block;
        transition: all 0.5s ease;
    }

    .product-detail-desc-layout__img:hover {
        box-shadow: 0 18px 48px rgba(24, 24, 24, 0.08);
        transform: translateY(-12px);
    }

    .product-detail-desc-layout__content {
        width: 100%;
        font-size: 16px;
        line-height: 1.8;
        color: rgba(24, 24, 24, 0.72);
        padding-top: 8px;
    }

    .product-detail-desc-layout__eyebrow {
        margin: 0 0 10px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--main-color);
    }

    .product-detail-desc-layout__title {
        margin: 0 0 16px;
        font-size: 24px;
        font-weight: 500;
        line-height: 1.3;
        color: var(--black-color);
        letter-spacing: -0.02em;
    }

    .product-detail-desc-layout__lead {
        margin: 0 0 16px;
        font-size: 17px;
        line-height: 1.75;
        color: rgba(24, 24, 24, 0.82);
    }

    .product-detail-desc-layout__content p {
        margin: 0 0 18px;
    }

    .product-detail-desc-layout__heading {
        margin: 28px 0 14px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--black-color);
    }

    .product-detail-desc-layout__list {
        padding: 0;
        list-style: none;
        display: grid;
        gap: 12px;

        li {
            position: relative;
            padding-left: 18px;
            font-size: 15px;
            line-height: 1.5;
            color: rgba(24, 24, 24, 0.8);

            &::before {
                content: "-";
                position: absolute;
                left: 0;
                top: 32%;
                width: 18px;
                height: 18px;
                transform: translateY(-50%);
            }
        }
    }

    .product-detail-desc-layout__badges {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        padding-top: 4px;
    }

    .product-detail-desc-layout__badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 18px 12px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid rgba(24, 24, 24, 0.08);
        text-align: center;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

        &:hover {
            border-color: rgba(30, 140, 230, 0.28);
            box-shadow: 0 10px 24px rgba(30, 140, 230, 0.08);
            transform: translateY(-2px);
        }
    }

    .product-detail-desc-layout__badge-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(30, 140, 230, 0.08);
        color: var(--main-color);

        svg {
            width: 22px;
            height: 22px;
        }
    }

    .product-detail-desc-layout__badge-text {
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        color: rgba(24, 24, 24, 0.78);
    }
}

/* 產品描述-end */

/* 產品評價-start */
.product-detail-reviews {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.product-detail-reviews__overview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 28px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(24, 24, 24, 0.08);
    box-shadow: 0 12px 32px rgba(24, 24, 24, 0.04);
}

.product-detail-reviews__score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.product-detail-reviews__score {
    margin: 0;
    font-size: 48px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--yellow-color);
}

.product-detail-reviews__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f5a623;

    svg {
        width: 16px;
        height: 16px;
    }
}

.product-detail-reviews__count {
    margin: 0;
    font-size: 13px;
    color: rgba(24, 24, 24, 0.68);
}

.product-detail-reviews__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--black-color);
}

.product-detail-reviews__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(24, 24, 24, 0.62);
}

.product-detail-reviews__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.product-detail-reviews__action {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: var(--black-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;

    svg {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    &:hover {
        border-color: rgba(30, 140, 230, 0.35);
        color: var(--main-color);
        box-shadow: 0 6px 16px rgba(30, 140, 230, 0.08);
    }
}

.product-detail-reviews__action--filter.is-active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #ffffff;
}

.product-detail-reviews__sort-wrap {
    position: relative;
}

.product-detail-reviews__sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 160px;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(24, 24, 24, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(24, 24, 24, 0.12);
    overflow: hidden;
}

.product-detail-reviews__sort-menu[hidden] {
    display: none !important;
}

.product-detail-reviews__sort-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--black-color);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;

    &:hover {
        background: rgba(30, 140, 230, 0.08);
        color: var(--main-color);
    }

    &.is-active {
        background: linear-gradient(to right, var(--main-color), rgba(30, 140, 230, 0.6));
        color: #ffffff;
        position: relative;

        &::after {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 24px solid transparent;
            border-bottom: 24px solid transparent;
            border-right: 36px solid rgba(255, 255, 255, 0.1);
        }

        &:hover {
            background: var(--main-color);
            color: #ffffff;
        }
    }
}

.product-detail-reviews__filters {
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 16px;
    /* background: rgba(30, 140, 230, 0.04); */
    border: 1px solid rgba(30, 140, 230, 0.1);

    &:hover {
        border-color: rgba(30, 140, 230, 0.1);
        box-shadow: 0 6px 24px rgba(30, 140, 230, 0.08);
    }
}

.product-detail-reviews__filters[hidden] {
    display: none !important;
}

.product-detail-reviews__filters-label {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(24, 24, 24, 0.7);
}

.product-detail-reviews__rating-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-detail-reviews__rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(30, 140, 230, 0.3);
    background-color: var(--main-color);
    border-radius: 999px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;

    svg {
        width: 18px;
        height: 18px;
        color: var(--yellow-color);
    }

    &:hover {
        opacity: 0.8;
    }

    &.is-active {
        background: rgba(30, 140, 230, 0.7);
        border-color: rgba(30, 140, 230, 0.7);
    }
}

.product-detail-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-detail-review {
    padding: 22px 24px;
    border: 1px solid rgba(30, 140, 230, 0.1);
    border-radius: 18px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    &:hover {
        border-color: rgba(30, 140, 230, 0.2);
        box-shadow: 0 10px 28px rgba(24, 24, 24, 0.05);
    }

    &.is-hidden {
        display: none;
    }
}

.product-detail-review__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.product-detail-review__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f5a623;
    flex-shrink: 0;

    svg {
        width: 22px;
        height: 22px;
    }
}

.product-detail-review__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-detail-review__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 140, 230, 0.16) 3%, rgba(30, 140, 230, 0.8) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }
}

.product-detail-review__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.product-detail-review__author {
    font-size: 15px;
    font-weight: 600;
    color: var(--black-color);
}

.product-detail-review__date {
    font-size: 13px;
    color: rgba(24, 24, 24, 0.5);
}

.product-detail-review__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(24, 24, 24, 0.78);
}

.product-detail-review__no-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
    padding: 48px 32px;
    border-radius: 18px;
    border: 1px dashed rgba(24, 24, 24, 0.14);
    background: #fafbfc;
}

.product-detail-review__no-reviews-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--black-color);
}

.product-detail-review__no-reviews-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(24, 24, 24, 0.55);
}

/* 產品評價-end */
/* 描述與評價 Tab-end */

/* 推薦商品-start */
.product-detail-related-section {
    padding: 100px 0;
    border-top: 1px solid #eef2f7;

    strong {
        font-weight: 500;
    }

    .product-detail-related__title {
        text-align: center;
        padding-bottom: 36px;
        margin-bottom: 36px;
    }
}

.product-detail-related {
    position: relative;
}

.product-detail-related-swiper {
    overflow: hidden;

    .swiper-wrapper {
        align-items: stretch;
    }

    .swiper-slide {
        height: auto;
        display: flex;
        box-sizing: border-box;
    }

    .product-card {
        width: 100%;
        height: 100%;
    }

    .product-card__name {
        min-height: calc(17px * 1.45 * 2);
    }

    .product-card__price {
        min-height: calc(18px * 1.2 + 4px + 13px * 1.2);
    }
}

.product-detail-related-prev,
.product-detail-related-next {
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: var(--black-color);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    overflow: hidden;

    &:before {
        content: "";
        position: absolute;
        width: 0;
        inset-block: -1px;
        inset-inline-start: -1px;
        z-index: -1;
        transition: width .3s;
        border-radius: 50%;
        background-color: var(--yellow-color);
    }

    &:hover {
        color: #ffffff;

        &:before {
            width: calc(100% + 2px);
        }
    }
}

.product-detail-related-prev svg,
.product-detail-related-next svg {
    width: 18px;
    height: 18px;
}

.product-detail-related-prev:hover,
.product-detail-related-next:hover {
    opacity: 0.88;
}

.product-detail-related-prev {
    left: -8px;
}

.product-detail-related-next {
    right: -8px;
}

.product-detail-related-prev.swiper-button-disabled,
.product-detail-related-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* 推薦商品-end */
/* 商品詳情頁-end */