:root{
--stm-bg:#f4f6fb;--stm-surface:#fff;--stm-surface2:#eef2fa;--stm-text:#0e1630;--stm-muted:#4a5675;--stm-border:#dbe2f0;
--stm-accent:#1d4ed8;--stm-accent-soft:#e3ebfd;--stm-on-accent:#fff;--stm-bar:#0b1638;--stm-bar-text:#c9d6f5;
--stm-warn-bg:#fdf3f1;--stm-warn-border:#f1cfc8;--stm-warn-head:#a3261b;--stm-warn-icon:#fff;
--stm-radius:14px;--stm-shadow:0 1px 2px rgba(14,22,48,.04),0 8px 24px rgba(14,22,48,.07);
--primary:var(--stm-accent);--body:var(--stm-bg);--heading:var(--stm-text);--text:var(--stm-muted);--border:var(--stm-border);--chalk:var(--stm-surface2)}
html[data-theme="dark"]{color-scheme:dark;
--stm-bg:#080d1c;--stm-surface:#0f1730;--stm-surface2:#141e3b;--stm-text:#e7ecfa;--stm-muted:#9aa8cc;--stm-border:#212d52;
--stm-accent:#38bdf8;--stm-accent-soft:#10284a;--stm-on-accent:#04121f;--stm-bar:#050914;--stm-bar-text:#9fb2e0;
--stm-warn-bg:#22120f;--stm-warn-border:#4a221c;--stm-warn-head:#fca5a5;--stm-warn-icon:#22120f;
--stm-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35)}
body{background:var(--stm-bg)!important;color:var(--stm-muted);font-family:'Be Vietnam Pro',system-ui,sans-serif!important;transition:background-color .2s,color .2s}
h1,h2,h3,h4,h5,h6{font-family:'Be Vietnam Pro',system-ui,sans-serif!important;color:var(--stm-text)}
::selection{background:var(--stm-accent);color:var(--stm-on-accent)}
/* form chung */
.form-control,.form-select,.nice-select,textarea,select,input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=tel]{background-color:var(--stm-surface2)!important;color:var(--stm-text)!important;border-color:var(--stm-border)!important}
::placeholder{color:var(--stm-muted)!important;opacity:1}
.form-control:focus,.form-select:focus{border-color:var(--stm-accent)!important;box-shadow:0 0 0 3px var(--stm-accent-soft)!important}
.nice-select .list{background:var(--stm-surface)!important;border:1px solid var(--stm-border)!important}
.nice-select .option{color:var(--stm-text)!important}
.nice-select .option:hover,.nice-select .option.focus,.nice-select .option.selected.focus{background:var(--stm-surface2)!important}
/* thanh tren cung */
.header-top{background:var(--stm-bar)!important;padding:6px 0!important;border:0!important}
.header-top,.header-top p,.header-top a,.header-top .select,.header-top i{color:var(--stm-bar-text)!important;font-size:13px}
.header-top .select{background:transparent!important;border:0!important}
.header-top .select option{color:#111;background:#fff}
.header-top-list a:hover{color:#fff!important}
/* header */
.header-part,.header-part.active{background:var(--stm-surface)!important;border-bottom:1px solid var(--stm-border);box-shadow:none!important}
.header-form{background:var(--stm-surface2)!important;border:1px solid var(--stm-border)!important;border-radius:12px!important;overflow:hidden}
.header-form input{background:transparent!important;color:var(--stm-text)!important;border:0!important}
.header-form button,.header-form button i{background:transparent!important;color:var(--stm-muted)!important}
.header-form:focus-within{border-color:var(--stm-accent)!important;box-shadow:0 0 0 3px var(--stm-accent-soft)}
.header-widget i{background:var(--stm-surface2)!important;color:var(--stm-text)!important;border:1px solid var(--stm-border);border-radius:12px!important;transition:border-color .15s,color .15s}
.header-widget:hover i{border-color:var(--stm-accent)!important;color:var(--stm-accent)!important}
.header-widget img{border-radius:50%}
.header-logo img{border-radius:8px}
.header-media-group button,.header-media-group button i{color:var(--stm-text)!important;background:transparent!important}
.stm-theme-btn{border:0;background:transparent;padding:0;cursor:pointer;line-height:1}
.stm-theme-mobile{width:40px;height:40px;display:inline-flex!important;align-items:center;justify-content:center;font-size:18px;border-radius:10px}
/* menu */
.navbar-part{background:var(--stm-surface)!important;border-bottom:1px solid var(--stm-border)!important;box-shadow:none!important}
.navbar-link{color:var(--stm-text)!important;font-weight:600!important}
.navbar-link:hover,.navbar-item.active .navbar-link{color:var(--stm-accent)!important}
.megamenu,.dropdown-position-list{background:var(--stm-surface)!important;border:1px solid var(--stm-border)!important;border-radius:var(--stm-radius)!important;box-shadow:var(--stm-shadow)!important}
.megamenu-title{color:var(--stm-text)!important;border-color:var(--stm-border)!important}
.megamenu-list a,.dropdown-position-list a{color:var(--stm-muted)!important;background:transparent!important}
.megamenu-list a:hover,.dropdown-position-list a:hover{color:var(--stm-accent)!important}
.navbar-info i{color:var(--stm-accent)!important;background:var(--stm-accent-soft)!important;border-radius:10px}
.navbar-info small{color:var(--stm-muted)!important}.navbar-info span{color:var(--stm-text)!important}
/* sidebar + menu dien thoai */
.category-sidebar,.cart-sidebar,.nav-sidebar{background:var(--stm-surface)!important;color:var(--stm-text)}
.category-header,.cart-header,.nav-header{background:var(--stm-surface)!important;border-color:var(--stm-border)!important}
.category-title,.category-title i,.cart-total,.cart-total i,.category-close,.cart-close,.nav-close{color:var(--stm-text)!important;background:transparent!important}
.category-item{border-color:var(--stm-border)!important}
.category-link,.dropdown-list a,.nav-link,.nav-info,.nav-info p,.nav-select-group p{color:var(--stm-text)!important;background:transparent!important}
.category-link:hover,.nav-link:hover{color:var(--stm-accent)!important;background:var(--stm-accent-soft)!important}
.mobile-menu{background:var(--stm-surface)!important;border-top:1px solid var(--stm-border)!important;box-shadow:0 -4px 20px rgba(0,0,0,.08)!important}
.mobile-menu a,.mobile-menu button,.mobile-menu i,.mobile-menu span{color:var(--stm-text)!important;background:transparent!important}
.mobile-menu a:hover i,.mobile-menu button:hover i{color:var(--stm-accent)!important}
.backtop{background:var(--stm-accent)!important;color:var(--stm-on-accent)!important;border-radius:12px!important}
.btn.btn-inline{background:var(--stm-accent)!important;border-color:var(--stm-accent)!important;color:var(--stm-on-accent)!important;border-radius:10px!important}
/* the, bang, modal, footer */
.account-card,.card,.user-form-card,.modal-content,.product-card,.blog-card{background:var(--stm-surface)!important;border:1px solid var(--stm-border)!important;border-radius:var(--stm-radius)!important;box-shadow:none!important;color:var(--stm-muted)}
.table{--bs-table-bg:transparent;--bs-table-color:var(--stm-text);--bs-table-striped-bg:var(--stm-surface2);--bs-table-hover-bg:var(--stm-surface2);color:var(--stm-text)!important;border-color:var(--stm-border)!important}
.table>:not(caption)>*>*{border-color:var(--stm-border)!important;color:var(--stm-text)}
.table thead th{background:var(--stm-surface2)!important;color:var(--stm-text)!important}
footer,.footer-part{background:var(--stm-surface)!important;border-top:1px solid var(--stm-border);color:var(--stm-muted)}
footer h1,footer h2,footer h3,footer h4,footer h5,footer h6,.footer-title{color:var(--stm-text)!important}
footer p,footer li,footer span,footer a{color:var(--stm-muted)!important}
footer a:hover{color:var(--stm-accent)!important}
.footer-bottom{border-color:var(--stm-border)!important}
/* trang chu - gon */
.feature-part{padding:28px 0 40px!important}
.feature-part .container>.mb-5:empty{display:none}
.feature-part>.container>.row.mb-5{margin-bottom:0!important}
h1.shop-seo-v8-title{font-size:clamp(24px,3.2vw,36px)!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em;color:var(--stm-text)!important;margin-bottom:4px!important}
#shopMmoNoticeSection .account-card{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
#shopMmoHideNotice,#shopMmoShowNotice,#shopCategoryToggleV1{background:var(--stm-surface2)!important;color:var(--stm-text)!important;border:1px solid var(--stm-border)!important;border-radius:10px!important;font-weight:600}
.stm-notice{display:flex;flex-direction:column;gap:14px}
.stm-lead{margin:0;color:var(--stm-muted);font-size:16px}
.stm-feats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.stm-feat{display:flex;align-items:center;gap:12px;background:var(--stm-surface);border:1px solid var(--stm-border);border-radius:var(--stm-radius);padding:12px 14px}
.stm-feat b{display:block;color:var(--stm-text);font-size:15px;line-height:1.3}
.stm-feat small{color:var(--stm-muted);font-size:13px}
.stm-ico{flex:none;width:40px;height:40px;border-radius:10px;background:var(--stm-accent-soft);color:var(--stm-accent);display:flex;align-items:center;justify-content:center;font-size:17px}
.stm-warn{background:var(--stm-surface);border:1px solid var(--stm-border);border-radius:18px;overflow:hidden}
.stm-warn-head{display:flex;align-items:center;gap:12px;padding:14px 18px;background:var(--stm-warn-bg);border-bottom:1px solid var(--stm-warn-border)}
.stm-warn-head h2{margin:0!important;font-size:18px!important;line-height:1.3!important;font-weight:800!important;color:var(--stm-warn-head)!important}
.stm-warn-ico{width:36px;height:36px;border-radius:10px;background:var(--stm-warn-head);color:var(--stm-warn-icon);display:flex;align-items:center;justify-content:center;flex:none}
.stm-warn-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;padding:16px 18px}
.stm-warn-item{background:var(--stm-surface2);border-radius:12px;padding:14px 16px}
.stm-warn-item b{display:block;color:var(--stm-text);margin-bottom:4px}
.stm-warn-item p{margin:0;color:var(--stm-muted);font-size:14px;line-height:1.65}
.stm-warn-item p strong{color:var(--stm-text)}
.stm-warn-foot{padding:12px 18px;border-top:1px solid var(--stm-border);color:var(--stm-muted);font-size:14px;display:flex;align-items:center;gap:8px}
.stm-warn-foot i{color:var(--stm-accent)}
#shopCategoryListV1,.custom-button-list{display:flex;flex-wrap:wrap;gap:8px;padding:0!important;margin:12px 0 20px!important;list-style:none}
.custom-button-list li{margin:0!important}
.btn-category-home{display:inline-flex!important;align-items:center;padding:6px 12px!important;border-radius:999px!important;background:var(--stm-surface)!important;border:1px solid var(--stm-border)!important;color:var(--stm-text)!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;box-shadow:none!important;transition:all .15s}
.btn-category-home i{color:var(--stm-accent)!important}
.btn-category-home:hover{border-color:var(--stm-accent)!important;color:var(--stm-accent)!important;background:var(--stm-accent-soft)!important}
.home-heading{border:0!important;padding:0!important;margin-bottom:12px!important;background:transparent!important}
.home-heading h3{display:flex;align-items:center;gap:10px;font-size:19px!important;font-weight:800!important;color:var(--stm-text)!important;margin:0!important}
.home-heading h3 img{width:28px;height:28px;object-fit:contain;border-radius:6px}
.feature-part [id^="category"]{margin-bottom:28px!important}
.feature-part [id^="category"]>.row{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px;margin:0!important}
.feature-part [id^="category"]>.row>*{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
@media (min-width:992px){.feature-part [id^="category"]>.row{grid-template-columns:repeat(2,minmax(0,1fr))}}
.feature-card{background:var(--stm-surface)!important;border:1px solid var(--stm-border)!important;border-radius:var(--stm-radius)!important;box-shadow:none!important;padding:14px 16px!important;margin:0!important;height:100%;transition:border-color .15s,box-shadow .15s,transform .15s}
.feature-card:hover{border-color:var(--stm-accent)!important;box-shadow:var(--stm-shadow)!important;transform:translateY(-1px)}
.feature-content{padding:0!important}
.feature-name{margin:0 0 4px!important;font-size:15px!important;line-height:1.4!important}
.feature-name a{color:var(--stm-text)!important;font-weight:700}
.feature-name a:hover{color:var(--stm-accent)!important}
.feature-desc{color:var(--stm-muted)!important;font-size:13px!important;margin:0 0 6px!important;line-height:1.5!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature-desc i{color:var(--stm-accent)!important}
.label-text.feat{display:inline-flex;align-items:center;gap:4px;font-size:12px!important;font-weight:600;padding:2px 10px!important;border-radius:999px!important;background:var(--stm-accent-soft)!important;color:var(--stm-accent)!important;border:0!important}
.card-price-product-list{text-align:right;margin-bottom:8px}
.feature-price,.feature-price span{color:var(--stm-accent)!important;font-weight:800!important;font-size:17px!important;margin:0!important}
.btn-buy{background:var(--stm-accent)!important;color:var(--stm-on-accent)!important;border:0!important;border-radius:10px!important;padding:8px 16px!important;font-weight:700!important;min-height:40px;width:100%;transition:filter .15s}
.btn-buy:hover{filter:brightness(1.08)}
/* rieng che do toi */
html[data-theme="dark"] .bg-white,html[data-theme="dark"] .bg-light{background-color:var(--stm-surface)!important}
html[data-theme="dark"] .text-dark,html[data-theme="dark"] .text-black{color:var(--stm-text)!important}
html[data-theme="dark"] .text-muted{color:var(--stm-muted)!important}
html[data-theme="dark"] .border,html[data-theme="dark"] hr{border-color:var(--stm-border)!important}
html[data-theme="dark"] .btn-close{filter:invert(1)}
html[data-theme="dark"] .modal-body :is(p,span,li,strong,b,em,u,h1,h2,h3,h4,h5,h6,font,td):not(.btn):not(.btn *):not(.badge){color:var(--stm-text)!important}
html[data-theme="dark"] .swal2-popup{background:var(--stm-surface)!important;color:var(--stm-text)!important}
html[data-theme="dark"] .swal2-title,html[data-theme="dark"] .swal2-html-container{color:var(--stm-text)!important}
html[data-theme="dark"] .header-logo img,html[data-theme="dark"] .nav-header img{background:#fff;padding:2px 6px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* v2: nut danh muc nguoc mau voi nen */
.btn-category-home{background:var(--stm-text)!important;color:var(--stm-bg)!important;border:1px solid var(--stm-text)!important;min-height:38px;gap:8px;padding:6px 14px!important}
.btn-category-home i{color:inherit!important}
.btn-category-home img{width:24px!important;height:18px!important;object-fit:cover;border-radius:3px;flex:none;overflow:hidden;font-size:0;margin:0!important;background:rgba(127,127,127,.25)}
.btn-category-home:hover,.btn-category-home:focus-visible{background:var(--stm-accent)!important;border-color:var(--stm-accent)!important;color:var(--stm-on-accent)!important}
/* v4: san pham gon + chuyen nghiep */
.feature-part .home-heading,.feature-part .home-heading h3{background:none!important;background-image:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important;border:0!important}
.feature-part .home-heading::before,.feature-part .home-heading::after,.feature-part .home-heading h3::before{display:none!important}
.feature-part .home-heading{margin:0 0 12px!important}
.feature-part .home-heading h3{display:flex!important;align-items:center;gap:10px;font-size:18px!important;font-weight:800!important;line-height:1.3!important;color:var(--stm-text)!important;letter-spacing:-.01em}
.feature-part .home-heading h3::after{content:"";flex:1;height:1px;background:var(--stm-border);margin-left:6px}
.feature-part .home-heading h3 img{width:28px!important;height:20px!important;object-fit:cover;border-radius:4px;box-shadow:0 0 0 1px var(--stm-border)}
.feature-part [id^="category"]{margin-bottom:24px!important}
.feature-card{padding:14px 16px!important}
.feature-content>.row{display:flex!important;flex-wrap:nowrap!important;align-items:stretch;gap:14px;margin:0!important}
.feature-content>.row>[class*="col-"]{padding:0!important;width:auto!important;max-width:none!important}
.feature-content>.row>.col-8{flex:1 1 0!important;min-width:0;display:flex;flex-direction:column;gap:4px}
.feature-content>.row>.col-4{flex:0 0 auto!important;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:10px;min-width:96px}
.feature-content .col-8 .row{margin:0!important;margin-top:auto!important}
.feature-content .col-8 .row>[class*="col-"]{padding:0!important}
.feature-name{margin:0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.feature-name a{font-size:14.5px!important;font-weight:700!important;line-height:1.45!important}
.feature-desc{-webkit-line-clamp:1!important;margin:0 0 6px!important;font-size:12.5px!important}
.card-price-product-list{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important;text-align:right}
.feature-price,.feature-price span{font-size:16px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap;border:0!important;background:none!important;padding:0!important}
.btn-buy{width:auto!important;white-space:nowrap;font-size:13px!important;padding:8px 16px!important;min-height:36px;line-height:1.2!important;border-radius:10px!important;text-transform:none!important;letter-spacing:0!important;box-shadow:0 2px 8px rgba(29,78,216,.18)}
.label-text.feat{font-size:11.5px!important;padding:2px 9px!important}
/* v5: bang mau tuoi, nhieu mau (che do sang) */
:root{--stm-bg:#f5f6f7;--stm-surface2:#f3f8f5;--stm-text:#1f2937;--stm-muted:#4b5563;--stm-border:#e3e8e5;
--stm-accent:#128a3e;--stm-accent-soft:#e7f6ec;--stm-on-accent:#fff;--stm-bar:#128a3e;--stm-bar-text:#fff;--stm-price:#d9480f}
html[data-theme="dark"]{--stm-price:#fdba74}
.feature-price,.feature-price span{color:var(--stm-price)!important}
.btn-buy{box-shadow:0 2px 8px rgba(18,138,62,.22)!important}
html:not([data-theme="dark"]) h1.shop-seo-v8-title{color:var(--stm-accent)!important}
html:not([data-theme="dark"]) .feature-part .home-heading h3{color:var(--stm-accent)!important}
html:not([data-theme="dark"]) .feature-part .home-heading h3::after{background:var(--stm-accent-soft)}
html:not([data-theme="dark"]) .label-text.feat{background:#e8efff!important;color:#1d4ed8!important}
/* khung gioi thieu + 3 o diem manh */
html:not([data-theme="dark"]) .stm-lead{background:var(--stm-accent-soft);border-radius:14px;padding:14px 18px;text-align:center;color:#1f2937;font-weight:500}
html:not([data-theme="dark"]) .stm-feat{border-top:3px solid var(--fc,var(--stm-accent))}
html:not([data-theme="dark"]) .stm-feat .stm-ico{background:var(--fs,var(--stm-accent-soft));color:var(--fc,var(--stm-accent))}
html:not([data-theme="dark"]) .stm-feat:nth-child(1){--fc:var(--stm-accent);--fs:var(--stm-accent-soft)}
html:not([data-theme="dark"]) .stm-feat:nth-child(2){--fc:#1d4ed8;--fs:#e8efff}
html:not([data-theme="dark"]) .stm-feat:nth-child(3){--fc:#c2410c;--fs:#fff1e6}
/* luu y khi su dung */
html:not([data-theme="dark"]) .stm-warn{border:2px dashed #e5534b;background:#fdf0ef}
html:not([data-theme="dark"]) .stm-warn-head{background:#b83a33;border-bottom:0;justify-content:center}
html:not([data-theme="dark"]) .stm-warn-head h2{color:#fff!important;text-transform:uppercase;letter-spacing:.02em}
html:not([data-theme="dark"]) .stm-warn-ico{background:rgba(255,255,255,.18);color:#fff}
html:not([data-theme="dark"]) .stm-warn-item:nth-child(1){background:#fdf3f2;border-left:4px solid #b83a33}
html:not([data-theme="dark"]) .stm-warn-item:nth-child(1) b{color:#b83a33}
html:not([data-theme="dark"]) .stm-warn-item:nth-child(2){background:#fff;border:1px solid #eadcda}
html:not([data-theme="dark"]) .stm-warn-item:nth-child(2) b{color:#b83a33}
html:not([data-theme="dark"]) .stm-warn-foot{justify-content:center;border-top:1px solid #f1cfc8}
/* nut danh muc nhieu mau */
html:not([data-theme="dark"]) .custom-button-list li:nth-child(5n+1) .btn-category-home{--c:var(--stm-accent);--cs:var(--stm-accent-soft)}
html:not([data-theme="dark"]) .custom-button-list li:nth-child(5n+2) .btn-category-home{--c:#1d4ed8;--cs:#e8efff}
html:not([data-theme="dark"]) .custom-button-list li:nth-child(5n+3) .btn-category-home{--c:#c2410c;--cs:#fff1e6}
html:not([data-theme="dark"]) .custom-button-list li:nth-child(5n+4) .btn-category-home{--c:#7e22ce;--cs:#f5ecfe}
html:not([data-theme="dark"]) .custom-button-list li:nth-child(5n+5) .btn-category-home{--c:#be185d;--cs:#fdebf3}
html:not([data-theme="dark"]) .btn-category-home{background:var(--cs)!important;color:var(--c)!important;border:1px solid var(--c)!important}
html:not([data-theme="dark"]) .btn-category-home:hover,html:not([data-theme="dark"]) .btn-category-home:focus-visible{background:var(--c)!important;color:#fff!important;border-color:var(--c)!important}

/* v6: noi mau voi Admin */
:root{--stm-accent-soft:color-mix(in srgb,var(--stm-accent) 12%,#fff);--primary:var(--stm-accent)}
html[data-theme="dark"]{--stm-accent-soft:#10284a}
/* v7: o dich GTranslate */
.gtranslate_wrapper{display:inline-flex;align-items:center}
.gtranslate_wrapper select,.gt_selector{background:transparent!important;color:var(--stm-bar-text)!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:8px!important;padding:3px 10px!important;font-size:13px!important;min-height:30px;cursor:pointer;font-family:inherit!important}
.gtranslate_wrapper select option,.gt_selector option{color:#111;background:#fff}
body{top:0!important}
.skiptranslate iframe,.goog-te-banner-frame{display:none!important}
/* v8: chong phong to khi cham 2 lan tren dien thoai */
html,body,a,button,input,select,textarea,label,[role="button"],.btn,.btn-buy,.btn-category-home,.feature-card,.header-widget,.mobile-menu *{touch-action:manipulation}
@media (max-width:991px){
input,select,textarea,.form-control,.form-select,.nice-select{font-size:16px!important}
.header-form input{font-size:16px!important}
}
/* v9: khung dang tai san pham */
.stm-skel{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
@media (min-width:992px){.stm-skel{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stm-skel>div{height:118px;border-radius:var(--stm-radius);border:1px solid var(--stm-border);background:linear-gradient(90deg,var(--stm-surface) 25%,var(--stm-surface2) 50%,var(--stm-surface) 75%);background-size:200% 100%;animation:stmsk 1.2s infinite linear}
@keyframes stmsk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.stm-skel>div{animation:none}}
/* v10: Dang tai san pham (kieu igbm) */
.stm-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;margin-bottom:12px;color:var(--stm-muted);font-weight:600}
.stm-spin{width:18px;height:18px;border:2px solid var(--stm-border);border-top-color:var(--stm-accent);border-radius:50%;animation:stmspin .8s linear infinite}
@keyframes stmspin{to{transform:rotate(360deg)}}
/* v12: nut thu gon danh muc hoat dong lai */
#shopCategoryListV1[style*="display: none"],#shopCategoryListV1[style*="display:none"],#shopCategoryListV1[hidden],#shopCategoryListV1.d-none,#shopCategoryListV1.collapsed,#shopCategoryListV1.is-collapsed,#shopCategoryListV1.hidden{display:none!important}
/* v13: dong y dieu khoan khi dang ky */
.stm-agree{display:flex;align-items:center;gap:10px;margin:6px 0 14px;font-size:14px;color:var(--stm-text)}
.stm-agree input{width:18px;height:18px;accent-color:var(--stm-accent);flex:none;cursor:pointer;margin:0}
.stm-agree label{margin:0;cursor:pointer}
.stm-agree a{color:var(--stm-accent);font-weight:600;text-decoration:underline}
#btnRegister.stm-locked{opacity:.55;cursor:not-allowed}
.stm-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.stm-modal[hidden]{display:none}
.stm-modal-backdrop{position:absolute;inset:0;background:rgba(10,15,30,.55)}
.stm-modal-box{position:relative;width:100%;max-width:640px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:var(--stm-surface);color:var(--stm-text);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden}
.stm-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--stm-border)}
.stm-modal-head h3{margin:0;font-size:17px;font-weight:700;color:var(--stm-text)}
.stm-x{border:0;background:transparent;font-size:26px;line-height:1;width:40px;height:40px;cursor:pointer;color:var(--stm-muted)}
.stm-modal-body{padding:16px;overflow:auto}
.stm-terms{border:1px solid var(--stm-border);border-radius:14px;padding:18px 20px}
.stm-terms h4{display:flex;align-items:center;gap:10px;margin:0 0 4px;font-size:20px;font-weight:800;color:var(--stm-text)}
.stm-terms h4 i{color:#1d4ed8}
.stm-sub{margin:0 0 16px;color:var(--stm-muted);font-size:14px}
.stm-term{display:flex;gap:12px;margin-bottom:14px}
.stm-term>i{color:var(--stm-accent);font-size:18px;margin-top:4px}
.stm-term b{display:block;font-size:16px;color:var(--stm-text)}
.stm-term span{display:block;font-size:13.5px;color:var(--stm-muted)}
.stm-term a{font-size:13.5px;color:#1d4ed8;text-decoration:underline}
.stm-note{background:#fff5eb;border-left:4px solid #f08c3c;border-radius:10px;padding:14px 16px;margin-top:6px;font-size:14px;color:#3b2a1a}
.stm-note b{display:flex;align-items:center;gap:8px;font-size:16px;margin-bottom:6px;color:#9a3412}
.stm-note p{margin:0 0 6px}
html[data-theme="dark"] .stm-note{background:#2a1a10;color:#f5e1cc}
html[data-theme="dark"] .stm-note b{color:#fdba74}
.stm-modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:12px 18px;border-top:1px solid var(--stm-border)}
.stm-cancel,.stm-ok{min-height:44px;padding:0 18px;border-radius:10px;font-weight:700;cursor:pointer;border:1px solid var(--stm-border)}
.stm-cancel{background:var(--stm-surface2);color:var(--stm-text)}
.stm-ok{background:var(--stm-accent);color:var(--stm-on-accent);border-color:var(--stm-accent)}
body.stm-modal-open{overflow:hidden}
/* v14: menu dien thoai khong keo ngang */
html,body{max-width:100%;overflow-x:hidden;overflow-x:clip}
.nav-sidebar,.category-sidebar,.cart-sidebar{max-width:100vw;overflow-x:hidden!important;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.nav-sidebar *,.category-sidebar *,.cart-sidebar *{max-width:100%}
.nav-info,.nav-info p,.nav-info span,.nav-info a{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.nav-info{display:flex;align-items:center;gap:12px}
.backdrop{touch-action:none;overscroll-behavior:contain}
html.stm-lock,html.stm-lock body{overflow:hidden!important;touch-action:none}
html.stm-lock .nav-sidebar,html.stm-lock .category-sidebar,html.stm-lock .cart-sidebar{touch-action:pan-y}
/* v15: danh muc con trong menu dien thoai khong keo ngang */
.nav-sidebar .nav-content,.nav-sidebar ul,.nav-sidebar li,.nav-sidebar .dropdown-list,
.category-sidebar .category-list,.category-sidebar ul,.category-sidebar li,.category-sidebar .dropdown-list,
.cart-sidebar ul,.cart-sidebar li{overflow-x:hidden!important;max-width:100%!important;min-width:0;touch-action:pan-y;overscroll-behavior-x:none}
.nav-sidebar a,.nav-sidebar span,.category-sidebar a,.category-sidebar span,.cart-sidebar a{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;min-width:0}
.nav-sidebar .dropdown-list,.category-sidebar .dropdown-list{position:static!important;left:auto!important;right:auto!important;width:auto!important;transform:none!important}
.nav-sidebar .nav-link,.category-sidebar .category-link{display:flex!important;align-items:center;gap:10px;line-height:1.4!important;height:auto!important;padding-top:10px!important;padding-bottom:10px!important}
.nav-sidebar img,.category-sidebar img{flex:none}
/* v16: menu San pham (megamenu) gon dep */
@media (min-width:992px){
.megamenu>.container{max-width:none!important;padding:0!important}
.megamenu .row{display:block!important;column-count:5;column-gap:14px;margin:0!important}
.megamenu .row>[class*="col"]{display:inline-block!important;width:100%!important;max-width:none!important;flex:none!important;padding:0!important;margin:0 0 14px!important;break-inside:avoid}
.megamenu-wrap{background:var(--stm-surface)!important;border:1px solid var(--stm-border)!important;border-radius:12px!important;padding:12px 10px 8px!important;margin:0!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
.megamenu-wrap:hover{border-color:var(--stm-accent)!important;box-shadow:var(--stm-shadow)!important}
.megamenu-title{background:none!important;border:0!important;border-bottom:1px dashed var(--stm-border)!important;margin:0 4px 6px!important;padding:0 0 8px!important;font-size:14px!important;font-weight:800!important;line-height:1.35!important;color:var(--stm-accent)!important}
.megamenu-title::before,.megamenu-title::after{display:none!important}
.megamenu-list{margin:0!important;padding:0!important;list-style:none;max-height:260px;overflow-y:auto!important;overflow-x:hidden!important;border:0!important;scrollbar-width:thin;scrollbar-color:var(--stm-border) transparent}
.megamenu-list::-webkit-scrollbar{width:6px}.megamenu-list::-webkit-scrollbar-thumb{background:var(--stm-border);border-radius:6px}
.megamenu-list li{margin:0!important;padding:0!important;border:0!important}
.megamenu-list li::before{display:none!important}
.megamenu-list a{display:flex!important;align-items:center;gap:8px;padding:6px 8px!important;border-radius:8px;font-size:13px!important;line-height:1.35!important;font-weight:500;color:var(--stm-text)!important;white-space:normal!important}
.megamenu-list a:hover{background:var(--stm-accent-soft)!important;color:var(--stm-accent)!important}
.megamenu-list a img{width:18px!important;height:18px!important;object-fit:contain;border-radius:4px;flex:none;margin:0!important}
.megamenu{scrollbar-width:thin;scrollbar-color:var(--stm-border) transparent}
}
@media (min-width:992px) and (max-width:1399px){.megamenu .row{column-count:4}}
@media (min-width:992px) and (max-width:1199px){.megamenu .row{column-count:3}}
/* v17: megamenu giu vi tri goc, chi lam dep ben trong */
@media (min-width:992px){
.megamenu{padding:16px!important;max-height:min(72vh,640px);overflow-y:auto!important;overflow-x:hidden!important;border-radius:16px!important;border-top:12px solid transparent!important;background-clip:padding-box!important}
}
/* v18: mo ta danh muc */
.stm-cat-desc{background:var(--stm-surface);border:1px solid var(--stm-border);border-left:4px solid var(--stm-accent);border-radius:12px;padding:12px 16px;margin:4px 0 16px;color:var(--stm-muted);font-size:14.5px;line-height:1.7}
/* v20: menu San pham giu bo cuc, to mau tuoi */
@media (min-width:992px){
html:not([data-theme="dark"]) .megamenu .row>[class*="col"]:nth-child(5n+1) .megamenu-wrap{--c:#128a3e;--cs:#e7f6ec}
html:not([data-theme="dark"]) .megamenu .row>[class*="col"]:nth-child(5n+2) .megamenu-wrap{--c:#1d4ed8;--cs:#e8efff}
html:not([data-theme="dark"]) .megamenu .row>[class*="col"]:nth-child(5n+3) .megamenu-wrap{--c:#c2410c;--cs:#fff1e6}
html:not([data-theme="dark"]) .megamenu .row>[class*="col"]:nth-child(5n+4) .megamenu-wrap{--c:#7e22ce;--cs:#f5ecfe}
html:not([data-theme="dark"]) .megamenu .row>[class*="col"]:nth-child(5n+5) .megamenu-wrap{--c:#be185d;--cs:#fdebf3}
.megamenu-wrap{border-top:4px solid var(--c,var(--stm-accent))!important;padding-top:10px!important}
.megamenu-title{background:var(--cs,var(--stm-accent-soft))!important;color:var(--c,var(--stm-accent))!important;border:0!important;border-radius:8px!important;padding:8px 10px!important;margin:0 0 8px!important}
.megamenu-list a:hover{background:var(--cs,var(--stm-accent-soft))!important;color:var(--c,var(--stm-accent))!important}
.megamenu-wrap:hover{border-color:var(--c,var(--stm-accent))!important;box-shadow:0 6px 18px rgba(0,0,0,.08)!important}
}
