/* 产品详情页样式 */
.product-detail-page {
    margin: 0 auto;
    padding: 40px 60px;
}

.product-detail-container {
    display: flex;
    gap: 120px;
    margin-bottom: 80px;
}

/* 左侧：产品图片区域 */
.product-images {
    flex: 0 0 50%;
    max-width: 50%;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.thumbnail-item {
    overflow: hidden;
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 右侧：产品信息区域 */
.product-info {
    flex: 1;
}

.product-id {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-tags {
    margin-bottom: 20px;
}

.product-tags .tag {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 12px;
    border-radius: 2px;
}

.product-title {
    font-size: 30px;
    font-weight: 100;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.product-stock {
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
}

.stock-dot {
    color: #52c41a;
    margin-right: 5px;
}

/* 产品选项 */
.product-option {
    margin-bottom: 25px;
}

.option-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: #333;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: block;
}

.color-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.size-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.size-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-item {
    display: inline-block;
    min-width: 50px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.size-item:hover {
    border-color: #333;
}

.size-item.active {
    border-color: #333;
    background-color: #333;
    color: #fff;
}

.product-material,
.product-shoe-type {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    border-bottom: 1px solid #efefef;
    padding-bottom: 15px;
}

/* 购买按钮 */
.product-action {
    margin-top: 40px;
}

.btn-buy-now {
    width: 100%;
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-now:hover {
    background-color: #555;
}

/* 推荐产品区域 */
.related-products {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.related-title {
    font-size: 30px;
    font-weight: 100;
    color: #333;
    margin-bottom: 40px;
    text-align: left;
}

.related-list {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.related-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 250px;
}

.related-image {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.related-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    text-align: left;
}

.related-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-price {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .product-images {
        flex: 1;
        max-width: 100%;
    }
    
    .related-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .product-detail-page {
        padding: 20px 10px;
    }
    
    .related-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

