/* 购物车自定义样式 */

/* 产品详情页面样式 */
.product-detail-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images-section {
    flex: 1;
}

.product-main-image {
    width: 100%;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.product-info-section {
    flex: 1;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.product-sku-display {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-price-display {
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 20px;
}

.product-price-display del {
    font-size: 24px;
    color: #999;
    margin-left: 10px;
}

.product-tags-section {
    margin-bottom: 20px;
}

.product-tags-section strong {
    display: block;
    margin-bottom: 10px;
}

.product-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    margin: 0 5px 5px 0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.product-tag:hover {
    background: #e0e0e0;
}

.product-category-section {
    margin-bottom: 20px;
}

.product-quantity-section {
    margin-bottom: 20px;
}

.product-quantity-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.product-actions {
    margin-top: 30px;
}

.btn-add-to-cart {
    display: inline-block;
    padding: 15px 40px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #0052a3;
    color: white;
}

.product-description-section {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 40px;
}

.product-description-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* 购物车页面样式 */
.cart-container {
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
}

.cart-table thead {
    background: #f4f4f4;
}

.cart-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.cart-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.cart-product-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.cart-product-info .sku {
    color: #666;
    font-size: 13px;
}

.cart-quantity-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.cart-item-price {
    font-weight: bold;
    color: #0066cc;
    font-size: 16px;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.btn-remove:hover {
    background: #c82333;
}

.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cart-summary h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-total-amount {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.inquiry-form {
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 30px;
}

.inquiry-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn-submit-inquiry {
    background: #28a745;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit-inquiry:hover {
    background: #218838;
}

.btn-continue-shopping {
    background: #6c757d;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

.btn-continue-shopping:hover {
    background: #5a6268;
    color: white;
}

.form-actions {
    margin-top: 30px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 相关产品样式 */
.related-products {
    margin-top: 40px;
}

.related-products h3 {
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-layout {
        flex-direction: column;
    }
    
    .cart-table {
        font-size: 12px;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
    
    .btn-add-to-cart,
    .btn-submit-inquiry,
    .btn-continue-shopping {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}
