/* sb-mobile-grid */
@media (max-width: 700px) {

  /* ---- Two-up product grid ---- */
  .products { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

  /* Thumbnail sized by its column rather than a fixed pixel height, so the
     image scales with the card instead of dominating the viewport. */
  .card .thumb { height: auto !important; aspect-ratio: 1 / 1; padding: 8px !important; }
  .card .thumb .real-vial { max-height: 100% !important; max-width: 100% !important; }
  .card .tag { font-size: 9px !important; padding: 3px 7px !important; }

  .card .body { padding: 10px 11px 11px !important; }
  .card .body .top { flex-direction: row !important; align-items: flex-start !important; gap: 6px !important; }
  .card .body h2.sb-card-title { font-size: 13.5px !important; line-height: 1.25 !important; }
  .card .body .price { font-size: 13.5px !important; }
  .card .body .price small { font-size: 9px !important; }

  .card .cat {
    font-size: 10.5px !important; margin: 5px 0 9px !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* One full-width action. Both buttons sat inside the same card link and led
     to the same product page, so hiding one loses nothing. */
  .card .actions { flex-wrap: nowrap !important; gap: 0 !important; }
  .card .actions .btn-ghost { display: none !important; }
  .card .actions .btn:not(.btn-ghost) {
    flex: 1 1 100% !important; font-size: 12px !important; padding: 8px !important;
  }

  /* ---- Bring the grid above the fold ---- */
  .sb-archive .sec-head { margin-bottom: 14px !important; }
  .sb-archive .sec-head .eyebrow { font-size: 10px !important; padding: 4px 10px !important; margin-bottom: 8px !important; }
  .sb-archive .sec-head h1 { font-size: 26px !important; margin: 0 0 6px !important; }
  .sb-archive .sec-head p { font-size: 12.5px !important; line-height: 1.45 !important; margin: 0 auto !important; max-width: 46ch; }

  /* The Research Use Only notice stays fully visible and legible - only its
     padding is trimmed. Do not hide or shrink this further. */
  .sb-ruo-strip { padding: 10px 12px !important; margin: 12px 0 !important; gap: 8px !important; }
  .sb-ruo-strip p { font-size: 11.5px !important; line-height: 1.45 !important; }
  .sb-ruo-strip svg { width: 16px !important; height: 16px !important; }

  /* Search and sort share one row. The search box carried min-width:240px,
     which together with flex-wrap forced the sort control onto its own line. */
  .sb-shop-controls {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: center !important; gap: 8px !important; margin: 0 0 12px !important;
  }
  .sb-shop-controls .sb-search { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; padding: 0 14px !important; }
  .sb-shop-controls .sb-search input { font-size: 13px !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  .sb-shop-controls .woocommerce-ordering { flex: 0 0 auto !important; margin: 0 !important; }
  .sb-shop-controls .woocommerce-ordering select { width: auto !important; font-size: 12.5px !important; padding: 10px 26px 10px 10px !important; }
}
