/* Tối ưu điện thoại dạng dọc (dưới 768px). Máy tính không bị ảnh hưởng. */
@media (max-width: 767px) {
  /* Lề hai bên gọn hơn để nội dung rộng hơn */
  .site-container { padding-inline: 16px; }
  html { scroll-padding-top: 64px; }
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  /* Ô tìm kiếm 16px để iPhone không tự phóng to */
  #site-search, #cfc-search { font-size: 16px; }

  /* Ảnh bìa trang chủ: thấp hơn, chữ nằm trên hàng thẻ số liệu */
  .cfc-hero .cfc-hero-img { height: 430px; }
  .cfc-hero-ov { padding-bottom: 96px; }
  .cfc-hero h1 { font-size: 27px; line-height: 1.16; }
  .cfc-hero p { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 14px; line-height: 1.5; }

  /* Thẻ số liệu: 3 thẻ một hàng, 5 thẻ vừa trong một màn hình */
  .st-row { gap: 8px; }
  .st-row .st-card { width: calc((100% - 16px) / 3); height: auto; }
  .st-row .st-link { height: 132px; padding: 10px 4px 8px; }
  .st-row .st-imgbox { height: 54px; }
  .st-row .st-img { height: 48px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .14)); }
  .st-row .st-num { margin-top: 6px; font-size: 18px; }
  .st-row .st-label { margin-top: 2px; padding-inline: 2px; font-size: 11px; line-height: 1.25; }

  /* Bộ lọc sản phẩm: thanh gọn, bấm để mở */
  .cat-filter { padding-bottom: 0; border: 1px solid var(--color-line, #e5e7eb); }
  .cat-filter > summary { padding: 12px 14px; }
  .cat-filter > summary h2 { font-size: 15px; letter-spacing: .02em; }
  .cat-filter > div { padding: 4px 14px 16px; }
  .cat-filter:not([open]) > summary svg { transform: rotate(180deg); }
}
