/* Bảo Hộ An Phú Gia (baoholaodong) — trang chủ theo mockup (đợt 9). Cam #ff8300 + xám than #2b2b2b. Tiền tố ap- */
:root { --c1: #ff8300; --c1d: #e67600; --c2: #2b2b2b; --ink: #1c1c1c; --mu: #5f5f5f; --ft: #2b2b2b; --line: #e6e6e6; --hf: "Be Vietnam Pro", Inter, sans-serif; --bf: Inter, sans-serif; --r: 6px; --rb: 4px; }
.ap-tb { display: inline-flex; align-items: center; gap: 30px; font-size: 14.5px; color: #333; }
.ap-tb > * { display: inline-flex; align-items: center; gap: 6px; color: #333 !important; }
#top-bar { border-bottom: 1px solid #eee; }
#header #logo a { display: block; width: 222px; height: 74px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
@media (min-width: 850px) { #header .header-main .flex-left { flex: 1; justify-content: center; } }
#header .header-search-form { width: 100%; max-width: 690px; margin: 0 auto; }
#header .header-search-form .search-field { height: 48px; border-radius: 24px 0 0 24px; border: 1px solid #d9d9d9; box-shadow: none; padding-left: 22px; font-size: 14.5px; }
#header .header-search-form .ux-search-submit { height: 48px; width: 56px; border-radius: 0 24px 24px 0; background: #fff !important; color: #333 !important; border: 1px solid #d9d9d9; border-left: 0; }
#header .header-button-1 .button { background: var(--c1) !important; border-color: var(--c1) !important; color: #fff !important; min-height: 48px; line-height: 48px; padding: 0 24px 0 50px; border-radius: 4px !important; font-size: 15.5px; font-weight: 600; text-transform: none; letter-spacing: 0; background-image: url("icons/b-quote.png") !important; background-repeat: no-repeat !important; background-position: 20px center !important; background-size: 20px 20px !important; }
.header-bottom { background: var(--c1) !important; }
#header .header-bottom-nav > li { margin: 0 34px; }
#header .header-bottom-nav > li > a { color: #fff !important; font-size: 18px; font-weight: 600; padding: 0; text-transform: none; }
.ap-sec h2, .ap-h2 { font-size: 41px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; margin: 0; color: #1c1c1c; }
.ap-sec .b9-all { color: var(--c1) !important; }
/* hero */
.ap-hero-sec { padding: 0 !important; }
.ap-hero-row > .col { padding: 0 !important; }
.ap-hero { position: relative; max-width: 1920px; margin: 0 auto; aspect-ratio: 2400 / 1100; max-height: 700px; overflow: hidden; }
.ap-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ap-hero-in { position: absolute; z-index: 1; left: max(20px, calc((100% - 1270px) / 2)); top: 50%; transform: translateY(-50%); max-width: 640px; }
.ap-eb { color: var(--c1); font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.ap-h1 { font-size: 66px; line-height: 1.16; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; color: #141414; }
.ap-hero-s { font-size: 20.5px; line-height: 1.55; color: #3a3a3a; margin-bottom: 30px; }
.ap-btns { display: flex; gap: 26px; }
.ap-btns a { min-height: 60px; padding: 0 40px; font-size: 17px; }
.ap-co { position: absolute; z-index: 1; display: flex; align-items: center; transform: translateY(-50%); }
.ap-co s { width: 11px; height: 11px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 3px rgba(255,131,0,.28); flex: none; }
.ap-co i { flex: 1; height: 1.5px; background: var(--c1); }
.ap-co b { position: absolute; left: 100%; padding-left: 10px; white-space: nowrap; font-size: 16.5px; font-weight: 600; color: #1c1c1c; text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.ap-co-l b { left: auto; right: 100%; padding: 0 10px 0 0; }
/* ngành */
.ap-ind-sec { padding: 40px 0 22px !important; }
.ap-ind { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ap-ind a { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.ap-ind img { width: 100%; aspect-ratio: 250 / 262; object-fit: cover; display: block; transition: transform .4s; }
.ap-ind a:hover img { transform: scale(1.04); }
.ap-ind a::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.ap-ind b { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; font-size: 22px; font-weight: 700; font-family: var(--hf); }
/* SP */
.ap-prod-sec { padding: 34px 0 36px !important; }
.ap-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e5e5e5; margin: -6px 0 28px; }
.ap-tabs button { margin: 0 0 -1px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 26px; font-size: 16px; font-weight: 500; color: #555; text-transform: none; letter-spacing: 0; }
.ap-tabs button.on { color: var(--c1); border-color: var(--c1); font-weight: 600; }
.ap-prod { --n: 4; --gap: 26px; --pc-ar: 312 / 240; --pc-bg: #f5f5f5; --pc-pad: 12px; }
.ap-prod .b9-pc { border: 1px solid #eee; border-radius: 4px; }
.ap-prod .b9-pc-t { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.ap-prod .b9-pc-p, .ap-prod .b9-pc-ct { color: var(--c1); font-size: 17px; font-weight: 600; }
.ap-prod .b9-pc-btn { grid-template-columns: auto auto; justify-content: start; gap: 12px; }
.ap-prod .b9-pc-btn a { min-height: 40px; padding: 0 22px; font-size: 14.5px; }
/* báo giá sỉ */
.ap-bulk-sec { padding: 36px 0 !important; }
.ap-bulk-eb { color: #fff; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.ap-bulk-t { color: #fff !important; font-size: 44px !important; }
.ap-bulk-l { list-style: none; margin: 22px 0 0; padding: 0; }
.ap-bulk-l li { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 23px; margin-bottom: 14px; }
.ap-bulk-l .b9-ic { width: 32px; height: 32px; color: #fff; --b9-ib: var(--c1); }
.ap-bulk-l .b9-ic path { stroke: var(--c1); }
.ap-bulk-f { background: #fff; border-radius: 6px; padding: 24px 28px; margin-left: auto; max-width: 600px; }
.ap-bulk-f label { color: #333 !important; font-size: 14px; margin-top: 10px; }
.ap-bulk-f label:first-child { margin-top: 0; }
.ap-bulk-f input, .ap-bulk-f textarea { height: 42px; margin-bottom: 4px; }
.ap-bulk-f textarea { height: 64px !important; }
.ap-bulk-b { width: 100%; height: 48px; margin: 16px 0 0; background: #2b2b2b; color: #fff; border: 0; border-radius: 4px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: none; }
.ap-bulk-f .b9-form-msg { color: #333; }
/* xưởng may */
.ap-sew-sec { padding: 40px 0 26px !important; }
.ap-sew-img img { width: 100%; height: 408px; object-fit: cover; border-radius: 6px; display: block; }
.ap-sew-r .col-inner { padding-left: 34px; } @media (min-width: 1300px) { .ap-sew-r .ap-h2 { font-size: 38px; white-space: nowrap; } }
.ap-sub { color: var(--mu); font-size: 18px; margin: 12px 0 0; line-height: 1.5; }
.ap-sew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 26px; }
.ap-sew img { width: 62px; height: 62px; margin-bottom: 12px; display: block; }
.ap-sew b { display: block; font-size: 17px; font-weight: 700; color: #1c1c1c; margin-bottom: 6px; }
.ap-sew span { display: block; font-size: 14.5px; color: var(--mu); line-height: 1.5; }
a.ap-link { color: var(--c1) !important; font-weight: 600; font-size: 16px; border-bottom: 2px solid var(--c1); display: inline-flex; gap: 8px; align-items: center; padding-bottom: 2px; }
/* tin */
.ap-news-sec { padding: 30px 0 30px !important; }
.ap-news { display: grid; grid-template-columns: minmax(0, 690fr) minmax(0, 600fr); gap: 28px; }
.ap-news-big .b9-po { border: 0; background: #f6f6f6; border-radius: 6px; --po-ar: 690 / 310; }
.ap-news-big .b9-po-t { font-size: 22px; }
.ap-news-big .b9-po-e { font-size: 16px; }
.ap-news-sm { display: flex; flex-direction: column; gap: 22px; }
.ap-news-sm .b9-po { flex-direction: row; border: 0; gap: 22px; height: auto; align-items: flex-start; }
.ap-news-sm .b9-po-img { width: 245px; flex: none; aspect-ratio: 245 / 128; border-radius: 4px; }
.ap-news-sm .b9-po-b { padding: 6px 0 0; min-width: 0; }
.ap-news-sm .b9-po-t { font-size: 18.5px; margin-bottom: 8px; }
.ap-news-sm .b9-po-e { font-size: 15px; margin: 0; }
.ap-news .b9-more { display: none; }
/* văn phòng */
.ap-off-sec { padding: 30px 0 46px !important; }
.ap-off { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; }
.ap-off > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; border: 1px solid #e3e3e3; border-radius: 4px; padding: 18px 22px; align-items: start; }
.ap-off .b9-ic { width: 32px; height: 32px; color: var(--c1); grid-row: span 2; }
.ap-off b { font-size: 17px; color: #1c1c1c; }
.ap-off span { font-size: 15px; color: var(--mu); }
#footer .b9-ft { --ft: #2b2b2b; --ftlogo: 64px; }
@media (min-width: 850px) and (max-width: 1299px) { .ap-prod .b9-pc-btn { grid-template-columns: minmax(0, 1fr); } .ap-co { display: none; } .ap-h1 { font-size: 46px; } .ap-hero { aspect-ratio: auto; height: 560px; } .ap-hero-img { object-position: 68% 50%; } #header .header-bottom-nav > li { margin: 0 16px; } }
@media (max-width: 849px) {
  #header #logo a { width: 150px; height: 50px; background-position: center; }
  .ap-sec h2, .ap-h2 { font-size: 27px; }
  .ap-hero { aspect-ratio: auto; max-height: none; padding-top: 250px; background: #fff; }
  .ap-hero-img { height: 250px; bottom: auto; object-position: 68% 30%; }
  .ap-hero-in { position: static; transform: none; padding: 22px 16px 30px; }
  .ap-co { display: none; }
  .ap-h1 { font-size: 34px; } .ap-hero-s { font-size: 16px; } .ap-hero-s br { display: none; }
  .ap-btns { gap: 10px; } .ap-btns a { padding: 0 14px; flex: 1; min-height: 52px; font-size: 15px; }
  .ap-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ap-ind b { font-size: 16px; left: 12px; }
  .ap-tabs { overflow-x: auto; } .ap-tabs button { padding: 10px 14px; white-space: nowrap; }
  .ap-prod { --nm: 2; } .ap-prod .b9-pc-btn { grid-template-columns: minmax(0, 1fr); } .ap-prod .b9-pc-t { font-size: 15px; }
  .ap-bulk-t { font-size: 30px !important; } .ap-bulk-l li { font-size: 17px; } .ap-bulk-f { margin-top: 16px; padding: 20px 16px; }
  .ap-sew-r .ap-h2 { white-space: normal; font-size: 27px; } .ap-sew-img img { height: 240px; } .ap-sew-r .col-inner { padding-left: 0; padding-top: 18px; } .ap-sew { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ap-news { grid-template-columns: minmax(0, 1fr); } .ap-news-sm .b9-po-img { width: 130px; } .ap-news-sm .b9-po-t { font-size: 16px; } .ap-news-sm .b9-po-e { display: none; }
  .ap-off { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* _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; }
@media (min-width: 850px) { .b9-ft li { font-size: 16.5px; } .b9-ft-h { font-size: 18.5px; } .ap-off b { font-size: 18.5px; } .ap-off span { font-size: 16px; } .ap-sew b { font-size: 16.5px; } }
