@media screen and (max-width: 767px) {
    .reflection-section {
        position: relative !important;
        z-index: 1;
        margin-bottom: 20px;
    }

    #qodef-page-footer {
        position: relative !important;
        z-index: 2;
    }

    .reflection-mirror {
        position: relative !important;
        transform: none !important;
    }

    .elementor-element-c139060 {
        position: relative !important;
        overflow: hidden;
    }
}

/* 商品圖片區域樣式 */
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 20px;
}

.woocommerce-product-gallery__wrapper {
    position: relative;
    overflow: hidden;
}

.woocommerce-product-gallery__image {
    display: none;
    position: relative;
    transition: transform 0.3s ease;
}

.woocommerce-product-gallery__image.active {
    display: block;
}

/* 放大鏡效果 */
.magnify-wrap {
    position: relative;
    cursor: zoom-in;
}

.magnify-lens {
    position: absolute;
    display: none;
    background-repeat: no-repeat;
    background-color:transparent;
    border: 1px solid #ddd;
    pointer-events: none;
}

/* 縮略圖樣式 */
.qodef-woo-thumbnails-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    justify-content: space-between;
    width: 100%;
}

.thumbnail-item {
    /* flex: 0 0 80px; */
    /* height: 100px; */
    border: 1px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: #162d56;
    opacity: 1;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.thumbnail-item.active img{
    opacity: 1;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #333;
    background: #162d56;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.big-img-gallery:hover .gallery-arrow{
    opacity: 1;
}
.gallery-arrow:hover{
    background-color: #abccd8;
}
.gallery-arrow:hover svg path{
    fill: #162d56;
}
.gallery-arrow-left { left: 10px; }
.gallery-arrow-right { right: 10px; }

/* 響應式樣式 */
@media screen and (max-width: 767px) {
    .qodef-woo-thumbnails-wrapper {
        gap: 5px;
    }

    .thumbnail-item {
        flex: 0 0 60px;
        height: 60px;
    }
    .gallery-arrow {
        opacity: 1;
    }
}