/* ==========================================================================
   Thư viện 3D – Bách Hóa Môi Trường · Flatsome child skin
   Nhận diện: UTM Avo · #038018 (xanh đậm) · #5eb509 (xanh lá)
   Breakpoint theo Flatsome: 549px / 849px
   ========================================================================== */

@font-face{font-family:"UTM Avo";src:url(../fonts/utm-avo-regular.woff?v=4) format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"UTM Avo";src:url(../fonts/utm-avo-bold.woff?v=4) format("woff");font-weight:500 900;font-style:normal;font-display:swap}

:root{
	--bhmt-green:#038018;
	--bhmt-green-dark:#026315;
	--bhmt-green-darker:#015311;
	--bhmt-lime:#5eb509;
	--bhmt-text:#222;
	--bhmt-muted:#555;
	--bhmt-muted-2:#666;
	--bhmt-soft:#f2f5f0;
	--bhmt-soft-2:#f4faef;
	--bhmt-line:#e2e2e2;
	--bhmt-line-2:#d5d5d5;
	--bhmt-line-green:#bad7af;
	--bhmt-line-card:#e0e7db;
	--bhmt-radius:12px;
	--bhmt-font:"UTM Avo",Arial,"Helvetica Neue",sans-serif;
	--bhmt-max:1240px;
	--bhmt-gutter:clamp(16px,5vw,40px);
	--bhmt3d-stage-h:clamp(340px,64vh,640px);
}

/* ---------- 1. Skin toàn site trên Flatsome ---------- */
body.bhmt3d-skin{overflow-x:clip;font-family:var(--bhmt-font);color:var(--bhmt-text);-webkit-font-smoothing:antialiased}
.bhmt3d-skin h1,.bhmt3d-skin h2,.bhmt3d-skin h3,.bhmt3d-skin h4,.bhmt3d-skin h5,.bhmt3d-skin h6,
.bhmt3d-skin .heading-font,.bhmt3d-skin .nav>li>a,.bhmt3d-skin .button,.bhmt3d-skin button,
.bhmt3d-skin input,.bhmt3d-skin select,.bhmt3d-skin textarea,.bhmt3d-skin .alt-font{font-family:var(--bhmt-font)}
.bhmt3d-skin h1,.bhmt3d-skin h2,.bhmt3d-skin h3{color:var(--bhmt-green)}
.bhmt3d-skin a{color:var(--bhmt-green)}
.bhmt3d-skin a:hover{color:var(--bhmt-green-dark)}

