/* Xưởng Tranh Mộc Lam (tranhtuong) — trang chủ theo mockup (đợt 9). Vàng #ffd505 + đen #161616. Tiền tố ml- */
:root { --c1: #ffd505; --c1d: #f0c400; --c2: #161616; --ink: #161616; --mu: #5e5a54; --ft: #161616; --line: #e8e3da; --hf: Inter, sans-serif; --bf: Inter, sans-serif; --r: 4px; --rb: 4px; }
#header .header-main { background: #111 !important; }
#header #logo a { display: block; width: 250px; height: 46px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
#header .header-nav-main > li { margin: 0 9px; } #header .header-main .flex-right > ul { flex-wrap: nowrap; }
#header .header-nav-main > li > a { font-size: 13.5px; font-weight: 500; color: #fff !important; padding: 0; }
#header .header-nav-main > li > a:hover { color: var(--c1) !important; }
#header .header-search a, #header .cart-item a, #header .header-search i, #header .cart-item i { color: #fff !important; }
#header .header-button-1 .button { background: var(--c1) !important; border-color: var(--c1) !important; color: #111 !important; min-height: 40px; line-height: 40px; padding: 0 18px; border-radius: 4px !important; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; }
#header .mobile-nav i, #header .icon-menu { color: #fff !important; }
a.b9-btn, .b9-btn { color: #161616 !important; }
a.b9-btn:hover { background: #161616; border-color: #161616; color: #fff !important; }
.ml-sec h2 { font-size: 36px; } .ml-size-t h2 { font-size: 40px !important; } .ml-sec h2 {  line-height: 1.2; font-weight: 700; letter-spacing: -.015em; margin: 0; color: #161616; }
a.ml-all { color: #161616 !important; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
/* hero */
.ml-hero { min-height: 630px; padding: 60px 0 !important; }
.ml-h1 { font-size: 50px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; color: #161616; }
.ml-hero-s { font-size: 18px; line-height: 1.6; color: #3b3732; margin-bottom: 30px; }
.ml-btns { display: flex; gap: 20px; }
.ml-btns a { min-height: 56px; padding: 0 30px; font-size: 16px; font-weight: 600; }
a.ml-o { background: #fff; color: #161616 !important; border-color: #161616; }
a.ml-o:hover { background: #161616; color: #fff !important; }
/* ưu điểm */
.ml-com-sec { padding: 26px 0 !important; border-bottom: 1px solid #eee; }
.ml-com { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-com > div { display: flex; align-items: center; justify-content: center; gap: 16px; border-left: 1px solid #e5e1d9; }
.ml-com > div:first-child { border-left: 0; }
.ml-com img { width: 50px; height: 50px; }
.ml-com span { font-size: 16px; font-weight: 600; }
/* không gian */
.ml-room-sec { padding: 46px 0 30px !important; }
.ml-room { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ml-room a { position: relative; display: block; overflow: hidden; }
.ml-room img { width: 100%; aspect-ratio: 345 / 348; object-fit: cover; display: block; transition: transform .4s; }
.ml-room a:hover img { transform: scale(1.04); }
.ml-room a::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ml-room b { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-size: 21px; font-weight: 600; }
/* SP */
.ml-prod-sec { padding: 30px 0 40px !important; }
.ml-chips { display: flex; gap: 12px; margin: -6px 0 24px; flex-wrap: wrap; }
.ml-chips button { margin: 0; min-height: 40px; padding: 0 22px; border-radius: 22px; background: #f2f0ec; border: 0; color: #333; font-size: 14.5px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.ml-chips button.on { background: var(--c1); color: #161616; font-weight: 600; }
.ml-prod { --gap: 22px 16px; --pc-ar: 345 / 268; --pc-pad: 0px; --pc-bg: #f2ede5; }
.ml-prod .b9-pc { border: 0; border-radius: 0; }
.ml-prod .b9-pc-b { padding: 14px 4px 0; }
.ml-prod .b9-pc-t { font-size: 16.5px; font-weight: 600; }
.ml-prod .b9-pc-p { color: #161616; font-size: 19px; font-weight: 700; }
.ml-prod .b9-pc-btn { grid-template-columns: auto auto; justify-content: start; gap: 12px; }
.ml-prod .b9-pc-btn a { min-height: 40px; padding: 0 22px; font-size: 14px; }
.ml-prod .b9-pc-btn a.b9-btn-o { background: #fff; color: #161616 !important; border: 1px solid #555; }
/* chọn cỡ */
.ml-size-sec { padding: 0 !important; }
.ml-size-row > .col { padding: 0 !important; }
.ml-size { display: grid; grid-template-columns: 57% 43%; align-items: center; }
.ml-size-img { position: relative; }
.ml-size-img img { width: 100%; height: 430px; object-fit: cover; display: block; }
.ml-size-img span { position: absolute; transform: translateX(-50%); background: #fff; border-radius: 4px; padding: 4px 12px; font-size: 14.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ml-size-t { padding: 40px 60px; max-width: 600px; }
.ml-size-t p { font-size: 17px; line-height: 1.65; color: #3b3732; margin: 16px 0 28px; }
.ml-size-t .b9-btn { min-height: 54px; padding: 0 34px; }
/* in tranh */
.ml-print-sec { padding: 0 !important; }
.ml-print { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 0; }
.ml-print p { font-size: 16px; color: #2a2a2a; margin: 8px 0 0; }
.ml-print-f { display: flex; gap: 10px; flex-wrap: wrap; flex: none; width: 640px; }
.ml-print-f input { flex: 1; height: 52px; border: 0; border-radius: 4px; }
.ml-print-f button { height: 52px; padding: 0 34px; background: #111; color: #fff; border: 0; border-radius: 4px; font-weight: 700; font-size: 16px; margin: 0; text-transform: none; }
.ml-print .b9-form-msg { width: 100%; }
/* thi công */
.ml-pj-sec { padding: 40px 0 26px !important; }
.ml-pj { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ml-pj img { width: 100%; aspect-ratio: 270 / 265; object-fit: cover; display: block; }
/* tin */
.ml-news-sec { padding: 30px 0 40px !important; }
.ml-news { --gap: 18px; --po-ar: 450 / 188; }
.ml-news .b9-po { border: 0; border-radius: 0; }
.ml-news .b9-po-b { padding: 14px 0 0; }
.ml-news .b9-po-t { font-size: 19px; }
.ml-news .b9-more { color: #161616 !important; }
#footer .b9-ft { --ft: #161616; --ftlogo: 40px; border-top: 4px solid var(--c1); }
.b9-ft-soc .b9-ic { --b9-ib: #161616; }
@media (min-width: 850px) and (max-width: 1299px) { #header .header-nav-main > li { margin: 0 5px; } #header .header-nav-main > li > a { font-size: 12.5px !important; } .ml-print-f { width: 460px; } .ml-size-t { padding: 30px; } }
@media (max-width: 849px) {
  #header #logo a { width: 200px; height: 40px; background-position: center; }
  .ml-sec h2 { font-size: 26px; }
  .ml-hero { min-height: 0; padding: 262px 0 30px !important; background-color: #f3ede4 !important; }
  .ml-hero .section-bg { bottom: auto; height: 250px; } .ml-hero .section-bg .bg { object-position: 72% 50% !important; }
  .ml-h1 { font-size: 30px; } .ml-hero-s { font-size: 16px; } .ml-hero-s br { display: none; } .ml-btns { gap: 10px; } .ml-btns a { flex: 1; padding: 0 10px; font-size: 14.5px; }
  .ml-com { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; } .ml-com > div:nth-child(3) { border-left: 0; } .ml-com span { font-size: 14px; }
  .ml-room { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ml-room b { font-size: 16px; left: 12px; }
  .ml-prod { --nm: 2; } .ml-prod .b9-pc-btn { grid-template-columns: minmax(0, 1fr); }
  .ml-size { grid-template-columns: minmax(0, 1fr); } .ml-size-img img { height: 240px; } .ml-size-t { padding: 24px 16px; }
  .ml-print { flex-direction: column; align-items: flex-start; } .ml-print-f { width: 100%; } .ml-print-f input { flex: 1 1 100%; } .ml-print-f button { width: 100%; }
  .ml-pj { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ml-pj img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .ml-news { --nm: 1; }
}
/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
