/* 拾野小店 移动端优化（2026-10-22）仅作用于 <=768px，不动桌面端 */
@media (max-width: 768px) {

  /* 顶部更紧凑 */
  .site-header { padding-top: 12px !important; padding-bottom: 4px !important; }
  .site-branding { margin-bottom: 6px !important; }
  .site-title { font-size: 21px !important; letter-spacing: .5px; }
  .menu-toggle { padding: 7px 12px !important; font-size: 14px !important; }
  .col-full { padding-left: 14px !important; padding-right: 14px !important; }

  /* 页面大标题瘦身 */
  .woocommerce-products-header__title.page-title,
  h1.page-title, .page-template-template-homepage .entry-title { font-size: 26px !important; margin-bottom: 6px !important; }
  .term-description, .page-description { font-size: 13px !important; line-height: 1.6; margin-bottom: 10px; }
  .woocommerce-result-count { font-size: 12px !important; float: none !important; margin-bottom: 6px; }
  .woocommerce-ordering { float: none !important; margin-bottom: 10px; }
  .woocommerce-ordering select { font-size: 13px !important; padding: 6px 8px; width: 100%; }

  /* 商品列表：两列卡片 */
  ul.products::before, ul.products::after { content: none !important; display: none !important; }
  ul.products { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin-left: 0 !important; }
  ul.products li.product {
    width: auto !important; float: none !important; clear: none !important;
    margin: 0 !important; background: #fff; border: 1px solid #efefef; border-radius: 12px;
    padding: 8px 8px 10px; box-sizing: border-box; box-shadow: 0 1px 5px rgba(0,0,0,.05);
    display: flex; flex-direction: column; text-align: left;
  }
  ul.products li.product img { border-radius: 8px; margin: 0 0 8px !important; width: 100%; }
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important; line-height: 1.45 !important; padding: 0 !important; margin: 0 0 4px !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
  }
  ul.products li.product .price { font-size: 16px !important; color: #e02e24 !important; font-weight: 700; margin-top: auto; margin-bottom: 2px; }
  ul.products li.product .price del { color: #aaa; font-size: 12px; font-weight: 400; }
  ul.products li.product .price ins { background: transparent; }
  ul.products li.product .button {
    margin-top: 8px !important; width: 100%; text-align: center; padding: 9px 2px !important;
    font-size: 13.5px !important; border-radius: 8px; background-color: #e02e24 !important; color: #fff !important;
  }
  ul.products li.product .onsale {
    font-size: 11px !important; padding: 2px 7px !important; top: 8px !important; left: 8px; right: auto !important;
    border-radius: 6px; z-index: 2;
  }

  /* 商品详情页 */
  .woocommerce-breadcrumb { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px !important; }
  .single-product h1.product_title { font-size: 21px !important; line-height: 1.4 !important; margin-bottom: 8px; }
  .single-product div.product p.price { font-size: 21px !important; color: #e02e24 !important; font-weight: 700; margin: 6px 0 12px; }
  .single-product div.product p.price del { color: #aaa; font-size: 15px; font-weight: 400; }
  .single-product .single_add_to_cart_button {
    width: 100% !important; padding: 14px 10px !important; font-size: 16px !important; border-radius: 10px !important;
    background-color: #e02e24 !important; float: none !important;
  }
  .single-product div.product .woocommerce-product-gallery { margin-bottom: 10px !important; }
  .single-product .product_meta { font-size: 12px; }

  /* 首页区块标题 */
  .home h2, .page-template-template-homepage h2 { font-size: 22px !important; }

  /* 联系客服浮窗：手机上只留圆形图标，不再压住正文和按钮 */
  #shiye-service { bottom: 150px !important; right: 8px !important; }
  #shiye-service-btn { font-size: 0 !important; padding: 11px !important; border-radius: 50% !important; gap: 0 !important; opacity: .97; }
  #shiye-service-popup { width: calc(100vw - 32px) !important; max-width: 320px; right: 16px !important; bottom: 212px !important; }

  /* 页脚文字 */
  .site-footer { font-size: 12.5px; }
  .storefront-handheld-footer-bar ul li a { padding-top: 9px; padding-bottom: 9px; }
}
