/* 商品卡片样式 */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 40px;
}

.product-price-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.product-price {
    color: #ff4400;
    font-size: 18px;
    font-weight: bold;
    margin-right: 8px;
}

.product-original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.product-sales {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

/* 新的平台信息样式 */
.product-platform-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 5px 0;
    border-top: 1px dashed #f0f0f0;
}

.platform-badge {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 4px 8px;
    border-radius: 12px;
    max-width: 60%;
}

.platform-badge .platform-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 4px;
}

.platform-badge .platform-name {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rebate-amount {
    font-size: 14px;
    font-weight: bold;
    color: #ff4400;
    padding: 4px 8px;
    background-color: #fff2e8;
    border-radius: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 0;
    font-size: 14px;
    border-radius: 20px;
}

.product-actions .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.product-actions .btn-outline {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
