/*商品图切换*/
/* 左侧缩略图外层容器 */
.thumb-wrap {
    position: relative;
}
/* 左侧悬浮上下切换箭头，浮在图片表层，不挤压布局 */
.thumb-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}
.thumb-arrow i {
    font-size: 14px;
}
.thumb-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.05);
}
.thumb-arrow-up {
    top: 8px;
}
.thumb-arrow-down {
    bottom: 8px;
}
/* 缩略图列表：移除上下padding，首图顶部和大图平齐，隐藏滚动条 */
.thumb-list{
    max-height: 443px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px; /* 仅保留左右内边距，取消上下padding */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.thumb-list::-webkit-scrollbar {
    display: none;
}
.thumb-item{
    cursor: pointer;
    border: 2px solid transparent;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}
.thumb-item.active{
    border-color: #d62828;
}
.thumb-item img{
    width:100%;
    display:block;
}
/* 右侧大图容器+左右箭头 */
.main-img-wrap{
    position: relative;
}
.main-img-box img{
    width: 100%;
    object-fit: contain;
}
.arrow-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    border: none;
    z-index: 10;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: all 0.25s ease;
}
.arrow-btn i{
    font-size: 16px;
}
.arrow-btn:hover{
    background: rgba(0,0,0,0.75);
    transform: translateY(-50%) scale(1.05);
}
.arrow-prev{
    left:12px;
}
.arrow-next{
    right:12px;
}
/* 移动端响应式适配 */
@media (max-width:767px){
    .thumb-arrow {
        display: none !important;
    }
    .thumb-list{
        max-height: unset;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px;
        margin-bottom:15px;
        scrollbar-width: thin;
        -ms-overflow-style: auto;
    }
    .thumb-list::-webkit-scrollbar {
        display: block;
        height:4px;
    }
    .thumb-item{
        margin-right:12px;
        margin-bottom:0;
        min-width:90px;
    }
    .arrow-btn{
        width:30px;
        height:30px;
    }
    .arrow-btn i{
        font-size: 12px;
    }
}