/* ---- mobile kiểu CellphoneS (19/11/2026) — chỉ áp dụng <=640px, máy tính giữ nguyên ---- */
.bnav{display:none}
@media(max-width:640px){
 body{padding-bottom:calc(62px + env(safe-area-inset-bottom));background:#f3f5f8}
 /* đầu trang: 1 dải màu thương hiệu: logo + ô tìm + giỏ */
 .hd{background:linear-gradient(100deg,#0b3d91,#0068ff);border-bottom:0;backdrop-filter:none;box-shadow:0 2px 8px rgba(0,0,0,.12)}
 .hd .h{display:flex!important;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 10px;min-height:0}
 .hd .h>*{grid-area:auto!important}
 .logo{gap:0}.logo .lgimg{height:30px;background:#fff;border-radius:7px;padding:3px 4px}.logo div{display:none}
 .sw{order:0;flex:1 1 auto;min-width:0}.kw{display:none}
 form.search{height:38px;background:#fff;border-radius:10px}
 form.search input{font-size:14px;padding:0 10px}
 form.search button{width:30px;height:30px;background:#0068ff}
 .acts{gap:0;margin-left:0}.acts .ib{padding:6px;color:#fff}.acts .ib:not(:last-child){display:none}
 .acts .ib .ic{color:#fff}.acts .ib .t{display:none}
 .nav{display:none}
 /* danh mục mở từ thanh dưới: thành tấm toàn màn hình */
 .mega{position:fixed;top:54px;bottom:calc(62px + env(safe-area-inset-bottom));max-height:none;border:0;box-shadow:none;transform:none}
 .mscrim{display:none}
 /* banner gọn như thẻ quảng cáo */
 .bn{margin:10px 10px 6px;border-radius:14px;border:0;box-shadow:0 1px 4px rgba(15,23,42,.08)}
 .bn-hero{min-height:200px;align-items:center;background-position:right bottom;background-size:auto 92%}
 .bn-hero:before{background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.92) 52%,rgba(255,255,255,0) 78%)}
 .bn-hero .bn-tx{padding:16px 14px;max-width:72%}
 .bn-ey{font-size:10px}.bn-hero h1{font-size:21px;margin:6px 0 6px;line-height:1.2}
 .bn-hero .bn-tx p{font-size:12px;margin:0 0 10px;line-height:1.4}
 .bn-cta{flex-wrap:nowrap;gap:6px}.bn-cta a{flex:0 0 auto;padding:8px 12px;font-size:12px;border-radius:8px}
 /* danh mục: lưới ô vuông 4 cột */
 .bn-cat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;padding:12px 10px;background:#fff;border-top:1px solid #eef1f5}
 .bn-cat a{align-items:center;text-align:center;justify-content:center;gap:2px;padding:10px 4px;border:0;border-radius:12px;background:#f1f6ff;font-size:12px;line-height:1.2;min-height:62px}
 .bn-cat small{font-size:10px}
 /* cam kết: dải kéo ngang nhỏ */
 .usp{display:flex;overflow-x:auto;gap:8px;padding:4px 10px 6px;scrollbar-width:none}
 .usp::-webkit-scrollbar,.bn-cat::-webkit-scrollbar{display:none}
 .usp>div{flex:0 0 auto;background:#fff;border:0;padding:8px 10px;font-size:11px}
 .usp span{padding:5px}
 /* khối sản phẩm: nền trắng bo góc, tiêu đề đậm */
 .sec{margin:10px;padding:4px 10px 12px;background:#fff;border-radius:14px}
 .sec h2{font-size:16px;margin:10px 0}.sec h2 a{font-size:12px}
 .pg,ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .pc{padding:8px;border-radius:12px;gap:4px;border-color:#eef1f5;box-shadow:0 1px 3px rgba(15,23,42,.06)}
 .im{border:0;border-radius:8px}
 .mpn{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .pn{font-size:13px;font-weight:600;min-height:0;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;height:34px}
 .pr{font-size:16px;color:var(--red)}.pr del{font-size:11px;color:var(--mu);font-weight:400}
 .pr.contact{font-size:13px}
 .st{font-size:11px}
 .add{padding:8px 4px;font-size:12px;border-radius:8px;text-align:center}
 .brands{gap:14px;font-size:12px;padding:6px 10px 16px}
 footer{padding:22px 16px}.fg{grid-template-columns:1fr}
 /* trang sản phẩm: ảnh + khung mua co theo màn hình (trước đây ảnh 480px bị cắt) */
 .woocommerce div.product{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin:10px!important}
 .woocommerce div.product .woocommerce-product-gallery,.woocommerce div.product .summary{width:100%!important;max-width:100%!important;min-width:0}
 .woocommerce-message,.woocommerce-info,.woocommerce-error{padding-left:2.6em!important}
 /* nút nổi khác nhường chỗ cho thanh dưới */
 .svl{bottom:calc(72px + env(safe-area-inset-bottom))!important}
 #svtk-tv-btn{bottom:calc(72px + env(safe-area-inset-bottom))!important;padding:10px 14px!important;font-size:13px!important}
 /* thanh dưới */
 .bnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#fff;border-top:1px solid #e5e9f0;box-shadow:0 -2px 10px rgba(15,23,42,.06);padding-bottom:env(safe-area-inset-bottom)}
 .bnav a,.bnav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:60px;font:500 11px Roboto,Arial,sans-serif;color:#475569;background:none;border:0;text-decoration:none;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .bnav .on{color:#0068ff}
 .bnav .bn-n{position:absolute;top:6px;left:calc(50% + 6px);background:var(--red);color:#fff;border-radius:99px;padding:0 5px;font-size:10px;font-weight:700;line-height:16px;font-style:normal}
 .bnav .bn-n:empty,.bnav .bn-n.z{display:none}
 /* giỏ/thanh toán: bỏ thanh dưới để không che nút đặt hàng */
 body.woocommerce-cart .bnav,body.woocommerce-checkout .bnav{display:none}
 body.woocommerce-cart,body.woocommerce-checkout{padding-bottom:0}
 body.woocommerce-cart .svl,body.woocommerce-checkout .svl,body.woocommerce-cart #svtk-tv-btn,body.woocommerce-checkout #svtk-tv-btn{bottom:16px!important}
}
