/* shop_area 商品 Grid / List 手机端（new / list-view / sales / category 共用） */
@media (max-width: 991px) {
  .shop_area .tab-content #home .row,
  .shop_area .tab-content #profile .row {
    margin-left: 0;
    margin-right: 0;
  }

  .shop_area .tab-content #home .row:not(.related-products-grid) > [class*="col-"],
  .shop_area .tab-content #profile .row > [class*="col-"],
  .shop_area .tab-content .product-cate-grid-col:not(.related-product-col) {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767px) {
  /* —— Grid（list-view 两列网格除外）—— */
  .shop_area #home .row:not(.related-products-grid) {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .shop_area #home .related-products-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .shop_area #home .related-products-grid > .product-cate-grid-col {
    width: 50% !important;
    max-width: 50% !important;
    clear: none !important;
    display: block !important;
    float: none !important;
    padding: 0 4px 8px !important;
    box-sizing: border-box !important;
  }

  .shop_area #home .product-cate-grid-col {
    padding: 0 !important;
  }

  .shop_area #home .product-cate-grid-col .all-pros {
    margin-bottom: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  }

  .shop_area #home .product_content {
    text-align: left;
    padding: 8px 10px 10px;
    border: none;
    border-top: 1px solid #f0f0f0;
  }

  .shop_area #home .product_name_2 h2 {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    overflow: hidden;
    margin: 0 0 4px;
    display: block;
  }

  .shop_area #home .product_name_2 h2 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100%;
    max-height: 60px;
    line-height: 1.4;
    font-size: 13px !important;
    font-weight: 600;
    margin: 0 !important;
    color: #333;
    font-family: Montserrat, sans-serif;
    white-space: normal;
  }

  .shop_area #home .product_price {
    margin-bottom: 4px;
  }

  .shop_area #home .price_box {
    margin: 0 0 8px !important;
  }

  .shop_area #home .price_rating > a > i {
    font-size: 11px;
  }

  .shop_area #home .spical-price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
  }

  .shop_area #home .last_button_area {
    margin: 0;
  }

  .shop_area #home .last_button_area .add-to-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .shop_area #home .last_button_area .add-to-links > li {
    float: none;
    padding: 0;
  }

  .shop_area #home .last_button_area .new_act {
    flex: 1 1 100%;
    order: 3;
  }

  .shop_area #home .last_button_area .addwishlist,
  .shop_area #home .last_button_area .addcompare {
    order: 1;
  }

  .shop_area #home .button_act {
    display: block;
    width: 100%;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    background: #2b98a2 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 4px rgba(43, 152, 162, 0.3);
  }

  .shop_area #home .button_act:hover {
    background: #238a93 !important;
    color: #fff !important;
    transform: none;
  }

  .shop_area #home .addwishlist .compare.button,
  .shop_area #home .addcompare .compare.button {
    width: 34px;
    height: 34px;
    line-height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e5e5 !important;
    background: #f8f8f8 !important;
    color: #666 !important;
  }

  /* —— List —— */
  .shop_area #profile .row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .shop_area #profile .product-cate-list-item {
    padding: 0 !important;
  }

  .shop_area #profile .product-cate-list-item .all-pros.br-ntf {
    margin-bottom: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  }

  .shop_area #profile .product-cate-list-item .row {
    margin: 0;
  }

  .shop_area #profile .product-cate-list-media img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    object-fit: cover;
  }

  .shop_area #profile .product-cate-list-item .product_name_3.prnm,
  .shop_area #profile .product-cate-list-item .action.actionmm {
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    border: none !important;
    display: block;
  }

  .shop_area #profile .product-cate-list-item .product_name_3.prnm {
    padding: 0 !important;
    margin: 0;
  }

  .shop_area #profile .product-cate-list-item .product_name_3 h2 a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
  }

  .shop_area #profile .product-cate-list-item .pro_discrip {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    border-top: none;
    margin-top: 6px;
    padding-top: 0;
  }

  .shop_area #profile .product-cate-list-item .action.actionmm {
    padding: 0 10px 10px;
  }

  .shop_area #profile .product-cate-list-item .price_rating > a > i {
    font-size: 11px;
  }

  .shop_area #profile .product-cate-list-item .price_box_tz {
    margin-bottom: 8px;
  }

  .shop_area #profile .product-cate-list-item .spical-price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
  }

  .shop_area #profile .product-cate-list-item .last_button_area {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .shop_area #profile .product-cate-list-item .new_act {
    width: 100%;
  }

  .shop_area #profile .product-cate-list-item .button_act {
    display: block;
    width: 100%;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    background: #2b98a2 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 4px rgba(43, 152, 162, 0.3);
  }

  .shop_area #profile .product-cate-list-item .button_act:hover {
    background: #238a93 !important;
    color: #fff !important;
  }

  .shop_area #profile .product-cate-list-item .new_div_class {
    display: none !important;
  }

  /* —— 分页（list-view / new / category / sales 共用）—— */
  .shop_area .shop-pagination-row {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .shop_area .navi_area {
    margin-left: 0;
    padding: 0 4px 12px;
    text-align: center;
  }

  .shop_area .navi_area::after {
    display: none;
  }

  .shop_area .navi_area .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop_area .navi_area .pagination::-webkit-scrollbar {
    display: none;
  }

  .shop_area .navi_area .pagination > li {
    float: none;
    margin: 0;
    flex-shrink: 0;
  }

  .shop_area .navi_area .pagination > li.page-ellipsis {
    pointer-events: none;
  }

  .shop_area .navi_area .pagination > li.page-ellipsis .page-link {
    border: none;
    background: transparent;
    color: #999;
    width: auto;
    min-width: 20px;
    padding: 0 2px;
  }

  .shop_area .navi_area .pagination > li a.page-link,
  .shop_area .navi_area .pagination > li .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    border-radius: 6px;
    box-sizing: border-box;
  }

  .shop_area .navi_area .pagination > li.active a.page-link,
  .shop_area .navi_area .pagination > li.active .page-link {
    background: #ffb128;
    color: #fff;
    border-color: #ffb128;
  }

  .shop_area .navi_area .pagination > li.disabled a.page-link,
  .shop_area .navi_area .pagination > li.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
  }
}
