/* =========================================================
   8890 Store - CSS tối giản (còn lại dùng Tailwind)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
    background: #fefcf7;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input { font-family: inherit; }
img { display: block; max-width: 100%; }

/* Ẩn thanh cuộn ngang */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Trạng thái chọn (JS toggle) — phần Tailwind khó biểu diễn */
.variant.on { border-color: #FBAF17 !important; background: #FEF3D7; }
.variant .vcheck { display: none; }
.variant.on .vcheck { display: flex; }
.thumb.on { border-color: #FBAF17 !important; }

/* Tom Select khớp giao diện (ép full-width + min-height cho Safari) */
.ts-wrapper { width: 100% !important; display: block; box-sizing: border-box; }
.ts-wrapper .ts-control {
    display: flex; align-items: center; width: 100%; box-sizing: border-box;
    min-height: 42px; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; line-height: 1.4; box-shadow: none; background: #fff;
}
.ts-wrapper.focus .ts-control { border-color: #FBAF17; box-shadow: none; }
.ts-wrapper.disabled .ts-control { background: #f5f5f5; opacity: 1; }
.ts-control input, .ts-control .item { font-size: 14px !important; line-height: 1.4; }
.ts-control input::placeholder { color: #9aa0a6; }
.ts-dropdown { border-radius: 10px; border: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,.1); font-size: 14px; margin-top: 4px; }
.ts-dropdown .active { background: #FEF3D7; color: #1a1a1a; }
.ts-dropdown .option { padding: 10px 12px; }

/* Ion-icon căn giữa theo dòng chữ */
ion-icon { vertical-align: middle; }

/* Header trang chủ: mở ô tìm kiếm (logo thu nhỏ, input trượt ra từ phải) */
#hdrLogo { overflow: hidden; transition: max-width .3s ease; max-width: 100%; }
#hdrLogo .logo-num, #hdrLogo .logo-txt { transition: font-size .3s ease; }
#homeHeader.search-open #hdrLogo { max-width: 20%; }
#homeHeader.search-open #hdrLogo .tagline { display: none; }
#homeHeader.search-open .logo-num { font-size: 15px; }
#homeHeader.search-open .logo-txt { font-size: 11px; }
#homeHeader.search-open #hdrSearch { animation: slideSearch .3s ease; }
@keyframes slideSearch { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* Toast thông báo */
#toast {
    position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
    background: rgba(30,30,30,.92); color: #fff; font-size: 13px; padding: 10px 18px;
    border-radius: 24px; opacity: 0; transition: .3s; z-index: 999; pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Checkbox tuỳ biến: nền trong suốt, viền vàng, dấu check mảnh */
.cbx {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    flex: none;
    margin: 0;
    border: 2px solid #FBAF17;   /* gold */
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color .15s;
}
.cbx:checked {
    border-color: #FBAF17;
}
.cbx:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #FBAF17;       /* dấu check màu vàng, mảnh */
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.cbx:active { transform: scale(.92); }
