.goodsinfodiv {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

.breadcrumb {
    padding: 10px 0;
    color: #999;
    font-size: 12px;
    border-bottom: 2px solid #e4393c;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #337ab7;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e4393c;
}

.product-main {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* 左侧图片区域 */
.product-gallery {
    width: 500px;
    flex-shrink: 0;
}

.main-image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    cursor: crosshair;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 放大镜效果 */
.magnifier {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border: 2px solid #e4393c;
    background: rgba(228, 57, 60, 0.1);
    display: none;
    pointer-events: none;
    z-index: 10;
}

.magnifier-lens {
    position: fixed;
    width: 400px;
    height: 400px;
    border: 2px solid #e4393c;
    background-repeat: no-repeat;
    background-size: 1000px 1000px;
    display: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: #fff;
    pointer-events: none; /* 关键：让鼠标事件穿透，避免闪烁 */
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #e4393c;
}

/* 右侧产品信息 */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
}

.product-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.price-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #e4393c;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.current-price {
    font-size: 32px;
    color: #e4393c;
    font-weight: 700;
}

.current-price span {
    font-size: 18px;
}

.discount-price {
    background: #ff6b35;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.rating-section {
    margin-bottom: 15px;
    font-size: 14px;
}

.stars {
    color: #ff9900;
    margin-right: 10px;
}

.location-shipping {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 2;
}

.location-shipping span {
    color: #337ab7;
    cursor: pointer;
}

.store-section {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.store-logo {
    height: 60px;
    padding: 10px 20px;
    background: #e4393c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 4px;
}

.store-info h3 {
    color: #ff6b35;
    font-size: 16px;
    margin-bottom: 5px;
}

.store-info p {
    font-size: 13px;
    color: #666;
}

/* 数量选择器 */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e4393c;
    color: #fff;
    border-color: #e4393c;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 60px;
    height: 36px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.qty-input:focus {
    outline: none;
    border-color: #e4393c;
}

/* 按钮区域 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff7b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-cart {
    background: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%);
    color: #333;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
    }

    .product-gallery,
    .main-image-wrapper {
        width: 100%;
    }

    .main-image-wrapper {
        height: 400px;
    }
}

/* 提示框 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
}