/* Thân trang theo ru9 (trang chủ + danh mục) — THU-359. Vỏ (thanh trên/đầu/chân) ở ru9-vo.css. Số đo: DESIGN-RU9.md. */
:root{--xanh:#277714;--xanh2:#28a54a;--navy:#121a26;--vang:#f5a623;--nen:#f5f6f8;--tint:#f5f6f8;--chip:#f5f6f8;--chip-v:#f5d58a;--chip-on:#fbe0a0;--xam:#5b6573;--le:80px}
.r9-body{margin:0;font-family:BVP,sans-serif;font-size:16px;color:#000;background:#fff;-webkit-font-smoothing:antialiased}
.r9-body *{box-sizing:border-box}.r9-body :where(h1,h2,h3,p,ul){margin:0}
.r9-body a{color:inherit;text-decoration:none}.r9-body img{display:block;max-width:100%}
.r9-body main svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.w{max-width:1440px;margin:0 auto;padding:0 var(--le)}
.nut{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:40px;padding:0 12px;border-radius:8px;font:500 16px BVP,sans-serif;white-space:nowrap;border:2px solid transparent;cursor:pointer}
.nut.xanh{background:var(--xanh);color:#fff}.nut.vang{background:var(--vang);color:var(--navy)}.nut.vien{background:#fff;color:var(--xanh);border-color:var(--xanh)}
.nut.lon{height:40px;border-radius:8px;padding:0 20px;font-weight:600;position:relative}.nut.lon::after{content:'';position:absolute;inset:-2px 0}@media(max-width:768px){.nut.lon{height:33px;padding:0 12px}.nut.lon::after{inset:-6px 0}}.vong{width:28px;height:28px;border-radius:50%;background:#fff;color:var(--xanh);display:grid;place-items:center;margin-right:-14px}.vong svg{width:18px;height:18px}
/* khối đầu 452px */
.hero{background:var(--tint);overflow:hidden}.hero-i{height:452px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}
.hero h1{font-size:36px;line-height:1.15;font-weight:600;color:var(--navy);letter-spacing:-.01em;max-width:560px}
.sub{margin-top:14px;font-size:18px;line-height:1.5;color:#5b6573;max-width:520px}
.tick{list-style:none;padding:0;margin:18px 0 24px;display:flex;gap:22px;flex-wrap:nowrap;font-size:15px;font-weight:500;color:var(--navy)}.tick li{display:flex;align-items:center;gap:8px;white-space:nowrap}.tick svg{width:20px;height:20px}
.hero-n{display:flex;gap:12px;align-items:center}
.hero-a{position:relative;height:100%}.hero-a img{position:absolute;filter:drop-shadow(0 18px 18px rgba(26,42,74,.18))}
.a1{width:600px;right:-20px;top:50px}.a2{width:380px;right:360px;bottom:30px}
/* dải cam kết 68px */
.tin{background:#f5f6f8;height:68px}.tin-i{height:68px;display:flex;align-items:center;justify-content:center;gap:48px;font-size:16px}.tin span{display:flex;align-items:center;gap:12px;white-space:nowrap;color:var(--navy)}.tin svg{width:32px;height:32px;color:var(--xanh)}
/* khối nội dung */
.kh{padding-top:80px}
h2{font-size:28px;line-height:42px;font-weight:600;color:var(--navy)}
.dm{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:16px}.dm a{display:block}
.dm-i{aspect-ratio:4/3;background:var(--nen);display:grid;place-items:center;overflow:hidden}.dm-i img{width:86%}
.dm span{display:block;margin-top:12px;font-size:18px;line-height:23px;font-weight:400}
.tde{display:flex;justify-content:space-between;align-items:baseline}.xtc{font-size:16px;color:var(--navy);text-decoration:underline}
.tab,.tab2{display:flex;gap:12px;margin-top:16px;align-items:center;flex-wrap:wrap}.tab button,.tab2 button{height:40px;padding:0 20px;border-radius:40px;border:1px solid var(--chip-v);background:var(--chip);font:400 16px BVP,sans-serif;color:#000;cursor:pointer}.tab button.on,.tab2 button.on{background:var(--chip-on)}
.muiten{margin-left:auto;display:flex;gap:8px}.tab .mt{width:34px;height:34px;padding:0;border-radius:50%;font-size:18px}
.rail{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-top:16px;padding-bottom:4px}.rail::-webkit-scrollbar{display:none}
.the{flex:0 0 calc((100% - 72px)/4);scroll-snap-align:start;display:flex;flex-direction:column;gap:12px;min-width:0}.the[hidden]{display:none}
.the-img{aspect-ratio:1/1;position:relative;background:var(--nen);border-radius:12px;overflow:hidden}.the-img img{display:block;width:100%;height:100%;object-fit:cover}.the-img .gg{position:absolute;top:10px;right:10px;z-index:2}
.the h3{font-size:16px;line-height:24px;font-weight:500;color:var(--navy);margin-top:12px}
.gia{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;margin-top:4px}.gia b{font-weight:500}.gg{background:var(--chip-on);color:var(--navy);font-size:12px;font-weight:600;padding:0 6px;line-height:22px;border-radius:3px}
.cu{height:16px;font-size:13px;color:var(--xam);margin-top:6px}.cu s{text-decoration:line-through}
.the-nut{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}
.tien{height:3px;background:#eee;margin-top:36px;border-radius:2px;overflow:hidden}.tien i{display:block;height:100%;background:var(--xanh);width:25%}
/* khám phá căn phòng */
.ph{margin-top:16px}.ph-tabs{display:flex;gap:12px;margin-bottom:16px}
.ph-tabs button{display:flex;align-items:center;gap:10px;height:56px;padding:0 16px 0 6px;border-radius:12px;border:1px solid var(--chip-v);background:var(--chip);font:500 16px BVP,sans-serif;color:var(--navy);cursor:pointer}
.ph-tabs button img{width:64px;height:44px;object-fit:cover;border-radius:8px}.ph-tabs button.on{background:var(--chip-on);border-color:var(--vang)}
.ph-main{display:grid;grid-template-columns:2fr 1fr;gap:24px;align-items:stretch}
.ph-anh{position:relative;aspect-ratio:3/2;border-radius:12px;overflow:hidden;background:var(--nen)}.ph-a{position:absolute;inset:0;opacity:0;transition:opacity .25s;pointer-events:none}.ph-a.on{opacity:1;pointer-events:auto}.ph-a img{width:100%;height:100%;object-fit:cover}
.ph-card{background:var(--nen);border-radius:12px;padding:32px 28px;display:flex;flex-direction:column;justify-content:center}
.ph-t{display:none}.ph-t.on{display:block}
.ph-t h3{font-size:24px;line-height:32px;font-weight:600;color:var(--navy)}.ph-g{margin:12px 0 20px;font-size:16px;display:flex;gap:10px;align-items:baseline}.ph-g b{font-size:20px;font-weight:600}.ph-g s{font-size:13px;color:var(--xam)}
.ph-ghi{margin-top:20px;font-size:12px;line-height:18px;color:var(--xam)}
/* chọn theo loại nệm */
.lo-g{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:16px}
.lo{display:flex;flex-direction:column;background:var(--nen);border-radius:12px;overflow:hidden}.lo-i{aspect-ratio:16/10;display:grid;place-items:center;background:var(--tint)}.lo-i img{width:72%}
.lo-t{padding:20px 24px 24px}.lo-t h3{font-size:20px;line-height:30px;font-weight:600;color:var(--navy)}.lo-t p{margin:4px 0 12px;font-size:16px;color:#5b6573}
/* cẩm nang */
.bai-g{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:16px}
.bai{display:flex;flex-direction:column;gap:12px}.bai-i{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--nen)}.bai-i img{width:100%;height:100%;object-fit:cover}
.bai h3{font-size:20px;line-height:30px;font-weight:600;color:var(--navy);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* trang danh mục */
.dmt{padding-top:24px}.crumb{display:flex;gap:8px;font-size:14px;color:var(--xam);flex-wrap:wrap}.crumb a{color:var(--navy)}
.dmt h1{font-size:28px;line-height:42px;font-weight:600;color:var(--navy);margin-top:16px}
.dmt-mo{margin-top:8px;font-size:18px;line-height:27px;color:#5b6573;max-width:760px}
.chips{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}.chips a{display:inline-flex;align-items:center;height:40px;padding:0 20px;border-radius:40px;border:1px solid var(--chip-v);background:var(--chip);font-size:16px}.chips a.on{background:var(--chip-on)}
.dmt-sl{margin-top:24px;font-size:14px;color:var(--xam)}
.luoi{display:grid;grid-template-columns:repeat(4,1fr);gap:32px 24px;margin-top:12px}.luoi .the{flex:none}
@media(max-width:1366px){.hero-t{position:relative;z-index:2}.a1{width:520px;right:-40px;top:70px}.a2{width:250px;right:290px;bottom:20px}}
@media(max-width:1100px){:root{--le:40px}.hero h1{font-size:36px}.a1{width:440px;right:-20px}.a2{width:210px;right:250px}.tick{gap:14px;font-size:14px}.tin-i{gap:24px;font-size:14px}.ph-main{grid-template-columns:1fr}.bai-g{grid-template-columns:repeat(2,1fr)}.luoi{grid-template-columns:repeat(3,1fr)}.the{flex-basis:calc((100% - 48px)/3)}}
@media(max-width:768px){
:root{--le:16px}
.hero-i{height:auto;grid-template-columns:1fr;gap:0;padding-top:20px}.hero h1{font-size:28px}.sub{font-size:15px;line-height:1.4;margin-top:8px}
.tick{flex-wrap:wrap;gap:6px 14px;font-size:14px;margin:12px 0 14px}
.hero-n{flex-wrap:nowrap}.nut.lon{padding:0 12px}.hero-n .nut.vien{padding:0 16px}
.hero-a{height:204px;margin:0 -16px}.a1{width:270px;right:10px;top:14px}.a2{width:170px;right:auto;left:10px;bottom:20px}
.tin{height:104px}.tin-i{flex-wrap:wrap;gap:8px 20px;padding:0 16px;height:104px;align-content:center;justify-content:flex-start}.tin span{font-size:14px;gap:8px}.tin svg{width:28px;height:28px}
.kh{padding-top:32px}h2{font-size:20px;line-height:30px}
.dm{grid-template-columns:1fr 1fr;gap:16px}.dm span{font-size:16px;line-height:20px;margin-top:10px}
.tab{gap:8px;overflow-x:auto;scrollbar-width:none}.tab button{height:33px;padding:0 14px;font-size:14px;flex:none}.muiten{display:none}
.rail{gap:16px}.the{flex:0 0 233px}.the-img{border-radius:8px}.the h3{font-size:14px;line-height:21px}.gia{font-size:14px}.cu{font-size:12px}
.xtc{font-size:14px}.nut{height:37px;font-size:14px;padding:0 8px}.tien{margin-top:24px}
.ph-tabs{overflow-x:auto;scrollbar-width:none;gap:8px}.ph-tabs button{flex:none;height:48px;font-size:14px}.ph-tabs button img{width:52px;height:36px}
.ph-anh{border-radius:8px}.ph-card{padding:20px 16px}.ph-t h3{font-size:18px;line-height:26px}
.lo-g{grid-template-columns:1fr;gap:16px}.lo{flex-direction:row}.lo-i{flex:0 0 44%;aspect-ratio:auto}.lo-i img{width:84%}.lo-t{padding:14px 14px 16px;align-self:center}.lo-t h3{font-size:16px;line-height:22px}.lo-t p{font-size:14px}
.bai-g{grid-template-columns:1fr 1fr;gap:16px}.bai-i{border-radius:8px}.bai h3{font-size:14px;line-height:21px}
.dmt{padding-top:16px}.dmt h1{font-size:20px;line-height:30px}.dmt-mo{font-size:15px;line-height:22px}.chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:8px}.chips a{height:33px;padding:0 14px;font-size:14px;flex:none}
.luoi{grid-template-columns:1fr 1fr;gap:24px 16px}
}

/* THU-371 trang giỏ/báo giá */
.gh{padding-top:24px}.gh h1{font-size:28px;line-height:42px;font-weight:600;color:#121a26;margin:0}.gh-sl{margin:4px 0 0;color:#5b6573}
.gh-rong{text-align:center;padding:64px 0}.gh-rong p{margin:0 auto 24px;max-width:520px}.gh-nut{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.gh-cam{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;background:#eef5ff;border-radius:8px;padding:24px 16px}.gh-cam span{display:flex;align-items:center;gap:8px}
@media(max-width:768px){.gh h1{font-size:20px;line-height:30px}.gh-rong{padding:48px 0}}

/* THU-371 vòng 3: banner slide trang chủ, banner danh mục, tab căn phòng bằng ảnh thật MEDIA HUB */
.hero-slider{position:relative;background:#f5f6f8}.hero-slider .hs-w{position:absolute;inset:0}.hs{position:absolute;inset:0;opacity:0;transition:opacity .5s}.hs.on{opacity:1}.hs img{width:100%;height:100%;object-fit:cover}
.hero-slider .hero-i{position:relative;grid-template-columns:minmax(0,560px)}.hero-slider .hero-t{background:rgba(255,255,255,.9);border-radius:16px;padding:28px 32px}
.hs-d{position:absolute;left:0;right:0;bottom:14px;display:flex;gap:8px;justify-content:center}.hs-d button{width:24px;height:24px;border-radius:50%;border:0;padding:8px;background:rgba(26,42,74,.35);background-clip:content-box;cursor:pointer;margin:0 -2px}.hs-d button.on{background:#277714;background-clip:content-box;width:38px}
.dm-ban{height:352px;overflow:hidden}.dm-ban img{width:100%;height:100%;object-fit:cover}
.gh-h2{font-size:28px;line-height:42px;font-weight:600;color:#121a26;margin:48px 0 0}.gh .rail{margin-bottom:32px}
@media(max-width:768px){.hero-slider .hero-i{padding:16px 0 44px}.hero-slider .hero-t{padding:16px}.dm-ban{height:260px}.gh-h2{font-size:20px;line-height:30px;margin-top:32px}}

/* THU-371 vòng 3: khối lấy từ nemvietnhat.com (nhà máy, chứng nhận, khách chia sẻ, câu hỏi thường gặp) */
.nm-v{position:relative;background:#fff;padding-bottom:0}.nm-bg{position:absolute;top:0;right:0;bottom:0;width:62%;overflow:hidden}.nm-bg img{width:100%;height:100%;object-fit:cover;object-position:right 70%;display:block}.nm-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#fff 0,#fff 6%,rgba(255,255,255,0) 32%),linear-gradient(90deg,#fff 0,#fff 8%,rgba(255,255,255,.93) 14%,rgba(255,255,255,.55) 21%,rgba(255,255,255,0) 33%)}.nm-in{position:relative;z-index:1;padding-top:56px;padding-bottom:200px}.nm-t{max-width:560px}.nm .nm-t h2{font-size:40px;line-height:48px;font-weight:700;color:var(--xanh);letter-spacing:.01em}.nm-t p{margin:16px 0 0;line-height:1.7;font-size:16px;color:var(--xam)}.nm-ct{position:relative;z-index:2;margin-top:-84px;padding-bottom:40px}.nm-the{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:16px;box-shadow:0 8px 32px rgba(28,44,88,.14);padding:28px 16px}.nm-so{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:0 16px;border-left:1px solid #e5eadf}.nm-so:first-child{border-left:0}.nm .nm-so svg{width:40px;height:40px;max-width:none;color:var(--xanh);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nm-so b{font-size:26px;line-height:34px;font-weight:700;color:var(--xanh)}.nm-so span{font-size:14px;line-height:20px;color:var(--xam)}

.cn-g{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;margin-top:16px}.cn-a img{width:100%;border-radius:12px}.cn-t{display:grid;gap:20px}.cn-t h3{font-size:18px;line-height:27px;font-weight:600;color:var(--navy)}.cn-t p{margin:4px 0 0}.cn-t .iso{height:48px;width:auto;margin-bottom:6px}
.kc-l{margin-top:16px}.kc-i{flex:0 0 320px;scroll-snap-align:start;background:var(--nen);border-radius:12px;padding:24px;margin:0;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.kc-i blockquote{margin:0;line-height:1.6}.kc-i figcaption{display:flex;flex-direction:column;gap:2px}.kc-i figcaption span{font-size:13px;color:var(--xam)}
.faq-l{margin-top:16px;display:grid;gap:8px;max-width:944px}.faq-l details{background:var(--nen);border-radius:12px;padding:16px 20px}.faq-l summary{cursor:pointer;font-weight:600;color:var(--navy);list-style:none}.faq-l summary::-webkit-details-marker{display:none}.faq-l p{margin:10px 0 0;line-height:1.6}
@media(max-width:768px){.cn-g{grid-template-columns:1fr;gap:20px}.nm-bg{position:relative;width:100%;height:220px}.nm-bg:after{background:linear-gradient(0deg,#fff 0,rgba(255,255,255,0) 30%)}.nm-in{padding-top:8px;padding-bottom:20px}.nm .nm-t h2{font-size:26px;line-height:34px}.nm-ct{margin-top:0;padding-bottom:8px}.nm-the{grid-template-columns:1fr 1fr;gap:20px 0;padding:20px 8px}.nm-so:nth-child(3){border-left:0}.nm-so b{font-size:18px;line-height:26px;white-space:nowrap}.nm-so{padding:0 8px}.nm .nm-so svg{width:32px;height:32px}.kc-i{flex:0 0 280px}}

/* THU-371 bảng so sánh các dòng nệm */
.ss-b{margin-top:16px;overflow-x:auto;border:1px solid var(--chip-v,#e4e7ec);border-radius:12px}.ss table{width:100%;border-collapse:collapse;min-width:640px}
.ss th,.ss td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--chip-v,#e4e7ec)}.ss thead th{background:var(--nen);color:var(--navy);font-weight:600}.ss tbody th{font-weight:500}.ss tbody th a{color:var(--navy)}.ss tbody tr:last-child th,.ss tbody tr:last-child td{border-bottom:0}

/* 12/11 THU-371 vòng 5c (bảng khuôn Soát): nút/chip bo 8 như ru9 */
.nut.lon{border-radius:8px}.tab button,.chips a{border-radius:8px}

.r9-an{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
@media(min-width:769px){.chips a{height:34px}}

/* 12/11 THU-371 vòng 6: cột lọc trang danh mục theo ru9 (nhóm có số lượng, sắp xếp, lưới 3 cột bên cạnh) */
.dm-lay{display:grid;grid-template-columns:260px 1fr;gap:40px;margin-top:8px;align-items:start}.dm-lay .luoi{grid-template-columns:repeat(3,1fr)}.luoi .the[hidden],.dm-rong[hidden]{display:none}
.dm-bar{display:flex;justify-content:space-between;align-items:center;gap:16px}.dm-bar .dmt-sl{margin-top:16px}.dm-sx{font-size:14px;color:var(--xam);display:flex;align-items:center;gap:8px}.dm-sx select{border:1px solid #d6dbd0;border-radius:8px;height:36px;padding:0 10px;font:inherit;color:var(--navy);background:#fff}
.dm-loc{border:1px solid #e4e7ec;border-radius:12px;padding:8px 20px 12px;margin-top:16px}.dm-loc>summary{font-size:16px;font-weight:600;color:var(--navy);cursor:pointer;min-height:44px;display:flex;align-items:center}
.dm-nhom{border-top:1px solid #eef0ea;padding:8px 0}.dm-nhom>summary{font-size:14px;font-weight:600;color:var(--navy);cursor:pointer;min-height:32px;display:flex;align-items:center}
.dm-nhom label{display:flex;gap:10px;align-items:center;min-height:32px;font-size:14px;color:var(--xam);cursor:pointer}.dm-nhom input{width:16px;height:16px;accent-color:var(--xanh);margin:0}.dm-nhom label span{margin-left:2px}
.dm-rong{margin:24px 0;color:var(--xam)}
@media(max-width:1100px){.dm-lay{grid-template-columns:1fr;gap:0}.dm-lay .luoi{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.nut.lon{height:33px;padding:0 12px}}
.lo-t p{color:#646b78}
.the-nut .nut{width:100%;flex:1 1 100%}
.the-nut{display:block}.the-nut .nut{display:flex;width:100%}

/* 12/11 THU-371 vòng 7c: khối mới theo bảng thứ tự của Điều phối */
.tab2 button{border-radius:8px}.lo-luoi{margin-top:20px}.lo-luoi .the[hidden],.bai-g .bai[hidden]{display:none}
.chay{overflow:hidden;background:var(--chip);margin-top:80px;padding:20px 0}.chay-t{display:flex;gap:64px;width:max-content;animation:chay 32s linear infinite;font-size:20px;line-height:30px;font-weight:600;color:var(--navy);white-space:nowrap}.chay-t span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--xanh2);margin-right:16px}
@keyframes chay{to{transform:translateX(-33.333%)}}@media(prefers-reduced-motion:reduce){.chay-t{animation:none}}
.ph-hop-i{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);align-items:center;gap:32px;background:var(--nen);border-radius:12px;padding:40px 0 40px 48px;overflow:hidden}.ph-hop-c{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:16px}.ph-hop-i h2{margin:0}.ph-hop-i p{margin:0;max-width:560px;color:var(--xam)}.ph-hop-a{display:block;width:100%;height:auto;justify-self:end}@media(max-width:900px){.ph-hop-i{grid-template-columns:1fr;padding:32px 24px 0;gap:24px}.ph-hop-c{align-items:center;text-align:center}.ph-hop-a{max-width:460px;margin:0 auto;justify-self:center}}
.at-g{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:20px}.at-i{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;font-size:16px;line-height:24px;color:var(--navy)}.at-i svg{width:36px;height:36px;fill:none;stroke:var(--xanh);stroke-width:1.6}
.dmt-m .dmt-mo{margin:0}
@media(max-width:1100px){.at-g{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.at-g{grid-template-columns:repeat(2,1fr)}.chay{margin-top:32px;padding:14px 0}.chay-t{font-size:16px;line-height:24px;gap:40px}.ph-hop-i{padding:32px 16px}}

.the-mt{font-size:14px;line-height:21px;color:#5b6573;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.r9-ft-logo{display:inline-block;margin-bottom:16px}.r9-ft-logo img{display:block;height:52px;width:auto}

/* THU-463: banner đầu trang = ảnh có chữ; tỉ lệ 1440:450 (máy tính), 750:750 (điện thoại) */
.hero-bn{aspect-ratio:1440/450;background:#1b2430}.hero-bn .hs a{display:block;width:100%;height:100%}.hero-bn .hs picture,.hero-bn .hs img{display:block;width:100%;height:100%}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:768px){.hero-bn{aspect-ratio:1/1}}

/* THU-483: chữ banner bằng HTML đè lên ảnh nền; mọi cỡ theo bề rộng banner (cqw), gốc 1440 (máy tính) / 750 (điện thoại) */
.hero-bn .hs a{position:relative;container-type:inline-size}
.bn-t{position:absolute;inset:0;pointer-events:none;font-family:BVP,'Be Vietnam Pro',sans-serif;color:#fff}
.bn-h{position:absolute;left:4.3cqw;top:7.9cqw;font-size:6.05cqw;line-height:1;font-weight:700;text-transform:uppercase;letter-spacing:0;white-space:nowrap;margin:0}
.bn-s{position:absolute;left:4.3cqw;top:15.1cqw;font-size:1.95cqw;line-height:1.2;font-weight:600;color:#f3cf86;white-space:nowrap}
.bn-c{position:absolute;left:4.3cqw;top:21.7cqw;display:flex;gap:1cqw}
.bn-c span{display:block;height:4cqw;line-height:calc(4cqw - 4px);padding:0 1.55cqw;border:2px solid #c9a24e;border-radius:999px;background:rgba(255,255,255,.1);font-size:1.7cqw;font-weight:600;white-space:nowrap}
@media(max-width:768px){
.bn-h{left:5.6cqw;top:12cqw;font-size:12.6cqw}
.bn-s{left:5.6cqw;top:26.5cqw;font-size:3.7cqw}
.bn-c{left:5.6cqw;top:38cqw;gap:2cqw}
.bn-c span{height:8.4cqw;line-height:calc(8.4cqw - 4px);padding:0 3cqw;font-size:3.9cqw}
.hs-d{bottom:6px}
}

/* 16/11: màn ≥1600px, khung ảnh "Về chúng tôi" không dẹt quá tỉ lệ ảnh (nhà máy bị xén) */
@media(min-width:1600px){.nm-bg{width:56%}}

/* 16/11/2026 — khối "So sánh các dòng nệm" của TRANG DANH MỤC theo nhịp ru9: mỗi dòng nệm là một cột
   (ảnh, tên, giá), mỗi thuộc tính là một hàng, kéo ngang. Cột nhãn khoá bên trái khi kéo.
   Bảng cũ .ss (hàng = dòng nệm) giữ nguyên cho trang sản phẩm. Đã soát lại @media 768. */
.ss2-mo{margin-top:12px;font-size:16px;line-height:24px;color:var(--xam);max-width:760px}
.ss2-b{margin-top:32px;overflow-x:auto;border:1px solid #e4e7ec;border-radius:16px;-webkit-overflow-scrolling:touch}
.ss2-b::-webkit-scrollbar{height:8px}.ss2-b::-webkit-scrollbar-thumb{background:#c9ced8;border-radius:8px}
.ss2 table{border-collapse:collapse;table-layout:fixed;width:max-content;min-width:100%}
.ss2 th,.ss2 td{border-bottom:1px solid #e4e7ec;border-left:1px solid #e4e7ec;padding:16px;text-align:left;font-size:15px;line-height:23px;font-weight:400;color:#121a26;vertical-align:top;width:220px}
.ss2 thead th{background:#fff;vertical-align:bottom}
.ss2 tbody th,.ss2 .ss2-nhan{position:sticky;left:0;z-index:2;border-left:0;background:#f5f6f8;font-weight:600;width:180px}
.ss2 thead th a{display:block;color:#121a26}
.ss2-a{display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#1a212b;margin-bottom:12px}
.ss2-a img{width:100%;height:100%;object-fit:cover}
.ss2 thead th b{display:block;font-size:16px;line-height:24px;font-weight:600}
.ss2 thead th em{display:block;margin-top:4px;font-size:16px;line-height:24px;font-weight:700;font-style:normal;color:var(--xanh)}
.ss2 thead th.ss2-on,.ss2 td.ss2-on{background:#f1f7f1}
.ss2 tbody tr:last-child th,.ss2 tbody tr:last-child td{border-bottom:0}
.ss2-cuoi td{vertical-align:middle}.ss2-cuoi .nut{width:100%}
@media(max-width:768px){
.ss2-mo{margin-top:8px;font-size:15px;line-height:22px}
.ss2-b{margin-top:24px;border-radius:12px}
.ss2 th,.ss2 td{padding:12px;font-size:14px;line-height:21px;width:168px}
.ss2 tbody th,.ss2 .ss2-nhan{width:120px;padding:12px 10px}
.ss2-a{border-radius:8px;margin-bottom:8px}
.ss2 thead th b,.ss2 thead th em{font-size:14px;line-height:21px}
}

/* 16/11/2026 — điện thoại: trả "Danh mục sản phẩm" và "Chọn theo loại nệm" về LƯỚI 2 CỘT.
   Luật vuốt ngang ở ru9-dong.css (13/11) đang ép hai khối này thành dải cuộn 62% bề ngang, nên ở 390px
   khối "Chọn theo loại nệm" chỉ cao 496px trong khi ở 1440px là 1.418px — 9/11 thẻ nằm ngoài màn, phải vuốt mới thấy.
   ru9.vn ở 390px cũng để hai khối này là lưới (danh mục 443px, lưới dòng nệm 1.096px). Dải "Cẩm nang" (.bai-g)
   và thẻ liên quan trang sản phẩm (.sp2-lq-g) GIỮ NGUYÊN kiểu vuốt. Đã soát: chỉ nằm trong @media 768. */
@media(max-width:768px){
html body .dm,html body .lo-luoi{display:grid;grid-template-columns:1fr 1fr;overflow:visible;margin-left:0;margin-right:0;padding:0;scroll-snap-type:none}
html body .dm{gap:16px}
html body .lo-luoi{gap:32px 16px}
html body .dm>a,html body .lo-luoi>.the{flex:none;max-width:none;min-width:0}
}

/* 16/11/2026 — khối "Nệm Việt Nhật sự lựa chọn hàng đầu cho giấc ngủ của bạn" (nguyên khối trang chủ nemvietnhat.com):
   3 mục ảnh + tiêu đề + mô tả. Nhịp ru9 đặt khối cam kết thương hiệu ở đúng chỗ này. Đã soát @media 768. */
.lc3{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:40px}
.lc3-a{aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#f5f6f8}
.lc3-a img{width:100%;height:100%;object-fit:cover}
.lc3-t h3{margin-top:20px;font-size:20px;line-height:30px;font-weight:600;color:var(--navy);text-wrap:balance}
.lc3-t p{margin-top:8px;font-size:16px;line-height:26px;color:var(--xam)}
@media(max-width:1100px){.lc3{grid-template-columns:1fr 1fr;gap:24px}}
@media(max-width:768px){
.lc3{grid-template-columns:1fr;gap:24px;margin-top:24px}
.lc3-a{border-radius:12px}
.lc3-t h3{margin-top:14px;font-size:18px;line-height:26px}
.lc3-t p{font-size:15px;line-height:24px}
}

/* 16/11/2026 — điện thoại: ảnh phòng khối "Khám phá căn phòng" để tỉ lệ 4/5 thay vì 3/2.
   Ở 390px khối này chỉ cao 713px trong khi ru9.vn là 1.287px, ảnh phòng bé hơn nửa màn. Chỉ trong @media 768. */
@media(max-width:768px){.ph-anh{aspect-ratio:4/5}}

/* 16/11/2026 — máy cảm ứng: bỏ hẳn ảnh rê chuột trên thẻ sản phẩm.
   Ảnh thứ hai (.h2) chỉ hiện khi rê chuột (@media hover:hover trong ru9-dong.css), nhưng vì chỉ để opacity:0
   nên điện thoại vẫn tải đủ — mỗi thẻ tải 2 ảnh mà người dùng chỉ thấy 1. Lưới dòng nệm nay hiện cả 11 thẻ
   nên khoản phí này tăng theo. display:none chặn luôn lượt tải. */
@media (hover:none),(max-width:768px){.the-img .h2{display:none}}

/* 19/11/2026 — dải ảnh đầu trang danh mục /nem/ (anh Công: "ảnh bìa thiếu hình à").
   Khung cũ cao cố định 352px nên tỉ lệ đổi theo bề ngang màn: 4,09:1 ở 1440px, 5,68:1 ở 2000px,
   cắt ngang thân nệm; điện thoại 390x260 thì phóng ảnh ngang thành mảng mờ.
   Nay khung bám đúng tỉ lệ tệp ảnh (1600x552 máy tính, 4:3 điện thoại) nên không cắt thêm ở bất kỳ bề ngang nào. */
.dm-ban{height:auto;aspect-ratio:1600/552}
.dm-ban picture{display:block;width:100%;height:100%}
.dm-ban img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:768px){.dm-ban{height:auto;aspect-ratio:4/3}}

/* THU-467 · DESIGN-CHUYEN-NGHIEP.md (THU-465/466): 1 nền, 1 nhấn #277714, 1 tông tối. Nạp CUỐI ru9-vo.css, ru9.css, ntv-sp-ru9.css → thắng thứ tự. */
:root,.r9,.r9-body{--navy:#121a26;--nen:#f5f6f8;--tint:#f5f6f8;--chip:#f5f6f8;--chip-v:#e4e7ec;--chip-on:#277714;--xam:#5b6573;--xanh:#277714;--cn-toi:#1a212b;--cn-vien:#e4e7ec;--cn-khoi:96px}
/* thanh trên + chân trang: tông tối, bỏ xanh lá/navy */
.r9-bar{background:var(--cn-toi)}
.r9-hd{border-bottom-color:var(--cn-vien)}
.r9-mn{color:#121a26}
.r9-ft{background:var(--cn-toi)}
/* nút: nhấn xanh duy nhất, bỏ vàng */
.r9-body .nut.vang,.r9-dock a.on{background:#277714;border-color:#277714;color:#fff}
.r9-body .nut.vang:hover,.r9-body .nut.xanh:hover{background:#1f6010;border-color:#1f6010}
.r9-body .nut{border-radius:8px}
/* tiêu đề khối 36/44 · 24/32, nhịp 96/56 */
.r9-body h2{font-size:36px;line-height:44px;font-weight:700;color:#121a26;letter-spacing:-.01em}
.r9-body .kh{padding-top:var(--cn-khoi)}
.r9-body main>.kh:last-of-type{padding-bottom:var(--cn-khoi)}
.r9-body h2+.dm,.r9-body .tde+.tab,.r9-body h2+.luoi,.r9-body .tde+.rail{margin-top:40px}
.r9-body .xtc{font-weight:600;color:#277714;text-decoration:none;border-bottom:2px solid #277714;padding-bottom:2px}
/* khối xen kẽ #f5f6f8 */
.r9-body .kh.xen{background:#f5f6f8;padding-bottom:var(--cn-khoi);margin-top:var(--cn-khoi)}
.r9-body .kh.xen+.kh{padding-top:var(--cn-khoi)}
/* danh mục: ô ảnh tối bo 12, chữ 20/600 + mũi tên nhấn */
.r9-body .dm{gap:24px}
.r9-body .dm-i{aspect-ratio:3/2;border-radius:12px;background:var(--cn-toi);display:block}
.r9-body .dm-i img{width:100%;height:100%;object-fit:cover;transform:scale(1.22);transform-origin:50% 58%;transition:transform .4s}
.r9-body .dm a:hover .dm-i img{transform:scale(1.28)}
.r9-body .dm a>span{display:flex;justify-content:space-between;margin-top:16px;font-size:20px;line-height:28px;font-weight:600;color:#121a26}
.r9-body .dm a>span::after{content:'→';color:#277714;font-weight:600}
/* thẻ sản phẩm: ảnh · tên · giá · giá gạch · nhãn % */
.r9-body .the{gap:0}
.r9-body .the-img{border-radius:12px;background:var(--cn-toi)}
.r9-body .the-img .gg{top:12px;right:12px;background:#277714;color:#fff;font-size:12px;line-height:16px;font-weight:600;padding:4px 8px;border-radius:6px}
.r9-body .the h3{font-size:16px;line-height:24px;font-weight:600;color:#121a26;margin-top:16px}
.r9-body .the .gia{margin-top:4px;font-size:18px;line-height:26px;font-weight:700}.r9-body .the .gia b{font-weight:700}
.r9-body .the .gia s,.r9-body .the .cu{height:auto;margin:0;font-size:14px;line-height:22px;font-weight:400;color:#5b6573}
.r9-body .the-mt,.r9-body .the .the-nut{display:none}
.r9-body .luoi{gap:40px 24px}
.r9-body .rail{gap:24px}
/* bỏ dải kem/be */
.r9-body .tin{display:none}
.r9-body .chay{background:#f5f6f8}.r9-body .chay-t{color:#121a26}
.r9-body .ph-hop-i{background:#f5f6f8}
/* khối chip lọc / tab */
.r9-body .tab button.on,.r9-body .tab2 button.on{background:#277714;border-color:#277714;color:#fff}
@media(max-width:768px){
:root,.r9,.r9-body{--cn-khoi:56px}
.r9-body h2{font-size:24px;line-height:32px}
.r9-body h2+.dm,.r9-body .tde+.tab,.r9-body h2+.luoi,.r9-body .tde+.rail{margin-top:24px}
.r9-body .dm{gap:16px}
.r9-body .dm a>span{font-size:16px;line-height:24px;margin-top:12px}
.r9-body .the h3{font-size:14px;line-height:21px;margin-top:12px;min-height:42px}
.r9-body .the .gia{font-size:16px;flex-wrap:wrap;gap:0 8px}
.r9-body .the .cu{font-size:13px}
.r9-body .luoi{gap:32px 16px}.r9-body .rail{gap:16px}
}

/* bìa: mũi tên ra khỏi vùng chữ — đặt vào dải tối đáy bìa, bên phải, 40px, cách mép 24px */
.r9-body .hs-m{top:auto;bottom:16px;transform:none;width:40px;height:40px;background:rgba(255,255,255,.14);color:#fff;box-shadow:none;border:1px solid rgba(255,255,255,.4)}
.r9-body .hs-m:hover{transform:none;background:#277714;border-color:#277714}
.r9-body .hs-m-r{right:24px}.r9-body .hs-m-l{left:auto;right:76px}
.r9-body .hs-d button{background:rgba(255,255,255,.5);background-clip:content-box}.r9-body .hs-d button.on{background:#fff;background-clip:content-box}
/* khám phá căn phòng: thẻ chi tiết đầy, nền #f5f6f8 */
.r9-body .ph-card{background:#f5f6f8;border-radius:12px;padding:40px;justify-content:center;gap:0}
.r9-body .ph-t h3{font-size:28px;line-height:36px;font-weight:700;color:#121a26}
.r9-body .ph-g{margin:12px 0 8px;font-size:16px}.r9-body .ph-g b{font-size:24px;line-height:32px;font-weight:700}.r9-body .ph-g s{font-size:14px;color:#5b6573}
.r9-body .ph-ks{margin:0 0 24px;font-size:14px;line-height:22px;color:#5b6573}
.r9-body .ph-card .the-nut{display:grid;grid-template-columns:1fr;gap:12px}
.r9-body .ph-card .nut{height:48px}.r9-body .ph-card .nut.xanh{background:#fff;color:#277714;border-color:#277714}.r9-body .ph-card .nut.xanh:hover{background:#277714;color:#fff}
@media(max-width:768px){.r9-body .ph-card{padding:24px 16px}.r9-body .ph-t h3{font-size:20px;line-height:28px}}

.r9-body .dm a>span{width:100%;max-width:none;background:none;padding-bottom:0}

/* trang sản phẩm: nhãn giảm xanh/trắng, tiêu đề khối 36/44 · 24/32, thẻ liên quan cùng quy tắc */
.sp2-pct{background:#277714!important;color:#fff!important;border-radius:6px;font-weight:600;padding:4px 8px}
.sp2-ts h2,.sp2-lq h2,.sp2-sec>h2{font-size:36px!important;line-height:44px!important;font-weight:700!important;color:#121a26}
.sp2-h1{font-weight:700}
.sp2-sec{margin-top:var(--cn-khoi)!important}
@media(max-width:768px){.sp2-ts h2,.sp2-lq h2,.sp2-sec>h2{font-size:24px!important;line-height:32px!important}.sp2-sec{margin-top:56px!important}}
.r9-body .ph-card .the-nut{opacity:1!important;transform:none!important}
/* THU-484: chân trang — 2 nút mạng xã hội căn giữa, logo Zalo/Facebook tự vẽ */
.r9 .r9-ft-so{display:flex;gap:16px;margin-bottom:40px}
.r9 .r9-ft-so a{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);transition:background .2s,border-color .2s,transform .2s}
.r9 .r9-ft-so a:hover{padding:0;text-decoration:none;transform:translateY(-2px)}
.r9 .r9-ft-so a svg{display:block;width:20px;height:20px;margin:0;fill:#fff;stroke:none}
.r9 .r9-ft-so a .zb{fill:#fff}.r9 .r9-ft-so a .zz{fill:none;stroke:#1a212b;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.r9 .r9-ft-so a.so-zalo:hover{background:#0068ff;border-color:#0068ff}.r9 .r9-ft-so a.so-zalo:hover .zz{stroke:#0068ff}
.r9 .r9-ft-so a.so-fb:hover{background:#1877f2;border-color:#1877f2}
/* THU-484: khối chứng nhận · giải pháp giấc ngủ · khách chia sẻ — thẻ trắng bo góc theo nemvietnhat.com */
.cn4,.gp4,.kh4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:32px}
.cn4-t,.gp4-t,.kh4-t{background:#fff;border:1px solid #e4e7ec;border-radius:16px;box-shadow:0 2px 12px rgba(18,26,38,.06);overflow:hidden;transition:box-shadow .25s,transform .25s}
.cn4-t:hover,.gp4-t:hover,.kh4-t:hover{box-shadow:0 8px 24px rgba(18,26,38,.12);transform:translateY(-2px)}
.cn4-t{padding:20px 20px 24px;text-align:center}.cn4-a{aspect-ratio:350/200;display:flex;align-items:center;justify-content:center;background:#fff;margin-bottom:16px}.cn4-a img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.cn4-t h3{font-size:18px;line-height:27px;font-weight:600;color:var(--navy)}.cn4-t p{margin-top:8px;font-size:16px;line-height:24px;color:var(--xam)}
.gp4-t{display:flex;flex-direction:column;color:inherit;text-decoration:none}.gp4-a{aspect-ratio:1/1;background:var(--nen);overflow:hidden}.gp4-a img{width:100%;height:100%;object-fit:cover;display:block}
.gp4-b{padding:16px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}.gp4-b h3{font-size:18px;line-height:27px;font-weight:600;color:var(--navy);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gp4-b p{font-size:16px;line-height:24px;color:var(--xam);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gp4-b time{margin-top:auto;font-size:14px;color:#5b6573}
.kh4-t{margin:0;display:flex;flex-direction:column}.kh4-a{aspect-ratio:1/1;background:var(--nen);overflow:hidden}.kh4-a img{width:100%;height:100%;object-fit:cover;display:block}
.kh4-t figcaption{padding:16px 20px 24px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}.kh4-t b{font-size:18px;line-height:27px;font-weight:600;color:var(--navy)}.kh4-t time{font-size:14px;color:#5b6573}
.kh4-s{display:flex;gap:2px;color:#277714}.kh4-s svg{width:18px;height:18px;fill:#277714}
.kh4-t blockquote{margin:6px 0 0;font-size:16px;line-height:24px;font-style:italic;color:var(--xam)}
@media(max-width:1100px){.cn4,.gp4,.kh4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.cn4{grid-template-columns:repeat(2,1fr);gap:12px}.cn4-t{padding:12px 12px 16px}.cn4-t h3{font-size:14px;line-height:21px}.cn4-t p{font-size:13px;line-height:19px}
.gp4.tr,.kh4.tr{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin-left:calc(var(--le,20px)*-1);margin-right:calc(var(--le,20px)*-1);padding:4px var(--le,20px) 12px;scrollbar-width:none}
.gp4.tr::-webkit-scrollbar,.kh4.tr::-webkit-scrollbar{display:none}.gp4.tr>*,.kh4.tr>*{flex:0 0 78%;scroll-snap-align:start}.gp4-b h3{font-size:16px;line-height:24px}.gp4-b p{font-size:14px;line-height:21px}}
.kh4-s svg,.r9 .kh4-s svg{width:18px;height:18px;fill:#277714;stroke:none;color:#277714}.kh4-s svg path{fill:#277714;stroke:none}
.cn4-t h3,.gp4-b h3,.kh4-t b{text-wrap:balance}