/* Header Flatsome: viền xanh lá trên cùng, menu xanh khi active */
.bhmt3d-skin .header-wrapper{border-top:6px solid var(--bhmt-lime)}
.bhmt3d-skin .header-main{background:#fff}
.bhmt3d-skin .header-bottom{border-top:1px solid var(--bhmt-line)}
.bhmt3d-skin .header-nav-main>li>a,.bhmt3d-skin .header-bottom-nav>li>a{color:#333;font-weight:700;letter-spacing:0;text-transform:none;font-size:15px}
.bhmt3d-skin .header-nav-main>li>a:hover,.bhmt3d-skin .header-nav-main>li.active>a,.bhmt3d-skin .header-nav-main>li.current-menu-item>a,
.bhmt3d-skin .header-bottom-nav>li.active>a,.bhmt3d-skin .header-bottom-nav>li.current-menu-item>a{color:var(--bhmt-green)}
.bhmt3d-skin .nav-line-bottom>li>a:before,.bhmt3d-skin .nav-line>li>a:before{background-color:var(--bhmt-green);height:4px}
.bhmt3d-skin .button.primary,.bhmt3d-skin .button.is-primary,.bhmt3d-skin input[type=submit]{background-color:var(--bhmt-green);border-color:var(--bhmt-green)}
.bhmt3d-skin .button.primary:hover,.bhmt3d-skin input[type=submit]:hover{background-color:var(--bhmt-green-dark);box-shadow:none}
.bhmt3d-skin .header-cart-link,.bhmt3d-skin .header-button{line-height:1}

/* Ẩn footer mặc định của Flatsome khi dùng footer công ty */
.bhmt3d-hide-fs-footer #footer>*:not(.bhmt3d-footer){display:none!important}
.bhmt3d-hide-fs-footer #footer{background:transparent;padding:0}

/* ---------- 2. Thành phần chung ---------- */
.bhmt3d{font-family:var(--bhmt-font);color:var(--bhmt-text)}
.bhmt3d,.bhmt3d *,.bhmt3d *::before,.bhmt3d *::after,.bhmt3d-wrap,.bhmt3d-subnav,.bhmt3d-subnav *,.bhmt3d-footer,.bhmt3d-footer *,.bhmt3d-stage,.bhmt3d-stage *{box-sizing:border-box}
.bhmt3d-wrap{width:100%;max-width:calc(var(--bhmt-max) + var(--bhmt-gutter) * 2);margin-left:auto;margin-right:auto;padding-left:var(--bhmt-gutter);padding-right:var(--bhmt-gutter)}
.bhmt3d-ico{display:inline-block;width:1em;height:1em;vertical-align:-.125em;flex:none}
.bhmt3d-eyebrow{margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--bhmt-green);line-height:1.4}
.bhmt3d-h1{margin:0 0 22px;font-family:var(--bhmt-font);font-weight:700;font-size:clamp(36px,5.2vw,64px);line-height:1.18;letter-spacing:-.02em;color:var(--bhmt-green)}
.bhmt3d-h1 em{display:block;font-style:normal;color:var(--bhmt-lime)}
.bhmt3d-h1--sm{font-size:clamp(28px,3.6vw,44px)}
.bhmt3d-h2{margin:0 0 24px;font-family:var(--bhmt-font);font-weight:700;font-size:clamp(26px,3vw,36px);line-height:1.25;letter-spacing:-.01em;color:var(--bhmt-green)}
.bhmt3d-lead{margin:0;max-width:560px;font-size:clamp(15px,1.4vw,17px);line-height:1.95;color:var(--bhmt-muted);font-weight:400}
.bhmt3d-textlink{display:inline-flex;align-items:center;gap:8px;margin-top:28px;padding-bottom:10px;border-bottom:2px solid var(--bhmt-green);font-weight:700;font-size:16px;color:var(--bhmt-green)!important;text-decoration:none!important;transition:gap .2s}
.bhmt3d-textlink:hover{gap:12px}
.bhmt3d-textlink .bhmt3d-ico{width:.8em;height:.8em}
.bhmt3d-pill{display:inline-block;padding:7px 12px;border:1px solid var(--bhmt-line-green);border-radius:6px;font-size:11px;letter-spacing:.12em;color:var(--bhmt-green);background:#fff;line-height:1.3;text-transform:uppercase}
.bhmt3d-round{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--bhmt-line-green);color:var(--bhmt-green)!important;transition:background .2s,color .2s,border-color .2s;flex:none}
.bhmt3d-round:hover{background:var(--bhmt-lime);border-color:var(--bhmt-lime);color:#fff!important}
.bhmt3d-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 20px;border-radius:10px;border:1px solid transparent;font-family:var(--bhmt-font);font-weight:700;font-size:15px;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:background .2s,border-color .2s,color .2s;text-transform:none;letter-spacing:0;margin:0}
.bhmt3d-btn--primary{background:var(--bhmt-green);border-color:var(--bhmt-green);color:#fff!important}
.bhmt3d-btn--primary:hover{background:var(--bhmt-green-dark);border-color:var(--bhmt-green-dark)}
.bhmt3d-btn--primary:active{background:var(--bhmt-green-darker)}
.bhmt3d-btn--ghost{background:#fff;border-color:var(--bhmt-line-green);color:var(--bhmt-green)!important}
.bhmt3d-btn--ghost:hover{background:var(--bhmt-soft-2);border-color:var(--bhmt-green)}
.bhmt3d-header-cta{min-height:40px;padding:9px 16px;font-size:14px;white-space:nowrap}
.bhmt3d a:focus-visible,.bhmt3d button:focus-visible,.bhmt3d input:focus-visible,.bhmt3d-subnav a:focus-visible,.bhmt3d-footer a:focus-visible{outline:3px solid var(--bhmt-lime);outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* ---------- 3. Thanh tab Thư viện 3D / Liên hệ ---------- */
.bhmt3d-subnav{background:#fff;border-bottom:1px solid var(--bhmt-line);font-family:var(--bhmt-font)}
.bhmt3d-subnav__in{display:flex;align-items:center;gap:16px;min-height:64px}
.bhmt3d-subnav ul{display:flex;gap:clamp(24px,5vw,56px);margin:0;padding:0;list-style:none;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.bhmt3d-subnav ul::-webkit-scrollbar{display:none}
.bhmt3d-subnav li{margin:0;flex:none}
.bhmt3d-subnav li a{display:block;padding:20px 0 16px;border-bottom:4px solid transparent;color:#333!important;font-weight:700;font-size:clamp(16px,1.6vw,18px);white-space:nowrap;text-decoration:none!important}
.bhmt3d-subnav li a:hover{color:var(--bhmt-green)!important}
.bhmt3d-subnav li a.is-active{color:var(--bhmt-green)!important;border-bottom-color:var(--bhmt-green)}
.bhmt3d-subnav__cta{flex:none;min-height:42px;padding:10px 18px;font-size:14px}

/* ---------- 4. Hero ---------- */
.bhmt3d-main{background:#fff}
.bhmt3d-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,80px);align-items:center;padding-top:clamp(40px,7vw,90px);padding-bottom:clamp(40px,6vw,80px)}
.bhmt3d-hero--sc{padding-left:0;padding-right:0}
.bhmt3d-feature{position:relative;background:var(--bhmt-soft);border:1px solid var(--bhmt-line-card);border-radius:16px;padding:clamp(20px,3vw,32px);display:flex;flex-direction:column;gap:12px;min-height:400px}
.bhmt3d-feature .bhmt3d-pill{align-self:flex-start;background:transparent}
.bhmt3d-feature__view{position:relative;flex:1;width:100%;min-width:0;aspect-ratio:4/3;border-radius:10px;overflow:hidden}
.bhmt3d-feature__foot{display:flex;align-items:center;justify-content:space-between;gap:16px}
.bhmt3d-feature__foot strong{display:block;font-size:20px;color:var(--bhmt-green);font-weight:700;line-height:1.3}
.bhmt3d-feature__foot span{display:block;margin-top:6px;font-size:14px;color:var(--bhmt-muted-2)}

/* Poster + canvas: poster hiển thị ngay (LCP), canvas 3D mờ dần lên khi sẵn sàng */
.bhmt3d-poster{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;transition:opacity .5s;z-index:0;margin:0!important;max-width:none!important}
.bhmt3d-live{position:absolute;inset:0;opacity:0;transition:opacity .5s;z-index:1}
.bhmt3d-live canvas{display:block;width:100%!important;height:100%!important}
.is-live>.bhmt3d-live,.is-live .bhmt3d-live{opacity:1}
.is-live>.bhmt3d-poster{opacity:0}
[data-bhmt3d-preview] .bhmt3d-live canvas{pointer-events:none}

/* ---------- 5. Danh sách / lưới ---------- */
.bhmt3d-library{padding-top:clamp(40px,6vw,72px);padding-bottom:clamp(48px,7vw,96px);scroll-margin-top:90px}
.bhmt3d-sectionhead{margin-bottom:8px}
.bhmt3d-count{margin-left:10px;font-size:.42em;font-weight:700;color:var(--bhmt-green);vertical-align:super;top:0;letter-spacing:.04em}
.bhmt3d-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin-bottom:16px}
.bhmt3d-chips{display:flex;flex-wrap:wrap;gap:12px}
.bhmt3d-chip{display:inline-flex;align-items:center;min-height:46px;padding:10px 22px;border:1px solid var(--bhmt-line-2);border-radius:10px;background:#fff;color:#333!important;font-size:16px;line-height:1.2;text-decoration:none!important;transition:all .2s;white-space:nowrap}
.bhmt3d-chip:hover{border-color:var(--bhmt-green);color:var(--bhmt-green)!important;background:var(--bhmt-soft-2)}
.bhmt3d-chip.is-active{background:var(--bhmt-green);border-color:var(--bhmt-green);color:#fff!important}
.bhmt3d-search{position:relative;flex:0 1 380px;margin:0}
.bhmt3d-search .bhmt3d-ico{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#888;width:18px;height:18px;pointer-events:none}
.bhmt3d .bhmt3d-search input[type=search]{width:100%;height:50px;margin:0;padding:0 18px 0 46px;border:1px solid var(--bhmt-line-2);border-radius:10px;background:#fff;font-size:16px;color:var(--bhmt-text);box-shadow:none;-webkit-appearance:none;appearance:none}
.bhmt3d .bhmt3d-search input[type=search]:focus{border-color:var(--bhmt-lime);outline:2px solid #5eb50966;outline-offset:1px;box-shadow:none}
.bhmt3d-live-count{min-height:1.4em;margin:0 0 14px;font-size:14px;color:var(--bhmt-muted-2)}
.bhmt3d-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.4vw,28px)}
.bhmt3d-card{margin:0;min-width:0}
.bhmt3d-card[hidden]{display:none}
.bhmt3d-card__link{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--bhmt-line);border-radius:14px;overflow:hidden;color:inherit!important;text-decoration:none!important;transition:transform .25s,border-color .25s,box-shadow .25s}
.bhmt3d-card__link:hover{transform:translateY(-4px);border-color:var(--bhmt-lime);box-shadow:0 14px 30px -18px rgba(3,128,24,.35)}
.bhmt3d-card__media{position:relative;aspect-ratio:4/3;background:var(--bhmt-soft);overflow:hidden}
.bhmt3d-card__media .bhmt3d-poster{object-fit:cover;transition:transform .5s,opacity .5s}
.bhmt3d-card__link:hover .bhmt3d-poster{transform:scale(1.04)}
.bhmt3d-badge{position:absolute;top:16px;left:16px;z-index:2;padding:8px 12px;border-radius:6px;background:rgba(255,255,255,.92);color:var(--bhmt-green);font-size:12px;letter-spacing:.06em;line-height:1.2}
.bhmt3d-ph{position:absolute;inset:0;display:grid;place-items:center;color:var(--bhmt-line-green);z-index:0}
.bhmt3d-ph .bhmt3d-ico{width:56px;height:56px}
.is-live .bhmt3d-ph{display:none}
.bhmt3d-card__body{padding:clamp(18px,2.4vw,28px) clamp(18px,2.4vw,28px) clamp(20px,2.6vw,30px)}
.bhmt3d-card__cat{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--bhmt-muted-2)}
.bhmt3d-card__title{margin:10px 0 12px;font-family:var(--bhmt-font);font-size:clamp(20px,2vw,26px);font-weight:700;line-height:1.25;color:var(--bhmt-green)}
.bhmt3d-card__meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;font-size:15px;color:var(--bhmt-muted-2)}
.bhmt3d-card__go{display:inline-flex;align-items:center;gap:6px;color:var(--bhmt-muted-2);transition:color .2s}
.bhmt3d-card__go .bhmt3d-ico{width:.75em;height:.75em}
.bhmt3d-card__link:hover .bhmt3d-card__go{color:var(--bhmt-green)}
.bhmt3d-empty{padding:40px 0;color:var(--bhmt-muted);font-size:16px}
.bhmt3d-empty[hidden]{display:none}
.bhmt3d-more{margin:24px 0 0}
.bhmt3d-pagination{margin-top:40px}
.bhmt3d-pagination ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;justify-content:center}
.bhmt3d-pagination li{margin:0}
.bhmt3d-pagination a,.bhmt3d-pagination span{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 14px;border:1px solid var(--bhmt-line-2);border-radius:10px;color:#333!important;text-decoration:none!important}
.bhmt3d-pagination .current{background:var(--bhmt-green);border-color:var(--bhmt-green);color:#fff!important}
.bhmt3d-pagination a:hover{border-color:var(--bhmt-green);color:var(--bhmt-green)!important}

/* Tiêu đề trang danh mục */
.bhmt3d-pagehead{padding-top:clamp(24px,4vw,48px)}
.bhmt3d-pagehead+.bhmt3d-library{padding-top:clamp(16px,3vw,32px)}

/* Breadcrumb */
.bhmt3d-crumbs{margin:0 0 18px;font-size:14px;color:var(--bhmt-muted-2)}
.bhmt3d-crumbs ol{display:flex;flex-wrap:wrap;gap:4px 0;margin:0;padding:0;list-style:none}
.bhmt3d-crumbs li{margin:0}
.bhmt3d-crumbs li+li::before{content:"›";margin:0 8px;color:#aaa}
.bhmt3d-crumbs a{color:var(--bhmt-muted-2)!important;text-decoration:none!important}
.bhmt3d-crumbs a:hover{color:var(--bhmt-green)!important}
.bhmt3d-crumbs [aria-current]{color:var(--bhmt-green);font-weight:700}

/* ---------- 6. Trang chi tiết ---------- */
.bhmt3d-single{padding-top:clamp(20px,3vw,36px)}
.bhmt3d-detail{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:0;align-items:stretch}
.bhmt3d-detail__stage{min-width:0;display:flex;flex-direction:column}
.bhmt3d-detail__stage>.bhmt3d-stage{flex:1 1 auto;height:auto;min-height:var(--bhmt3d-stage-h)}
.bhmt3d-detail .bhmt3d-stage{border-radius:16px 0 0 16px;border-right:0}
.bhmt3d-detail__info{padding:clamp(24px,3vw,36px);border:1px solid var(--bhmt-line-card);border-radius:0 16px 16px 0;background:#fff}
.bhmt3d-detail__title{margin:20px 0 14px;font-family:var(--bhmt-font);font-size:clamp(28px,3vw,38px);font-weight:700;line-height:1.2;color:var(--bhmt-green)}
.bhmt3d-detail__desc{margin:0 0 8px;font-size:15px;line-height:1.85;color:var(--bhmt-muted)}
.bhmt3d-specs{margin:18px 0 0;padding:6px 0 0;border-top:1px solid var(--bhmt-line-card)}
.bhmt3d-specs>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px dashed var(--bhmt-line-card)}
.bhmt3d-specs dt{margin:0;font-weight:400;font-size:14px;color:var(--bhmt-muted)}
.bhmt3d-specs dd{margin:0;font-weight:700;font-size:14px;color:var(--bhmt-text);text-align:right;white-space:nowrap}
.bhmt3d-specs dd a{color:var(--bhmt-green)!important}
.bhmt3d-price{color:var(--bhmt-green)!important;font-size:16px!important}
.bhmt3d-hint{margin:20px 0;font-size:13px;line-height:1.8;color:var(--bhmt-muted-2)}
.bhmt3d-hint .on-coarse{display:none}
@media (pointer:coarse){.bhmt3d-hint .on-coarse{display:inline}.bhmt3d-hint .on-fine{display:none}}
.bhmt3d-actions{display:flex;flex-direction:column;gap:10px}
.bhmt3d-actions .bhmt3d-btn{width:100%}
.bhmt3d-share-status{min-height:1.3em;margin:0;font-size:13px;color:var(--bhmt-green)}
.bhmt3d-edit{margin:12px 0 0;font-size:13px}
.bhmt3d-prose{max-width:calc(860px + var(--bhmt-gutter) * 2);padding-top:clamp(40px,5vw,64px);font-size:16px;line-height:1.85;color:#333}
.bhmt3d-prose h2,.bhmt3d-prose h3{color:var(--bhmt-green)}
.bhmt3d-related{padding-top:clamp(40px,5vw,64px);padding-bottom:clamp(48px,6vw,88px)}

/* Khung xem 3D */
.bhmt3d-stage{position:relative;height:var(--bhmt3d-stage-h);min-height:300px;background:var(--bhmt-soft);border:1px solid var(--bhmt-line-card);border-radius:16px;overflow:hidden;-webkit-user-select:none;user-select:none}
.bhmt3d-stage .bhmt3d-live{opacity:1}
.bhmt3d-stage.is-live .bhmt3d-poster{opacity:0}
.bhmt3d-status{position:absolute;top:16px;left:16px;z-index:3;margin:0;padding:8px 12px;border-radius:6px;background:rgba(255,255,255,.92);font-size:13px;color:var(--bhmt-green)}
.bhmt3d-status.is-error{color:#b32d2e}
.bhmt3d-status[hidden]{display:none}
.bhmt3d-stage.is-empty .bhmt3d-status{position:absolute}
.bhmt3d-tools{position:absolute;left:12px;right:12px;bottom:14px;z-index:3;display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.bhmt3d-tools button{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:0;padding:8px 14px;border:1px solid #d6dfd0;border-radius:8px;background:rgba(255,255,255,.94);color:var(--bhmt-green);font-family:var(--bhmt-font);font-size:13px;font-weight:700;line-height:1.2;text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:0 4px 14px -8px rgba(0,0,0,.25);transition:background .2s,border-color .2s}
.bhmt3d-tools button:hover{background:#fff;border-color:var(--bhmt-lime)}
.bhmt3d-gate{position:absolute;inset:0;z-index:4;display:flex;align-items:flex-end;justify-content:center;gap:8px;padding:0 0 70px;margin:0;border:0;background:linear-gradient(180deg,transparent 55%,rgba(242,245,240,.6));color:var(--bhmt-green);font-family:var(--bhmt-font);font-weight:700;font-size:15px;cursor:pointer;text-transform:none;letter-spacing:0}
.bhmt3d-gate span{padding:10px 16px;border-radius:999px;background:#fff;box-shadow:0 6px 18px -8px rgba(0,0,0,.3)}
.bhmt3d-gate .bhmt3d-ico{display:none}
.bhmt3d-gate[hidden]{display:none}
.bhmt3d-stage:fullscreen,.bhmt3d-stage:-webkit-full-screen{height:100%!important;width:100%;border-radius:0;border:0}
.bhmt3d-stage.is-pseudo-fullscreen{position:fixed!important;inset:0;z-index:100000;width:100vw;height:100vh;height:100dvh;border-radius:0;border:0}
.bhmt3d-lock,.bhmt3d-lock body{overflow:hidden!important}

/* Shortcode */
.bhmt3d-embedbox{margin:0 0 1.5em}
.bhmt3d-embedbox__cap{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:baseline;padding:12px 4px 0;font-size:14px;color:var(--bhmt-muted-2)}
.bhmt3d-embedbox__cap a{text-decoration:none!important}
.bhmt3d-embedbox__cap strong{color:var(--bhmt-green);font-size:16px}
.bhmt3d-note{padding:10px 14px;background:#fff8e5;border-left:4px solid #dba617}

/* Thông báo nổi */
.bhmt3d-toast{position:fixed;left:50%;bottom:24px;z-index:100001;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:12px 22px;border-radius:10px;background:var(--bhmt-green);color:#fff;font-family:var(--bhmt-font);font-size:14px;transition:all .3s}
.bhmt3d-toast.is-on{opacity:1;transform:translate(-50%,0)}

/* ---------- 7. Footer công ty ---------- */
.bhmt3d-footer{background:var(--bhmt-green);color:#fff;font-family:var(--bhmt-font)}
.bhmt3d-footer__main{display:grid;grid-template-columns:1.25fr 1.25fr .9fr;gap:clamp(28px,4vw,56px);padding-top:clamp(44px,6vw,72px);padding-bottom:clamp(36px,5vw,60px)}
.bhmt3d-footer .bhmt3d-eyebrow{color:#fff;opacity:.9}
.bhmt3d-footer__name{margin:0 0 18px;font-size:clamp(22px,2.4vw,28px);font-weight:700;line-height:1.3;color:#fff}
.bhmt3d-footer address{font-style:normal}
.bhmt3d-footer p,.bhmt3d-footer li{margin:0 0 14px;font-size:15px;line-height:1.85;color:#fff}
.bhmt3d-footer strong{color:#fff;font-weight:700}
.bhmt3d-footer a{color:#fff!important;text-decoration:none}
.bhmt3d-footer a:hover{color:#e5ffce!important}
.bhmt3d-footer__contact{display:flex;flex-direction:column;gap:18px;margin:22px 0 26px}
.bhmt3d-footer__contact a{display:flex;flex-direction:column;gap:4px}
.bhmt3d-footer__contact small{font-size:12px;letter-spacing:.16em;opacity:.9}
.bhmt3d-footer__contact b{font-size:clamp(22px,2.4vw,28px);letter-spacing:.01em}
.bhmt3d-footer__contact span{font-size:16px;word-break:break-word}
.bhmt3d-footer__web{display:inline-flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.6);font-size:16px}
.bhmt3d-footer__web .bhmt3d-ico{width:.8em;height:.8em}
.bhmt3d-footer__title{margin:0 0 20px!important;font-size:clamp(20px,2vw,24px)!important;font-weight:700;color:#fff;line-height:1.3!important}
.bhmt3d-footer ul{margin:0;padding:0;list-style:none}
.bhmt3d-footer__dealers a{text-decoration:underline!important;text-underline-offset:2px}
.bhmt3d-footer__links li{margin:0}
.bhmt3d-footer__links a{display:block;padding:9px 0;font-size:16px}
.bhmt3d-footer__bottom{background:var(--bhmt-lime);color:#fff;font-size:13px}
.bhmt3d-footer__bottom .bhmt3d-wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 20px;padding-top:14px;padding-bottom:14px}

/* ---------- 8. Bản nhúng iframe ---------- */
body.bhmt3d-embed{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;background:var(--bhmt-soft);overflow:hidden;font-family:var(--bhmt-font)}
.bhmt3d-embed__bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--bhmt-line-card);font-size:12px;letter-spacing:.06em}
.bhmt3d-embed__title{color:var(--bhmt-muted-2);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bhmt3d-embed__title b{color:var(--bhmt-green);letter-spacing:0;font-size:14px}
.bhmt3d-embed__dims{color:var(--bhmt-muted-2);white-space:nowrap}
.bhmt3d-stage--embed{flex:1;height:auto;min-height:0;border:0;border-radius:0}


/* ---------- 10. Hộp xem nhanh & form đăng sản phẩm (giống bản online) ---------- */
.bhmt3d-dialog{padding:0;margin:auto;border:1px solid #d8e0d5;border-radius:16px;width:min(1250px,95vw);max-width:none;max-height:94vh;background:#fff;color:var(--bhmt-text);box-shadow:0 30px 80px -20px rgba(0,0,0,.35);overflow:hidden}
.bhmt3d-dialog[open]{display:flex;flex-direction:column;animation:bhmt3d-pop .22s ease-out}
.bhmt3d-dialog::backdrop{background:rgba(1,40,10,.62);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
@keyframes bhmt3d-pop{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.bhmt3d-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--bhmt-line-card);flex:none}
.bhmt3d-dialog__crumb{font-size:12px;letter-spacing:.1em;color:var(--bhmt-muted-2);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bhmt3d-dialog__crumb b{color:var(--bhmt-green);letter-spacing:0;font-size:14px}
.bhmt3d-dialog__head>b{font-size:18px;color:var(--bhmt-green)}
.bhmt3d-dialog__close{display:inline-grid;place-items:center;width:42px;height:42px;margin:0;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#333;cursor:pointer;flex:none}
.bhmt3d-dialog__close:hover{background:var(--bhmt-soft);border-color:var(--bhmt-line-card);color:var(--bhmt-green)}
.bhmt3d-dialog__grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:0;flex:1;overflow:auto}
.bhmt3d-stage--dialog{height:auto;min-height:min(640px,calc(94vh - 72px));align-self:stretch;border:0;border-radius:0}
.bhmt3d-dialog__info{padding:28px 26px;overflow:auto;border-left:1px solid var(--bhmt-line-card)}
.bhmt3d-dialog__info .bhmt3d-detail__title{font-size:clamp(24px,2.4vw,32px)}
.bhmt3d-manage{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:16px;border-top:1px dashed var(--bhmt-line-card)}
.bhmt3d-manage[hidden]{display:none}
.bhmt3d-manage button{flex:1 1 auto;min-height:40px;margin:0;padding:8px 12px;border:1px solid var(--bhmt-line-2);border-radius:8px;background:#f7f8f4;color:#333;font-family:var(--bhmt-font);font-size:13px;font-weight:700;text-transform:none;letter-spacing:0;cursor:pointer}
.bhmt3d-manage button:hover{border-color:var(--bhmt-green);color:var(--bhmt-green)}
.bhmt3d-manage [data-q-hide]:hover{border-color:#b32d2e;color:#b32d2e}
.bhmt3d [hidden]{display:none!important}
.bhmt3d button:disabled{opacity:.5;cursor:wait}

.bhmt3d-dialog--form{width:min(620px,94vw)}
.bhmt3d-dialog--form form{display:flex;flex-direction:column;min-height:0;margin:0}
.bhmt3d-form{padding:22px 24px 24px;overflow:auto}
.bhmt3d-form label{display:block;margin:0 0 16px;font-size:14px;font-weight:700;color:#333}
.bhmt3d-form .req{color:#b32d2e}
.bhmt3d .bhmt3d-form input:not([type=file]),.bhmt3d .bhmt3d-form textarea,.bhmt3d .bhmt3d-form select{display:block;width:100%;height:auto;min-height:46px;margin:8px 0 0;padding:11px 14px;border:1px solid #cdd8c8;border-radius:10px;background:#fff;font-family:var(--bhmt-font);font-size:16px;font-weight:400;color:var(--bhmt-text);box-shadow:none}
.bhmt3d .bhmt3d-form textarea{resize:vertical;min-height:110px}
.bhmt3d .bhmt3d-form input:focus,.bhmt3d .bhmt3d-form textarea:focus,.bhmt3d .bhmt3d-form select:focus{border-color:var(--bhmt-lime);outline:2px solid #5eb50966;outline-offset:1px}
.bhmt3d .bhmt3d-form input[type=file]{display:block;width:100%;margin:8px 0 0;padding:14px;border:1.5px dashed var(--bhmt-line-green);border-radius:10px;background:var(--bhmt-soft);font-size:14px;font-weight:400;cursor:pointer}
.bhmt3d-form__row{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.bhmt3d-form__hint{margin:-6px 0 14px;font-size:13px;line-height:1.75;color:var(--bhmt-muted-2)}
.bhmt3d-form__preview{position:relative;margin:0 0 14px;border:1px solid var(--bhmt-line-card);border-radius:12px;overflow:hidden;background:var(--bhmt-soft)}
.bhmt3d-form__preview .bhmt3d-live{position:relative;inset:auto;opacity:1;height:230px}
.bhmt3d-form__preview p{margin:0;padding:10px 14px;font-size:13px;color:var(--bhmt-green);background:#fff;border-top:1px solid var(--bhmt-line-card)}
.bhmt3d-form__status{min-height:1.3em;margin:0 0 14px;font-size:14px;line-height:1.7;color:var(--bhmt-green)}
.bhmt3d-form__status.is-error{color:#b32d2e}
.bhmt3d-form .bhmt3d-btn{width:100%}
@media (max-width:849px){
	.bhmt3d-dialog:not(.bhmt3d-dialog--form){width:100vw;height:100vh;height:100dvh;max-height:none;border-radius:0;border:0}
	.bhmt3d-dialog__grid{grid-template-columns:1fr;overflow:auto}
	.bhmt3d-stage--dialog{height:56vh;height:56dvh;min-height:300px;align-self:auto}
	.bhmt3d-dialog__info{border-left:0;border-top:1px solid var(--bhmt-line-card);overflow:visible;padding:22px 20px 28px}
}
@media (max-width:549px){
	.bhmt3d-dialog--form{width:100vw;max-height:100dvh;border-radius:16px 16px 0 0;margin:auto auto 0}
	.bhmt3d-form__row{grid-template-columns:1fr}
}

/* ---------- 9. Responsive ---------- */
@media (max-width:1100px){
	.bhmt3d-detail{grid-template-columns:minmax(0,1fr) 320px}
}
@media (max-width:849px){
	.bhmt3d-hero{grid-template-columns:minmax(0,1fr);padding-top:36px}
	.bhmt3d-feature{min-height:0}
	.bhmt3d-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.bhmt3d-toolbar{flex-direction:column;align-items:stretch}
	.bhmt3d-search{flex:1 1 auto;max-width:560px}
	.bhmt3d-detail{grid-template-columns:1fr}
	.bhmt3d-detail .bhmt3d-stage{border-radius:16px 16px 0 0;border-right:1px solid var(--bhmt-line-card);border-bottom:0;--bhmt3d-stage-h:clamp(320px,58vh,520px);height:var(--bhmt3d-stage-h);flex:none}
	.bhmt3d-detail__info{border-radius:0 0 16px 16px}
	.bhmt3d-footer__main{grid-template-columns:1fr 1fr}
	.bhmt3d-footer__company{grid-column:1/-1}
}
@media (max-width:549px){
	:root{--bhmt-gutter:20px}
	.bhmt3d-grid{grid-template-columns:1fr}
	.bhmt3d-h1{font-size:clamp(34px,10.5vw,44px)}
	.bhmt3d-subnav__in{min-height:56px;gap:10px}
	.bhmt3d-subnav li a{padding:16px 0 12px}
	.bhmt3d-subnav__cta{min-height:40px;padding:9px 12px}
	.bhmt3d-subnav__cta span{display:none}
	.bhmt3d-subnav__cta .bhmt3d-ico{width:18px;height:18px}
	.bhmt3d-header-cta{min-height:38px;padding:8px 12px;font-size:13px;gap:6px}
	.bhmt3d-chips{gap:8px;flex-wrap:nowrap;overflow-x:auto;margin:0 calc(var(--bhmt-gutter) * -1);padding:2px var(--bhmt-gutter);scrollbar-width:none}
	.bhmt3d-chips::-webkit-scrollbar{display:none}
	.bhmt3d-chip{min-height:44px;padding:10px 18px;font-size:15px}
	.bhmt3d-feature{padding:20px}
	.bhmt3d-tools{gap:6px;left:8px;right:8px;bottom:10px}
	.bhmt3d-tools button{min-height:38px;padding:7px 10px;font-size:12px}
	.bhmt3d-tools button[data-act="reset"] span,.bhmt3d-tools button[data-q-act="reset"] span{display:none}
	.bhmt3d-footer__main{grid-template-columns:1fr}
	.bhmt3d-footer__bottom .bhmt3d-wrap{flex-direction:column}
	.bhmt3d-specs>div{flex-direction:column;gap:4px}
	.bhmt3d-specs dd{text-align:left}
}
@media (prefers-reduced-motion:reduce){
	.bhmt3d *,.bhmt3d *::before,.bhmt3d *::after{transition:none!important;animation:none!important}
}
@media print{
	.bhmt3d-subnav,.bhmt3d-tools,.bhmt3d-actions,.bhmt3d-gate{display:none!important}
	.bhmt3d-stage{height:auto;min-height:0}
	.bhmt3d-stage .bhmt3d-poster{position:static;opacity:1!important}
}

/* ---------- 11. Trang & bài viết mẫu ---------- */
.bhmt3d-demo-note{padding:10px 14px;border-left:4px solid var(--bhmt-lime);background:var(--bhmt-soft-2);font-size:14px}
.bhmt3d-childpages{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0 0 1.5em;padding:0;list-style:none}
.bhmt3d-childpages li{margin:0}
.bhmt3d-childpages a{display:block;padding:16px 18px;border:1px solid var(--bhmt-line-card);border-radius:12px;background:var(--bhmt-soft);font-weight:700;text-decoration:none}
.bhmt3d-childpages a:hover{border-color:var(--bhmt-lime);background:#fff}

/* ---------- 12. Ẩn phần tử lỗi của Flatsome trên header ----------
   Flatsome hiện dấu "-" (element-error, "WooCommerce needed") khi header còn phần tử
   Tài khoản / Giỏ hàng mà site không cài WooCommerce. Ẩn chúng và vạch ngăn đi kèm. */
#header li:has(> .element-error),
#header li:has(> .element-error) + .header-divider,
#header .header-divider:has(+ li > .element-error){display:none!important}

/* ---------- 13. Sản phẩm đăng bằng ảnh + danh sách file trong form ---------- */
.bhmt3d-badge.is-photo{color:#8a5a00}
.bhmt3d-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;padding-top:20px}
.bhmt3d-gallery a{display:block;border:1px solid var(--bhmt-line-card);border-radius:10px;overflow:hidden;background:var(--bhmt-soft)}
.bhmt3d-gallery img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.bhmt3d-form__files{margin:-4px 0 14px;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.bhmt3d-form__files li{display:flex;align-items:center;gap:8px;margin:0;padding:7px 10px;border:1px solid var(--bhmt-line-card);border-radius:8px;background:#fff;font-size:13px;line-height:1.4;word-break:break-all}
.bhmt3d-form__files .tag{flex:none;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.bhmt3d-form__files .t-model{background:var(--bhmt-green);color:#fff}
.bhmt3d-form__files .t-img{background:#e7f3df;color:var(--bhmt-green)}
.bhmt3d-form__files .t-bin{background:#eef1f5;color:#445}
.bhmt3d-form__files .t-bad{background:#fde7ea;color:#b32d2e}
.bhmt3d-form__files .sz{margin-left:auto;flex:none;color:var(--bhmt-muted-2);font-size:12px}
.bhmt3d-form__preview img.bhmt3d-u-img{display:block;width:100%;height:230px;object-fit:contain;background:var(--bhmt-soft)}
.bhmt3d-form__status.is-info{color:#8a5a00}
.bhmt3d-stage.is-photo .bhmt3d-live,.bhmt3d-stage.is-photo .bhmt3d-tools,.bhmt3d-dialog.is-photo .bhmt3d-hint{display:none!important}
.bhmt3d-stage.is-photo .bhmt3d-poster{opacity:1!important;object-fit:contain;background:#fff}
