/* Product archive middle section using the Shangzuo homepage design tokens. */
body.shangzuo-product-page {
  background: var(--cream, #f8f0e7) !important;
  color: var(--ink, #1f201f) !important;
  font-family: RobotoLocal, Arial, sans-serif !important;
}
body.shangzuo-product-page .wp-site-blocks {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.shangzuo-product-page .wp-site-blocks > * {
  margin-block-start: 0 !important;
}
body.shangzuo-product-page .shangzuo-product-main {
  width: 100%;
  max-width: none;
  padding-top: 96px;
  overflow: hidden;
  background: var(--cream, #f8f0e7);
  font-family: RobotoLocal, Arial, sans-serif;
}
body.shangzuo-product-page .shangzuo-product-main .neiye_content {
  background: var(--cream, #f8f0e7) !important;
}
body.shangzuo-product-page .shangzuo-product-main .neiye_banner_img {
  margin-top: 0 !important;
}

/* Product-list content matched to Mande's 1300px / 26% sidebar / three-column layout. */
body.shangzuo-product-page #product-page .neiye_content { background: #fff !important; height: auto; }
body.shangzuo-product-page #product-page .neiye_content_middle,
body.shangzuo-product-page #product-page .neiye_content_middle * { box-sizing: border-box; }
body.shangzuo-product-page #product-page .neiye_content_middle {
  display: block !important;
  width: min(1300px,calc(100% - 64px)) !important;
  max-width: 1300px !important;
  height: auto;
  margin: 0 auto !important;
  padding: 0 0 96px !important;
  font: 400 16px/1.6 HarmonyOS_Sans_SC_Regular, Arial, sans-serif;
  color: #222;
}
body.shangzuo-product-page #product-page .neiye_product_left { display: block; width: 100%; max-width: none; min-width: 0; flex: none; }
body.shangzuo-product-page #product-page .neiye_content_middle_left_top {
  display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px;
  width: 100%; min-height: 90px !important; height: auto !important; margin: 0 !important; padding: 20px 0 !important;
  font: 400 16px/1.6 HarmonyOS_Sans_SC_Regular, Arial, sans-serif !important; color: #222;
}
body.shangzuo-product-page #product-page .neiye_content_middle_left_top > span:first-child { display: inline-flex; align-items: center; flex: 0 0 20px; }
body.shangzuo-product-page #product-page .neiye_content_middle_left_top img { display: block; width: 18px; height: 18px; margin: 0; object-fit: contain; }
body.shangzuo-product-page #product-page .bread { margin: 0; }
body.shangzuo-product-page #product-page .neiye_content_middle_left_top a { color: inherit; }
body.shangzuo-product-page #product-page .products_detail_desc {
  display: grid !important; grid-template-columns: minmax(0,26fr) minmax(0,71fr) !important;
  gap: 3% !important; align-items: start;
}
body.shangzuo-product-page #product-page .neiye_content_middle_right,
body.shangzuo-product-page #product-page .neiye_content_middle_left { display: block !important; width: 100% !important; min-width: 0; margin: 0 !important; }
body.shangzuo-product-page #product-page .neiye_prolist {
  display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 28px 3.5% !important; width: 100% !important; height: auto; align-items: stretch;
}
body.shangzuo-product-page #product-page .neiye_prolist_list {
  display: flex !important; flex-direction: column; align-items: stretch; justify-content: flex-start;
  width: 100% !important; min-width: 0; min-height: 0; height: auto; margin: 0 !important; padding: 28px !important;
  border: 0; border-radius: 20px !important; background: #fff !important;
  box-shadow: 0 0 16px 12.8px rgba(0,0,0,.03); overflow: hidden; transition: transform .3s ease;
}
body.shangzuo-product-page #product-page .neiye_prolist_list_img { display: block !important; width: 100%; height: auto !important; aspect-ratio: 1; border-radius: 0; overflow: hidden; }
body.shangzuo-product-page #product-page .neiye_prolist_list_img a { display: block; width: 100%; height: 100%; }
body.shangzuo-product-page #product-page .neiye_prolist_list_img img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; }
body.shangzuo-product-page #product-page .neiye_prolist_list_title {
  display: grid !important; place-items: center; width: 100%; height: 80px !important; min-height: 80px !important; margin: 0; padding: 12px 4px !important;
  font: 700 19px/1.6 HarmonyOS_Sans_SC_Regular, Arial, sans-serif !important; text-align: center; color: #111;
  white-space: normal !important; overflow: hidden;
}
body.shangzuo-product-page #product-page .neiye_prolist_list_title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: inherit; line-height: 1.5; }
body.shangzuo-product-page #product-page .neiye_prolist_list_button {
  display: block !important; flex: 0 0 26px; width: 100px !important; height: 26px !important; min-height: 26px !important;
  margin: 12px auto !important; padding: 0 !important; border: 0; border-radius: 50px;
  background: #000 !important; color: #fff; line-height: 26px; overflow: hidden;
}
body.shangzuo-product-page #product-page .neiye_prolist_list_button a,
body.shangzuo-product-page #product-page .rightbuttons a {
  display: flex !important; align-items: center; justify-content: flex-start; gap: 0; width: 100%; height: 26px !important;
  color: #fff !important; font: 400 11px/26px HarmonyOS_Sans_SC_Regular, Arial, sans-serif !important;
}
body.shangzuo-product-page #product-page .neiye_prolist_list_button i,
body.shangzuo-product-page #product-page .rightbuttons i { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; margin: 0; border-radius: 50%; background: #ff8000 !important; }
body.shangzuo-product-page #product-page .neiye_prolist_list_button i img,
body.shangzuo-product-page #product-page .rightbuttons i img { display: block; width: 13px !important; height: 13px !important; margin: 0 !important; }
body.shangzuo-product-page #product-page .rightbuttons_name { flex: 1; font-size: 11px !important; text-align: center; white-space: nowrap; }
body.shangzuo-product-page #product-page .neiye_prolist_list_button:hover,
body.shangzuo-product-page #product-page .rightbuttons:hover { background: #ff8000 !important; }
body.shangzuo-product-page #product-page .news_category { width: 100%; margin: 0; padding: 27px 27px 47px; border-radius: 20px !important; background: #fff; box-shadow: 0 0 16px 12.8px rgba(0,0,0,.03); }
body.shangzuo-product-page #product-page .news_category.RECOMMEND { margin-top: 34px; }
body.shangzuo-product-page #product-page .news_category_top { display: flex; justify-content: space-between; align-items: center; font: 700 20px/32px HarmonyOS_Sans_SC_Regular, Arial, sans-serif !important; color: #111; }
body.shangzuo-product-page #product-page .news_category_top img { display: block; max-width: 24px; height: auto; }
body.shangzuo-product-page #product-page .fist_product_category { margin: 28px 0 0; }
body.shangzuo-product-page #product-page .news_category_under_list { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font: 400 16px/1.6 HarmonyOS_Sans_SC_Regular, Arial, sans-serif; }
body.shangzuo-product-page #product-page .news_category_under_list > div:first-child { min-width: 0; }
body.shangzuo-product-page #product-page .news_category_under_list > div:last-child { flex-shrink: 0; }
body.shangzuo-product-page #product-page .news_category_under_list a { color: #333; overflow-wrap: break-word; }
body.shangzuo-product-page #product-page .news_category_under_list img { display: block; width: 6px; height: 10px; object-fit: contain; }
body.shangzuo-product-page #product-page .pro_recommend_list { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; gap: 5%; width: 100%; margin: 14px 0 0; }
body.shangzuo-product-page #product-page .pro_recommend_list_img { width: 100%; min-width: 0; padding: 8px; }
body.shangzuo-product-page #product-page .pro_recommend_list_img img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; border-radius: 10px; }
body.shangzuo-product-page #product-page .pro_recommend_list_img_list_right { width: 100%; min-width: 0; padding: 8px 0; }
body.shangzuo-product-page #product-page .pro_recommend_list_img_title { margin: 0 0 14px; font: 400 18px/1.4 HarmonyOS_Sans_SC_Regular, Arial, sans-serif !important; }
body.shangzuo-product-page #product-page .pro_recommend_list_img_title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; color: #333; }
body.shangzuo-product-page #product-page .rightbuttons { width: 100px !important; height: 26px !important; min-height: 26px !important; margin: 0; padding: 0 !important; border-radius: 50px; background: #000; overflow: hidden; }
body.shangzuo-product-page #product-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; width: 100%; margin: 46px 0 0; font-size: 14px; }
body.shangzuo-product-page #product-page .pagination:empty { display: none; }
body.shangzuo-product-page #product-page .product-list-empty { grid-column: 1 / -1; margin: 0; padding: 48px 20px; border-radius: 16px; background: #f8f8f8; color: #666; font-size: 16px; text-align: center; }
body.shangzuo-product-page #product-page .fenye_list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
body.shangzuo-product-page #product-page .pagination a { display: block; width: 43px; height: 43px; margin: 0; padding: 0; border: 0; border-bottom: 3px solid transparent; border-radius: 10px; background: #f5f5f5; color: #333; text-align: center; line-height: 40px; }
body.shangzuo-product-page #product-page .pagination a.active { border-bottom-color: #ff8000; }
body.shangzuo-product-page #product-page a:hover { color: #ff8000; }
body.shangzuo-product-page #product-page a:focus-visible { outline: 2px solid #ff8000; outline-offset: 3px; }
body.shangzuo-product-page #product-page .mprolist { display: none; }
@media (hover:hover) { body.shangzuo-product-page #product-page .neiye_prolist_list:hover { transform: scale(1.03); } }
@media (max-width: 1200px) and (min-width: 1031px) {
  body.shangzuo-product-page #product-page .neiye_prolist_list { padding: 18px !important; }
  body.shangzuo-product-page #product-page .news_category { padding: 22px 18px 32px; }
  body.shangzuo-product-page #product-page .pro_recommend_list { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 1030px) {
  body.shangzuo-product-page #product-page .neiye_content_middle { width: calc(100% - 36px) !important; padding-bottom: 64px !important; }
  body.shangzuo-product-page #product-page .products_detail_desc { display: block !important; }
  body.shangzuo-product-page #product-page .neiye_content_middle_right { display: none !important; }
  body.shangzuo-product-page #product-page .neiye_prolist { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px !important; }
  body.shangzuo-product-page #product-page .mprolist { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 12px; width: 100%; margin: 28px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.shangzuo-product-page #product-page .mprolist_left { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; text-align: center; }
  body.shangzuo-product-page #product-page .mprolist_left img { display: block; width: 40px !important; height: 40px !important; margin: 0 auto 8px; }
  body.shangzuo-product-page #product-page .mprolist_left a { color: #333; font-size: 14px; line-height: 1.4; overflow-wrap: break-word; }
  body.shangzuo-product-page #product-page .neiye_content_middle_left_top { min-height: 72px !important; padding: 18px 0 !important; font-size: 14px !important; }
}
@media (max-width: 600px) {
  body.shangzuo-product-page #product-page .neiye_content_middle { width: calc(100% - 28px) !important; }
  body.shangzuo-product-page #product-page .mprolist { gap: 18px 10px; }
  body.shangzuo-product-page #product-page .mprolist_left a { display: block; font-size: 12px; line-height: 1.4; }
  body.shangzuo-product-page #product-page .neiye_prolist { gap: 16px 12px !important; }
  body.shangzuo-product-page #product-page .neiye_prolist_list { padding: 10px !important; border-radius: 16px !important; }
  body.shangzuo-product-page #product-page .neiye_prolist_list_title { height: 60px !important; min-height: 60px !important; padding: 8px 0 !important; font-size: 16px !important; line-height: 1.4; }
  body.shangzuo-product-page #product-page .neiye_prolist_list_button { margin: 6px auto !important; }
}


/* Active product category follows the orange site accent. */
body.shangzuo-product-page #product-page .mprolist_left.is-active a,
body.shangzuo-product-page #product-page .fist_product_category.is-active .news_category_under_list a { color: #ff8000 !important; font-weight: 700; }

/* 2026-10-30: stable product-category rail after shared theme styles. */
@media (min-width:601px){
 body.shangzuo-product-page #product-page .neiye_content_middle{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:40px!important;align-items:start!important;width:calc(100% - 64px)!important;max-width:1300px!important;margin:0 auto!important;}
 body.shangzuo-product-page #product-page .neiye_content_middle_left,body.shangzuo-product-page #product-page .neiye_content_middle_right{display:block!important;width:100%!important;min-width:0!important;margin:0!important;}
 body.shangzuo-product-page #product-page .neiye_product_left{width:100%!important;min-width:0!important;}
 body.shangzuo-product-page #product-page .neiye_product_content_under{width:100%!important;min-width:0!important;}
 body.shangzuo-product-page #product-page .neiye_prolist{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;width:100%!important;}
 body.shangzuo-product-page #product-page .news_category{width:100%!important;margin:0!important;box-sizing:border-box!important;}
}
@media (max-width:600px){
 body.shangzuo-product-page #product-page .neiye_content_middle{display:block!important;width:calc(100% - 28px)!important;}
 body.shangzuo-product-page #product-page .neiye_content_middle_left,body.shangzuo-product-page #product-page .neiye_content_middle_right{display:block!important;width:100%!important;}
 body.shangzuo-product-page #product-page .neiye_content_middle_right{margin-top:28px!important;}
 body.shangzuo-product-page #product-page .neiye_prolist{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
}
@media (max-width:420px){body.shangzuo-product-page #product-page .neiye_prolist{grid-template-columns:1fr!important;}}

/* 2026-10-30: final product listing/category rail. */
@media(min-width:601px){body.shangzuo-product-page #product-page .neiye_content_middle{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:32px!important;align-items:start!important;width:calc(100% - 64px)!important;max-width:1300px!important;margin:0 auto!important;}body.shangzuo-product-page #product-page .neiye_content_middle_left,body.shangzuo-product-page #product-page .neiye_content_middle_right{display:block!important;width:100%!important;min-width:0!important;margin:0!important;}body.shangzuo-product-page #product-page .neiye_prolist{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;width:100%!important;}}
@media(max-width:600px){body.shangzuo-product-page #product-page .neiye_content_middle{display:block!important;width:calc(100% - 28px)!important;}body.shangzuo-product-page #product-page .neiye_content_middle_left,body.shangzuo-product-page #product-page .neiye_content_middle_right{display:block!important;width:100%!important;}body.shangzuo-product-page #product-page .neiye_content_middle_right{margin-top:28px!important;}body.shangzuo-product-page #product-page .neiye_prolist{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}}
@media(max-width:420px){body.shangzuo-product-page #product-page .neiye_prolist{grid-template-columns:1fr!important;}}
