/* ============================================================ */
/* 景林珠宝 - 自定义修复 CSS                                       */
/* ============================================================ */

/* ------------------------------------------------------------ */
/* 1. 全局防撑破：产品页、tab、正文                                  */
/* ------------------------------------------------------------ */
.product-summery,
.product-head,
.product-head .product-title,
.desc-content,
.product_tab_content,
.size-tab,
.single-product-tab .tab-content,
.single-product-tab .tab-content .desc-content,
.product_info_content {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 图片自适应 */
.desc-content img,
.product_tab_content img,
.tab-content img,
.product_info_content img,
.product-summery img,
.size-tab img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    object-fit: contain;
}

/* 视频自适应 */
.desc-content video,
.product_tab_content video,
.tab-content video,
.product_info_content video,
.product-summery video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    margin: 15px auto;
}

/* 表格自适应 */
.desc-content table,
.product_tab_content table,
.tab-content table,
.product_info_content table {
    max-width: 100%;
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------ */
/* 2. 产品详情页主图 + 缩略图                                     */
/* ------------------------------------------------------------ */
.single-product-slider .gallery-top {
    width: 100%;
    margin-bottom: 15px;
}

.single-product-slider .gallery-top .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.single-product-slider .gallery-top .swiper-slide img {
    max-width: 100% !important;
    max-height: 520px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* --- 缩略图：固定高度，Swiper 初始化前不撑开 --- */
.single-product-slider .gallery-thumbs {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
    height: 90px;
    overflow: hidden;
}

.single-product-slider .gallery-thumbs .swiper-wrapper {
    height: 90px;
    display: flex;
    flex-wrap: nowrap;
}

.single-product-slider .gallery-thumbs .swiper-slide {
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity .2s, border-color .2s;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.single-product-slider .gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #2e2e2e;
}

.single-product-slider .gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    max-height: 80px;
    object-fit: cover;
    display: block;
}

.single-product-slider .gallery-thumbs .swiper-button-prev,
.single-product-slider .gallery-thumbs .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-top: 0;
}

.single-product-slider .gallery-thumbs .swiper-button-prev { left: 0; }
.single-product-slider .gallery-thumbs .swiper-button-next { right: 0; }

.single-product-slider .gallery-thumbs .swiper-button-prev::after,
.single-product-slider .gallery-thumbs .swiper-button-next::after {
    font-size: 12px;
    color: #fff;
}

/* ------------------------------------------------------------ */
/* 3. 相关产品图片防撑破                                          */
/* ------------------------------------------------------------ */
.product-carousel .swiper-slide img,
.product-carousel .thumb img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* ------------------------------------------------------------ */
/* 4. 文章正文图片防撑破                                          */
/* ------------------------------------------------------------ */
.blog-details img,
.article-details img,
.article_content img,
.article-content img,
.blog-content img,
.blog-single-post-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

.blog-details,
.article-details,
.article_content,
.article-content,
.blog-content {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

/* ------------------------------------------------------------ */
/* 5. 产品页保障政策链接                                          */
/* ------------------------------------------------------------ */
.product-delivery-policy li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.product-delivery-policy li i {
    color: #2e2e2e;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.product-delivery-policy li a {
    color: #2e2e2e;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.product-delivery-policy li a:hover {
    color: #c9a227;
    text-decoration: underline;
}
.product-delivery-policy li .policy-more {
    color: #999;
    font-size: 13px;
}

/* ------------------------------------------------------------ */
/* 6. 产品详情页规格区间距收紧                                    */
/* ------------------------------------------------------------ */
.product-summery .product-meta {
    margin-bottom: 15px !important;
}
.product-summery .product-meta:last-child {
    margin-bottom: 20px !important;
}
.product-summery .product-metarial span {
    margin-bottom: 8px !important;
}
.product-summery .product-metarial a {
    margin: 4px 8px 4px 0 !important;
    padding: 4px 10px !important;
}
.product-summery .quantity {
    margin-bottom: 20px !important;
}
.product-summery .buy-now-button {
    margin-bottom: 20px !important;
}
.product-summery .cart-wishlist-btn {
    margin-bottom: 15px !important;
}

/* ------------------------------------------------------------ */
/* 7. 移动端适配                                                  */
/* ------------------------------------------------------------ */
@media (max-width: 767px) {
    /* 主图高度限制 */
    .single-product-slider .gallery-top .swiper-slide img {
        max-height: 340px !important;
    }

    /* 缩略图变小 */
    .single-product-slider .gallery-thumbs {
        height: 70px;
        padding: 0 32px;
    }
    .single-product-slider .gallery-thumbs .swiper-wrapper {
        height: 70px;
    }
    .single-product-slider .gallery-thumbs .swiper-slide {
        height: 60px;
    }
    .single-product-slider .gallery-thumbs .swiper-slide img {
        height: 100%;
        max-height: 60px;
    }

    /* 正文图片边距 */
    .desc-content img,
    .product_tab_content img,
    .tab-content img,
    .product_info_content img {
        margin: 10px auto;
    }

    /* 参数表格可横向滚动 */
    .single-product-tab .size-tab table {
        min-width: 400px;
    }

    /* 隐藏订阅表单 */
    .footer-section .newsletter-form-wrap,
    .footer-section .widget-body .newsletter-form-wrap {
        display: none !important;
    }
}