/* BLUE MARKET V18 — Public website. UI only; commerce/auth handled by existing PHP & VPS. */
:root{--hm-blue:#0861d9;--hm-navy:#092c60;--hm-line:#e2eaf3;--hm-muted:#63778f;--hm-shadow:0 3px 15px rgba(31,64,104,.055)}
html{scroll-padding-top:14px}
.hm-body{background:#f2f6fb;color:#152f51;font-family:var(--hm-facebook-font);font-size:13px;line-height:1.5;min-width:320px}
.hm-body *{box-sizing:border-box}
.hm-body a{text-decoration:none}
.hm-body .site-icon{width:18px;height:18px;vertical-align:middle;flex:0 0 auto}
.hm-header{min-height:103px;margin:10px 14px 0;display:grid;grid-template-columns:minmax(240px,288px) minmax(320px,1fr) auto;gap:24px;align-items:center;padding:14px 22px;background:#fff;border:1px solid var(--hm-line);border-radius:12px;box-shadow:var(--hm-shadow)}
.hm-brand{min-width:0;display:flex;align-items:center;gap:12px}
.hm-brand img{width:64px;height:64px;object-fit:contain;border-radius:12px}
.hm-brand-copy{min-width:0;display:block}
.hm-brand-copy strong{display:block;line-height:1.05;color:#0755b8;font-size:clamp(21px,2vw,28px);font-weight:800;letter-spacing:-.055em;text-transform:uppercase;white-space:nowrap}
.hm-brand-copy small{display:block;margin-top:8px;color:#647b96;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.hm-header-middle{min-width:0}
.hm-brand-strap{font-size:15px;font-weight:750;color:#112b50;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-brand-strap span{padding:0 7px;color:#a2b3c8}
.hm-search{min-height:42px;display:flex;align-items:center;border:1px solid #cedbeb;background:#fafcfe;border-radius:9px;overflow:hidden;color:#7890aa;padding-left:13px;min-width:0}
.hm-search input{flex:1;min-width:20px;border:0;background:transparent;height:42px;color:#143355;font-size:13px;padding:0 12px;outline:0}
.hm-search input:focus-visible{outline:none}
.hm-search:focus-within{border-color:#4ea0ee;box-shadow:0 0 0 3px #cce7ff}
.hm-search button{align-self:stretch;border:0;background:var(--hm-blue);color:#fff;font-size:13px;font-weight:700;padding:0 18px;display:inline-flex;align-items:center;gap:8px}
.hm-search button:hover,.hm-blue-button:hover{background:#064eb3}
.hm-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap}
.hm-header-action{min-width:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-weight:650;font-size:11px;color:#174064}
.hm-header-action .site-icon{width:23px;height:23px;color:#0b63c8}
.hm-header-action:hover{color:var(--hm-blue)}
.hm-header-user{display:grid;place-items:center;color:#0b66d7;background:#edf6ff;width:42px;height:42px;border:1px solid #cfe7ff;border-radius:50%}
.hm-header-user .site-icon{width:23px;height:23px}
.hm-shell{display:grid;grid-template-columns:258px minmax(0,1fr);gap:12px;align-items:start;margin:12px 14px 0}
.hm-sidebar{background:#fff;min-width:0;border:1px solid var(--hm-line);border-radius:12px;box-shadow:var(--hm-shadow);overflow:hidden;min-height:calc(100vh - 145px);display:flex;flex-direction:column}
.hm-side-account{padding:19px 16px 17px;border-bottom:1px solid #e9eff7;text-align:center}
.hm-user-avatar{display:grid;place-items:center;margin:0 auto 8px;width:58px;height:58px;border-radius:50%;background:linear-gradient(145deg,#eef4fb,#dce6f2);color:#67829f}
.hm-user-avatar .site-icon{width:33px;height:33px}
.hm-side-greeting strong{display:block;color:#153051;font-size:15px;overflow-wrap:anywhere}
.hm-side-greeting small{display:block;color:var(--hm-muted);font-size:12px;line-height:1.5;max-width:210px;margin:4px auto 0;overflow-wrap:anywhere}
.hm-side-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:13px}
.hm-blue-button,.hm-outline-button{display:inline-flex;justify-content:center;align-items:center;min-height:37px;border-radius:8px;font-size:12px;font-weight:750;padding:7px 10px;transition:background-color .18s}
.hm-blue-button{background:var(--hm-blue);border:1px solid var(--hm-blue);color:white!important}
.hm-outline-button{border:1px solid #b5d5ff;color:#0b61c9;background:white}
.hm-outline-button:hover{background:#ecf5ff}
.hm-side-links{padding:12px 10px;display:flex;flex-direction:column;gap:3px}
.hm-side-link{min-height:43px;color:#243d5d;font-size:13px;font-weight:650;display:flex;align-items:center;gap:12px;border-radius:9px;padding:10px 13px;cursor:pointer;white-space:normal;list-style:none}
.hm-side-link .site-icon{width:20px;height:20px;color:#2b5a91}
.hm-side-link:hover,.hm-side-link.is-active{background:#e5f2ff;color:#0859bf}
.hm-side-link.is-active .site-icon{color:#0859bf}
.hm-side-expand{min-width:0}
.hm-side-expand>summary::-webkit-details-marker{display:none}
.hm-side-expand>summary .site-icon:last-child{margin-left:auto;width:15px;height:15px}
.hm-side-expand[open]>summary{background:#f0f7ff;color:#075dbf}
.hm-side-expand[open]>summary .site-icon:last-child{transform:rotate(180deg)}
.hm-side-submenu{display:grid;gap:2px;padding:3px 5px 7px 44px}
.hm-side-submenu a{font-size:12px;color:#516d8e;padding:7px 5px;line-height:1.4;overflow-wrap:anywhere;border-radius:6px}
.hm-side-submenu a:hover,.hm-side-submenu a[aria-current]{color:#005ac9;background:#eff7ff}
.hm-side-support{display:flex;gap:10px;align-items:center;margin:auto 12px 13px;padding:12px 11px;background:#f4f8fd;border:1px solid #e5eef8;border-radius:10px;color:#19518f}
.hm-side-support>span:first-child{background:#dfedff;color:#0c6ad5;width:39px;height:39px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}
.hm-side-support small,.hm-side-support strong,.hm-side-support em{display:block;font-size:10px;line-height:1.5}
.hm-side-support strong{font-size:12px;color:#0951ac}
.hm-side-support em{font-style:normal;color:#7d8ba0}
.hm-mobile-menu{display:none}
.hm-shell-main{min-width:0}
.hm-flash-area{min-width:0}
.hm-flash-area:empty{display:none}
.hm-shell-main > .container{max-width:none;width:100%;padding-left:0;padding-right:0;margin-left:0;margin-right:0}
.hm-shell-main > main:not(.hm-home){padding-top:12px;padding-bottom:30px}
.hm-shell-main > main:not(.hm-home) .container{max-width:none}
.hm-shell-main > main:not(.hm-home) .detail-layout{max-width:none}
.hm-home{width:100%;min-width:0}
.hm-home h1,.hm-home h2,.hm-home h3{text-transform:none;letter-spacing:0}
.hm-news,.hm-market,.hm-information-card{background:#fff;border:1px solid var(--hm-line);border-radius:12px;box-shadow:var(--hm-shadow)}
.hm-news{padding:9px;margin-bottom:12px}
.hm-section-top,.hm-market-heading{display:flex;align-items:center;gap:12px;min-height:63px}
.hm-section-top{background:#eaf5ff;border-radius:9px;padding:10px 14px}
.hm-section-icon{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border-radius:10px;background:#d9edff;color:#0968dd}
.hm-section-icon .site-icon{width:22px;height:22px}
.hm-section-top>div,.hm-market-copy{flex:1;min-width:0}
.hm-section-top h1,.hm-market-heading :is(h1,h2){font-size:18px;font-weight:800;line-height:1.3;color:#0b4d9e;margin:0}
.hm-section-top p,.hm-market-heading p{font-size:11px;color:#657c95;line-height:1.5;margin:3px 0 0;overflow-wrap:anywhere}
.hm-all-link{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#0969db;font-weight:750;font-size:11px}
.hm-all-link .site-icon{width:15px;height:15px}
.hm-news-feed{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-width:0;padding:7px 0 1px}
.hm-news-item{display:flex;gap:9px;align-items:center;min-width:0;padding:7px 8px;border-right:1px solid #eaf0f6}
.hm-news-item:last-child{border-right:0}
.hm-news-item:hover{background:#f7fbff}
.hm-news-art{display:grid;place-items:center;width:57px;height:54px;flex:0 0 57px;border-radius:7px;color:#fff;background:linear-gradient(140deg,#065aab,#36b2f4)}
.hm-news-art .site-icon{width:27px;height:27px}
.hm-news-art-1{background:linear-gradient(135deg,#259e91,#8edbc4)}
.hm-news-art-2{background:linear-gradient(135deg,#245b9f,#83acd4)}
.hm-news-art-3{background:linear-gradient(135deg,#7651cc,#bab0f4)}
.hm-news-summary{min-width:0;flex:1}
.hm-news-summary strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#183758;line-height:1.4;font-size:11px}
.hm-news-summary small{display:block;color:#8796ac;font-size:10px;margin-top:6px}
.hm-news-item>.site-icon{width:13px;height:13px;color:#9aabc1}
.hm-news-empty{grid-column:1/-1;padding:14px;color:#68809a;display:flex;gap:9px;align-items:center}
.hm-market{padding:12px;margin-bottom:12px}
.hm-market-heading{padding:0 6px 9px}
.hm-category-bar{border-top:1px solid #eaf0f6;border-bottom:1px solid #eaf0f6;padding:9px 2px;display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;margin-bottom:13px}
.hm-categories{display:flex;flex:1;min-width:0;overflow-x:auto;gap:7px;scrollbar-width:thin}
.hm-category-chip{flex-shrink:0;padding:8px 11px;white-space:nowrap;background:#f7f9fc;border:1px solid #e5ebf4;border-radius:7px;font-weight:700;color:#426380;font-size:11px;line-height:1.15}
.hm-category-chip:hover{border-color:#b2d6ff;background:#ebf6ff}
.hm-category-chip.is-selected{background:#0a66dd;border-color:#0a66dd;color:#fff}
.hm-product-count{color:#7890a7;font-size:11px;white-space:nowrap}
.hm-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.hm-product-card{min-width:0;min-height:275px;display:flex;flex-direction:column;border:1px solid #e4ebf3;border-radius:11px;overflow:hidden;background:#fff;transition:border-color .2s,box-shadow .2s}
.hm-product-card:hover{border-color:#aed5ff;box-shadow:0 7px 19px rgba(28,91,160,.1)}
.hm-product-picture{position:relative;min-height:124px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(155deg,#f3f9ff,#e4f2ff);border-bottom:1px solid #edf3f9}
.hm-product-glyph{display:grid;place-items:center;width:74px;height:74px;border-radius:22px;background:linear-gradient(135deg,#0c79de,#24b9f0);color:#fff;box-shadow:0 12px 24px rgba(18,113,205,.15);z-index:1}
.hm-product-glyph .site-icon{width:42px;height:42px;stroke-width:1.5}
.hm-product-picture-watermark{position:absolute;bottom:10px;right:11px;font-size:10px;letter-spacing:.12em;font-weight:800;color:#bad9f1}
.hm-product-label{position:absolute;top:9px;left:9px;font-size:10px;border-radius:6px;padding:4px 7px;font-weight:800;background:#dff7eb;color:#087e55}
.hm-product-label.hm-outstock{background:#fff0f1;color:#ca4255}
.hm-product-details{display:flex;flex:1;flex-direction:column;min-width:0;padding:11px 12px 12px}
.hm-product-category{display:block;font-size:10px;color:#3981c3;font-weight:750;margin-bottom:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hm-product-details h3{font-size:13px;line-height:1.37;color:#1c3655;max-height:38px;overflow:hidden;margin:0 0 6px;font-weight:800}
.hm-product-details h3 a:hover{color:var(--hm-blue)}
.hm-product-details p{font-size:11px;color:#708196;line-height:1.48;min-height:33px;max-height:37px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 12px}
.hm-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto}
.hm-product-price{font-size:15px;font-weight:800;color:#e32942;white-space:nowrap}
.hm-product-cta{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:7px;background:#096add;color:#fff;font-size:10px;font-weight:800;text-align:center;padding:8px 9px;white-space:nowrap;line-height:1.2}
.hm-product-cta .site-icon{width:13px;height:13px}
.hm-product-cta:hover{background:#064eb7}
.hm-no-products{text-align:center;padding:35px 15px;color:#71869e;display:flex;align-items:center;flex-direction:column;gap:9px}
.hm-no-products>.site-icon{width:36px;height:36px;color:#398bdf}
.hm-no-products strong{color:#214568;font-size:15px}
.hm-no-products p{margin:0 0 4px;font-size:12px}
.hm-information{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hm-information-card{padding:16px;min-width:0;scroll-margin-top:16px}
.hm-information-card h2{display:flex;align-items:center;gap:9px;font-size:15px;margin:0 0 9px;color:#164c8c}
.hm-information-card h2 .site-icon{color:#1977d8}
.hm-information-card p{font-size:12px;line-height:1.6;color:#637791;overflow-wrap:anywhere;margin:0}
.hm-faq{border-top:1px solid #edf2f8;padding:8px 0}
.hm-faq summary{font-size:12px;font-weight:700;cursor:pointer}
.hm-faq p{padding:5px 4px}
.hm-footer{margin:12px 14px 0;padding:19px 22px;background:#fff;border:1px solid var(--hm-line);border-bottom:0;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#56728f}
.hm-footer strong{display:block;font-size:14px;color:#0b5cb6}
.hm-footer p{font-size:11px;margin:4px 0 0;max-width:430px}
.hm-footer-links{display:flex;gap:14px;flex-wrap:wrap}
.hm-footer-links a{font-size:11px;font-weight:650}
.hm-footer-links a:hover{color:#0876db}
.hm-footer>small{font-size:10px}
/* Inner product/account/wallet pages keep their existing forms and safety controls. */
.hm-shell-main .product-detail-page{background:transparent}
.hm-shell-main .commerce-page,.hm-shell-main .account-page,.hm-shell-main .auth-page{max-width:none}
.hm-shell-main .detail-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hm-shell-main .commerce-head{max-width:none}
.hm-shell-main .detail-layout{gap:13px}
.hm-shell-main .detail-main{gap:11px}
@media(max-width:1440px){.hm-header{grid-template-columns:minmax(210px,260px) minmax(250px,1fr) auto;gap:16px}.hm-shell{grid-template-columns:238px minmax(0,1fr)}.hm-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hm-news-feed{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-news-item:nth-child(2){border-right:0}}
@media(max-width:1030px){.hm-header{grid-template-columns:minmax(160px,210px) minmax(220px,1fr) auto;gap:12px;padding:13px}.hm-brand img{width:52px;height:52px}.hm-brand-copy strong{font-size:20px}.hm-header-actions{gap:8px}.hm-shell{grid-template-columns:202px minmax(0,1fr);gap:10px}.hm-side-links{padding:9px 6px}.hm-side-link{gap:8px;padding:9px;font-size:12px}.hm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-product-bottom{flex-wrap:wrap}}
@media(max-width:760px){.hm-header{margin:8px 9px 0;grid-template-columns:1fr auto;gap:9px;padding:11px 12px}.hm-brand{gap:8px}.hm-brand img{width:46px;height:46px}.hm-brand-copy strong{font-size:20px}.hm-brand-copy small{font-size:10px;max-width:220px}.hm-header-middle{grid-column:1/-1;grid-row:2}.hm-brand-strap{display:none}.hm-search{min-height:39px}.hm-search input{height:39px}.hm-header-actions{grid-column:2;grid-row:1}.hm-header-action{min-width:30px}.hm-header-action>span{display:none}.hm-header-user{width:35px;height:35px}.hm-shell{display:block;margin:9px 9px 0}.hm-sidebar{min-height:0;margin-bottom:9px}.hm-side-account{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;text-align:left;align-items:center;padding:10px 12px}.hm-user-avatar{margin:0;width:40px;height:40px}.hm-user-avatar .site-icon{width:25px;height:25px}.hm-side-greeting{min-width:0}.hm-side-greeting strong{font-size:12px}.hm-side-greeting small{max-width:none;font-size:10px;line-height:1.4}.hm-side-buttons{display:flex;gap:6px;margin:0}.hm-side-buttons a{min-height:32px;padding:6px 9px;font-size:10px}.hm-mobile-menu{display:block;border-bottom:1px solid #eaf1f8}.hm-mobile-menu summary{display:flex;justify-content:space-between;align-items:center;gap:8px;list-style:none;color:#225387;font-weight:750;cursor:pointer;padding:10px 13px}.hm-mobile-menu summary .site-icon:last-child{margin-left:auto;width:14px;height:14px}.hm-mobile-menu summary::-webkit-details-marker{display:none}.hm-side-links{display:none}.hm-sidebar:has(.hm-mobile-menu[open]) .hm-side-links{display:flex}.hm-side-support{display:none}.hm-news{padding:7px}.hm-market{padding:9px}.hm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-information{grid-template-columns:1fr}.hm-footer{margin:9px 9px 0}}
@media(max-width:480px){.hm-brand-copy strong{font-size:18px}.hm-header-actions{gap:6px}.hm-header-action{min-width:27px}.hm-header-action .site-icon{width:19px;height:19px}.hm-header-user{width:31px;height:31px}.hm-side-account{grid-template-columns:38px minmax(0,1fr);gap:8px}.hm-side-buttons{grid-column:1/-1;width:100%}.hm-side-buttons a{flex:1}.hm-section-top{gap:9px}.hm-section-top h1,.hm-market-heading :is(h1,h2){font-size:16px}.hm-section-top p,.hm-market-heading p{font-size:10px}.hm-all-link{font-size:10px}.hm-news-feed{grid-template-columns:1fr}.hm-news-item{border-right:0;border-bottom:1px solid #eff3f8}.hm-news-item:last-child{border-bottom:0}.hm-product-grid{grid-template-columns:1fr 1fr;gap:7px}.hm-product-card{min-height:260px}.hm-product-picture{min-height:100px}.hm-product-glyph{width:54px;height:54px;border-radius:16px}.hm-product-glyph .site-icon{width:29px;height:29px}.hm-product-details{padding:9px}.hm-product-category{font-size:9px}.hm-product-details h3{font-size:11px}.hm-product-details p{font-size:10px}.hm-product-price{font-size:13px}.hm-product-cta{width:100%;font-size:10px}.hm-product-count{display:none}.hm-footer{padding:14px}.hm-footer-links{gap:9px}}
@media(prefers-reduced-motion:reduce){.hm-product-card,.hm-blue-button,.hm-outline-button{transition:none}}


/* ===============================================================
   V19: FIX long-brand overlap + full-height square sidebar.
   Scope: hosting public UI only. No commerce or API changes.
   =============================================================== */
:root{--hm-sidebar-width:264px;--hm-outer-gap:12px}
/* Fixed sidebar begins at the top-left of the viewport; only it scrolls. */
@media(min-width:761px){
  .hm-body{min-width:0}
  .hm-sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--hm-sidebar-width);height:100vh;height:100dvh;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;z-index:25;border-radius:0;margin:0;box-shadow:2px 0 13px rgba(17,57,102,.07)}
  .hm-header{width:calc(100% - var(--hm-sidebar-width));max-width:none;min-width:0;margin:0 0 0 var(--hm-sidebar-width);border-radius:0;border-top:0;border-right:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(12px,2vw,27px);padding:12px 19px;min-height:100px}
  .hm-shell{display:block;width:calc(100% - var(--hm-sidebar-width) - 2 * var(--hm-outer-gap));max-width:none;min-width:0;margin:var(--hm-outer-gap) var(--hm-outer-gap) 0 calc(var(--hm-sidebar-width) + var(--hm-outer-gap));padding:0}
  .hm-footer{width:calc(100% - var(--hm-sidebar-width) - 2 * var(--hm-outer-gap));margin:12px var(--hm-outer-gap) 0 calc(var(--hm-sidebar-width) + var(--hm-outer-gap))}
  .hm-side-brand{display:flex;min-height:100px;padding:16px 12px;border-bottom:1px solid #e7eef7;gap:8px;align-items:center;overflow:hidden}
  .hm-brand-mobile{display:none}
}
/* Prevent logo/copy forcing the search field outside its column. */
.hm-side-brand{min-width:0}
.hm-brand-copy{min-width:0;max-width:100%}
.hm-brand-copy strong{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.025em;line-height:1.2;font-size:clamp(16px,1.4vw,20px)}
.hm-brand-copy small{max-width:100%;margin-top:5px}
.hm-side-brand img{height:51px;width:51px;object-fit:contain;flex:none}
.hm-header-middle{width:100%;min-width:0;max-width:none;display:flex;flex-direction:column;gap:8px}
.hm-brand-strap{display:block;min-width:0;max-width:100%;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.25}
.hm-search{margin:0;width:100%;max-width:none;flex:0 0 auto}
.hm-header-actions{min-width:0;flex-shrink:0}
.hm-sidebar{border-radius:0}
.hm-shell-main{width:100%;max-width:none;min-width:0;margin:0;padding:0}
.hm-shell-main > main,.hm-shell-main > section,.hm-shell-main > article{width:100%;max-width:none;margin-left:0;margin-right:0;min-width:0}
.hm-shell-main > main.container,.hm-shell-main > .container{max-width:none;width:100%;padding-left:0;padding-right:0}
.hm-shell-main .detail-layout,.hm-shell-main .account-shell,.hm-shell-main .account-profile-hero,.hm-shell-main .commerce-grid{max-width:none;width:100%}
.hm-shell-main .detail-main,.hm-shell-main .detail-order,.hm-shell-main .account-content,.hm-shell-main .account-panel{min-width:0}
.hm-shell-main .commerce-page,.hm-shell-main .account-v2,.hm-shell-main .product-detail-page,.hm-shell-main .auth-page{max-width:none}
@media (min-width:761px) and (max-width:1090px){
  :root{--hm-sidebar-width:226px;--hm-outer-gap:9px}
  .hm-header{padding:11px 12px;gap:9px}
  .hm-side-brand{padding:12px 9px;gap:7px}
  .hm-side-brand img{height:42px;width:42px}
  .hm-brand-copy strong{font-size:16px}
  .hm-header-action{min-width:45px}
  .hm-header-actions{gap:6px}
}
@media(max-width:760px){
  .hm-brand-mobile{display:flex;min-width:0;overflow:hidden}
  .hm-side-brand{display:none}
  .hm-header{width:auto;max-width:none;grid-template-columns:minmax(0,1fr) auto}
  .hm-header-middle{width:100%;grid-column:1/-1;grid-row:2}
  .hm-header-actions{grid-column:2;grid-row:1}
  .hm-sidebar{position:static;width:100%;height:auto;min-height:0;border-radius:0;overflow:visible}
  .hm-shell{width:auto;max-width:none}
  .hm-footer{width:auto}
  .hm-brand-copy strong{font-size:clamp(15px,4.7vw,20px)}
  .hm-shell-main > main.container,.hm-shell-main > .container{padding-left:0;padding-right:0}
}


/* ===============================================================
   V20 · Public full width, account single panel and improved auth.
   Additive to the cumulative V19 styles; PHP auth/commerce unchanged.
   =============================================================== */
/* The old public CSS has a more specific 1296px rule. Override it here. */
body.hm-body .hm-shell-main main.product-detail-page.container,
body.hm-body .hm-shell-main main.container {
  width:100% !important;max-width:none !important;min-width:0;
  margin-left:0 !important;margin-right:0 !important;
  padding-left:0 !important;padding-right:0 !important;
}
.hm-shell-main .detail-layout,.hm-shell-main .detail-related{width:100%;max-width:none}
.hm-shell-main .detail-layout{grid-template-columns:minmax(0,1.65fr) minmax(280px,.8fr)}
.hm-shell-main .detail-related-grid{width:100%;max-width:none}
/* Footer occupies the entire main area, ending flush with viewport right. */
.hm-footer{box-sizing:border-box;border-radius:0 !important;border-left:0;border-right:0;border-bottom:0;box-shadow:none;max-width:none}
@media(min-width:761px){
 .hm-footer{width:calc(100% - var(--hm-sidebar-width)) !important;margin:12px 0 0 var(--hm-sidebar-width) !important;padding:18px 22px}
}
@media(max-width:760px){.hm-footer{margin:10px 0 0 !important;width:100% !important;padding:16px 14px}}
/* Anonymous visitors see only the two navigation actions. No greeting/avatar. */
.hm-header-guest{grid-template-columns:minmax(0,1fr) !important}
.hm-side-anon{padding:13px 12px !important}
.hm-side-anon .hm-side-buttons{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.hm-side-anon .hm-side-buttons a{min-width:0;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px}
.hm-side-anon .hm-side-buttons .site-icon{width:16px;height:16px}
.hm-side-member{padding:14px 12px}
.hm-member-intro{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:12px;text-align:left}
.hm-member-initial{width:48px;height:48px;min-width:48px;margin:0;display:grid;place-items:center;font-weight:750;font-size:17px;border-radius:14px;background:#e5f2ff;color:#0869c9}
.hm-member-intro .hm-side-greeting{min-width:0;max-width:100%;overflow:hidden;text-align:left}
.hm-member-intro .hm-side-greeting strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-member-intro .hm-side-greeting small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hm-header-user{font-weight:750;font-size:13px}
/* Account is one unified white panel, not a navigation card plus forms. */
.hm-shell-main .account-v2{width:100%;max-width:none}
.hm-shell-main .account-shell-single{display:block;width:100%;max-width:none}
.hm-shell-main .account-shell-single .account-forms{display:block;background:white;border:1px solid #dfe9f3;border-radius:15px;box-shadow:0 7px 24px rgba(28,68,109,.045);overflow:hidden}
.hm-shell-main .account-shell-single .account-panel{background:transparent;border:0;border-radius:0;box-shadow:none;padding:23px 25px;margin:0;width:100%;max-width:none}
.hm-shell-main .account-shell-single .account-panel+.account-panel{border-top:1px solid #e8eff6}
.account-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:13px 18px;background:#f4f9ff;border-bottom:1px solid #e1ecf6}
.account-summary-strip>div{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 16px}
.account-summary-strip>div+div{border-left:1px solid #dae7f4}
.account-summary-strip span{font-size:11px;color:#7489a0}
.account-summary-strip strong{margin-left:auto;color:#1b456c;font-size:12px;white-space:nowrap}
/* Full-width professional login/register, with an introduction and real form. */
.hm-shell-main > .hm-auth-page{display:grid;grid-template-columns:minmax(0,0.83fr) minmax(0,1.17fr);gap:0;background:#fff;border:1px solid #e0eaf5;border-radius:14px;box-shadow:var(--hm-shadow);width:100%;max-width:none;min-height:min(680px,calc(100vh - 160px));margin:0;overflow:hidden}
.hm-auth-hero{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:19px;padding:clamp(24px,3vw,54px);background:linear-gradient(150deg,#0b63b6 0%,#0a86dc 58%,#42b6f1 100%);color:white;position:relative;overflow:hidden}
.hm-auth-hero:after{content:'';position:absolute;inset:auto -100px -190px auto;width:390px;height:390px;border:1px solid #ffffff36;border-radius:50%;box-shadow:0 0 0 80px #ffffff0c;pointer-events:none}
.hm-auth-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:750;letter-spacing:.045em;color:#dcf3ff}
.hm-auth-hero h1{font-size:clamp(25px,2.7vw,36px);color:#fff;text-transform:none;letter-spacing:-.01em;line-height:1.25;margin:0;max-width:18ch}
.hm-auth-hero p{font-size:14px;line-height:1.75;color:#e1f3ff;max-width:45ch;margin:0}
.hm-auth-benefits{display:flex;flex-direction:column;gap:13px;margin-top:10px;position:relative;z-index:1}
.hm-auth-benefits>div{display:flex;align-items:flex-start;gap:10px;color:#f3faff;font-size:13px;line-height:1.5}
.hm-auth-benefits .site-icon{color:#c8f5ff;margin-top:1px}
.hm-auth-home{color:white;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;margin-top:12px;position:relative;z-index:1}
.hm-auth-home:hover{color:#c8f5ff}
.hm-auth-form-wrap{display:flex;flex-direction:column;justify-content:center;max-width:none;min-width:0;padding:clamp(24px,3vw,55px) clamp(24px,4vw,68px)}
.hm-auth-form-heading{margin-bottom:21px}
.hm-auth-form-icon{display:grid;place-items:center;width:43px;height:43px;color:#0a76cf;background:#e9f5ff;border-radius:12px;margin-bottom:13px}
.hm-auth-form-heading>span:not(.hm-auth-form-icon){display:block;font-size:10px;letter-spacing:.07em;font-weight:750;color:#117fd0}
.hm-auth-form-heading h2{margin:5px 0 7px;color:#15395a;font-size:clamp(21px,1.9vw,27px);text-transform:none;letter-spacing:0}
.hm-auth-form-heading p{font-size:12px;line-height:1.6;margin:0;color:#728ba3}
.hm-auth-form{display:flex;flex-direction:column;gap:0;min-width:0}
.hm-auth-form label,.hm-auth-field label{display:block;font-size:12px;color:#315373;font-weight:700;margin:0 0 7px}
.hm-auth-form>input:not([type=hidden]),.hm-auth-field input{width:100%;min-width:0;min-height:45px;padding:11px 13px;background:#fbfdff;color:#1b3f60;border:1px solid #d6e4f0;border-radius:9px;outline:0;font-size:13px;margin:0 0 16px}
.hm-auth-form input:focus{background:#fff;border-color:#1498e7;box-shadow:0 0 0 3px rgba(0,126,225,.12)}
.hm-auth-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:45px;border:0;border-radius:9px;background:#096bdf;color:white;font-size:13px;font-weight:750;margin-top:3px}
.hm-auth-submit:hover{background:#0658bd}
.hm-auth-switch{border-top:1px solid #e7edf4;padding-top:18px;margin-top:22px;text-align:center;font-size:12px;color:#698199}
.hm-auth-switch a{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:#0666c5}
.hm-auth-field{min-width:0}
.hm-auth-register-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.hm-auth-register-form>.hm-auth-submit{grid-column:1/-1}
@media(max-width:1050px){
 .hm-auth-register-form{grid-template-columns:1fr}
 .hm-shell-main > .hm-auth-page{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
 .hm-auth-hero,.hm-auth-form-wrap{padding:25px}
 .hm-auth-hero h1{font-size:25px}
 .account-summary-strip>div{flex-direction:column;align-items:flex-start;gap:3px;padding:7px}
 .account-summary-strip strong{margin:0}
}
@media(max-width:860px){
 .hm-shell-main > .hm-auth-page{grid-template-columns:1fr;min-height:0}
 .hm-auth-hero{padding:22px;gap:8px}
 .hm-auth-hero h1{font-size:22px;max-width:none}
 .hm-auth-hero p{font-size:12px;max-width:75ch}
 .hm-auth-benefits{display:none}
 .hm-auth-home{margin-top:3px}
 .hm-auth-form-wrap{padding:24px}
}
@media(max-width:760px){
 body.hm-body .hm-shell-main main.product-detail-page.container{padding:11px 0 20px !important}
 .hm-shell-main .detail-layout{grid-template-columns:1fr}
 .hm-side-anon{padding:10px 12px !important;display:block}
 .hm-side-anon .hm-side-buttons{display:grid;grid-template-columns:1fr 1fr;margin:0}
 .hm-member-intro{margin-bottom:7px}
 .hm-side-member{display:block}
 .hm-shell-main .account-shell-single .account-panel{padding:16px}
 .account-summary-strip{padding:10px;grid-template-columns:1fr;gap:0}
 .account-summary-strip>div{flex-direction:row;align-items:center;justify-content:space-between;padding:9px 7px}
 .account-summary-strip>div+div{border-left:0;border-top:1px solid #dae7f4}
}
@media(max-width:480px){.hm-auth-register-form{grid-template-columns:1fr}.hm-auth-form-wrap{padding:18px}.hm-auth-hero{padding:17px}.hm-auth-form-heading{margin-bottom:15px}}


/* ============================================================
   V21: Dedicated news page, one-line header shortcuts,
   fixed edge-to-edge footer and authenticated member summary.
   ============================================================ */
/* Both shortcuts share exactly the height of the search input. */
.hm-header-actions{display:flex;align-items:center;gap:9px}
.hm-header-action{display:grid;place-items:center;min-width:45px;width:45px;height:44px;flex:0 0 45px;margin:0;padding:0;border:1px solid #dae6f2;border-radius:9px;background:#f7fbff;line-height:1}
.hm-header-action .site-icon{width:21px;height:21px;color:#1169ca}
.hm-header-action:hover{background:#e8f5ff;border-color:#a9cef7}
.hm-header-user{display:none!important}
.hm-member-summary{padding:7px 0 3px;margin:2px 0 9px;display:grid;gap:8px;text-align:left;border-top:1px solid #e8eef6}
.hm-member-balance,.hm-member-joined{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:8px 9px;border-radius:8px;background:#f3f8ff;font-size:11px;color:#58738e}
.hm-member-balance>span,.hm-member-joined>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.hm-member-balance strong{font-size:13px;color:#0965c7;white-space:nowrap}
.hm-member-joined{background:transparent;padding:2px 8px}
.hm-member-joined strong{font-size:11px;color:#234969;white-space:nowrap}
.hm-member-summary .site-icon{width:15px;height:15px}
.hm-member-history{display:flex;align-items:center;gap:7px;padding:8px 10px;color:#095fb7;font-size:12px;font-weight:700;border-radius:8px;background:#eaf5ff}
.hm-member-history .site-icon:last-child{width:14px;height:14px;margin-left:auto}
.hm-member-history:hover{background:#d9edff}
.hm-news-page{width:100%;min-width:0}
.hm-news-alone{padding:12px;width:100%;min-height:260px;margin:0}
.hm-news-list{display:grid;gap:0;padding:0 6px}
.hm-news-list-item{display:flex;align-items:center;gap:17px;padding:17px 8px;border-bottom:1px solid #e8eff6;min-width:0}
.hm-news-list-item:last-child{border-bottom:0}
.hm-news-list-item>.hm-news-art{width:100px;height:76px;flex:0 0 100px;text-decoration:none}
.hm-news-list-copy{flex:1;min-width:0}
.hm-news-list-copy>span{font-size:10px;color:#6984a3;font-weight:650}
.hm-news-list-copy h2{font-size:16px;line-height:1.35;margin:5px 0;color:#133e68;text-transform:none}
.hm-news-list-copy h2 a:hover{color:#006bd6}
.hm-news-list-copy p{margin:4px 0 0;color:#6c8095;font-size:12px;line-height:1.6}
.hm-news-read{display:inline-flex;align-items:center;white-space:nowrap;gap:6px;color:#056bd2;font-size:12px;font-weight:700}
.hm-news-read .site-icon{width:15px;height:15px}
/* Footer is always visible, flush with the right edge and without rounded corners.
   Reserve its space so it never covers the last fields of any page. */
body.hm-body{padding-bottom:var(--hm-footer-space,83px)}
.hm-footer{position:fixed!important;bottom:0!important;right:0!important;top:auto!important;z-index:22;margin:0!important;border-radius:0!important;border-left:0;border-right:0;border-bottom:0;box-shadow:0 -4px 17px rgba(24,64,103,.06);min-height:76px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px}
@media(min-width:761px){
  :root{--hm-footer-space:86px}
  .hm-footer{left:var(--hm-sidebar-width)!important;width:calc(100% - var(--hm-sidebar-width))!important;max-width:none}
  .hm-header{grid-template-columns:minmax(0,1fr) auto}
}
@media(max-width:760px){
  :root{--hm-footer-space:72px}
  .hm-footer{left:0!important;width:100%!important;min-height:59px;padding:10px 12px!important;gap:8px}
  .hm-footer-brand,.hm-footer>small{display:none}
  .hm-footer-links{width:100%;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-around;gap:8px;overflow-x:auto;scrollbar-width:thin}
  .hm-footer-links a{font-size:11px;flex-shrink:0;white-space:nowrap}
  .hm-header-action{min-width:39px;width:39px;height:39px;flex-basis:39px}
  .hm-side-member{padding-bottom:13px}
  .hm-news-alone{padding:9px}
  .hm-news-list-item>.hm-news-art{width:74px;height:64px;flex-basis:74px}
  .hm-news-list-item{gap:9px;padding:12px 4px}
  .hm-news-read{font-size:10px}
  .hm-news-list-copy h2{font-size:13px}
}
@media(max-width:420px){.hm-news-read{display:none}.hm-member-intro{flex-wrap:nowrap}}
@supports(padding-bottom:env(safe-area-inset-bottom)){
  @media(max-width:760px){body.hm-body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}.hm-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}}
}

/* Align icon shortcuts with the search field, not with the heading above it. */
@media(min-width:761px){.hm-header-actions{align-self:end}}


/* ===============================================================
   V22 · Auth-only guest site + compact horizontal product catalogue.
   All previous V19–V21 shell, footer and account fixes remain intact.
   =============================================================== */
/* The login/register outer frame and its blue half fill the available
   height on desktop. Avoid auto-height blue panels with leftover white gap. */
@media(min-width:861px){
 .hm-shell-main > main.hm-auth-page{
   padding:0!important;
   display:grid!important;
   grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)!important;
   align-items:stretch!important;
   min-height:max(640px,calc(100dvh - 100px - var(--hm-footer-space,86px) - 24px))!important;
   height:auto!important;
   max-height:none!important;
   overflow:hidden;
 }
 .hm-shell-main > main.hm-auth-page > .hm-auth-hero{
   align-self:stretch!important;
   justify-content:center;
   height:100%!important;
   min-height:100%!important;
   border-radius:0!important;
 }
 .hm-shell-main > main.hm-auth-page > .hm-auth-form-wrap{
   align-self:stretch!important;
   min-height:100%!important;
   justify-content:center;
 }
}
.hm-body.hm-guest .hm-side-links,.hm-body.hm-guest .hm-side-support,
.hm-body.hm-guest .hm-mobile-menu{display:none!important}
.hm-body.hm-guest .hm-side-anon{border-bottom:0;padding-top:21px!important}
.hm-body.hm-guest .hm-header{min-height:72px!important}
.hm-body.hm-guest .hm-brand-strap{display:none}
/* Listing inspired by the provided screenshot: a single concise row with
   copy on the left and a price/action column on the right. */
.hm-market{padding:12px 13px 15px}
.hm-product-list{display:flex;flex-direction:column;gap:10px;min-width:0}
.hm-product-row{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;gap:17px;border:1px dotted #a7b9cc;border-radius:8px;padding:11px 12px 11px 16px;background:#fff;transition:background-color .16s,border-color .16s}
.hm-product-row:hover{background:#f9fcff;border-color:#228ed0}
.hm-product-row-info{min-width:0;align-self:center}
.hm-product-row-info h3{color:#163957;font-size:13px;font-weight:800;line-height:1.42;margin:0 0 5px;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
.hm-product-row-info h3 a:hover{color:#0874d2}
.hm-product-row-info p{font-size:11px;color:#637c99;margin:0 0 6px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.hm-product-row-tags{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.hm-row-tag{display:inline-flex;align-items:center;padding:3px 7px;font-size:10px;line-height:1.35;border-radius:3px;font-weight:700;white-space:nowrap}
.hm-row-category{background:#edf5ff;color:#185eaf}
.hm-row-stock{background:#a72cc0;color:#fff}
.hm-row-sold{background:#078ca8;color:#fff}
.hm-product-row-actions{display:flex;flex-direction:column;gap:9px;width:100%;min-width:0;align-self:stretch;justify-content:center}
.hm-row-price{min-height:38px;display:flex;align-items:center;justify-content:center;border:1px dotted #ee8b9c;border-radius:7px;color:#ee3151;font-size:15px;font-weight:800;white-space:nowrap}
.hm-row-buy{min-height:37px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#078fb8,#08647d);border-radius:6px;color:#fff!important;font-size:12px;font-weight:800;line-height:1.25;letter-spacing:0;text-align:center;padding:8px 12px;transition:filter .15s}
.hm-row-buy:hover{filter:brightness(1.08)}
@media(max-width:1030px){.hm-product-row{grid-template-columns:minmax(0,1fr) 175px;gap:11px}}
@media(max-width:600px){
 .hm-market{padding:9px}
 .hm-product-row{grid-template-columns:minmax(0,1fr) 118px;gap:8px;padding:10px}
 .hm-product-row-info h3{font-size:12px}
 .hm-product-row-info p{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px;line-height:1.4}
 .hm-row-tag{font-size:9px;padding:3px 5px}
 .hm-row-price{font-size:12px;min-height:35px}
 .hm-row-buy{font-size:10px;min-height:35px;padding:6px 4px}
 .hm-product-row-actions{gap:6px}
}
@media(max-width:390px){.hm-product-row{grid-template-columns:minmax(0,1fr) 100px;padding:8px;gap:7px}.hm-row-buy{font-size:9px}.hm-row-price{font-size:11px}}


/* ============================================================
   BLUE MARKET V23 - ONLY LOGIN/REGISTER UNTIL AUTHENTICATED
   Full viewport guest screen, no site chrome, no outer borders.
   These rules override the accumulated V18-V22 UI styles.
   ============================================================ */
html:has(body.hm-auth-only){min-height:100%;background:#fff}
body.hm-body.hm-auth-only{
  display:block!important;
  width:100%!important;
  min-width:320px;
  min-height:100vh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  overflow-x:hidden;
}
body.hm-auth-only .hm-auth-viewport{
  display:block;
  position:relative;
  width:100%;
  min-height:100vh;
  min-height:100dvh;
  padding:0;
  margin:0;
}
body.hm-auth-only .hm-auth-page{
  display:grid!important;
  grid-template-columns:minmax(0,43fr) minmax(0,57fr)!important;
  grid-template-rows:auto;
  align-items:stretch!important;
  width:100%!important;
  min-width:0;
  max-width:none!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff;
  overflow:visible;
}
body.hm-auth-only .hm-auth-page > .hm-auth-hero{
  align-self:stretch!important;
  justify-content:center;
  height:auto!important;
  min-height:100%!important;
  padding:clamp(28px,5.2vw,90px)!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.hm-auth-only .hm-auth-page > .hm-auth-form-wrap{
  align-self:stretch!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0;
  max-width:none!important;
  min-height:100%!important;
  padding:clamp(28px,5vw,74px)!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.hm-auth-only .hm-auth-form-heading,
body.hm-auth-only .hm-auth-form{width:100%;max-width:none}
body.hm-auth-only .hm-auth-flash{
  position:absolute;
  z-index:5;
  width:min(540px,calc(100% - 30px));
  right:16px;
  top:14px;
}
body.hm-auth-only .hm-auth-flash .alert{margin:0 0 10px;box-shadow:0 6px 20px rgba(12,41,82,.08)}
@media(max-width:850px){
 body.hm-auth-only .hm-auth-page{
   grid-template-columns:1fr!important;
   grid-template-rows:auto minmax(0,1fr);
 }
 body.hm-auth-only .hm-auth-page > .hm-auth-hero{
   min-height:0!important;
   height:auto!important;
   padding:24px clamp(18px,5vw,40px)!important;
   gap:10px;
 }
 body.hm-auth-only .hm-auth-page > .hm-auth-hero h1{font-size:clamp(22px,4vw,28px);max-width:none}
 body.hm-auth-only .hm-auth-page > .hm-auth-hero p{max-width:80ch}
 body.hm-auth-only .hm-auth-page > .hm-auth-form-wrap{
   min-height:0!important;
   padding:clamp(20px,5vw,40px)!important;
   justify-content:flex-start!important;
 }
 body.hm-auth-only .hm-auth-benefits{display:none!important}
 body.hm-auth-only .hm-auth-home{margin-top:4px}
 body.hm-auth-only .hm-auth-flash{position:relative;top:auto;right:auto;width:100%;padding:12px 16px 0}
}
@media(max-width:450px){
 body.hm-auth-only .hm-auth-page > .hm-auth-hero{padding:18px 18px!important}
 body.hm-auth-only .hm-auth-page > .hm-auth-form-wrap{padding:24px 18px!important}
 body.hm-auth-only .hm-auth-form-heading{margin-bottom:15px}
 body.hm-auth-only .hm-auth-register-form{grid-template-columns:1fr}
}

/* FB CLONE V32 — consolidated rules. Do not append older V24–V31 product patches. */
.hm-header .hm-brand-copy,.hm-sidebar .hm-side-brand .hm-brand-copy{display:none!important}
.hm-side-brand,.hm-brand-mobile{justify-content:center;align-items:center}
/* Neutral image reset; actual sizing is shared with the toolbar in V34 below. */
.hm-side-brand img{display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;image-rendering:auto!important;object-fit:contain!important}
.hm-brand-mobile img{display:block;width:120px!important;height:auto!important;max-height:72px!important;object-fit:contain!important;background:transparent!important}
/* V33: restore the white footer bar. The footer markup remains in layout.php. */
body.hm-body:not(.hm-auth-only) .hm-footer{
  display:flex!important;
  background:#fff!important;background-image:none!important;
  border-top:1px solid #dbe9f8!important;
  box-shadow:0 -4px 17px rgba(24,64,103,.09)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  visibility:visible!important;
}
/* V33: remove only the 'related products' panel, not the main catalog. */
.hm-shell-main .detail-related,
.hm-shell-main .detail-related-grid,
.hm-shell-main .related-products,
.hm-shell-main #related-products,
.hm-shell-main #san-pham-lien-quan,
.hm-shell-main [data-tab-panel="related"],
.hm-shell-main [data-section="related-products"]{display:none!important}

body.hm-body{margin:0}
/* FB CLONE V34 — the sidebar logo and desktop header share one height token.
   The image is a compact horizontal transparent PNG, never stretched. */
@media (min-width:761px){
  .hm-body{--hm-shared-toolbar-height:100px}
  .hm-body.hm-guest{--hm-shared-toolbar-height:72px}
  .hm-header{
    box-sizing:border-box!important;
    height:var(--hm-shared-toolbar-height)!important;
    min-height:var(--hm-shared-toolbar-height)!important;
  }
  .hm-sidebar > .hm-side-brand{
    display:flex!important;
    box-sizing:border-box!important;
    height:var(--hm-shared-toolbar-height)!important;
    min-height:var(--hm-shared-toolbar-height)!important;
    max-height:var(--hm-shared-toolbar-height)!important;
    padding:8px 12px!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    border-bottom:1px solid #e7eef7;
  }
  .hm-sidebar > .hm-side-brand img{
    display:block!important;
    flex:0 1 auto!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    background:transparent!important;
  }
}
@media (max-width:760px){
  .hm-sidebar > .hm-side-brand{display:none!important}
  .hm-brand-mobile img{
    display:block!important;
    width:min(150px,100%)!important;
    height:auto!important;
    max-height:50px!important;
    object-fit:contain!important;
  }
}


