/* BanWeb.vn – các trang */

/* ---------- Khối chung ---------- */
.sec { padding: 84px 0; }
.sec--tight { padding: 56px 0 64px; }
.sec--soft { background: var(--soft); }
.sec--ink { background: var(--ink); color: #C3CBE0; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--ink .kicker { color: #8FA8FF; }
.sec__head { margin-bottom: 36px; max-width: 760px; }
.sec__head p:last-child { color: var(--muted); margin: 0; }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec__head--row h2 { margin: 0; }
.sec__head--center { text-align: center; margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: 600 13.5px var(--f-head); color: var(--ink-2); box-shadow: var(--shadow); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(14, 159, 92, .15); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { flex-shrink: 0; color: var(--ok); margin-top: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 80px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 40px 40px; opacity: .55;
	mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 20%, transparent 75%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero__facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero__facts b { display: block; font: 800 26px/1.2 var(--f-head); color: var(--ink); letter-spacing: -.02em; }
.hero__facts span { font-size: 14px; color: var(--muted); }
.hero__show { position: relative; min-height: 470px; }
.hero__win { position: absolute; }
.hero__win--0 { top: 0; right: 0; width: 92%; box-shadow: var(--shadow-lg); }
.hero__win--1 { left: 0; bottom: 0; width: 46%; z-index: 2; box-shadow: var(--shadow-lg); }
.hero__win--1 .browser__view { aspect-ratio: 4 / 5; }
.autoscroll { animation: bw-scroll 16s ease-in-out infinite alternate; }
.hero__win--1 .autoscroll { animation-duration: 12s; animation-delay: -4s; }
@keyframes bw-scroll { 0%, 12% { object-position: 50% 0; } 88%, 100% { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .autoscroll { animation: none; } }
.hero__chip { position: absolute; right: 18px; bottom: 36px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 99px; font: 600 13px var(--f-head); box-shadow: var(--shadow-lg); }
@media (max-width: 1024px) {
	.hero__in { gap: 32px; }
	.hero__show { min-height: 380px; }
}
@media (max-width: 860px) {
	.hero { padding: 40px 0 56px; }
	.hero__in { grid-template-columns: minmax(0, 1fr); }
	.hero__show { min-height: 0; aspect-ratio: 5 / 4; }
}
@media (max-width: 480px) {
	.hero__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
	.hero__facts b { font-size: 20px; }
	.hero__facts span { font-size: 12.5px; line-height: 1.35; display: block; }
	.hero__btns .btn { flex: 1 1 100%; }
	.hero__chip { display: none; }
}

/* ---------- Nhóm ngành ---------- */
.inds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ind { display: grid; gap: 4px; padding: 18px; height: 100%; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s, transform .18s; }
.ind:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.ind__ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 10px; background: var(--blue-t); color: var(--blue); }
.ind b { font: 700 16px/1.3 var(--f-head); }
.ind__n { font-size: 14px; color: var(--muted); }

/* ---------- Lưới mẫu ---------- */
.woocommerce ul.products, ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products[class*="columns-"] li.product, ul.products li.product { width: auto; float: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 640px) { ul.products, .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); } }

.tpl-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.tpl-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); transform: translateY(-3px); }
.tpl-card__shot { box-shadow: none; }
.tpl-card .badge { position: absolute; top: 40px; left: 10px; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 12px var(--f-head); }
.tpl-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 6px; }
.tpl-card__meta { margin: 0 0 6px; font: 600 13px var(--f-head); color: var(--blue); }
.tpl-card__title { margin: 0 0 6px; font-size: 20px; }
.tpl-card__title a { color: var(--ink); }
.tpl-card__title a:hover { color: var(--blue); }
.tpl-card__style { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; }
.tpl-card__spec { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.tpl-card__font { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.swatches { display: inline-flex; flex-shrink: 0; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); margin-left: -5px; }
.swatches i:first-child { margin-left: 0; }
.swatches--lg i { width: 26px; height: 26px; margin-left: -6px; }
.tpl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.tpl-card__foot .price { font: 800 17px var(--f-head); color: var(--ink); }
.tpl-card__btns { display: flex; gap: 8px; }
.price-from { font: 600 13px var(--f-body); color: var(--muted); }
.price .woocommerce-Price-currencySymbol { font-size: .85em; }
.price ins { text-decoration: none; }

/* ---------- Tính năng / quy trình / gói / hỏi đáp ---------- */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feat { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.feat:nth-child(4n) { border-right: 0; }
.feat:nth-last-child(-n+4) { border-bottom: 0; }
.feat__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px; background: var(--blue-t); color: var(--blue); }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 1024px) {
	.feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feat:nth-child(4n) { border-right: 1px solid var(--line); }
	.feat:nth-child(2n) { border-right: 0; }
	.feat:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
	.feat:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
	.feats { grid-template-columns: minmax(0, 1fr); }
	.feat, .feat:nth-child(4n) { border-right: 0; }
	.feat:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
	.feat:last-child { border-bottom: 0; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before { content: ""; position: absolute; top: 21px; left: 52px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, #3B4A70 0 8px, transparent 8px 14px); }
.steps li:last-child::before { display: none; }
.steps__n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font: 800 18px var(--f-head); }
.steps h3 { font-size: 19px; }
.steps p { margin: 0; font-size: 15px; }
@media (max-width: 860px) {
	.steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.steps li { padding: 0 0 28px 66px; min-height: 72px; }
	.steps li::before { top: 52px; bottom: 6px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #3B4A70 0 8px, transparent 8px 14px); }
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.plan--nang-cao { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan__tag { position: absolute; top: -13px; right: 24px; padding: 4px 12px; border-radius: 99px; background: var(--blue); color: #fff; font: 700 12.5px var(--f-head); }
.plan__for { color: var(--muted); font-size: 15px; min-height: 3.2em; }
.plan__price { margin: 10px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font: 800 34px/1.1 var(--f-head); letter-spacing: -.02em; }
.plan__price span { font: 600 15px var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin-bottom: 26px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plans__note { max-width: 980px; margin: 20px auto 0; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan { padding: 24px 20px; } }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; font: 700 16px/1.4 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq__ic { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--blue); transition: transform .2s; }
.faq details[open] .faq__ic { transform: rotate(45deg); }
.faq__a { padding: 0 20px 4px; color: var(--muted); }

/* ---------- Đầu trang con / kho mẫu ---------- */
.page-head { padding: 34px 0 40px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 8px 0 10px; font-size: clamp(28px, 3.6vw, 42px); }
.page-head .lead { margin: 0; }
.woocommerce-breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-breadcrumb a:hover { color: var(--blue); }
.woocommerce-breadcrumb .sep { margin: 0 8px; color: var(--line-2); }
.chips { margin-top: 22px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font: 600 14px var(--f-head); color: var(--ink-2); }
.chip span { font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: #AEB8D0; }
.shop-wrap { padding: 28px 0 80px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.shop-toolbar::before, .shop-toolbar::after { display: none; }
.woocommerce .woocommerce-result-count, .woocommerce-result-count { margin: 0; float: none; color: var(--muted); font-size: 15px; }
.woocommerce .woocommerce-ordering, .woocommerce-ordering { margin: 0; float: none; }
.woocommerce-ordering select { width: auto; min-width: 200px; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 40px 0 0; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line-2) !important; border-radius: 8px; }
.woocommerce-pagination .current { background: var(--ink) !important; color: #fff !important; }
@media (max-width: 560px) {
	.chips ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -20px; scrollbar-width: none; }
	.chips li { flex-shrink: 0; }
	.shop-toolbar { flex-direction: column; align-items: stretch; }
	.woocommerce-ordering select { width: 100%; }
}

/* ---------- Chi tiết mẫu ---------- */
.single-wrap { padding: 24px 0 72px; }
.single-wrap > .woocommerce-breadcrumb { margin-bottom: 18px; }
.tpl-single__top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.browser--tall .browser__view { aspect-ratio: auto; height: min(640px, 70vh); }
.browser--tall .scrollshot { transition-duration: 9s; }
.tpl-single__hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tpl-single__summary h1 { font-size: clamp(28px, 3vw, 38px); margin: 4px 0 10px; }
.tpl-single__style { color: var(--muted); font-size: 16px; }
.tpl-single__spec { display: grid; gap: 10px; margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.tpl-single__spec > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.tpl-single__spec span { color: var(--muted); }
.tpl-single__spec b { font: 700 15px var(--f-head); text-align: right; }
.tpl-single__demo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tpl-single__demo .btn { flex: 1; }
.devices { display: inline-flex; gap: 6px; color: var(--muted); }
.buy-box { padding: 20px; border: 2px solid var(--ink); border-radius: 14px; }
.buy-box__price { margin: 0 0 10px; font: 800 28px var(--f-head); letter-spacing: -.02em; }
.buy-box__note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.buy-box form.cart { margin: 0 !important; }
.buy-box form.cart::before, .buy-box form.cart::after, .buy-box .woocommerce-variation-add-to-cart::before, .buy-box .woocommerce-variation-add-to-cart::after { display: none !important; }
.buy-box table.variations { width: 100%; margin: 0 0 6px !important; border: 0; }
.buy-box table.variations th, .buy-box table.variations td { display: block; padding: 0 !important; border: 0; text-align: left; background: none; }
.buy-box table.variations th label { font: 700 14px var(--f-head); }
.buy-box table.variations td { margin: 6px 0 4px; }
.buy-box .woocommerce-variation { margin: 8px 0 12px; }
.buy-box .woocommerce-variation-description p { margin: 0 0 6px; font-size: 14.5px; color: var(--muted); }
.buy-box .woocommerce-variation-price .price { font: 800 22px var(--f-head); color: var(--blue); }
.buy-box .single_add_to_cart_button { width: 100%; min-height: 52px; font-size: 16px !important; }
.buy-box .woocommerce-variation-add-to-cart { display: block; }
.buy-box .quantity { display: none !important; }
.single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; }
.buy-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 14px 0; }
.buy-extra .btn { white-space: normal; font-size: 14px; }
.promise { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.promise li { display: flex; gap: 10px; align-items: flex-start; }
.promise .ic { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 960px) {
	.tpl-single__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.browser--tall .browser__view { height: 420px; }
}
@media (max-width: 420px) { .buy-extra { grid-template-columns: minmax(0, 1fr); } }

/* Nút chọn gói (LTV Commerce swatch) – đè kiểu mặc định cho đúng theme */
.buy-box .ltv-swatches, .buy-box [class*="swatch"] ul { gap: 8px; }

/* Tab */
.woocommerce-tabs { margin-top: 64px; }
.woocommerce div.product .woocommerce-tabs ul.tabs, .woocommerce-tabs ul.tabs { display: flex; gap: 4px; margin: 0 0 28px !important; padding: 0 !important; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li, .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; flex-shrink: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a, .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 16px !important; font: 700 15.5px var(--f-head) !important; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li.active a { color: var(--blue) !important; border-bottom-color: var(--blue); }
.woocommerce-Tabs-panel { max-width: 900px; }
.woocommerce-Tabs-panel h2:first-child { display: none; }
.feat-tab { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.page-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.page-list li::marker { color: var(--blue); font-weight: 700; }
@media (max-width: 760px) { .feat-tab { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Đánh giá */
#reviews .woocommerce-Reviews-title, #reviews h2 { font-size: 22px; }
#reviews ol.commentlist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
#reviews ol.commentlist li .comment_container { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
#reviews ol.commentlist li img.avatar { position: static !important; float: left; width: 40px !important; margin-right: 12px; border-radius: 50%; border: 0 !important; padding: 0 !important; }
#reviews ol.commentlist li .comment-text { margin: 0 !important; border: 0 !important; padding: 0 !important; }
#review_form_wrapper { max-width: 680px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
#review_form .comment-reply-title { display: block; font: 800 19px var(--f-head); margin-bottom: 8px; }
#review_form p { margin: 0 0 14px; }
#review_form label { display: block; margin-bottom: 6px; }
#review_form .comment-form-rating label { margin-bottom: 4px; }
#review_form p.stars { margin: 0 !important; }
#review_form p.stars a { color: #F5A524; font-size: 22px; width: 1.3em; }
#review_form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
#review_form .comment-form-cookies-consent label { font-weight: 500; font-family: var(--f-body); }
#review_form .form-submit .btn, #review_form .form-submit input[type="submit"] { min-height: 48px; padding: 10px 24px; border: 0; border-radius: var(--r-sm); background: var(--blue); color: #fff; font: 700 15px var(--f-head); cursor: pointer; }
.woocommerce .star-rating span::before, .star-rating span::before { color: #F5A524; }

/* Form chọn mẫu dưới trang chi tiết */
.lead-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; margin: 72px 0 0; padding: 40px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.lead-sec h2 { font-size: clamp(22px, 2.4vw, 30px); }
.lead-sec p { color: var(--muted); }
@media (max-width: 860px) { .lead-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 18px; } }
.related.products { margin-top: 72px; }
.related.products > h2 { margin-bottom: 24px; }

/* ---------- Form chọn mẫu ---------- */
.lead-form { padding: 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lead-form__title { font-size: 20px; }
.lead-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.lead-form .field { margin: 0 0 14px; }
.lead-form .field--wide { grid-column: 1 / -1; }
.lead-form label { display: block; margin-bottom: 6px; }
.lead-form__fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .lead-form { padding: 18px 16px; } .lead-form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Liên hệ ---------- */
.contact { padding: 40px 0 80px; }
.contact__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.qcard { display: grid; gap: 2px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); background: #fff; }
a.qcard:hover { border-color: var(--blue); color: var(--ink); box-shadow: var(--shadow); }
.qcard__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 10px; background: var(--blue-t); color: var(--blue); font: 800 12px var(--f-head); }
.qcard__ic--zalo { background: var(--zalo); color: #fff; }
.qcard b { font: 700 16px var(--f-head); }
.qcard span:last-child { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.contact__main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact__form > p { color: var(--muted); }
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.map__fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14.5px; border-top: 1px solid var(--line); background: #fff; }
.map__fallback .ic { color: var(--blue); }
.map__fallback a { margin-left: auto; font-weight: 700; }
.contact__side .prose { margin-bottom: 20px; }
.contact__faq { max-width: 860px; margin: 64px 0 0; }
@media (max-width: 960px) {
	.contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact__main { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Bảng giá từng mẫu ---------- */
.price-table-sec { margin: 72px 0 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table thead th { background: var(--soft); font: 700 13px var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th a { font: 700 15.5px var(--f-head); color: var(--ink); }
.price-table td:nth-child(3), .price-table td:nth-child(4) { font: 700 15px var(--f-head); }
.prose--note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* ---------- Bài viết / trang thường ---------- */
.prose-wrap { padding: 44px 0 72px; }
.prose { max-width: 760px; font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--blue); background: var(--soft); border-radius: 0 var(--r) var(--r) 0; }
.post-hero { margin: 0 0 28px; max-width: 900px; border-radius: 14px; overflow: hidden; }
.posts-wrap { padding: 40px 0 72px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { display: grid; place-items: center; height: 100%; color: #9DB2FF; background: linear-gradient(135deg, var(--soft), var(--blue-t)); }
.post-card__body { padding: 18px 20px 22px; }
.post-card__meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.post-card h2 { font-size: 19px; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--blue); }
.post-card p:last-child { margin: 0; font-size: 15px; color: var(--muted); }
.post-card--lead { grid-column: 1 / -1; flex-direction: row; }
.post-card--lead .post-card__img { flex: 1.2; aspect-ratio: auto; min-height: 280px; }
.post-card--lead .post-card__body { flex: 1; padding: 32px; align-self: center; }
.post-card--lead h2 { font-size: 26px; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.posts { grid-template-columns: minmax(0, 1fr); }
	.post-card--lead { flex-direction: column; }
	.post-card--lead .post-card__img { min-height: 0; aspect-ratio: 16 / 9; }
	.post-card--lead .post-card__body { padding: 18px 20px 22px; }
}
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; }

/* ---------- 404 ---------- */
.e404 { padding: 72px 0 96px; background: var(--soft); }
.e404__win { max-width: 720px; margin: 0 auto; }
.e404__body { padding: 48px 32px; text-align: center; }
.e404__btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0; }

/* ---------- Trang xem thử (demo) ---------- */
.demo-body { background: #E9EDF6; overflow: hidden; }
.demo { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.demo-bar { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.demo-bar__back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--soft); flex-shrink: 0; }
.demo-bar__name { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.demo-bar__switch { width: auto; max-width: 280px; min-height: 40px; padding: 6px 34px 6px 12px; font: 700 15px var(--f-head); }
.demo-bar__price { font: 700 15px var(--f-head); white-space: nowrap; }
.demo-bar__devices { display: flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 10px; }
.demo-bar__devices button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 13.5px var(--f-head); cursor: pointer; }
.demo-bar__devices button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.demo-bar__act { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.demo-bar__ext { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font: 600 14px var(--f-head); color: var(--ink-2); white-space: nowrap; }
.demo-bar__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--ink-2); }
.demo-bar__close:hover { background: var(--soft); }
.demo-stage { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: 0; overflow: auto; }
.demo-frame { width: 100%; height: 100%; background: #fff; transition: width .3s ease, height .3s ease; }
.demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; max-width: none; }
.demo[data-device="tablet"] .demo-stage, .demo[data-device="mobile"] .demo-stage { padding: 20px; align-items: flex-start; }
.demo[data-device="tablet"] .demo-frame { width: 820px; height: min(1100px, 100%); border-radius: 22px; border: 12px solid #141B2E; box-shadow: var(--shadow-lg); overflow: hidden; flex-shrink: 0; }
.demo[data-device="mobile"] .demo-frame { width: 399px; height: min(820px, 100%); border-radius: 34px; border: 12px solid #141B2E; box-shadow: var(--shadow-lg); overflow: hidden; flex-shrink: 0; }
@media (max-width: 1100px) {
	.demo-bar__devices span, .demo-bar__ext span, .demo-bar__price { display: none; }
}
@media (max-width: 760px) {
	.demo-bar { gap: 8px; padding: 0 10px; }
	.demo-bar__devices, .demo-bar__ext { display: none; }
	.demo-bar__switch { max-width: 100%; }
	.demo-bar__name { flex: 1; }
	.demo-bar__act { flex: 0 0 auto; }
}

/* Hộp "Chọn mẫu này" */
.pick { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 28px; border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); overflow-y: auto; }
.pick::backdrop { background: rgba(15, 26, 51, .55); }
.pick h2 { font-size: 24px; margin-bottom: 16px; padding-right: 30px; }
.pick__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--soft); cursor: pointer; }
.pick__ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pick__way { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); }
.pick__way:hover { border-color: var(--blue); color: var(--ink); }
.pick__way .ic { color: var(--blue); margin-bottom: 4px; }
.pick__way b { font: 700 16px var(--f-head); }
.pick__way span { font-size: 14px; color: var(--muted); }
.pick__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 14px; color: var(--muted); }
.pick__or::before, .pick__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pick .lead-form { padding: 0; border: 0; box-shadow: none; }
@media (max-width: 480px) { .pick { padding: 22px 16px; } .pick__ways { grid-template-columns: minmax(0, 1fr); } }

/* Trang hoàn tất – bước tiếp theo */
.next-steps { margin: 0 0 32px; padding: 26px; border: 2px solid var(--blue); border-radius: 16px; background: var(--soft); }
.next-steps h2 { font-size: 22px; }
.next-steps ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.next-steps__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.table-scroll { position: relative; }
@media (max-width: 640px) {
	.price-table { min-width: 0; }
	.price-table thead { display: none; }
	.price-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
	.price-table tbody tr:last-child { border-bottom: 0; }
	.price-table th, .price-table td { padding: 0; border: 0; white-space: normal; }
	.price-table th[scope="row"], .price-table td:nth-child(2), .price-table td:last-child { grid-column: 1 / -1; }
	.price-table td:nth-child(2) { color: var(--muted); font-size: 14px; }
	.price-table td:nth-child(3)::before { content: "Cơ bản "; display: block; font: 500 12.5px var(--f-body); color: var(--muted); }
	.price-table td:nth-child(4)::before { content: "Nâng cao "; display: block; font: 500 12.5px var(--f-body); color: var(--muted); }
}

/* Chi tiết mẫu: gỡ độ rộng 48% / float của WooCommerce cho cột tóm tắt */
.woocommerce div.product .tpl-single__summary.summary, .tpl-single__summary.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product .tpl-single__summary p.price, .woocommerce div.product .tpl-single__summary span.price { color: var(--ink); }
.woocommerce div.product .buy-box .woocommerce-variation-price .price { color: var(--blue); }
.woocommerce .buy-box .single_add_to_cart_button.button.alt, .buy-box .single_add_to_cart_button {
	float: none; width: 100%; min-height: 52px; padding: 12px 20px; border: 0; border-radius: var(--r-sm);
	background: var(--blue) !important; color: #fff !important; font: 700 16px var(--f-head) !important; box-shadow: 0 6px 16px -8px rgba(36, 84, 255, .7);
}
.woocommerce .buy-box .single_add_to_cart_button.button.alt:hover { background: var(--blue-d) !important; }
.woocommerce .buy-box .single_add_to_cart_button.disabled { opacity: .5; }
/* Nút chọn gói (swatch nhãn của LTV Commerce) */
.buy-box .variations_form .tawcvs-swatches { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 0; width: 100%; }
.buy-box .variations_form .tawcvs-swatches .swatch-item-wrapper { margin: 0; }
.buy-box .variations_form .tawcvs-swatches .swatch {
	width: 100% !important; height: 46px !important; margin: 0 !important; padding: 0 12px !important; line-height: 1.2 !important;
	border: 1.5px solid var(--line-2) !important; border-radius: var(--r-sm) !important; background: #fff !important; box-shadow: none !important;
	font: 700 15px var(--f-head) !important; color: var(--ink) !important; opacity: 1 !important;
}
.buy-box .variations_form .tawcvs-swatches .swatch:hover { border-color: var(--blue) !important; }
.buy-box .variations_form .tawcvs-swatches .swatch.selected { border-color: var(--blue) !important; background: var(--blue-t) !important; color: var(--blue-d) !important; box-shadow: inset 0 0 0 1px var(--blue) !important; }
.buy-box .variations_form .tawcvs-swatches .swatch::before, .buy-box .variations_form .tawcvs-swatches .swatch::after { display: none !important; }
.woocommerce #review_form #respond input#submit, #review_form input#submit { min-height: 48px; padding: 10px 24px; border: 0; border-radius: var(--r-sm); background: var(--blue) !important; color: #fff !important; font: 700 15px var(--f-head); }
.woocommerce #review_form #respond input#submit:hover { background: var(--blue-d) !important; }
#review_form .comment-notes { font-size: 14px; color: var(--muted); }
.woocommerce ul.products li.product .tpl-card__foot .price, .tpl-card__foot .price { color: var(--ink); margin: 0; font: 800 17px var(--f-head); }
.woocommerce ul.products li.product .price .price-from { font: 600 13px var(--f-body); color: var(--muted); }

/* ===== Kho nhiều ngành (bản 1.1) ===== */

/* Ô "Bạn kinh doanh gì?" */
.finder { position: relative; margin: 28px 0 30px; max-width: 560px; }
.finder__box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.finder__box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 84, 255, .14); }
.finder__box > .ic { color: var(--muted); }
.finder__box input[type="search"] { flex: 1; min-width: 0; min-height: 46px; border: 0; padding: 0 4px; box-shadow: none !important; font-size: 16.5px; background: transparent; }
.finder__box input[type="search"]::-webkit-search-cancel-button { display: none; }
.finder__box .btn { flex-shrink: 0; }
.finder__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); }
.finder__list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.finder__list li.is-active a, .finder__list a:hover { background: var(--soft); color: var(--ink); }
.finder__list b { font: 700 15px var(--f-head); }
.finder__list span { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.finder__hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.finder__hint a { margin-right: 6px; font-weight: 600; }
@media (max-width: 480px) {
	.finder__box { flex-wrap: wrap; padding: 6px; }
	.finder__box > .ic { margin-left: 8px; }
	.finder__box input[type="search"] { flex: 1 1 calc(100% - 40px); }
	.finder__box .btn { flex: 1 1 100%; }
	.finder__list span { display: none; }
}

/* Mega menu ngành */
.nav { display: flex; align-items: center; gap: 4px; }
.mega { position: relative; }
.mega__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; font: 600 15px/1.2 var(--f-head); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.mega__btn .ic { transform: rotate(90deg); transition: transform .18s; }
.mega.is-open .mega__btn, .mega__btn:hover { background: var(--soft); color: var(--blue); }
.mega.is-open .mega__btn .ic { transform: rotate(-90deg); }
.mega__panel { position: absolute; top: calc(100% + 12px); left: -12px; z-index: 70; width: min(880px, calc(100vw - 40px)); padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.mega__panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.mega__group { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 15px var(--f-head); color: var(--ink); }
.mega__group .ic { color: var(--blue); }
.mega__col ul { list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 4px; }
.mega__col li a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14.5px; color: var(--muted); }
.mega__col li a:hover { color: var(--blue); }
.mega__col em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 1px 7px; align-self: center; }
.mega__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; font: 700 14.5px var(--f-head); }
@media (max-width: 960px) {
	.nav { flex-direction: column; align-items: stretch; }
	.mega { order: 2; margin-top: 8px; }
	.mega__btn { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 17px; }
	.mega__panel { position: static; width: auto; padding: 8px 0 0; border: 0; box-shadow: none; }
	.mega__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.mega__col ul { padding-left: 26px; }
}

/* Mẫu theo ngành (trang chủ) */
.inds { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
li.ind { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
li.ind:hover { transform: none; }
.ind__head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 18px 18px 14px; color: var(--ink); }
.ind__head:hover { color: var(--blue); }
.ind__head .ind__ic { grid-row: 1 / 3; margin: 0; }
.ind__head b { font: 700 16px/1.3 var(--f-head); }
.ind__subs { list-style: none; margin: 0; padding: 4px 18px 14px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; }
.ind__subs a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: var(--soft); font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.ind__subs a:hover { background: var(--blue-t); color: var(--blue-d); }
.ind__subs em { font-style: normal; font-size: 12px; color: var(--muted); }

/* Kho mẫu: bộ lọc trái + lưới */
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-head__count { margin: 0 0 4px; flex-shrink: 0; font-size: 15px; color: var(--muted); }
.page-head__count b { font: 800 30px var(--f-head); color: var(--ink); margin-right: 4px; }
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-layout .woocommerce ul.products, .shop-layout ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1240px) { .shop-layout ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.filters { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.filters__toggle { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font: 700 15px var(--f-head); cursor: pointer; list-style: none; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__toggle .ic { color: var(--blue); }
.filters__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12px; }
.filters__form { padding: 0 16px 16px; }
.filters__group { margin: 0; padding: 14px 0 10px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.filters__group legend { padding: 0; margin-bottom: 8px; font: 700 13px var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.filters__opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font: 500 14.5px var(--f-body); color: var(--ink-2); cursor: pointer; }
.filters__opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.filters__opt span { flex: 1; min-width: 0; }
.filters__opt em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.filters__opt i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); flex-shrink: 0; }
.filters__btns { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters__btns .btn { flex: 1; }
@media (min-width: 961px) {
	.shop-layout__side { position: sticky; top: calc(var(--hh) + 16px); max-height: calc(100vh - var(--hh) - 32px); overflow-y: auto; scrollbar-width: thin; }
	.filters__toggle { pointer-events: none; }
	.filters:not([open]) > .filters__form { display: block; }
}
@media (max-width: 960px) {
	.shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.page-head__row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 640px) { .shop-layout ul.products { grid-template-columns: minmax(0, 1fr); } }
.empty-filter { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; background: var(--soft); }
.empty-filter p:last-child { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0; }

/* Nút So sánh trên thẻ */
.compare-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: 600 13px var(--f-head); }
.compare-toggle--card { position: absolute; top: 40px; right: 10px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(255, 255, 255, .95); color: var(--ink-2); opacity: 0; transition: opacity .18s; }
.tpl-card:hover .compare-toggle--card, .compare-toggle--card:focus-visible, .compare-toggle--card.is-on { opacity: 1; }
.compare-toggle.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.compare-toggle.is-on .ic { transform: rotate(45deg); }
@media (hover: none) { .compare-toggle--card { opacity: 1; } }
.buy-extra .compare-toggle--single { grid-column: 1 / -1; }

/* Thanh so sánh nổi */
.compare-bar { position: fixed; left: 50%; bottom: 16px; z-index: 45; transform: translateX(-50%); width: min(760px, calc(100vw - 100px)); background: var(--ink); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
.compare-bar__in { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; }
.compare-bar__list { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.compare-bar__list > span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 4px 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13px; white-space: nowrap; }
.compare-bar__list button { width: 22px; height: 22px; border: 0; border-radius: 5px; background: transparent; color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.compare-bar__n { font: 700 13px var(--f-head); color: #AEB8D0; flex-shrink: 0; }
.compare-bar__tip { font-size: 13px; color: #AEB8D0; flex-shrink: 0; }
.has-compare-bar .site-footer { padding-bottom: 80px; }
@media (max-width: 560px) {
	.compare-bar { left: 12px; right: 76px; bottom: 12px; transform: none; width: auto; }
	.compare-bar__in { flex-wrap: wrap; gap: 8px; padding: 10px; }
	.compare-bar__list { flex: 1 1 100%; }
	.compare-bar .btn { flex: 1; }
}

/* Trang so sánh */
.compare-wrap { padding: 32px 0 72px; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: calc(160px + var(--n) * 240px); font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; white-space: normal; }
.compare-table thead th { background: #fff; }
.compare-table tbody th, .compare-table thead th:first-child { width: 160px; background: var(--soft); font: 700 13.5px var(--f-head); color: var(--muted); }
.compare-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.compare-table .ticks { gap: 6px; font-size: 13.5px; }
.compare-shot { display: block; margin-bottom: 10px; }
.compare-shot .browser__bar { height: 22px; }
.compare-name { display: block; font: 800 17px/1.35 var(--f-head); color: var(--ink); }
.compare-remove { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.compare-actions .btn { margin: 0 6px 6px 0; }
@media (max-width: 640px) { .compare-table { min-width: calc(110px + var(--n) * 200px); } .compare-table tbody th, .compare-table thead th:first-child { width: 110px; } }

/* ===== Nút đổi bố cục (cả 2 bố cục) ===== */
.layout-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.layout-switch__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 7px; color: var(--muted); font: 600 13px var(--f-head); white-space: nowrap; }
.layout-switch__btn:hover { color: var(--blue); }
.layout-switch__btn.is-on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(15, 26, 51, .12); }
.layout-switch--head .layout-switch__btn span { display: none; }
.layout-switch--drawer { display: none; width: 100%; }
.layout-switch--drawer .layout-switch__btn { flex: 1; justify-content: center; height: 40px; font-size: 14px; }
@media (max-width: 960px) {
	.layout-switch--head { display: none; }
	.layout-switch--drawer { display: flex; }
}

/* ===== Bố cục "Kho mẫu": toàn màn hình, tìm kiếm cạnh logo ===== */
.layout-rong .wrap { width: calc(100% - 48px); max-width: none; }
.layout-rong .site-header__in { gap: 18px; }
.layout-rong .nav { flex: 0 0 auto; }
.finder--head { flex: 1 1 auto; max-width: 640px; min-width: 0; margin: 0; }
.finder--head .finder__box { padding: 0 12px; gap: 8px; border-width: 1px; border-radius: 10px; background: var(--soft); box-shadow: none; }
.finder--head .finder__box:focus-within { background: #fff; }
.finder--head .finder__box input[type="search"] { min-height: 42px; font-size: 15px; }
.finder--head .finder__list { max-height: min(70vh, 460px); overflow-y: auto; }
.layout-rong .tools { margin-left: auto; }
.layout-rong .tools__cta { display: none; }
@media (min-width: 961px) {
	.layout-rong .nav__list .mi-kho-mau, .layout-rong .nav__list .mi-gioi-thieu, .layout-rong .nav__list .mi-kien-thuc { display: none; }
}
@media (max-width: 1500px) { .layout-rong .tools__phone span { display: none; } }
@media (max-width: 960px) {
	.layout-rong .wrap { width: calc(100% - 32px); }
	.layout-rong .site-header__in { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
	.layout-rong .finder--head { order: 5; flex: 1 1 100%; max-width: none; }
	.layout-rong { scroll-padding-top: 150px; }
}
/* Đầu trang kho gọn */
.layout-rong .page-head { padding: 18px 0 20px; }
.layout-rong .page-head h1 { font-size: clamp(24px, 2.4vw, 32px); margin: 4px 0 6px; }
.layout-rong .page-head .lead { font-size: 15.5px; }
.layout-rong .chips { margin-top: 14px; }
.page-head__compare { flex-shrink: 0; }
/* Lưới tự giãn theo bề rộng màn hình */
.layout-rong .shop-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
.layout-rong .shop-layout ul.products { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.layout-rong .shop-wrap { padding-top: 20px; }
@media (max-width: 960px) { .layout-rong .shop-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .layout-rong .shop-layout ul.products { grid-template-columns: minmax(0, 1fr); } }
/* Bộ lọc dạng viên (như bản phác): phong cách, chức năng */
.layout-rong .filters__group--phong-cach, .layout-rong .filters__group--chuc-nang { display: flex; flex-wrap: wrap; gap: 6px; }
.layout-rong .filters__group--phong-cach legend, .layout-rong .filters__group--chuc-nang legend { width: 100%; }
.layout-rong .filters__group--phong-cach .filters__opt, .layout-rong .filters__group--chuc-nang .filters__opt { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13.5px; gap: 5px; }
.layout-rong .filters__group--phong-cach .filters__opt input, .layout-rong .filters__group--chuc-nang .filters__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.layout-rong .filters__group--phong-cach .filters__opt span, .layout-rong .filters__group--chuc-nang .filters__opt span { flex: none; }
.layout-rong .filters__opt:has(input:checked) { background: var(--blue-t); border-color: var(--blue); color: var(--blue-d); }
.layout-rong .filters__opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Màu: chấm tròn */
.layout-rong .filters__group--mau-chu-dao { display: flex; flex-wrap: wrap; gap: 8px; }
.layout-rong .filters__group--mau-chu-dao legend { width: 100%; }
.layout-rong .filters__group--mau-chu-dao .filters__opt { padding: 0; }
.layout-rong .filters__group--mau-chu-dao .filters__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.layout-rong .filters__group--mau-chu-dao .filters__opt span, .layout-rong .filters__group--mau-chu-dao .filters__opt em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.layout-rong .filters__group--mau-chu-dao .filters__opt i { width: 26px; height: 26px; box-shadow: 0 0 0 1px var(--line-2); }
.layout-rong .filters__group--mau-chu-dao .filters__opt:has(input:checked) i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.layout-rong .filters__group--mau-chu-dao .filters__opt:has(input:focus-visible) i { outline: 2px solid var(--blue); outline-offset: 3px; }
.kho-more { margin: 28px 0 0; text-align: center; }
/* Chi tiết mẫu, trang khác ở bố cục rộng: giữ nội dung đọc dễ */
.layout-rong .prose-wrap .prose { max-width: 820px; }
.layout-rong .single-wrap { max-width: 1600px; margin-inline: auto; }
@media (max-width: 560px) { .layout-rong .chips ul { margin-right: -16px; } }

/* ===== Kiến thức: khối khóa học Quản trị website ===== */
.learn { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin-top: 40px; padding: 36px; border-radius: 20px; background: linear-gradient(135deg, var(--soft), var(--blue-t)); border: 1px solid var(--line); }
.learn h2 { font-size: clamp(22px, 2.4vw, 30px); }
.learn__text > p { color: var(--muted); }
.learn__topics { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: 14.5px; color: var(--ink-2); }
.learn__topics li { display: flex; gap: 10px; align-items: baseline; }
.learn__topics span { flex-shrink: 0; font: 800 12px var(--f-head); color: var(--blue); }
.learn__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.learn__win { display: block; color: var(--ink); box-shadow: var(--shadow-lg); transition: transform .25s; }
.learn__win:hover { transform: translateY(-4px); color: var(--ink); }
.learn__lessons { display: grid; gap: 8px; padding: 16px; }
.learn__lesson { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.learn__lesson em { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font: 700 12px var(--f-head); font-style: normal; color: var(--muted); }
.learn__lesson.is-done em { background: var(--ok); color: #fff; }
.learn__lesson b { font: 600 14px var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.learn__lesson small { font-size: 12.5px; color: var(--muted); }
.learn__progress { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.learn__progress i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.posts-wrap__t { font-size: 22px; margin-bottom: 18px; }
@media (max-width: 900px) { .learn { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 24px; } }
@media (max-width: 480px) { .learn__topics { grid-template-columns: minmax(0, 1fr); } .learn__btns .btn { flex: 1 1 100%; } }

/* ===== Kiến thức: khối Tên miền & hosting ===== */
.dmn { margin-top: 40px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.dmn__head { max-width: 760px; margin-bottom: 22px; }
.dmn__head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.dmn__head p:last-child { color: var(--muted); margin: 0; }
.dmn__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.dmn__lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dmn__lessons a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 14px 14px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--soft); transition: border-color .18s, background .18s, transform .18s; }
.dmn__lessons a:hover { border-color: var(--blue); background: #fff; color: var(--ink); transform: translateY(-2px); }
.dmn__n { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; font: 800 14px var(--f-head); }
.dmn__t { flex: 1; min-width: 0; font: 600 14.5px/1.4 var(--f-head); }
.dmn__lessons .ic { flex-shrink: 0; color: var(--muted); }
.dmn__help { display: flex; flex-direction: column; padding: 26px; border-radius: 16px; background: var(--blue); color: #DDE5FF; position: relative; overflow: hidden; }
.dmn__help::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(135deg, transparent 30%, #000); }
.dmn__help > * { position: relative; }
.dmn__help .kicker { color: #fff; opacity: .85; }
.dmn__help h3 { color: #fff; font-size: 21px; }
.dmn__fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 18px; }
.dmn__fee span { font-size: 13.5px; }
.dmn__fee b { font: 800 26px var(--f-head); color: #fff; }
.dmn__fee small { width: 100%; font-size: 12.5px; opacity: .85; }
.dmn__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0 0; }
.dmn__prov { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }
.dmn__prov a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; font: 700 13.5px var(--f-head); color: var(--ink-2); }
.dmn__prov a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 960px) { .dmn__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .dmn { padding: 22px 16px; } .dmn__lessons { grid-template-columns: minmax(0, 1fr); } .dmn__btns .btn { flex: 1 1 100%; } }

/* Bài học: hộp "Thấy khó?" cuối bài */
.lesson-help { margin: 32px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--blue-t); border: 1px solid #C9D6FF; }
.lesson-help p { margin: 0; }
.lesson-help a { font-weight: 700; }
.prose code { padding: 1px 6px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); font-size: .92em; }

/* ===== Trang Mua hộ tên miền & hosting ===== */
.dsv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 40px 0 72px; }
.dsv-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.dsv-steps li { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: 12px; counter-increment: s; }
.dsv-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff; font: 800 14px var(--f-head); }
.dsv-steps b { font: 700 16px var(--f-head); }
.dsv-steps span { font-size: 14.5px; color: var(--muted); }
.dsv__price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
.dsv-fee, .dsv-own { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); }
.dsv-fee__n { margin: 0 0 6px; font: 800 30px var(--f-head); color: var(--ink); }
.dsv-fee p:not(.dsv-fee__n) { font-size: 14.5px; color: var(--muted); }
.dsv-fee__free { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--ok) !important; font-weight: 600; }
.dsv-own h3 { font-size: 17px; }
.dsv-own .ticks { font-size: 14.5px; }
.dsv__side { position: relative; }
.dsv__side-t { font-size: 22px; }
.dsv__self { margin: 14px 0 0; font-size: 14.5px; text-align: center; }
.domain-form__privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 13.5px; color: var(--muted); }
.domain-form__privacy .ic { flex-shrink: 0; color: var(--ok); margin-top: 2px; }
.domain-form label small { font-weight: 500; color: var(--muted); }
.dsv__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 960px) { .dsv { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 600px) { .dsv__price { grid-template-columns: minmax(0, 1fr); } }
