/* Himarket UI/UX P3: T15 so sanh, T16 bao gia so luong, T17 goi y tim kiem */
.ega-form-search-top,.hmu-msearch{position:relative;}
.hmu-sugg{position:absolute;left:0;top:calc(100% + 6px);z-index:2000;width:100%;min-width:340px;max-width:560px;background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius);box-shadow:0 12px 30px rgba(0,0,0,.15);overflow:hidden;text-align:left;}
.hmu-sugg[hidden]{display:none !important;}
.hmu-sugg a{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--hm-border);color:var(--hm-text) !important;text-decoration:none !important;}
.hmu-sugg a:last-child{border-bottom:0;}
.hmu-sugg a.on,.hmu-sugg a:hover{background:var(--hm-primary-soft);}
.hmu-sugg img{flex:0 0 44px;width:44px;height:44px;object-fit:contain;background:#fff;border:1px solid var(--hm-border);border-radius:6px;}
.hmu-sugg .hmu-st{flex:1;min-width:0;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hmu-sugg .hmu-sp{font-size:14px;font-weight:700;color:var(--hm-accent);white-space:nowrap;}
.hmu-sugg a.hmu-sall{justify-content:center;font-size:14px;font-weight:600;color:var(--hm-primary) !important;}
.hmu-sugg .hmu-sempty{padding:12px;font-size:14px;color:var(--hm-muted);}
@media (max-width:991px){.hmu-msearch .hmu-sugg{left:12px;right:12px;width:auto;min-width:0;max-width:none;}}
.hmu-cmp-btn{position:absolute;top:10px;left:10px;z-index:4;display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:4px 8px;background:rgba(255,255,255,.95);border:1px solid var(--hm-border);border-radius:6px;font-size:12px;font-weight:600;color:var(--hm-muted);cursor:pointer;}
.hmu-cmp-btn.on{background:var(--hm-primary);border-color:var(--hm-primary);color:#fff;}
.hmu-cmpbar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:9990;display:flex;align-items:center;gap:10px;max-width:calc(100% - 24px);padding:10px 12px;background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius-lg);box-shadow:0 10px 30px rgba(0,0,0,.18);font-size:14px;}
.hmu-cmpbar .hmu-btn{flex:0 0 auto;height:44px;font-size:14px;}
.hmu-cmpbar .hmu-x{min-height:44px;background:transparent;border:0;color:var(--hm-muted);text-decoration:underline;font-size:13px;cursor:pointer;}
.hmu-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(6,50,59,.55);}
.hmu-modal-box{position:relative;width:100%;max-width:960px;max-height:90vh;overflow:auto;padding:20px;background:#fff;border-radius:var(--hm-radius-lg);}
.hmu-modal-box h2{margin:0 0 14px;padding-right:40px;font-size:20px;font-weight:700;color:var(--hm-text);}
.hmu-close{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;background:transparent;font-size:28px;line-height:1;color:var(--hm-muted);cursor:pointer;}
.hmu-cmp-table{width:100%;border-collapse:collapse;font-size:14px;}
.hmu-cmp-table th,.hmu-cmp-table td{padding:10px;border-bottom:1px solid var(--hm-border);text-align:left;vertical-align:top;}
.hmu-cmp-table th{width:150px;background:#F6F8F9;color:var(--hm-muted);font-weight:500;}
.hmu-cmp-table img{width:120px;height:120px;object-fit:contain;}
.hmu-cmp-table a{color:var(--hm-text);font-weight:600;}
.hmu-cmp-table .hmu-cp{color:var(--hm-accent);font-weight:700;font-size:16px;}
.hmu-cmp-note{margin-top:10px;font-size:13px;color:var(--hm-muted);}
.hmu-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.hmu-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--hm-text);}
.hmu-form input,.hmu-form textarea{min-height:44px;padding:8px 12px;border:1px solid var(--hm-border);border-radius:var(--hm-radius-sm);font-family:var(--hm-font);font-size:15px;font-weight:400;}
.hmu-form textarea{min-height:90px;}
.hmu-form .hmu-full,.hmu-form-sum,.hmu-form-actions{grid-column:1/-1;}
.hmu-form-sum{padding:10px 12px;background:#F6F8F9;border-radius:var(--hm-radius-sm);font-size:13px;color:var(--hm-muted);white-space:pre-line;}
.hmu-form-actions{display:flex;flex-wrap:wrap;gap:10px;}
.hmu-form-actions .hmu-btn{height:48px;}
.hmu-cartq{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;}
.hmu-cartq .hmu-btn{height:46px;font-size:15px;}
@media (max-width:767px){.hmu-form{grid-template-columns:1fr;} .hmu-cmpbar{bottom:12px;} body.hmu-product .hmu-cmpbar{bottom:90px;} .hmu-cmpbar .hmu-cmp-names{display:none;} .hmu-modal{padding:8px;align-items:flex-end;} .hmu-modal-box{max-height:92vh;padding:16px;}}
@media (max-width:767px){body.hmu-product #cart-bottom{display:none !important;} #nutzalo{bottom:88px !important;} .hmu-cmpbar{bottom:88px;} body.hmu-product .hmu-cmpbar{bottom:90px;}}
/* Checklist: khong cuon ngang (banner doc trang chu lan ra o 1440px) */ body{overflow-x:clip;} .owl-item .item .hmu-cmp-btn{top:8px;left:8px;}
.hmu-fform{margin-top:16px;max-width:440px;} .hmu-fform label{display:block;margin-bottom:6px;font-size:14px;font-weight:700;color:inherit;} .hmu-fform div{display:flex;gap:8px;} .hmu-fform input{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid var(--hm-border);border-radius:var(--hm-radius-sm);background:#fff;color:var(--hm-text);font-size:15px;} .hmu-fform .hmu-btn{flex:0 0 auto;height:44px;font-size:15px;}
/* Menu danh muc (snippet himarket-mega-menu) o cot trai trang chu */ @media (min-width:992px){[role="page-content"]>.hm-cat{float:left;margin:0 16px 16px 0;} [role="page-content"]>.ega-section-1{overflow:hidden;} [role="page-content"]>section:not(.ega-section-1),[role="page-content"]>.hmu-trustbar{clear:both;}} @media (max-width:991px){[role="page-content"]>.hm-cat{margin:0 0 12px;}}
/* HIMARKET balanced product cards - 2026-11-10 */
body .ega-col-product-box.hbc-card{--hbc-ink:#173b44;--hbc-muted:#64777e;--hbc-line:#dce7ea;display:flex;flex-direction:column;width:100%;height:100%;min-width:0;margin:0;padding:0!important;background:#fff;border:1px solid var(--hbc-line)!important;border-radius:14px!important;overflow:hidden;box-shadow:0 2px 8px rgba(18,58,67,.025);transition:box-shadow .18s,border-color .18s}
body .hbc-card:hover,body .hbc-card:focus-within{border-color:#9fd8e0!important;box-shadow:0 7px 22px rgba(18,58,67,.09)}
body .hbc-card .hbc-top{height:44px;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px 14px 4px}
body .hbc-card .hbc-brand{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;letter-spacing:.035em;color:#086370}
body .hbc-card .hbc-saving{max-width:64%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff3eb;color:#a84009;border-radius:5px;padding:3px 6px;font-size:11px;font-weight:600;line-height:1.4}
body .hbc-card a.hbc-image{display:block!important;position:relative;width:auto;height:auto!important;aspect-ratio:4/3;margin:0 10px;padding:5px 8px 8px;background:#fff;border:0;text-decoration:none}
body .hbc-card .hbc-image img{display:block;position:static;width:100%!important;height:100%!important;max-width:100%;max-height:none;object-fit:contain;margin:0;padding:0;border:0;background:#fff}
body .hbc-card .hbc-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:12px 14px 10px;text-align:left}
body .hbc-card h3.hbc-title{margin:0!important;padding:0!important;border:0!important;min-height:66px;height:66px;max-height:none!important;font-size:14px!important;line-height:22px!important;font-weight:600!important;color:var(--hbc-ink);background:transparent!important;overflow:hidden;text-align:left}
body .hbc-card .hbc-title>a{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:66px;font:inherit!important;color:var(--hbc-ink)!important;line-height:22px!important;text-transform:none!important;text-align:left!important;text-decoration:none}
body .hbc-card .hbc-title>a:hover{color:#086370!important}
body .hbc-card .hbc-code{display:flex;gap:4px;min-height:20px;margin:6px 0 12px;color:var(--hbc-muted);font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden}
body .hbc-card .hbc-code span{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#35545d;font-weight:500}
body .hbc-card .hbc-prices{margin-top:auto;min-height:64px;text-align:left}
body .hbc-card .hbc-price{font-size:22px;line-height:28px;font-weight:750;letter-spacing:-.45px;color:var(--hbc-ink);white-space:nowrap;overflow-wrap:normal}
body .hbc-card .hbc-contact{font-size:17px;letter-spacing:-.25px;white-space:normal}
body .hbc-card .hbc-old{display:block!important;margin:4px 0 0!important;color:var(--hbc-muted)!important;font-size:12px!important;line-height:18px!important;text-decoration:line-through}
body .hbc-card .hbc-price-note{display:block;font-size:11px;line-height:18px;color:var(--hbc-muted);margin:4px 0 0}
body .hbc-card .hbc-stock{display:block;font-size:11px;line-height:18px;color:#98651a}
body .hbc-card .hbc-actions{display:flex;align-items:stretch;gap:7px;width:100%;margin:10px 0 0}
body .hbc-card a.hbc-zalo{display:flex!important;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:43px;height:auto!important;margin:0;padding:9px 6px;background:#64d5e5!important;color:#103b43!important;border:0!important;border-radius:8px;font-size:13px;font-weight:700;line-height:20px;text-decoration:none!important;white-space:nowrap}
body .hbc-card a.hbc-zalo:hover{background:#4dc9dc!important}
body .hbc-card .hbc-form{display:block;flex:0 0 43px;width:43px;max-width:none;margin:0!important;padding:0;border:0;opacity:1!important}
body .hbc-card .hbc-online{display:flex!important;align-items:center;justify-content:center;gap:6px;flex:0 0 43px;width:43px;min-height:43px;height:auto!important;margin:0;padding:7px;background:#fff!important;color:#086370!important;border:1px solid var(--hbc-line)!important;border-radius:8px;font:inherit;font-size:15px;text-decoration:none!important;cursor:pointer}
body .hbc-card .hbc-online span{display:none}
body .hbc-card .hbc-online:hover{background:#effbfd!important;border-color:#64d5e5!important}
body .hbc-card .hbc-online:disabled{opacity:.5;cursor:wait}
body .hbc-card .hbc-compare.hmu-cmp-btn{position:static!important;inset:auto!important;display:inline-flex;align-self:center;justify-content:center;width:auto!important;max-width:100%;min-height:32px;margin:6px auto 0;padding:6px 8px;background:transparent!important;color:var(--hbc-muted)!important;border:0!important;border-radius:6px;font-size:12px;font-weight:500;line-height:20px;box-shadow:none;z-index:auto}
body .hbc-card .hbc-compare.on{background:#effbfd!important;color:#086370!important}
body .hbc-card a:focus-visible,body .hbc-card button:focus-visible{outline:3px solid #64d5e5;outline-offset:2px}
body .hbc-home-item{display:flex!important;min-width:0;padding:3px 0 10px!important}
body .ega-home-slider-products .owl-stage{display:flex}
body .ega-home-slider-products .owl-item{display:flex;flex-direction:column}
body .ega-home-slider-products .owl-item>.hbc-home-item{height:100%;width:100%}
body .ega-home-products-xs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0;border:0}
body .ega-home-products-xs>.hbc-home-mobile{display:flex;width:auto!important;max-width:none!important;float:none!important;flex:none!important;margin:0!important;padding:0!important;border:0!important}
@media(min-width:768px) and (max-width:1100px){body .hbc-card .hbc-price{font-size:20px}body .hbc-card .hbc-contact{font-size:16px}body .hbc-card a.hbc-zalo{font-size:12px;gap:4px}body .hbc-card .hbc-body{padding:10px 12px}}
@media(max-width:767px){body .ega-col-product-box.hbc-card{border-radius:11px!important;padding:0!important}body .hbc-card .hbc-top{padding:10px 10px 3px;height:40px;min-height:40px}body .hbc-card .hbc-brand{font-size:11px}body .hbc-card .hbc-saving{font-size:11px;padding:2px 4px}body .hbc-card a.hbc-image{margin:0 6px;padding:4px 4px 7px}body .hbc-card .hbc-body{padding:10px 10px 8px}body .hbc-card h3.hbc-title{font-size:13px!important;line-height:20px!important;min-height:60px;height:60px}body .hbc-card .hbc-title>a{line-height:20px!important;max-height:60px}body .hbc-card .hbc-code{font-size:11px;margin:5px 0 9px}body .hbc-card .hbc-price{font-size:19px;line-height:26px}body .hbc-card .hbc-contact{font-size:16px;line-height:24px}body .hbc-card .hbc-prices{min-height:60px}body .hbc-card .hbc-compare.hmu-cmp-btn{font-size:11px;margin-top:5px}body .hbc-card a.hbc-zalo{font-size:12px;gap:4px}}
@media(max-width:479px){body .hbc-card .hbc-actions{flex-wrap:wrap;gap:6px}body .hbc-card a.hbc-zalo{flex-basis:100%;min-height:40px}body .hbc-card .hbc-form{flex:1 1 100%;width:100%}body .hbc-card .hbc-online{flex:1 1 100%;width:100%;min-height:34px;font-size:11px;padding:5px}body .hbc-card .hbc-online span{display:inline}body .hbc-card .hbc-price{font-size:18px}body .hbc-card .hbc-contact{font-size:15px}}
@media(prefers-reduced-motion:reduce){body .hbc-card{transition:none!important}}

body .ega-home-slider-products .ega-products-owl-carousel .owl-nav .owl-prev,body .ega-home-slider-products .ega-products-owl-carousel .owl-nav .owl-next{top:120px!important;transform:none!important;width:34px!important;height:44px!important;border-radius:8px!important;}

/* Product advice stays below the sticky header while reading */
@media(min-width:992px){
  body.hmu-product .ega-product-page > .ega-col-product-no-pd-left-dsk{
    position:sticky!important;
    top:calc(var(--hmu-hh, 140px) + 16px);
    align-self:flex-start;
    z-index:5;
  }
}
