/* 产品图片画廊样式 */

/* 图片切换相关样式 */
.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.thumbnail-image.selected {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.thumbnail-image:hover {
    border-color: #10b981;
    transform: scale(1.05);
}

#thumbnail-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#thumbnail-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 主图片容器样式 */
#main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f9fafb;
}

#main-product-image {
    transition: opacity 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

/* 导航按钮样式 */
#prev-btn, #next-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 0;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}



#prev-btn svg, #next-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    display: block;
    margin: auto;
}

/* 图片计数器样式 */
#image-counter {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .thumbnail-image {
        width: 60px;
        height: 60px;
    }
    
    #prev-btn, #next-btn {
        width: 32px;
        height: 32px;
    }
    
    #prev-btn svg, #next-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* 桌面端更协调的尺寸 */
@media (min-width: 1024px) {
    #prev-btn, #next-btn {
        width: 56px;
        height: 56px;
    }
    #prev-btn svg, #next-btn svg {
        width: 24px;
        height: 24px;
    }
}
