/* ============================================================
   HUNG SEARCH - Tim kiem cho vinfastautolongbien.com
   File: assets/hung-search.css
   Mau chu dao: #f02b2b
   ============================================================ */

.hs-root, .hs-root * { box-sizing: border-box; }

/* ---------- Nut kinh lup ---------- */
.hs-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:0; padding:0; margin:0 6px;
  border-radius:50%; cursor:pointer;
  background:transparent; color:#1a1a1a;   /* mau icon kinh lup - header nen trang */
  transition:background .18s ease, transform .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.hs-btn:hover{ background:rgba(0,0,0,.06); transform:scale(1.05); }
.hs-btn svg{ width:20px; height:20px; display:block; }
.hs-btn--dark{ background:transparent; color:#1a1a1a; }
.hs-btn--dark:hover{ background:rgba(0,0,0,.06); }

/* Nut noi khong gan duoc vao header -> noi tren man hinh */
.hs-btn--float{
  position:fixed; right:14px; bottom:80px; z-index:99990;
  width:50px; height:50px; background:#fff; color:#1a1a1a;
  border:1px solid #e6e6e6;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.hs-btn--float:hover{ background:#f2f2f2; }

/* ---------- Lop phu ---------- */
.hs-overlay{
  position:fixed; inset:0; z-index:99999;
  background:rgba(17,17,17,.55);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  display:none; opacity:0; transition:opacity .18s ease;
  overscroll-behavior:contain;
}
.hs-overlay.is-open{ display:block; opacity:1; }

.hs-panel{
  position:absolute; left:50%; top:56px; transform:translateX(-50%) translateY(-8px);
  width:min(720px, calc(100% - 24px)); max-height:calc(100vh - 88px);
  background:#fff; border-radius:16px; overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  display:flex; flex-direction:column;
  transition:transform .2s ease;
  font-family:inherit;
}
.hs-overlay.is-open .hs-panel{ transform:translateX(-50%) translateY(0); }

/* ---------- Thanh nhap ---------- */
.hs-bar{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-bottom:1px solid #eee;
  background:#fff; flex:0 0 auto;
}
.hs-bar .hs-ico{ width:20px; height:20px; color:#1a1a1a; flex:0 0 auto; }
.hs-input{
  flex:1 1 auto; border:0; outline:0; background:transparent;
  font-size:16px; line-height:24px; color:#1a1a1a;
  font-family:inherit; min-width:0; padding:4px 0;
}
.hs-input::placeholder{ color:#a5a5a5; }
.hs-input::-webkit-search-cancel-button,
.hs-input::-webkit-search-decoration{ -webkit-appearance:none; appearance:none; display:none; }
.hs-clear, .hs-close{
  border:0; background:#f3f3f3; color:#666; cursor:pointer;
  width:30px; height:30px; border-radius:50%;
  display:none; align-items:center; justify-content:center; flex:0 0 auto;
  font-size:16px; line-height:1;
}
.hs-clear.is-on{ display:flex; }
.hs-close{ display:flex; }
.hs-clear:hover, .hs-close:hover{ background:#e6e6e6; color:#111; }
.hs-close .hs-back{ display:none; }

/* ---------- Vung ket qua ---------- */
.hs-body{
  flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:8px 0 14px;
}
.hs-sec-title{
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:#8c8c8c; padding:12px 16px 6px;
}
.hs-item{
  display:flex; align-items:center; gap:12px;
  padding:10px 16px; text-decoration:none; color:inherit;
  border-left:3px solid transparent; cursor:pointer;
}
.hs-item:hover, .hs-item.is-active{ background:#fff5f5; border-left-color:#f02b2b; }
.hs-thumb{
  width:64px; height:48px; flex:0 0 64px; border-radius:8px; overflow:hidden;
  background:#f4f4f4; display:flex; align-items:center; justify-content:center;
}
.hs-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.hs-thumb--icon{ color:#f02b2b; font-size:18px; font-weight:700; }
.hs-txt{ flex:1 1 auto; min-width:0; }
.hs-name{
  font-size:15px; font-weight:600; color:#1a1a1a; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.hs-sub{
  font-size:12.5px; color:#7a7a7a; margin-top:2px;
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.hs-price{ font-size:14px; font-weight:700; color:#f02b2b; margin-top:3px; }
.hs-cta{
  flex:0 0 auto; font-size:12.5px; font-weight:600; color:#f02b2b;
  border:1px solid #f7bcbc; background:#fff; border-radius:20px;
  padding:6px 12px; white-space:nowrap;
}
.hs-item:hover .hs-cta{ background:#f02b2b; border-color:#f02b2b; color:#fff; }
.hs-mark{ background:#ffe8b3; color:inherit; padding:0 1px; border-radius:3px; }

/* ---------- Tu khoa hot ---------- */
.hs-hot{ padding:14px 16px; }
.hs-hot-lb{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#8c8c8c; margin-bottom:10px; }
.hs-chip{
  display:inline-block; margin:0 8px 8px 0; padding:8px 14px;
  border-radius:20px; background:#f6f6f6; color:#333;
  font-size:13.5px; cursor:pointer; border:1px solid #ececec;
}
.hs-chip:hover{ background:#f02b2b; border-color:#f02b2b; color:#fff; }

/* ---------- Dang tai ---------- */
.hs-load{ padding:26px 16px; text-align:center; color:#999; font-size:13.5px; }
.hs-spin{
  width:22px; height:22px; margin:0 auto 10px;
  border:2.5px solid #f0f0f0; border-top-color:#f02b2b; border-radius:50%;
  animation:hs-rot .7s linear infinite;
}
@keyframes hs-rot{ to{ transform:rotate(360deg); } }
.hs-skel{ padding:10px 16px; display:flex; gap:12px; align-items:center; }
.hs-skel i{ display:block; background:linear-gradient(90deg,#f2f2f2,#e9e9e9,#f2f2f2); background-size:200% 100%; animation:hs-sh 1.1s linear infinite; border-radius:8px; }
.hs-skel .a{ width:64px; height:48px; flex:0 0 64px; }
.hs-skel .b{ height:12px; width:70%; margin-bottom:8px; }
.hs-skel .c{ height:10px; width:40%; }
@keyframes hs-sh{ to{ background-position:-200% 0; } }

/* ---------- Khong co ket qua ---------- */
.hs-empty{ padding:20px 16px 6px; text-align:center; }
.hs-empty-ic{ font-size:30px; line-height:1; margin-bottom:8px; }
.hs-empty-t{ font-size:15.5px; font-weight:700; color:#1a1a1a; margin-bottom:4px; }
.hs-empty-d{ font-size:13.5px; color:#777; margin-bottom:14px; }
.hs-acts{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:6px; }
.hs-act{
  display:inline-flex; align-items:center; gap:7px; text-decoration:none;
  padding:11px 18px; border-radius:26px; font-size:14px; font-weight:700;
}
.hs-act--call{ background:#f02b2b; color:#fff; }
.hs-act--call:hover{ background:#d31f1f; color:#fff; }
.hs-act--zalo{ background:#0068ff; color:#fff; }
.hs-act--zalo:hover{ background:#0055d4; color:#fff; }

/* ---------- Chan ---------- */
.hs-foot{
  flex:0 0 auto; border-top:1px solid #f0f0f0; background:#fafafa;
  padding:8px 14px; font-size:11.5px; color:#9a9a9a;
  display:flex; justify-content:space-between; gap:10px;
}
.hs-kbd{ display:inline-block; border:1px solid #ddd; border-bottom-width:2px; border-radius:4px; padding:0 5px; background:#fff; font-size:10.5px; color:#777; }
.hs-foot .hs-hide-mb{ display:inline; }

/* ---------- Dien thoai: toan man hinh ---------- */
@media (max-width: 767px){
  .hs-panel{
    top:0; left:0; transform:none; width:100%; max-height:100%;
    height:100%; height:100dvh; border-radius:0;
  }
  .hs-overlay.is-open .hs-panel{ transform:none; }
  .hs-bar{ padding:12px 12px; }
  .hs-close{ order:-1; background:transparent; color:#1a1a1a; font-size:22px; width:34px; height:34px; }
  .hs-close .hs-x{ display:none; }
  .hs-close .hs-back{ display:inline; }
  .hs-bar .hs-ico{ display:none; }
  .hs-item{ padding:11px 12px; }
  .hs-thumb{ width:58px; height:44px; flex-basis:58px; }
  .hs-cta{ display:none; }
  .hs-foot .hs-hide-mb{ display:none; }
}

html.hs-lock, body.hs-lock{ overflow:hidden !important; }

/* ---------- Dien thoai / may tinh bang: icon kinh lup sang PHAI, mau den ---------- */
@media (max-width: 991px){
  .header .category-action{
    display:flex !important; align-items:center; justify-content:space-between;
    left:13px !important; right:13px !important; width:auto !important;
  }
  .header .hs-btn{ background:#fff !important; color:#1a1a1a; margin:0; }
  .header .hs-btn:hover{ background:#f2f2f2 !important; }
}

/* ---------- Chot cuoi: icon kinh lup LUON mau den tren moi thiet bi ---------- */
.hs-btn, .hs-btn svg, .header .hs-btn, .header .hs-btn svg{ color:#1a1a1a !important; }
.hs-btn svg{ stroke:currentColor; fill:none; }