/* Treasure 1.14: only the mobile related cards; no desktop or product UI changes. */
@media (max-width:767px) {
  body.single-product .td-mobile-related.td-related-swipe {
    overflow: hidden !important;
    width: min(calc(100% - 28px), 860px) !important;
  }
  body.single-product .td-related-swipe .td-related-heading {
    display:flex !important;
    align-items:baseline;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:5px 12px;
    margin:0 0 13px !important;
  }
  body.single-product .td-related-swipe .td-related-heading h2 {
    margin:0 !important;
  }
  /* v1.16: mobile related-products typography only. No card, gallery, or
     cart layout changes. Keep names in the database/title unchanged. */
  body.single-product .td-related-swipe .td-related-heading h2 {
    color:#111111 !important;
    text-transform:uppercase !important;
  }
  body.single-product .td-related-swipe .td-mobile-related-copy h3,
  body.single-product .td-related-swipe .td-mobile-related-copy h3 a,
  body.single-product .td-related-swipe .td-mobile-related-copy h3 a:visited,
  body.single-product .td-related-swipe .td-mobile-related-copy h3 a:hover,
  body.single-product .td-related-swipe .td-mobile-related-copy h3 a:focus {
    color:#111111 !important;
    text-transform:uppercase !important;
  }
  /* v1.17: price in Products You May Like matches black heading and titles. */
  body.single-product .td-related-swipe .td-mobile-related-copy .price,
  body.single-product .td-related-swipe .td-mobile-related-copy .price .woocommerce-Price-amount,
  body.single-product .td-related-swipe .td-mobile-related-copy .price .woocommerce-Price-currencySymbol,
  body.single-product .td-related-swipe .td-mobile-related-copy .price bdi,
  body.single-product .td-related-swipe .td-mobile-related-copy .price ins {
    color:#111111 !important;
  }
  body.single-product .td-related-swipe .td-related-hint {
    color:#6c7e91;
    font-size:11px;
    font-weight:600;
    white-space:nowrap;
    font-family:'Manrope',system-ui,sans-serif;
  }
  body.single-product .td-mobile-related.td-related-swipe .td-mobile-related-grid.td-related-track {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    grid-template-columns:none !important;
    align-items:stretch !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:12px !important;
    padding:2px 3px 12px !important;
    margin:0 !important;
    scroll-snap-type:x proximity;
    scroll-padding-inline:3px;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
    scrollbar-width:thin;
    scrollbar-color:#d5dfec transparent;
    touch-action:pan-x pan-y;
  }
  body.single-product .td-related-swipe .td-related-track:focus-visible {
    outline:2px solid #2469e8;
    outline-offset:2px;
    border-radius:12px;
  }
  body.single-product .td-related-swipe .td-related-track > .td-mobile-related-card {
    box-sizing:border-box !important;
    width:clamp(154px,44vw,194px) !important;
    min-width:clamp(154px,44vw,194px) !important;
    max-width:clamp(154px,44vw,194px) !important;
    flex:0 0 clamp(154px,44vw,194px) !important;
    scroll-snap-align:start;
    align-self:stretch;
  }
  body.single-product .td-related-swipe .td-mobile-related-image {
    flex:none;
  }
  body.single-product .td-related-swipe .td-mobile-related-copy {
    flex:1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.single-product .td-related-swipe .td-related-track {scroll-behavior:auto;}
}
