/* 3.6.2 商品相册 + 放大灯箱（前台） */
.ftf-detail__img-main {
    cursor: zoom-in;
    position: relative;
}
.ftf-detail__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.15s ease;
}
.ftf-detail__thumb {
    cursor: pointer;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    opacity: 0.8;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.ftf-detail__thumb.is-active {
    border-color: #1677ff;
    opacity: 1;
}

/* 放大灯箱 */
.ftf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ftf-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}
.ftf-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.ftf-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.ftf-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.ftf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.ftf-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}
.ftf-lightbox__nav--prev { left: 16px; }
.ftf-lightbox__nav--next { right: 16px; }

@media (max-width: 640px) {
    .ftf-lightbox__nav { width: 38px; height: 48px; }
}
