/* 商品图片 */
.product-image {
    position: relative;
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin: 0 auto;
}

/* 商品信息 */
.product-details {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.product-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.product-meta {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.product-category {
    color: #777;
}
.product-category a {
    color: #ff6b00;
}
.product-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.price-label {
    font-size: 16px;
    color: #555;
}
.price-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b00;
}

/* 商品标签 */
.label-hot, .label-new, .label-recommend {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 3px;
}
.label-hot {
    background-color: #ff5722;
}
.label-new {
    background-color: #4caf50;
    top: 40px;
}
.label-recommend {
    background-color: #2196f3;
    top: 70px;
}

/* 立即购买按钮 */
.btn-buy {
    background-color: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-buy:hover,
.btn-buy:focus {
    background-color: #ff8533;
    border-color: #ff8533;
    color: #fff;
}

.btn-buy:disabled {
    background-color: #ccc;
    border-color: #ccc;
}

/* 商品描述标签页 */
.product-tabs {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nav-tabs>li.active>a, 
.nav-tabs>li.active>a:focus, 
.nav-tabs>li.active>a:hover {
    color: #ff6b00;
    font-weight: bold;
}
.nav-tabs>li>a {
    color: #555;
}
.tab-content {
    padding: 20px 0;
}
.product-description {
    line-height: 1.6;
}
.product-description img {
    max-width: 100%;
    height: auto;
}

/* 相关商品 */
.section-title {
    margin: 30px 0 20px;
    position: relative;
    text-align: center;
}
.section-title h2 {
    display: inline-block;
    position: relative;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ff6b00;
    padding-bottom: 10px;
}
.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: #ff6b00;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 相关商品样式 */
.product-list {
    margin-bottom: 30px;
}
.product-item {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-img {
    position: relative;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-item:hover .product-img img {
    transform: scale(1.05);
}
.product-info {
    padding: 15px;
}
.product-info .product-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    overflow: hidden;
}
.product-info .product-title a {
    color: #333;
}
.product-info .product-title a:hover {
    color: #ff6b00;
    text-decoration: none;
}
.product-info .product-price {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}
.product-info .price-value {
    font-size: 18px;
}

/* 规格选择样式 */
.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.spec-item {
    flex: 0 0 calc(33.333% - 10px);
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.spec-item:hover:not(.disabled) {
    border-color: #ff6b00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.spec-item.active {
    border-color: #ff6b00;
    background-color: #fff8f3;
}

.spec-item.active:before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 40px;
    height: 40px;
    background: #ff6b00;
    transform: rotate(45deg);
}

.spec-item.active:after {
    content: '✓';
    position: absolute;
    right: 2px;
    top: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.spec-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.spec-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.spec-price {
    color: #ff6b00;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.spec-stock {
    font-size: 12px;
    color: #666;
}

/* 响应式 */
@media (max-width: 767px) {
    .product-title {
        font-size: 20px;
    }
    .price-value {
        font-size: 20px;
    }
    .section-title h2 {
        font-size: 20px;
    }
} 