/* Himarket UI/UX P1: T5 header, T6 trang san pham, T7 CTA mobile, T8 danh muc, T9 the san pham */
/* T5 header & menu */
header{position:sticky;top:0;z-index:1000;background:#fff;}
.hmu-util{background:var(--hm-primary-dark);color:#fff;font-size:13px;line-height:1.4;}
.hmu-util .container{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:7px;padding-bottom:7px;}
.hmu-util a,.hmu-util b{color:#fff;}
.hmu-util .hmu-sep{margin:0 8px;opacity:.6;}
body.hmu-scrolled .hmu-util{display:none;}
header .ega-top-header{background:#fff !important;border-bottom:1px solid var(--hm-border);}
body.hmu-scrolled header .ega-top-header .ega-logo{max-height:44px;width:auto;}
.ega-top-header .ega-top-message>span:first-child,.ega-top-header .ega-top-message>.ega-phone,.ega-top-header .ega-top-message>.ega-fz-12{display:none !important;}
.ega-top-header .ega-top-message{display:flex;justify-content:flex-end;align-items:center;gap:18px;}
.ega-top-header .ega-top-message,.ega-top-header .ega-top-message a{color:var(--hm-text) !important;font-size:14px;}
.ega-top-header .ega-top-message a.hmu-quote{font-weight:600;color:var(--hm-primary) !important;}
.ega-form-search-top .ega-div-top-search{display:flex !important;align-items:stretch;border:2px solid var(--hm-primary);border-radius:var(--hm-radius);overflow:hidden;background:#fff;}
.ega-form-search-top .ega-div-top-search input{flex:1 1 auto;min-width:0;width:auto !important;height:44px !important;border:0 !important;border-radius:0 !important;padding:0 14px !important;font-size:15px !important;box-shadow:none !important;outline:none;background:#fff !important;color:var(--hm-text) !important;}
.ega-form-search-top .ega-div-top-search button{position:static !important;flex:0 0 auto;height:44px !important;width:auto !important;padding:0 22px !important;border:0 !important;border-radius:0 !important;background:var(--hm-primary) !important;color:#fff !important;font-weight:600;font-size:15px;}
header .ega-menu-top{background:var(--hm-primary) !important;border:0 !important;}
#ega-menu-deiv-top>ul.nav>li>a,#ega-menu-deiv-top .hm-brand-root .hm-trigger{font-family:var(--hm-font) !important;font-size:14px !important;font-weight:600 !important;text-transform:none !important;color:#fff !important;letter-spacing:0 !important;}
.hmu-msearch,.hmu-mcall{display:none;}
@media (max-width:991px){.hmu-msearch{display:block;padding:0 12px 10px;} .hmu-msearch form{display:flex;background:#F1F4F5;border-radius:var(--hm-radius);overflow:hidden;} .hmu-msearch input{flex:1;min-width:0;height:44px;border:0;background:transparent;padding:0 14px;font-size:15px;color:var(--hm-text);outline:none;} .hmu-msearch button{width:48px;height:44px;border:0;background:transparent;color:var(--hm-primary);font-size:18px;} body.hmu-down .hmu-msearch{display:none;} #btn-click-search-xs{display:none !important;} #ega-btn-menu-hambuger{min-width:44px;min-height:44px;} header .ega-search-ico-xs .ega-a-cart-icon-top{min-width:44px;min-height:44px;display:inline-flex !important;align-items:center;justify-content:center;} .hmu-mcall{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:#fff !important;font-size:20px;vertical-align:middle;}}
/* T6 trang chi tiet san pham */
.breadcrumb{font-size:13px;background:transparent !important;padding-left:0 !important;}
.breadcrumb a,.breadcrumb span{color:var(--hm-muted);}
#ega-product-app{background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius-lg);padding:24px !important;}
#ega-product-app .prod_main_image{position:relative;background:#F6F8F9;border-radius:var(--hm-radius);aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;}
#ega-product-app .prod_main_image img{max-height:100%;width:auto;object-fit:contain;}
.hmu-gbadge{position:absolute;top:12px;left:12px;z-index:2;background:var(--hm-primary);color:#fff;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;}
.hmu-gcount{position:absolute;top:12px;right:12px;z-index:2;background:rgba(24,38,43,.72);color:#fff;font-size:12px;padding:3px 9px;border-radius:999px;}
#ega-product-app ul.ega-product-imgs{display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:0 !important;margin:10px 0 0 !important;list-style:none;}
#ega-product-app ul.ega-product-imgs li{width:auto !important;float:none !important;margin:0 !important;padding:0 !important;}
#ega-product-app .ega-img-div-child{aspect-ratio:1/1;border:1px solid var(--hm-border);border-radius:var(--hm-radius-sm);overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;}
#ega-product-app .ega-img-div-child.active{border:2px solid var(--hm-primary);}
#ega-product-app .ega-img-div-child img{width:100%;height:100%;object-fit:contain;}
h1.ega-product-title{font-size:var(--hm-fs-h1) !important;font-weight:700 !important;line-height:1.25 !important;color:var(--hm-text) !important;margin:6px 0 8px !important;text-transform:none !important;}
.hmu-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:13px;color:var(--hm-muted);}
.hmu-meta a{color:var(--hm-primary);font-weight:700;text-transform:uppercase;letter-spacing:.03em;}
.hmu-stock{font-weight:600;}
.hmu-stock.in{color:var(--hm-success);}
.hmu-stock.out{color:var(--hm-accent);}
.hmu-rating{font-size:13px;color:var(--hm-muted);margin-bottom:12px;}
.hmu-rating a{color:var(--hm-primary);text-decoration:underline;}
.hmu-old-meta{display:none !important;}
.hmu-price{background:#F6F8F9;border-radius:var(--hm-radius);padding:14px 16px;margin:4px 0 16px;}
.hmu-price .hmu-now{font-size:34px;font-weight:800;color:var(--hm-accent);line-height:1.1;}
.hmu-price .hmu-was{font-size:15px;color:var(--hm-muted);text-decoration:line-through;margin-left:10px;}
.hmu-price .hmu-off{display:inline-block;margin-left:8px;background:var(--hm-accent);color:#fff;font-size:12px;font-weight:700;padding:2px 7px;border-radius:6px;vertical-align:middle;}
.hmu-price .hmu-vat{font-size:13px;color:var(--hm-muted);margin-top:4px;}
.hmu-specs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px;}
.hmu-specs-grid div{border:1px solid var(--hm-border);border-radius:var(--hm-radius-sm);padding:8px 10px;}
.hmu-specs-grid span{display:block;font-size:12px;color:var(--hm-muted);}
.hmu-specs-grid b{font-size:15px;color:var(--hm-text);}
#form-add-cart-product .ega-qty-control{height:52px;border:1px solid var(--hm-border);border-radius:var(--hm-radius);overflow:hidden;max-width:160px;}
#form-add-cart-product .ega-qty-control .input-group-addon,#form-add-cart-product .ega-qty-control input{height:52px;border:0 !important;background:#fff;font-size:16px;text-align:center;}
#form-add-cart-product .ega-btn-product-div>button.ega-pr-page-add-cart,#form-add-cart-product .ega-btn-product-div>a.hotline-btn,#form-add-cart-product .ega-btn-product-div>a.order-btn{display:none !important;}
.hmu-buy{display:flex;gap:10px;margin:14px 0 10px;}
.hmu-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border:2px solid transparent;border-radius:var(--hm-radius);font-weight:700;font-size:16px;cursor:pointer;text-decoration:none !important;}
.hmu-btn-buy{flex:1.3;height:54px;background:var(--hm-accent);color:#fff !important;}
.hmu-btn-buy:hover{filter:brightness(.95);}
.hmu-btn-cart{flex:1;height:54px;background:#fff;color:var(--hm-primary) !important;border-color:var(--hm-primary);}
.hmu-sub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px;}
.hmu-sub a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px;background:var(--hm-primary-soft);color:var(--hm-primary) !important;border-radius:var(--hm-radius-sm);font-size:14px;font-weight:600;text-align:center;text-decoration:none !important;}
.hmu-trust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;border:1px solid var(--hm-border);border-radius:var(--hm-radius);padding:14px;font-size:14px;color:var(--hm-text);}
.hmu-trust div{display:flex;align-items:center;gap:8px;}
.hmu-trust i{color:var(--hm-success);}
#ega-product-app .ega-pr-page-ul-policies{display:none !important;}
.hmu-toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);z-index:100000;background:var(--hm-text);color:#fff;padding:10px 16px;border-radius:var(--hm-radius);font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.2);}
.hmu-toast a{color:#FFD7BF;text-decoration:underline;margin-left:8px;}
.hmu-tabs{position:sticky;top:var(--hmu-hh,0px);z-index:50;display:flex;gap:4px;overflow-x:auto;margin:16px 0;padding:0 8px;background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius);scrollbar-width:none;}
.hmu-tabs a{flex:0 0 auto;padding:14px 14px 11px;font-weight:600;font-size:15px;color:var(--hm-muted) !important;border-bottom:3px solid transparent;white-space:nowrap;text-decoration:none !important;}
.hmu-tabs a.on{color:var(--hm-primary) !important;border-bottom-color:var(--hm-primary);}
.hmu-section-title{font-size:var(--hm-fs-h2);font-weight:700;color:var(--hm-text);margin:0 0 12px;}
.hmu-specs-wrap{background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius-lg);padding:20px;margin-bottom:16px;}
.hmu-tablewrap{overflow-x:auto;}
.hmu-specs-wrap table{width:100%;border-collapse:collapse;font-size:14px;}
.hmu-specs-wrap th,.hmu-specs-wrap td{padding:10px 12px;border-bottom:1px solid var(--hm-border);text-align:left;vertical-align:top;}
.hmu-specs-wrap th{width:38%;color:var(--hm-muted);font-weight:500;}
.hmu-specs-wrap tr:nth-child(odd){background:#F6F8F9;}
#product-description{background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius-lg);padding:20px !important;}
#product-description,#hrv-product-reviews,#hmu-specs{scroll-margin-top:140px;}
#product-description.hmu-collapsed,.bd_collection_des.hmu-collapsed{max-height:560px;overflow:hidden;position:relative;}
#product-description.hmu-collapsed:after,.bd_collection_des.hmu-collapsed:after{content:"";position:absolute;left:0;right:0;bottom:0;height:140px;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none;}
.hmu-more{display:block;position:relative;z-index:2;margin:-8px auto 16px;padding:10px 22px;background:#fff;border:2px solid var(--hm-primary);border-radius:999px;color:var(--hm-primary);font-weight:600;font-size:14px;cursor:pointer;}
.hmu-advice{background:var(--hm-primary-dark);color:#fff;border-radius:var(--hm-radius-lg);padding:18px;margin-bottom:16px;}
.hmu-advice h3{color:#fff;font-size:17px;font-weight:700;margin:0 0 6px;}
.hmu-advice p{color:rgba(255,255,255,.82);font-size:13px;margin:0 0 12px;}
.hmu-advice a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:8px;border-radius:var(--hm-radius);font-weight:700;text-decoration:none !important;}
.hmu-advice .hmu-call{background:var(--hm-accent);color:#fff !important;}
.hmu-advice .hmu-zalo{background:#fff;color:var(--hm-primary) !important;}
.hmu-related{background:#fff;border:1px solid var(--hm-border);border-radius:var(--hm-radius-lg);padding:20px;margin:16px 0;}
.hmu-share{margin-top:16px;}
.hmu-mgal{display:none;}
@media (max-width:767px){h1.ega-product-title{font-size:20px !important;} .hmu-price .hmu-now{font-size:26px;} #ega-product-app{padding:14px !important;border-radius:0;} .hmu-specs-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .hmu-sub a{font-size:13px;} .hmu-tabs-inline{position:static;} body.hmu-product #ega-product-app .prod_main_image,body.hmu-product #ega-product-app .ega-product-imgs-child{display:none !important;} .hmu-mgal{display:block;position:relative;margin:0 -14px;} .hmu-mgal-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;} .hmu-mgal-track img{flex:0 0 100%;width:100%;aspect-ratio:1/1;object-fit:contain;background:#F6F8F9;scroll-snap-align:center;} .hmu-mgal-dots{display:flex;justify-content:center;gap:6px;padding:8px 0;} .hmu-mgal-dots span{width:7px;height:7px;border-radius:50%;background:var(--hm-border);} .hmu-mgal-dots span.on{width:18px;border-radius:4px;background:var(--hm-primary);}}
/* T7 thanh CTA co dinh mobile */
.hmu-mbar,.hmu-mtop{display:none;}
@media (max-width:767px){body.hmu-product{padding-bottom:90px !important;} body.hmu-product header{position:static;} .hmu-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9999;gap:8px;background:#fff;border-top:1px solid var(--hm-border);box-shadow:0 -4px 16px rgba(0,0,0,.06);padding:10px 12px calc(10px + env(safe-area-inset-bottom));} .hmu-mbar .hmu-ic{flex:0 0 52px;height:52px;display:flex;align-items:center;justify-content:center;border:0;border-radius:var(--hm-radius);background:var(--hm-primary-soft);color:var(--hm-primary) !important;font-size:20px;font-weight:700;text-decoration:none !important;} .hmu-mbar .hmu-ic img{width:30px;height:30px;} .hmu-mbar .hmu-btn-buy{flex:1;height:52px;} .hmu-mtop{display:block;position:fixed;top:0;left:0;right:0;z-index:9998;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);transform:translateY(-110%);transition:transform .2s;} body.hmu-pscrolled .hmu-mtop{transform:none;} .hmu-mtop-row{display:flex;align-items:center;gap:10px;padding:6px 12px;} .hmu-mtop-row button{width:44px;height:44px;border:0;background:transparent;font-size:18px;color:var(--hm-text);} .hmu-mtop-row img{width:40px;height:40px;object-fit:contain;border:1px solid var(--hm-border);border-radius:6px;} .hmu-mtop-name{flex:1;min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .hmu-mtop-price{font-size:13px;font-weight:700;color:var(--hm-accent);white-space:nowrap;} .hmu-mtop .hmu-tabs{position:static;margin:0;border:0;border-top:1px solid var(--hm-border);border-radius:0;} .hmu-mtop .hmu-tabs a{padding:10px 12px 8px;font-size:14px;}}
/* T8 trang danh muc */
.hmu-chead{margin:4px 0 14px;}
.hmu-ctitle{font-size:28px;font-weight:700;line-height:1.25;color:var(--hm-text);margin:0 0 10px;}
.hmu-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;}
.hmu-chips button{flex:0 0 auto;min-height:40px;padding:8px 14px;border:1px solid var(--hm-border);border-radius:999px;background:#fff;color:var(--hm-text);font-size:14px;font-weight:500;cursor:pointer;}
.hmu-chips button.on{background:var(--hm-primary);border-color:var(--hm-primary);color:#fff;}
.hmu-ccount{font-size:13px;color:var(--hm-muted);margin-left:10px;white-space:nowrap;vertical-align:middle;}
.bd_collection_des.hmu-collapsed{max-height:280px;}
@media (max-width:767px){.hmu-ctitle{font-size:20px;} .hmu-ccount{display:block;margin:4px 0 0;}}
/* T9 the san pham */
section.ega-col-product-items,.hmu-related .ega-col-product-items{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.ega-col-product-items>.ega-col-product-item{width:auto !important;max-width:none !important;flex:none !important;float:none !important;padding:0 !important;margin:0 !important;display:flex;}
.ega-col-product-box{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:#fff;border:1px solid var(--hm-border) !important;border-radius:var(--hm-radius);padding:10px !important;transition:box-shadow .2s;}
.ega-col-product-box:hover{box-shadow:0 6px 18px rgba(11,85,99,.12);}
.ega-col-product-box .ega-product-thumbnail{width:100% !important;height:auto !important;flex:1;display:flex;}
.ega-col-product-box a.ega-col-product-a{display:flex !important;flex-direction:column;width:100%;height:100% !important;text-decoration:none !important;}
.ega-col-product-a>div{height:auto !important;}
.ega-col-product-a .ega-pos-relative{aspect-ratio:1/1;height:auto !important;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden;}
.ega-col-product-a .ega-pos-relative img{width:100% !important;height:100% !important;max-height:none !important;object-fit:contain;}
h4.ega-product-col-name{font-size:14px !important;font-weight:500 !important;line-height:1.4 !important;height:auto !important;min-height:2.8em;white-space:normal !important;display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden !important;text-overflow:clip !important;margin:8px 0 6px !important;color:var(--hm-text) !important;text-align:left !important;}
.ega-col-product-a>div:has(.ega-col-product-price){display:flex !important;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:auto;text-align:left !important;}
.ega-col-product-price{font-size:16px !important;font-weight:700 !important;color:var(--hm-accent) !important;}
.ega-col-product-box .ega-old-price-home{display:inline !important;font-size:13px !important;color:var(--hm-muted) !important;text-decoration:line-through;}
.ega-col-product-box .ega-percent-price{position:absolute !important;top:10px;right:10px;left:auto !important;z-index:3;width:auto !important;height:auto !important;padding:5px 7px !important;background:var(--hm-accent) !important;color:#fff !important;font-size:12px !important;font-weight:700;line-height:1;border-radius:6px !important;}
.hmu-contact-pill{display:inline-block;padding:3px 10px;background:var(--hm-primary-soft);color:var(--hm-primary);border-radius:999px;font-size:13px;font-weight:600;}
.ega-col-product-box .ega-form-add-cart{margin-top:8px;}
.ega-col-product-box .ega-col-product-add-cart{width:100%;height:40px;border:0 !important;border-radius:var(--hm-radius-sm) !important;background:var(--hm-primary) !important;color:#fff !important;font-weight:600;font-size:14px;text-transform:none !important;}
img[src*="hot.gif"]{display:none !important;}
@media (min-width:992px){.ega-col-product-box .ega-form-add-cart{opacity:0;transition:opacity .15s;} .ega-col-product-box:hover .ega-form-add-cart,.ega-col-product-box:focus-within .ega-form-add-cart{opacity:1;}}
@media (max-width:991px){section.ega-col-product-items{grid-template-columns:repeat(3,minmax(0,1fr));} .ega-col-product-box .ega-form-add-cart{display:none !important;}}
@media (max-width:767px){section.ega-col-product-items,.hmu-related .ega-col-product-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;} .ega-col-product-box{padding:8px !important;} h4.ega-product-col-name{font-size:13px !important;}}
/* Tinh chinh sau kiem tra */ .ega-top-header .ega-logo{filter:brightness(0) saturate(100%) invert(22%) sepia(41%) saturate(1771%) hue-rotate(160deg) brightness(93%) contrast(92%);max-height:52px;width:auto !important;} .ega-form-search-top .ega-div-top-search button{display:flex !important;align-items:center;justify-content:center;line-height:1 !important;font-size:15px !important;text-indent:0 !important;} .ega-form-search-top .ega-div-top-search{width:100% !important;} #ega-menu-deiv-top>ul.nav>li>a{background:transparent !important;border-radius:0 !important;} #ega-menu-deiv-top>ul.nav>li>a:hover,#ega-menu-deiv-top .hm-brand-root .hm-trigger:hover{background:rgba(255,255,255,.12) !important;} #ega-product-app .ega-img-div-child{width:100% !important;height:auto !important;margin:0 !important;} #ega-product-app .ega-img-div-child img{max-width:100% !important;max-height:100% !important;} #form-add-cart-product .ega-btn-product-div{display:block !important;width:100% !important;} .hmu-btn{white-space:nowrap;}
.ega-form-search-top .ega-div-top-search button{transform:none !important;top:auto !important;margin:0 !important;}
.ega-col-product-box h4.ega-product-col-name{display:-webkit-box !important;-webkit-line-clamp:2 !important;line-clamp:2;-webkit-box-orient:vertical !important;max-height:2.8em !important;}
@media (max-width:991px){.hmu-util{display:none !important;}}