/*
 * 旧站样式在 ecshop/{cn,en}/style.css(原样拷贝,不要改)。这里只放:
 * 1. 旧页面里写在 <style>/style="" 里的东西(导航文字、首页轮播);
 * 2. WooCommerce 生成的表单/提示/表格,套成旧站的样子。
 */

/* ---------- 旧页面内联样式 ---------- */
.dhnav { height: 39px; line-height: 39px; white-space: nowrap; overflow: hidden; }
.dhnav a { color: #fff; font-weight: bold; font-size: 14px; margin: 0 14px; text-decoration: none; }
.dhnav a:hover { text-decoration: underline; }

.bgslide { position: relative; width: 840px; max-width: 100%; height: 354px; overflow: hidden; }
.bgslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: bgfade 24s infinite; }
.bgslide img:first-child { opacity: 1; }
@keyframes bgfade { 0% { opacity: 0 } 2.5% { opacity: 1 } 16.67% { opacity: 1 } 19.17% { opacity: 0 } 100% { opacity: 0 } }

.header a.bg-home { display: block; width: 300px; height: 115px; }

/* 右上角浮动的"最近浏览"(旧站 #quick) */
#quick { position: absolute; top: 0; left: 50%; z-index: 1; }
#quick .quick-in { position: relative; top: 50px; left: 430px; width: 66px; }
#quick img { display: block; }
#quick .box3 { background: #fff; border-left: 1px solid #897f5b; border-right: 1px solid #897f5b; }
#quick .boxCenterList2 { padding: 4px 3px 0; text-align: center; }
#quick .boxCenterList2 ul { margin-bottom: 4px; }
#quick .boxCenterList2 li { float: none; width: auto; font-size: 11px; line-height: 14px; word-break: break-all; }
#quick .boxCenterList2 li.goodsimg { width: auto; }
#quick .boxCenterList2 li.goodsimg img { width: 48px; height: 69px; margin: 0 auto; object-fit: cover; }
@media (max-width: 1000px) { #quick { display: none; } } /* 窄屏上浮框会伸出页面右边 */

/* 商品图片:旧站缩略图是 130×186 竖图,新图按比例裁切不变形 */
.goodsItem .goodsimg, .goodsItem .goodsimg:hover { object-fit: cover; background: #fff; }
.bg-empty { padding: 20px; text-align: center; color: #666; }
.bg-imgbtn { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; vertical-align: middle; }
.bg-gallery a { float: left; margin: 2px; }
.bg-gallery img { width: 46px; height: 46px; object-fit: cover; border: 1px solid #ddc4cd; display: block; }
.bg-gallery img:hover { border-color: #314f31; }
.bg-desc img, .bg-article img { max-width: 100%; height: auto; }
.bg-comment-submit { border: none; width: 75px; height: 21px; margin-right: 8px; cursor: pointer; background-repeat: no-repeat; }
.bg-cart-thumb { width: 48px; height: 69px; object-fit: cover; border: 1px solid #ccc; }

/* 图片按钮:文字留给读屏,不显示 */
.us_Submit, .us_Submit_reg { font-size: 0; color: transparent; cursor: pointer; }

/* ---------- WooCommerce 提示 ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper > div {
	list-style: none; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #89a15a; background: #dee5ce; color: #263023; font-size: 12px;
}
.woocommerce-error { border-color: #d9a3a3; background: #fdeeee; color: #c63300; }
.woocommerce-error li, .woocommerce-message li, .woocommerce-info li { list-style: none; }
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button,
.woocommerce-MyAccount-content .woocommerce-message .button, .woocommerce-MyAccount-content .woocommerce-info .button {
	float: right; background: none; min-width: 0; height: auto; line-height: inherit; padding: 0 0 0 12px; color: #c63300; text-decoration: underline; border: 0;
}
.woocommerce-NoticeGroup { width: 99%; margin: 0 auto; }

/* ---------- 旧站风格的数据表(结算、订单列表、订单详情) ---------- */
.shop_table, .woocommerce-orders-table, .woocommerce-table {
	width: 99%; margin: 0 auto 8px; border-collapse: separate; border-spacing: 1px; background: #ddd;
}
.shop_table th, .shop_table td, .woocommerce-orders-table th, .woocommerce-orders-table td, .woocommerce-table th, .woocommerce-table td {
	background: #fff; padding: 5px; text-align: left; font-size: 12px; font-weight: normal;
}
.shop_table thead th, .woocommerce-orders-table thead th { font-weight: bold; text-align: center; }
.shop_table tfoot th { text-align: right; }
.shop_table .order-total td, .shop_table .order-total th { color: #c63300; font-weight: bold; font-size: 14px; }
.woocommerce-orders-table a, .woocommerce-table a { color: #F60; }
.woocommerce-button.button, a.button.view { color: #F60; }

/* ---------- 结算页 / 会员资料表单:标签右对齐 + 旧输入框 ---------- */
.flowBox h6 a { float: right; color: #fff; font-weight: normal; }
.bg-form, .woocommerce-EditAccountForm, .woocommerce-address-fields, .woocommerce-ResetPassword, .bg-checkout #payment { padding: 8px 10px; }
.bg-form h3, .woocommerce-MyAccount-content h3, .woocommerce-MyAccount-content h2 {
	background: none; height: auto; line-height: 24px; text-align: left; color: #263023; font-size: 12px; font-weight: bold; padding: 4px 0;
}
.woocommerce-billing-fields > h3 { display: none; }
.form-row, .woocommerce-form-row { margin: 0; padding: 4px 0; clear: both; overflow: hidden; }
.form-row label, .woocommerce-form-row label { display: inline-block; width: 110px; text-align: right; margin-right: 8px; vertical-align: top; line-height: 20px; }
.form-row .woocommerce-input-wrapper { display: inline-block; vertical-align: top; }
.form-row input.input-text, .form-row select, .form-row textarea, .woocommerce-form-row input.input-text, .woocommerce-Input {
	border: 1px solid #b3b3b3; background: #fff url(../ecshop/cn/images/inputbg.gif) repeat-x left top; height: 18px; width: 260px; font-size: 12px;
}
.form-row textarea { height: 60px; }
.form-row select { height: 22px; }
.form-row .required, .woocommerce-form-row .required { color: #f00; text-decoration: none; border: 0; }
.form-row .description, .woocommerce-form-row em { display: block; margin-left: 118px; color: #9e9e9e; font-style: normal; }
#ship-to-different-address label, .woocommerce-form__label-for-checkbox { width: auto; text-align: left; }
fieldset { border: 1px solid #ddd; margin: 8px 0; padding: 8px; }
fieldset legend { font-weight: bold; padding: 0 4px; }
.select2-container { font-size: 12px; }

.bg-checkout #payment ul.payment_methods { padding: 0 0 8px; }
.bg-checkout #payment ul.payment_methods li { padding: 4px 0; }
.bg-checkout #payment .payment_box { margin: 4px 0 0 22px; padding: 6px 10px; background: #f7f7f7; border: 1px solid #e2e2e2; color: #3f3f3f; }
.bg-checkout .place-order { text-align: right; padding-top: 8px; }
.bg-checkout .woocommerce-privacy-policy-text { text-align: left; color: #9e9e9e; margin-bottom: 8px; }
#place_order { width: 145px; height: 40px; border: none; background: url(../ecshop/cn/images/bnt_subOrder.gif) no-repeat; font-size: 0; color: transparent; cursor: pointer; }
.bg-en #place_order { background-image: url(../ecshop/en/images/bnt_subOrder.gif); }

/* 会员中心按钮 */
.woocommerce-MyAccount-content button.button, .woocommerce-MyAccount-content .button, .woocommerce-ResetPassword button.button {
	background: url(../ecshop/cn/images/pink/bg.gif) no-repeat 0 -663px; min-width: 100px; height: 21px; line-height: 21px; color: #fff; border: none; cursor: pointer; padding: 0 8px; display: inline-block; text-align: center;
}
.woocommerce-MyAccount-content address { font-style: normal; line-height: 20px; }
.woocommerce-MyAccount-content .woocommerce-Addresses .col-1, .woocommerce-MyAccount-content .woocommerce-Addresses .col-2 { float: left; width: 48%; margin-right: 2%; }
.woocommerce-MyAccount-content mark { background: none; color: #c63300; font-weight: bold; }
.woocommerce-pagination { text-align: right; padding: 8px 0; }
