/* Trang chủ theme A. Dùng token và .card/.badge/.btn/.chips từ base.css. */

/* khoảng cách khối */
.sec{margin-top:56px}
.sec-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}
.sec-h>div{min-width:0;max-width:100%}
.sec-h h2{font-size:26px;margin:0;letter-spacing:-.01em;line-height:1.2}
.sec-h .more,.cat-big .more{font-weight:600;color:var(--red-ink);display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.sec-h .more:hover{color:var(--red-dark)}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.chip{border:1px solid var(--line);border-radius:var(--r);padding:5px 12px;font-size:13.5px;color:var(--muted);background:#fff}
.chip:hover{border-color:var(--red);color:var(--red-ink)}

/* hero */
.hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;margin-top:28px;align-items:stretch}
.hero-text{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:48px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.eyebrow{display:inline-block;font-size:13px;font-weight:700;color:var(--red-ink);background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:4px 12px}
.hero h1{font-size:40px;line-height:1.15;margin:18px 0 12px;letter-spacing:-.02em;text-wrap:balance}
.hero-text p{color:var(--muted);margin:0 0 26px;max-width:42ch}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap}
.hero-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.hero-img{display:grid;place-items:center;aspect-ratio:16/10;padding:20px;border-bottom:1px solid #f0f0f0;background:#fff}
.hero-img img{max-height:100%;width:auto;max-width:100%;object-fit:contain}
.hero-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.hero-body .kicker{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.hero-body h2{margin:0;font-size:17px;line-height:1.4}
.hero-body h2 a:hover{color:var(--red-ink)}
.hero-body .price{margin:2px 0 6px;padding:0}
.hero-body .price b{font-size:24px}

/* hãng chính */
.brands{display:flex;align-items:center;gap:20px;margin-top:20px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.brands-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;flex:none}
.brands ul{display:flex;gap:10px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.brands a{display:flex;align-items:baseline;gap:8px;border:1px solid var(--line);border-radius:var(--r);padding:8px 16px;background:#fff}
.brands a:hover{border-color:var(--red)}
.brands b{font-size:16px}
.brands a span{font-size:12.5px;color:var(--muted)}
.brands a span::after{content:" sản phẩm"}

/* cam kết */
.trust{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r)}
.trust li{display:flex;gap:12px;align-items:flex-start;padding:16px 18px}
.trust li+li{border-left:1px solid var(--line)}
.trust .ic{width:40px;height:40px;border-radius:var(--r);background:#fdecec;color:var(--red-ink);display:grid;place-items:center;flex:none}
.trust b{display:block;font-size:14.5px;line-height:1.3;margin-bottom:2px}
.trust span{font-size:13px;color:var(--muted);display:block;line-height:1.4}

/* danh mục */
.cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.cat-big{grid-column:span 2;display:flex;align-items:center;gap:20px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg);padding:20px 24px;transition:border-color .15s}
.cat-big:hover{border-color:var(--red);color:inherit}
.cat-img{flex:none;width:44%;aspect-ratio:5/4;background:#fff;border-radius:var(--r);display:grid;place-items:center;padding:10px}
.cat-img img{max-height:100%;width:auto;max-width:100%;object-fit:contain}
.cat-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.cat-info b{font-size:20px;line-height:1.25}
.cat-info small{color:var(--muted);font-size:13.5px}
.cat-info .more{margin-top:8px}
.cat-txt{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;transition:border-color .15s}
.cat-txt:hover{border-color:var(--red);color:inherit}
.cat-txt b{font-size:15.5px;line-height:1.3}
.cat-txt small{color:var(--muted);font-size:13px}

/* lưới sản phẩm (thẻ dùng content-product.php) */
.htc-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;margin:0;padding:0}
.htc-products::before,.htc-products::after{display:none}
.htc-products li.product{width:auto;float:none;margin:0}

/* camera quan sát: dạng dòng, 2 cột */
.rows{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.prow{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:var(--r);padding:10px;height:100%;background:#fff;transition:border-color .15s}
.prow:hover{border-color:var(--red);color:inherit}
.prow-img{flex:none;width:104px;aspect-ratio:5/4;display:grid;place-items:center;background:#fff}
.prow-img img{max-height:100%;width:auto;max-width:100%;object-fit:contain}
.prow-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.prow-name{font-size:14.5px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.prow-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.prow-price b{font-size:16px;color:var(--red-ink)}
.prow-price b.call{color:var(--ink);font-size:14.5px}
.prow-price s{font-size:13px;color:var(--muted)}
.prow-price em{font-style:normal;font-size:12px;font-weight:700;color:#fff;background:var(--red-ink);border-radius:var(--r);padding:1px 6px}

/* tin mới: danh sách */
.newslist{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.newslist li{display:flex;gap:20px;align-items:baseline;padding:14px 0;border-bottom:1px solid var(--line)}
.newslist time{flex:none;width:92px;font-size:13.5px;color:var(--muted)}
.newslist a{font-weight:600;font-size:16.5px;line-height:1.4;overflow-wrap:anywhere}
.newslist a::first-letter{text-transform:uppercase}
.newslist a:hover{color:var(--red-ink)}

/* cửa hàng */
.store{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:28px 32px}
.store h2{margin:0 0 14px;font-size:24px}
.store dl{margin:0;display:grid;gap:8px}
.store dl div{display:flex;gap:12px}
.store dt{flex:none;width:96px;color:var(--muted);font-size:14.5px}
.store dd{margin:0;font-weight:600}
.store dd a{color:var(--red-ink)}
.store-cta{display:flex;gap:12px;flex-wrap:wrap}

/* giới thiệu (nội dung trang chủ): thu gọn, mở bằng checkbox (không cần JS) */
.about h2{font-size:24px;margin:0 0 12px}
.about-body{max-width:860px;font-size:15.5px;color:#3a3a3a;max-height:240px;overflow:hidden;position:relative}
.about-body::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(rgba(255,255,255,0),#fff)}
.about-toggle:checked~.about-body{max-height:none}
.about-toggle:checked~.about-body::after{display:none}
.about-btn{display:inline-flex;margin-top:12px;font-weight:600;color:var(--red-ink);cursor:pointer;border:1px solid var(--line);border-radius:var(--r);padding:8px 16px}
.about-btn::before{content:"Xem thêm"}
.about-toggle:checked~.about-btn::before{content:"Thu gọn"}
.about-btn:hover{border-color:var(--red)}
.about-toggle:focus-visible~.about-btn{outline:2px solid var(--ink);outline-offset:2px}

/* dải tư vấn cuối trang */
.band{display:flex;align-items:center;justify-content:space-between;gap:24px 32px;padding:40px 48px;border-radius:var(--r);background:var(--ink);color:#fff}
.band h2{margin:0 0 6px;font-size:26px;line-height:1.25;letter-spacing:-.01em}
.band p{margin:0;color:#d4d4d4;font-size:15px}
.band .tel{display:inline-flex;align-items:center;gap:10px;font-size:30px;font-weight:700;letter-spacing:.5px;color:#fff;white-space:nowrap}
.band .tel:hover{color:var(--yellow)}
.band .tel svg{color:var(--yellow)}
.band .tel:focus-visible{outline-color:var(--yellow)}

@media (max-width:1100px){
	.htc-products{grid-template-columns:repeat(3,minmax(0,1fr))}
	.hero{grid-template-columns:1fr}
	.hero-card{flex-direction:row}
	.hero-img{flex:0 0 42%;aspect-ratio:auto;border-bottom:0;border-right:1px solid #f0f0f0}
	.trust{grid-template-columns:repeat(2,minmax(0,1fr))}
	.trust li:nth-child(3){border-left:0}
	.trust li:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (max-width:860px){
	.cats{grid-template-columns:repeat(2,minmax(0,1fr))}
	.cat-big{grid-column:span 2}
	.rows{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
	.sec{margin-top:40px}
	.sec-h{flex-direction:column;align-items:flex-start;gap:10px}
	.sec-h h2{font-size:22px}
	.chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
	.chip{white-space:nowrap}
	.hero{margin-top:16px;gap:14px}
	.hero-text{padding:24px 20px}
	.hero h1{font-size:28px}
	.hero-card{flex-direction:column}
	.hero-img{flex:none;aspect-ratio:4/3;border-right:0;border-bottom:1px solid #f0f0f0}
	.brands{flex-direction:column;align-items:flex-start;gap:10px}
	.brands ul{gap:8px;flex-wrap:nowrap}
	.brands a{padding:7px 12px}
	.brands a span::after{content:""}
	.trust{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
	.trust::-webkit-scrollbar{display:none}
	.trust li{flex:0 0 78%;scroll-snap-align:start;border-top:0!important;border-left:1px solid var(--line)}
	.trust li:first-child{border-left:0}
	.cat-big{gap:14px;padding:12px}
	.cat-img{width:42%}
	.cat-info b{font-size:17px}
	.cats{gap:12px}
	.htc-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
	.prow-img{width:84px}
	.prow-name{-webkit-line-clamp:3}
	.newslist li{flex-direction:column;gap:2px}
	.newslist time{width:auto}
	.store{padding:22px 20px}
	.store dl div{flex-direction:column;gap:0}
	.store-cta{width:100%}
	.store-cta .btn{flex:1 1 100%}
}

@media (max-width:640px){
	.band{flex-direction:column;align-items:flex-start;padding:28px 22px}
	.band h2{font-size:22px}
	.band .tel{font-size:26px}
}
