/* ===== Product Gallery Swiper Widget ===== */

.pgs-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── 主图 ── */
.pgs-main {
    width: 100%;
    overflow: hidden;
}

.pgs-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background-color: #ffffff;
    overflow: hidden;
}

.pgs-main .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ── 缩略图区域 ── */
.pgs-thumbs-wrap {
    --pgs-thumb-gap: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 10px;
    border-radius: 4px;
}

.pgs-thumbs {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.pgs-thumbs .swiper-slide {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.pgs-thumbs .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.pgs-thumbs .swiper-slide-thumb-active {
    border-color: #2ecc71;
}

/* ── 导航按钮 ── */
.pgs-nav-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.pgs-nav-btn:hover {
    background-color: #f5f5f5;
}

.pgs-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

.pgs-nav-btn svg {
    display: block;
}