/* Let the browser handle swipes without dragging images or chaining sideways. */
.brands-track, #industries-preview { overscroll-behavior-x:contain; scroll-behavior:auto; }
.brands-track img { user-select:none; -webkit-user-drag:none; }
.strip-heading { display:flex; align-items:center; gap:12px; margin-bottom:30px; }
.strip-heading .section-title { flex:1; margin-bottom:0; }
.strip-play-toggle { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:44px; height:44px; padding:0; border:1px solid var(--border-dark); border-radius:50%; background:#fff; color:var(--dark-color); cursor:pointer; }
.strip-play-toggle::before { content:''; display:block; box-sizing:border-box; width:12px; height:14px; border-left:4px solid currentColor; border-right:4px solid currentColor; }
.strip-play-toggle[data-paused="true"]::before { width:0; height:0; margin-left:3px; border-left:12px solid currentColor; border-right:0; border-top:7px solid transparent; border-bottom:7px solid transparent; }
.strip-play-toggle:hover { background:#eef2f5; }
.strip-play-toggle:focus-visible { outline:3px solid #c82333; outline-offset:3px; }

/* Phone layouts: keep the existing navigation and quotation controls within reach. */
@media (max-width: 768px) {
  .main-header { padding:10px 0; }
  .main-header .container {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"logo saved" "search search";
    align-items:center;
    gap:10px 12px;
    text-align:start;
    padding-inline:16px;
  }
  .main-header .brand-logo { grid-area:logo; min-width:0; height:44px; }
  .main-header .brand-logo img { width:auto; height:auto; max-width:100%; max-height:44px; }
  .main-header .header-saved-btn { grid-area:saved; min-width:44px; min-height:44px; justify-content:center; }
  .main-header .search-wrapper { grid-area:search; min-width:0; width:100%; max-width:none; }
  .main-header .search-wrapper input { min-width:0; padding:10px 12px; }
  .main-header .search-wrapper button { flex:0 0 48px; padding:0; min-height:44px; }
  .mobile-menu-header { padding:3px 0; }
  .mobile-menu-btn { min-width:44px; min-height:44px; }
  .mobile-bottom-nav a { min-height:44px; justify-content:center; }
  #chat-toggle { width:48px; height:48px; font-size:23px; }
  /* Keep the quotation's quantity and contact fields clear of the floating launcher. */
  #page-cart.active ~ #ai-chat-widget #chat-toggle { display:none; }
  html.mobile-header-search .main-header .container { display:flex; }

  /* Sixteen-pixel fields stay readable when a phone keyboard opens. */
  input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]),
  select,
  textarea { font-size:16px !important; min-height:44px; min-width:0; }
  .form-control { max-width:100%; }
  .btn,
  .page-btn,
  .filter-mobile-toggle,
  .search-category-tab { min-height:44px; }
  .page-btn { min-width:44px; }
  #category-toolbox input { height:44px; }
  #category-toolbox .dimension-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #category-toolbox .dimension-row .btn { grid-column:1/-1; min-height:44px; }
  #category-toolbox .popular-searches { padding-block:4px; }
  #category-toolbox .popular-searches { scrollbar-width:none; }
  #category-toolbox .popular-searches::-webkit-scrollbar { display:none; }
  #category-toolbox .search-chip { min-height:40px; display:inline-flex; align-items:center; }
  #page-products .filter-mobile-toggle { min-height:44px; }
  #page-products .filter-sort-bar input,
  #page-products .filter-sort-bar select { width:100%; min-width:0; }
  .card-qty-row .qty-input,
  .qty-control .qty-input { min-height:0; }

  /* Long codes, contact addresses and PDF cards must fit narrow phone screens. */
  .products-grid-container { grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr)); }
  .catalog-grid { grid-template-columns:minmax(0,1fr) !important; }
  .contact-layout,
  .cart-layout,
  .tech-tools-grid { min-width:0; }
  .contact-layout > *,
  .cart-layout > *,
  .contact-detail-list li > div { min-width:0; }
  .contact-info-card,
  .rfq-form-card { padding:20px; }
  .contact-detail-list a,
  .contact-detail-list li > div,
  .cart-item-name,
  .product-title,
  .detail-info-col h1 { overflow-wrap:anywhere; }
  .contact-detail-list i { flex-shrink:0; }
  .detail-img-col { height:clamp(220px,70vw,320px); min-width:0; }
  #page-product-detail #detail-name { font-size:26px !important; }

  /* Product identity gets its own row; brand and quantity retain their labels. */
  .cart-table tr { padding:14px; }
  .cart-table td { padding:10px 0 10px 34%; min-height:44px; text-align:end; }
  .cart-table td::before { left:0; width:31%; }
  .cart-table td:first-child { padding:4px 40px 14px 0; text-align:start; }
  .cart-table td:first-child::before { display:none; }
  .cart-table td:first-child > div { min-width:0; }
  .cart-table td:first-child img { flex-shrink:0; }
  .cart-table td:last-child { padding:0; min-height:0; position:static; }
  .cart-table .cart-item-brand { font-size:14px; overflow-wrap:anywhere; }
  .cart-table .qty-control { margin-inline-start:auto; height:46px; }
  .cart-table .qty-btn { min-width:44px; padding:0; font-size:20px; }
  .cart-table .qty-input { width:48px; }
  .cart-table .remove-btn { width:44px; height:44px; top:8px; right:8px; padding:0; }
  .rfq-form-card { position:static; }
  #cart-total-footer .btn { min-height:44px; }
}

@media (max-width:360px) {
  .top-bar .lang-switcher { gap:3px; }
  .top-bar .lang-switcher img { width:17px; height:12px; }
  .top-bar-right { gap:6px; }
  .top-bar { font-size:10px; }
}

/* Touch browsers can retain :hover after a tap; keep cards and logos still. */
@media (max-width:768px) and (hover:none), (max-width:768px) and (pointer:coarse) {
  .product-card:hover,
  .brand-card:hover,
  .brand-logo:hover,
  .industry-card:hover,
  .resource-card:hover,
  .btn-accent:hover,
  .btn-whatsapp:hover,
  .remove-btn:hover { transform:none; }
}
