/* Each feature is scoped by its body class; desktop rules are unchanged. */
@media (max-width: 767px) {
  .tbtech-mobile-product .tbtech-mobile-title {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px 12px;
  }
  .tbtech-mobile-product .tbtech-mobile-title h1 {
    margin: 0;
    font-size: 21px !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere;
  }
  .tbtech-mobile-product.postid-8558 .main-asl-product-1 > .tbtech-mobile-title {
    float: right;
    clear: both;
  }
  .tbtech-mobile-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto;
    padding: 8px 2px 12px !important;
    margin: 0 !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .tbtech-mobile-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 64px;
    width: 64px !important;
    min-width: 64px;
    float: none !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
  .tbtech-mobile-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
  }
  .tbtech-mobile-product .tbtech-buy-shortcut {
    position: fixed;
    z-index: 9990;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #cbd5e1;
    box-shadow: 0 -3px 18px #0f172a18;
    box-sizing: border-box;
  }
  .tbtech-mobile-product .tbtech-buy-shortcut[hidden] { display: none !important; }
  .tbtech-mobile-product .tbtech-buy-shortcut button {
    min-height: 48px;
    flex: 1;
    border: 0;
    border-radius: 8px;
    background: #166534;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
  }
  .tbtech-mobile-product .tbtech-buy-shortcut-price {
    max-width: 48%;
    font-size: 15px;
    line-height: 1.7;
    color: #0f172a;
  }
  .tbtech-buy-shortcut-active { padding-bottom: 92px !important; }

  .tbtech-mobile-catalog .product-list-1 h3 {
    height: auto !important;
    min-height: 72px;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    white-space: normal !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    overflow-wrap: anywhere;
  }
  /* Replace the theme's uneven floated catalog rows only on the verified
     WooCommerce card wrapper. Carousel widgets retain their own layout. */
  .tbtech-mobile-catalog .products.columns-3:has(> .product-list-45645654) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .tbtech-mobile-catalog .products.columns-3:has(> .product-list-45645654)::before,
  .tbtech-mobile-catalog .products.columns-3:has(> .product-list-45645654)::after {
    display: none !important;
  }
  .tbtech-mobile-catalog .products.columns-3 > .product-list-45645654 {
    width: 100% !important;
    min-width: 0;
    float: none !important;
    box-sizing: border-box;
  }
  .tbtech-mobile-catalog .products.columns-3 > .product-list-45645654 > .ps1-1 {
    height: 100%;
  }
  .tbtech-mobile-catalog .products.columns-3 > .product-list-45645654 .product-list-1 {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .tbtech-mobile-catalog .products.columns-3 > .product-list-45645654 .product-list-1 > .list-meta {
    margin-top: auto;
  }
  .tbtech-mobile-catalog .product-list-1 .risk-meta {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 4px;
    align-items: center;
    height: auto !important;
    min-height: 0;
  }
  .tbtech-mobile-catalog .product-list-1 .risk-meta > * {
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
  }
  .tbtech-mobile-catalog .product-list-1 .risk-meta button,
  .tbtech-mobile-catalog .product-list-1 a.add_to_wishlist {
    min-width: 44px;
    min-height: 44px;
  }
  .tbtech-mobile-catalog .product-list-1 .farnam-add-to-cart-42214 {
    grid-column: 1 / -1;
  }
  .tbtech-mobile-catalog .product-list-1 .farnam-add-to-cart-42214 a.add_to_cart_button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 46px;
    height: auto !important;
    padding: 10px 4px !important;
    box-sizing: border-box;
    text-indent: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    background-image: none !important;
    background-color: #00647a !important;
    color: #fff !important;
    border-radius: 8px;
  }
  .tbtech-mobile-catalog .product-list-1 .farnam-add-to-cart-42214 a.add_to_cart_button::before,
  .tbtech-mobile-catalog .product-list-1 .farnam-add-to-cart-42214 a.add_to_cart_button::after {
    display: none !important;
  }
  .tbtech-mobile-catalog .product-list-1 .woocommerce-Price-amount {
    font-size: 16px;
    line-height: 1.7;
    white-space: normal;
  }
  .tbtech-mobile-catalog .dgwt-wcas-suggestion-more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
  }
}
