.featured-product__media-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.featured-product__media-layer * {
  pointer-events: auto;
}.featured-product__media-layer  svg.icon path { 
    fill: #666;
}
@media(max-width:768px){
    .product-label-items {
        display: none;
    }
    .template__index .product-detail__info.product-detail__col>* {
        margin: 5px 0;
    }
    .product-detail-wrapper .media-gallery__content{
        /*  */
    }
    .template__index .product-detail-wrapper .media-gallery__arrows .media-gallery__arrow{
        position: absolute;
            z-index: 2;
            transform: translateY(-50%);
            top: 50%;
    }
    .template__index .product-detail-wrapper .media-gallery__arrows button.media-gallery__arrow[name="previous"] {
        left: 0;
    }
    .template__index .product-detail-wrapper .media-gallery__arrows button.media-gallery__arrow[name="next"] {
        right: 0;
    }
    .template__index .product-detail-wrapper .media-gallery__arrows .media-gallery__status {
        position: absolute;
        bottom: 24px;
        left: 24px;
        background: rgba(255, 255, 255, 0.5);
        font-size: 14px;
        padding: 3px 9px;
        border-radius: 15px;
    }
    .template__index .product-detail-wrapper .media-gallery__arrow .icon {
        width: 20px;
        height: 20px;
    }
}
@media(min-width:768px){
    /* .product-detail__media-gallery .media-gallery__thumbnails{
        position: unset;
    } */
    .product-detail__media-gallery[data-desktop-layout="thumbnail-carousel"] .media-gallery__arrows .media-gallery__status{
        display: none;
    }
    .product-detail__media-gallery[data-desktop-layout="thumbnail-carousel"] .media-gallery__arrows{
                display: block;
    }
    .product-detail__media-gallery .media-gallery__content{
        position: relative;
    }
    .template__index .product-detail-wrapper .media-gallery__arrows .media-gallery__arrow {
        position: absolute;
        z-index: 2;
        transform: translateY(-50%);
        top: 50%;
    }

    .template__index .product-detail-wrapper .media-gallery__arrows button.media-gallery__arrow[name="previous"] {
        left: 0;
    }

    .template__index .product-detail-wrapper .media-gallery__arrows button.media-gallery__arrow[name="next"] {
        right: 0;
    }

    .template__index .product-detail-wrapper .media-gallery__arrows .media-gallery__status {
        position: absolute;
        bottom: 24px;
        left: 24px;
        background: rgba(255, 255, 255, 0.5);
        font-size: 14px;
        padding: 3px 9px;
        border-radius: 15px;
    }

    .template__index .product-detail-wrapper .media-gallery__arrow .icon {
        width: 20px;
        height: 20px;
    }
    .featured-product__media theme-product-media-gallery{
        position: sticky;
        top: 0;
        left: 0;
    }
}

/* ===== 图集按效果图调整（仅作用于 featured-product） ===== */
/* 放大镜：桌面也显示，做成圆形白底按钮 */
.featured-product__media .media-gallery__preview-icon{
 
        z-index: 2;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
        font-size: 20px;
        color: rgba(0, 0, 0, .6);
}
/* 缩略图左右箭头：圆形描边按钮 */
.featured-product__media .media-gallery__thumbnail-arrows button[name="previous"],
.featured-product__media .media-gallery__thumbnail-arrows button[name="next"]{
    width: 48px;
    height: 100%;
    border-radius: 26px;
    border: 1px solid #e0e0e0;
    background: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-product__media  .product-detail__media-gallery .media-gallery__thumbnail-arrows button[name="previous"] {
    inset-inline-start: 25px;
}.featured-product__media .product-detail__media-gallery .media-gallery__thumbnail-arrows button[name="next"] {
    inset-inline-start: calc(100% - 24px);
}
.featured-product__media  .product-detail__media-gallery .media-gallery__thumbnails{
    padding: 0 64px;}
/* 用指定 next-page SVG 替换缩略图箭头图标 */
.featured-product__media .media-gallery__thumbnail-arrows button .icon{
    display: none;
}
.featured-product__media .media-gallery__thumbnail-arrows button::after{
    content: "";
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.2998 9.87988L12.7041 15.4775L11.9365 14.709L15.3379 11.3057C15.571 10.9912 15.4181 10.5338 15.0322 10.4307H2.14258V9.3457H15.0537C15.4367 9.22742 15.578 8.75295 15.3135 8.44434L15.2217 8.33691L11.9365 5.05273L12.7041 4.28516L18.2998 9.87988Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.featured-product__media .media-gallery__thumbnail-arrows button[name="previous"]::after{
    transform: scaleX(-1);
}
/* 圆角：主图 + 缩略图 */
.featured-product__media .media-gallery__content,
.featured-product__media .media-gallery__item{
    border-radius: 14px;
    overflow: hidden;
}
.featured-product__media .media-gallery__thumbnail{
    border-radius: 8px;
    overflow: hidden;
}
/* 缩略图图片本身也加圆角，不只依赖 button 的 overflow 裁剪 */
.featured-product__media .media-gallery__thumbnail-image{
    border-radius: 8px;
}
/* 选中/悬停的描边圈也跟着圆角，避免选中时露出方角 */
.featured-product__media .media-gallery__thumbnail::after{
    border-radius: 8px;
}