/* v2.7.3b: Catalog-only mobile refinements. Desktop and admin unchanged. */
.ls-mobile-filters { display: none; }
@media(max-width:850px){
  .ls-compact-catalog > .sidebar,
  .ls-compact-catalog .ls-desktop-facets,
  .ls-compact-catalog .filter-toggle { display: none !important; }
  .ls-compact-catalog { margin-top: 16px; gap: 0; }
  .ls-compact-catalog .section-head { align-items: center; margin: 0 0 10px; gap: 8px; }
  .ls-compact-catalog .section-head > div { min-width: 0; flex: 1 1 145px; }
  .ls-compact-catalog .section-head .eyebrow { display: none; }
  .ls-compact-catalog .section-head h2 { font-size: 21px; letter-spacing: -.35px; overflow-wrap: anywhere; }
  html[lang=km] .ls-compact-catalog .section-head h2 { font-size: 19px; line-height: 1.55; letter-spacing: 0; }
  .ls-compact-catalog .section-head .meta { font-size: 12px; margin-top: 2px; }
  .ls-compact-catalog .section-head .sort-form { flex: 0 1 auto; min-width: 0; }
  .ls-compact-catalog .section-head select { font-size: 12px; min-height: 40px; padding: 7px 9px; max-width: 150px; border: 1px solid #e0e6ef; }
  .ls-mobile-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 8px; margin: 0 0 12px; }
  .ls-mobile-filter { min-width: 0; border: 1px solid #dce4ef; border-radius: 16px; background: #fff; }
  .ls-mobile-filter summary { position: relative; list-style: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 7px 30px 7px 12px; color: #172337; border-radius: 16px; line-height: 1.45; }
  .ls-mobile-filter summary::-webkit-details-marker { display: none; }
  .ls-filter-label { font-size: 11px; color: #58677b; font-weight: 500; }
  .ls-filter-value { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ls-filter-chevron { position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #50627b; border-bottom: 2px solid #50627b; transform: translateY(-65%) rotate(45deg); }
  .ls-mobile-filter[open] { grid-column: 1 / -1; border-color: #a6c8f6; }
  .ls-mobile-filter[open] .ls-filter-chevron { transform: translateY(-20%) rotate(225deg); }
  .ls-filter-options { max-height: min(42vh, 320px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 8px; border-top: 1px solid #e8edf5; }
  .ls-filter-options a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 10px; border-radius: 10px; color: #23364e; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
  .ls-filter-options a small { flex: 0 0 auto; color: #58677b; font-size: 11px; }
  .ls-filter-options a.is-selected { color: #0759c9; font-weight: 700; background: #e5efff; }
  .ls-filter-options a:focus-visible,.ls-mobile-filter summary:focus-visible { outline: 2px solid #0866e8; outline-offset: -2px; }
  .ls-mobile-clear { grid-column: 1 / -1; justify-self: end; padding: 2px 4px; color: #0759c9; font-size: 12px; }
}
@media(max-width:700px){
  /* These rules are loaded only by index.php, not by other public pages. */
  .site-head .head-row { gap: 6px; padding-top: 7px; padding-bottom: 5px; }
  .site-head .brand { font-size: 14px; line-height: 1.55; gap: 7px; }
  .site-head .brand small { font-size: 8px; letter-spacing: .4px; line-height: 1.4; }
  .site-head .ls-brand-mark { width: 42px; height: 40px; }
  .site-head .brand .logo { width: 38px; height: 38px; }
  .site-head .ls-lang { padding: 2px; }
  .site-head .ls-lang a { padding: 2px 7px; min-height: 32px; font-size: 11px; }
  .site-head .mobile-contact { display:none; }
  .site-head .search { padding: 3px 3px 3px 12px; }
  .site-head .search input { font-size: 14px; }
  .site-head .search button { font-size: 13px; padding: 8px 15px; min-height: 36px; }
  .site-head .nav-row { gap: 4px; padding-top: 2px; padding-bottom: 7px; }
  .site-head .nav-row a { font-size: 13px; padding: 7px 12px; min-height: 36px; }
  .ls-compact-catalog .product-grid { gap: 9px; }
  .ls-compact-catalog .product-body .specs { min-height: 0; }
  .floating { font-size: 12px; padding: 8px 12px; right: 10px; bottom: 10px; bottom: max(10px,env(safe-area-inset-bottom)); }
}
