* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.prod-cont {
    max-width: 1260px;
    margin: 30px auto;
    padding: 28px 28px;
    border-radius: 12px;
}

.product-wrapper {
    background: white;
    padding: 30px 36px;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.product-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 50px;
}

/* ========== 左侧图片区域 ========== */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-container {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.main-image:hover {
    transform: scale(1.04);
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumbnail-item {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafafa;
    aspect-ratio: 1 / 1;
}

.thumbnail-item:hover {
    border-color: #e23435;
}

.thumbnail-item.active {
    border-color: #e23435;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 右侧商品信息 ========== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 4px;
}

/* 商品名 */
.goods-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
}

/* 价格区 */
.info-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px dashed #eee;
}

.price-current {
    font-size: 30px;
    font-weight: 800;
    color: #e23435;
    font-family: 'Arial', sans-serif;
}

.price-original {
    font-size: 14px;
    color: #bbb;
    text-decoration: line-through;
}

/* 元信息区：商家、库存、编号、销量 */
.info-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
    padding: 6px 0 10px;
}

.meta-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.meta-label {
    width: 62px;
    flex-shrink: 0;
    color: #999;
}

.meta-value {
    color: #444;
    font-weight: 500;
}

.meta-value.seller a {
    color: #e23435;
    font-weight: 600;
    text-decoration: none;
}

.meta-value.seller a:hover {
    text-decoration: underline;
}

.meta-value.stock {
    color: #27ae60;
}

.meta-value.sales {
    color: #e23435;
    font-weight: 600;
}

/* 操作区：数量 + 按钮 */
.info-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.quantity-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-label {
    font-size: 14px;
    color: #999;
}

.qty-input {
    width: 62px;
    height: 38px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.qty-input:focus {
    border-color: #e23435;
}

.btn-wrap {
    display: flex;
    gap: 12px;
}

.btn-buy,
.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 22px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.btn-buy {
    background: linear-gradient(135deg, #e23435, #c02a2b);
    color: #fff;
    box-shadow: 0 3px 10px rgba(226,52,53,0.35);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #d42d2e, #b22425);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(226,52,53,0.45);
}

.btn-cart {
    background: #fff;
    color: #e23435;
    border: 1.5px solid #e23435;
}

.btn-cart:hover {
    background: #e23435;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226,52,53,0.25);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-images {
        max-width: 500px;
        margin: 0 auto;
    }
}
