/* Mobile product detail tab nav: single row, horizontal scroll, sticky below site header */
@media (max-width: 1025px) {
  .Menubox {
    padding: 0;
    height: 48px;
    line-height: 48px;
    margin-top: 0;
    background: #fff;
    border-bottom: 1px solid #dedede;
    position: relative;
    overflow: hidden;
  }

  .Menubox.Menubox--stuck {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  .Menubox-sticky-placeholder {
    display: block;
    height: 0;
  }

  .Menubox ul {
    display: flex;
    flex-wrap: nowrap;
    float: none;
    width: 100%;
    height: 48px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .Menubox ul::-webkit-scrollbar {
    display: none;
  }

  .Menubox ul:after {
    display: none;
  }

  .Menubox ul li {
    flex: 0 0 auto;
    display: block;
    width: auto;
    padding: 0;
    margin-right: 0;
    text-align: center !important;
    white-space: nowrap;
    border-bottom: 0;
    height: 47px;
  }

  .Menubox ul li.hover {
    border-bottom: 2px solid #565656;
  }

  .Menubox ul li a {
    white-space: nowrap;
  }

  .Menubox ul li.hover a {
    text-align: center;
    color: #333;
  }

  .Menubox.paddlr30 {
    padding: 0;
  }

  #products_add_cart.product_sticky--mobile {
    position: fixed !important;
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: none;
    transform: translate3d(0, 110%, 0) !important;
    border-bottom: none;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 998;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  #products_add_cart.product_sticky--mobile.active {
    transform: translate3d(0, 0, 0) !important;
  }

  #products_add_cart.product_sticky--mobile .product_container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #products_add_cart.product_sticky--mobile .product_tab_wap {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #products_add_cart.product_sticky--mobile .product_proinfo {
    float: none;
    flex: 0 0 48px;
    min-width: 48px;
    max-width: 48px;
  }

  #products_add_cart.product_sticky--mobile .product_proinfo dl {
    margin: 0;
  }

  #products_add_cart.product_sticky--mobile .product_proinfo dl dt {
    float: none;
  }

  #products_add_cart.product_sticky--mobile .product_proinfo dl dd {
    display: none !important;
  }

  #products_add_cart.product_sticky--mobile .product_proinfo .product_proinfo_img,
  #products_add_cart.product_sticky--mobile .product_proinfo dl dt img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  #products_add_cart.product_sticky--mobile .product_sticky_add {
    position: static;
    top: auto;
    right: auto;
    flex: 1;
    min-width: 0;
  }

  #products_add_cart.product_sticky--mobile .product_sticky_add ul {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  #products_add_cart.product_sticky--mobile .product_sticky_add ul li {
    float: none;
    display: block;
  }

  /* 仅显示价格，隐藏库存文案 */
  #products_add_cart.product_sticky--mobile .product_sticky_add ul li:first-child {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 96px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  #products_add_cart.product_sticky--mobile .product_sticky_newDetali_txt {
    display: none !important;
  }

  #products_add_cart.product_sticky--mobile .product_sticky_add ul li:nth-child(2) {
    flex: 0 0 auto;
  }

  #products_add_cart.product_sticky--mobile .product_list_text {
    margin: 0 !important;
  }

  #products_add_cart.product_sticky--mobile .product_sticky_btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  #products_add_cart.product_sticky--mobile .new_pro_addCart_btn {
    width: 100%;
    height: 40px;
    line-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 14px;
    box-sizing: border-box;
  }

  body.product-detail-cart-active #tidio-chat-iframe,
  body.product-detail-cart-active #tidio-chat,
  body.product-detail-cart-active iframe[id^="tidio"] {
    bottom: var(--product-cart-bar-offset, 72px) !important;
  }
}

@media (min-width: 1026px) {
  #products_add_cart.active:not(.product_sticky--mobile) {
    z-index: 2147483646;
  }

  body.product-detail-cart-active #tidio-chat-iframe,
  body.product-detail-cart-active #tidio-chat,
  body.product-detail-cart-active iframe[id^="tidio"] {
    bottom: var(--product-cart-bar-offset, 20px) !important;
  }
}
