/* JieShi shop pages - original design, matches site style */
.shop-page { padding: 100px 0 60px; background: #f7f8fa; min-height: 60vh; }
.shop-container { max-width: 1100px; margin: 0 auto; padding: 0 18px; font-family: 'MiSans-Normal', 'Microsoft YaHei', sans-serif; color: #333; }
.shop-crumb { font-size: 13px; color: #999; margin-bottom: 18px; }
.shop-crumb a { color: #666; }
.shop-crumb a:hover { color: #c8302e; text-decoration: none; }
.shop-crumb .fa { margin: 0 6px; font-size: 11px; }
.shop-h1 { font-size: 26px; font-weight: normal; color: #222; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid #e8e8e8; }
.shop-h1 .fa { color: #c8302e; margin-right: 10px; }

/* cards & grids */
.shop-card { background: #fff; border: 1px solid #ececec; border-radius: 4px; padding: 22px 24px; margin-bottom: 22px; }
.shop-card-title { font-size: 16px; font-weight: normal; color: #222; margin: 0 0 16px; padding-left: 10px; border-left: 3px solid #c8302e; line-height: 1.4; }
.shop-grid { display: flex; gap: 22px; align-items: flex-start; }
.shop-grid-main { flex: 1 1 62%; min-width: 0; }
.shop-grid-side { flex: 1 1 38%; min-width: 0; }
.shop-grid-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* buttons */
.shop-btn { display: inline-block; padding: 9px 26px; font-size: 14px; border: 1px solid #d5d5d5; background: #fff; color: #444; border-radius: 3px; cursor: pointer; text-decoration: none; transition: all .2s; font-family: inherit; line-height: 1.6; }
.shop-btn:hover { border-color: #c8302e; color: #c8302e; text-decoration: none; }
.shop-btn-primary { background: #c8302e; border-color: #c8302e; color: #fff; }
.shop-btn-primary:hover { background: #a92624; border-color: #a92624; color: #fff; }
.shop-btn-block { display: block; width: 100%; text-align: center; }
.shop-btn-sm { padding: 4px 14px; font-size: 13px; }

/* price */
.shop-price { color: #c8302e; font-size: 18px; font-weight: bold; }
.shop-price-big { font-size: 30px; }

/* table */
.shop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop-table th { text-align: left; color: #888; font-weight: normal; padding: 10px 8px; border-bottom: 1px solid #e8e8e8; background: #fafafa; }
.shop-table td { padding: 14px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart-table .cart-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cart-table .cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; border: 1px solid #eee; background: #f5f5f5; flex: 0 0 64px; }
.cart-table .cart-name { color: #333; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cart-table .cart-name:hover { color: #c8302e; text-decoration: none; }

/* qty stepper */
.qty-stepper { display: inline-flex; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; }
.qty-stepper button { width: 28px; height: 30px; border: none; background: #fafafa; cursor: pointer; font-size: 14px; color: #555; }
.qty-stepper button:hover { background: #f0f0f0; }
.qty-stepper span { width: 44px; height: 30px; line-height: 30px; text-align: center; font-size: 14px; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.link-del { color: #999; cursor: pointer; font-size: 13px; }
.link-del:hover { color: #c8302e; }

/* cart footer */
.shop-cart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 12px; }
.shop-cart-total { font-size: 14px; color: #666; }
.shop-cart-total b { color: #c8302e; }

/* forms */
.shop-form-row { display: flex; align-items: center; margin-bottom: 14px; }
.shop-form-row label { flex: 0 0 100px; font-size: 14px; color: #666; }
.shop-form-row input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; outline: none; font-family: inherit; }
.shop-form-row input:focus { border-color: #c8302e; }

/* summary */
.shop-sum-row { display: flex; justify-content: space-between; font-size: 14px; color: #666; padding: 8px 0; }
.shop-sum-all { border-top: 1px solid #e8e8e8; margin-top: 8px; padding-top: 14px; font-size: 15px; color: #222; }
.shop-summary .shop-btn-block { margin-top: 16px; }
.shop-tip { font-size: 12px; color: #aaa; margin-top: 12px; line-height: 1.7; }

/* empty state */
.shop-empty { text-align: center; padding: 70px 0 40px; color: #bbb; }
.shop-empty .fa { font-size: 56px; margin-bottom: 16px; }
.shop-empty p { font-size: 15px; color: #888; margin: 0 0 22px; }

/* doc pages (privacy/terms/about/aftersale) */
.shop-doc { background: #fff; border: 1px solid #ececec; border-radius: 4px; padding: 30px 34px; font-size: 14px; line-height: 1.9; color: #444; }
.shop-doc-wide { max-width: 900px; }
.shop-doc h3 { font-size: 16px; font-weight: bold; color: #222; margin: 22px 0 8px; }
.shop-doc p { margin: 0 0 8px; }
.shop-doc-date { color: #999; font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px !important; }

/* pay page */
.shop-pay-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 34px 30px; }
.shop-pay-amount { font-size: 15px; color: #666; margin-bottom: 6px; }
.shop-pay-order { font-size: 13px; color: #999; margin-bottom: 24px; }
.shop-pay-methods { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.shop-pay-method { border: 1px solid #ddd; border-radius: 4px; padding: 10px 18px; font-size: 14px; color: #555; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.shop-pay-method .fa { font-size: 17px; }
.shop-pay-active, .shop-pay-method:hover { border-color: #c8302e; color: #c8302e; }
.shop-pay-method input { margin-right: 2px; }
.shop-pay-actions { display: flex; justify-content: center; gap: 14px; }

/* result pages */
.shop-result { text-align: center; background: #fff; border: 1px solid #ececec; border-radius: 4px; max-width: 560px; margin: 0 auto; padding: 46px 30px; }
.shop-result .fa { font-size: 62px; margin-bottom: 18px; }
.shop-result-ok .fa { color: #3caf6e; }
.shop-result-fail .fa { color: #c8302e; }
.shop-result h1 { font-size: 24px; font-weight: normal; color: #222; margin: 0 0 10px; }
.shop-result-sub { color: #888; font-size: 14px; margin-bottom: 24px; }
.shop-result-info { background: #fafafa; border-radius: 4px; padding: 14px; font-size: 14px; color: #666; margin-bottom: 26px; }
.shop-result-info p { margin: 4px 0; }
.shop-result-actions { display: flex; justify-content: center; gap: 14px; }

/* auth pages */
.shop-auth { max-width: 420px; margin: 0 auto; padding: 30px 30px 24px; }
.shop-auth-alt { text-align: center; font-size: 13px; color: #888; margin: 16px 0 0; }
.shop-auth-alt a { color: #c8302e; }

/* order status */
.order-status { font-size: 13px; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.st-paid { color: #3caf6e; background: #e9f7ef; }
.st-unpaid { color: #d08a1e; background: #fbf3e2; }
.st-canceled { color: #999; background: #f2f2f2; }
.link-pay { color: #c8302e; font-size: 13px; }

/* JieShi shop - header cart badge handled in shop-header.css */

/* news page (press-reviews rewritten as official news) */
.news-head { margin-bottom: 26px; text-align: center; }
.news-head h2 { font-size: 28px; font-weight: normal; color: #222; margin: 0 0 8px; }
.news-head .news-sub { color: #999; font-size: 14px; margin: 0; }
.news-item { display: block; background: #fff; border: 1px solid #ececec; border-radius: 4px; overflow: hidden; height: 100%; transition: box-shadow .2s, border-color .2s; }
.news-item:hover { text-decoration: none; border-color: #d9d9d9; box-shadow: 0 4px 16px rgba(0, 0, 0, .07); }
.news-item .team-thumb { margin: 0; height: 190px; overflow: hidden; background: #f5f5f5; }
.news-item .team-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .news-body { padding: 16px 18px 20px; }
.news-item h1 { font-size: 16px; color: #222; line-height: 1.5; margin: 0 0 8px; font-weight: bold; }
.news-item .news-date { font-size: 12px; color: #b0b0b0; margin: 0 0 8px; }
.news-item p { font-size: 13px; color: #777; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* mobile */
@media (max-width: 767px) {
  .shop-page { padding: 84px 0 40px; }
  .shop-h1 { font-size: 20px; margin-bottom: 16px; padding-bottom: 10px; }
  .shop-grid, .shop-grid-wide { flex-direction: column; display: flex; grid-template-columns: none; }
  .shop-grid-wide { display: block; }
  .shop-grid-main, .shop-grid-side { width: 100%; }
  .shop-card { padding: 16px 14px; }
  .shop-doc { padding: 20px 16px; }
  .cart-table .cart-thumb { width: 48px; height: 48px; flex-basis: 48px; }
  .cart-table .cart-name { max-width: 130px; font-size: 13px; }
  .shop-table th, .shop-table td { padding: 10px 4px; font-size: 13px; }
  .shop-form-row label { flex-basis: 84px; }
  .shop-pay-methods { gap: 8px; }
  .shop-pay-method { padding: 8px 12px; font-size: 13px; }
  .shop-price-big { font-size: 24px; }
  .shop-result { padding: 34px 16px; }
  .news-item .team-thumb { height: 160px; }
  .news-item h1 { font-size: 15px; }
}
