/* Shared FILTER | SORT bar, drawer and sort menu (home.php, category-grid.php). */
    /* ---- Filter / sort (design pass) ---- */
    .ls-bar { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e5e7eb; margin: 0 -8px -8px; background: #fff; }
    .ls-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 8px;
      background: #fff; border: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #111; position: relative; cursor: pointer; }
    .ls-btn:active { background: #f8fafc; }
    .ls-btn > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
    .ls-btn > span small { font-size: 10px; letter-spacing: .04em; text-transform: none; font-weight: 600; color: #FCB800; }
    .ls-bar > .ls-btn:first-child { border-right: 1px solid #e5e7eb; }
    .ls-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FCB800; color: #111; font-size: 11px; font-weight: 800; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }
    .ls-sortwrap { position: relative; }
    .ls-menu { position: absolute; right: 8px; top: calc(100% + 6px); z-index: 70; min-width: 240px; list-style: none; margin: 0; padding: 6px;
      background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.16); }
    .ls-menu li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px;
      font-size: 13.5px; font-weight: 600; color: #222; cursor: pointer; }
    .ls-menu li i { font-style: normal; color: #FCB800; font-weight: 800; opacity: 0; }
    .ls-menu li.on { background: #fff7dc; color: #111; }
    .ls-menu li.on i { opacity: 1; }
    .ls-menu li.ls-menu-h { color: #999; cursor: default; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 4px; }
    .ls-menu li:not(.ls-menu-h):hover { background: #f5f5f5; }
    .ls-overlay { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }
    .ls-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 9991; width: 88%; max-width: 360px; background: #fff;
      display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(0,0,0,.2); transform: translateX(-100%); transition: transform .28s ease; border-top: 4px solid #FCB800; }
    .ls-drawer.open { transform: translateX(0); }
    .ls-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eee; font-size: 20px; font-weight: 700; color: #111; }
    .ls-head b { font-size: 11px; font-weight: 800; color: #111; background: #FCB800; border-radius: 999px; padding: 3px 8px; vertical-align: middle; margin-left: 6px; }
    .ls-head-r { display: flex; align-items: center; gap: 6px; }
    .ls-clear-top { font-size: 12px; font-weight: 700; color: #2563eb; padding: 6px 8px; }
    .ls-x { background: #f1f5f9; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: #333; cursor: pointer; }
    .ls-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .ls-sec { border-bottom: 1px solid #eee; }
    .ls-sec summary { list-style: none; cursor: pointer; padding: 15px 18px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #111;
      display: flex; align-items: center; gap: 8px; }
    .ls-sec summary::-webkit-details-marker { display: none; }
    .ls-sec summary::after { content: '⌄'; margin-left: auto; font-size: 15px; color: #555; transition: transform .2s; }
    .ls-sec[open] summary { background: #fffbea; }
    .ls-sec[open] summary::after { transform: rotate(180deg); }
    .ls-n { font-size: 10.5px; font-weight: 700; letter-spacing: 0; color: #666; background: #f1f5f9; border-radius: 999px; padding: 2px 7px; }
    .ls-sec summary em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 700; color: #b58300; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
    .ls-find { padding: 8px 18px 4px; }
    .ls-find input { width: 100%; box-sizing: border-box; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; font-size: 16px; outline: none; }
    .ls-find input:focus { border-color: #FCB800; box-shadow: 0 0 0 3px rgba(252,184,0,.22); }
    .ls-list { padding: 2px 18px 10px; max-height: 40vh; overflow-y: auto; }
    .ls-opt { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: #222; cursor: pointer; }
    .ls-opt input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 2px solid #cbd5e1; border-radius: 6px; flex-shrink: 0; display: grid; place-content: center; background: #fff; }
    .ls-opt input::before { content: ''; width: 11px; height: 11px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #111; transform: scale(0); transition: transform .12s; }
    .ls-opt input:checked { border-color: #FCB800; background: #FCB800; }
    .ls-opt input:checked::before { transform: scale(1); }
    .ls-opt.ls-all { border-bottom: 1px dashed #e5e7eb; margin-bottom: 4px; padding-bottom: 10px; }
    .ls-opt input:checked + span { font-weight: 700; }
    .ls-price { padding: 6px 18px 18px; }
    .ls-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eee; background: #fff; }
    .ls-foot .ls-clear { text-align: center; padding: 13px; border: 1.5px solid #111; border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #111; cursor: pointer; }
    .ls-foot .ls-apply { padding: 13px; background: #FCB800; color: #111; border: 0; border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 18px rgba(252,184,0,.35); }
    body.ls-lock { overflow: hidden; }
