/* 产品详情页排版修复 */

/* 确保产品详情容器正确布局 */
.wp-new-prodcuts-detail-outside {
    width: 100%;
    overflow: hidden;
}

.wp-new-prodcuts-detail {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 左侧图片区域 */
.wp-new-prodcuts-detail-left {
    flex-shrink: 0;
    width: 350px;
}

/* 右侧信息区域 */
.wp-new-prodcuts-detail-right {
    flex: 1;
    min-width: 0;
}

/* 产品标题 */
.prodetail_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* 产品描述 */
.wp-new-prodcuts-descone {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* 价格区域 */
.wp-new-prodcuts-market-price,
.wp-new-prodcuts-price {
    margin-bottom: 15px;
    font-size: 16px;
}

.wp-new-prodcuts-market-price .title,
.wp-new-prodcuts-price .title {
    display: inline-block;
    width: 80px;
    color: #999;
}

/* 图片放大镜区域 */
.wp-magnifier_box {
    position: relative;
}

.wp-magnifier_small {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.wp-magnifier_small img.wp-product_detail-imgpreview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block !important;
    object-fit: contain;
}

.wp-magnifier_mark {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #999;
    cursor: move;
}

#wp-magnifier_boxbig {
    display: none;
    position: absolute;
    left: 320px;
    top: 0;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    overflow: hidden;
    z-index: 1000;
    background: #fff;
}

.wp-magnifier_big {
    position: relative;
    width: 100%;
    height: 100%;
}

.wp-magnifier_big img {
    position: absolute;
    max-width: none;
}

/* 缩略图区域 - 只有一张图时隐藏 */
.wp-new-prodcuts-detail-picture-small {
    margin-top: 10px;
    display: none; /* 默认隐藏缩略图区域 */
    align-items: center;
    gap: 5px;
}

.wp-new-prodcuts-detail-picture-small-c {
    flex: 1;
    overflow: hidden;
}

.wp-new-prodcuts-detail-picture-small-width {
    display: flex;
    gap: 5px;
}

.wp-new-prodcuts-detail-picture-small-element {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.wp-new-prodcuts-detail-picture-small-element:hover,
.wp-new-prodcuts-detail-picture-small-local {
    border-color: #0037c0;
}

.wp-new-prodcuts-detail-picture-small-element img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block !important;
    object-fit: contain;
}

/* 隐藏加载动画 */
.imgloading {
    display: none !important;
}

/* 箭头按钮 */
.wp-new-prodcuts-detail-picture-small-prev,
.wp-new-prodcuts-detail-picture-small-next {
    width: 20px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.arrow_left,
.arrow_right {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
}

.arrow_left {
    transform: rotate(-135deg);
}

.arrow_right {
    transform: rotate(45deg);
}

/* 产品详情标签页 */
.wp-new-prodcuts-detail-tab {
    margin-top: 30px;
}

.wp-new-prodcuts-detail-tab-title {
    border-bottom: 2px solid #0037c0;
    margin-bottom: 20px;
}

.wp-new-prodcuts-detail-tab-title li {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.wp-new-prodcuts-detail-tab-title li.active {
    color: #0037c0;
    font-weight: bold;
}

.wp-new-prodcuts-detail-tab-content {
    padding: 20px 0;
    line-height: 1.8;
    color: #666;
}

/* 上一个/下一个产品链接 */
.wp-new-prodcuts-detail-prevnext {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.wp-new-prodcuts-detail-prevnext a {
    color: #0037c0;
    text-decoration: none;
}

.wp-new-prodcuts-detail-prevnext a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-new-prodcuts-detail {
        flex-direction: column;
    }
    
    .wp-new-prodcuts-detail-left {
        width: 100%;
    }
    
    .wp-new-prodcuts-detail-right {
        width: 100%;
    }
}
