/*
Theme Name: KhoAcc Storefront
Theme URI: https://khoacc.net
Author: KhoAcc.Net
Description: Theme WooCommerce cho website ban tai khoan so: trang chu nhieu section san pham, trang san pham co bang gia theo goi/thoi han, giao tai khoan tu dong.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: khoacc
Tags: e-commerce, custom-menu, translation-ready
*/

:root {
	--kh-bg: #f4f5f7;
	--kh-surface: #ffffff;
	--kh-ink: #16181d;
	--kh-muted: #6b7280;
	--kh-line: #e9ebef;
	--kh-navy: #16183d;
	--kh-blue: #1f56d3;
	--kh-blue-dark: #1a49b4;
	--kh-red: #e14b4b;
	--kh-green: #15a06a;
	--kh-radius: 14px;
	--kh-max: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--kh-bg); color: var(--kh-ink); font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--kh-blue); text-decoration: none; }
a:hover { color: var(--kh-navy); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -0.3px; }
.kh-wrap { max-width: var(--kh-max); margin: 0 auto; padding: 0 20px; }
.kh-card { background: var(--kh-surface); border: 1px solid var(--kh-line); border-radius: 16px; padding: 20px; }
.kh-section { margin-top: 16px; }
.kh-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kh-section-title { font-size: 20px; font-weight: 800; margin: 0; }
.kh-section-sub { font-size: 13px; color: var(--kh-muted); margin: 3px 0 0; }
.kh-btn { display: inline-grid; place-items: center; height: 46px; padding: 0 22px; border-radius: 10px; font-size: 14.5px; font-weight: 700; border: 0; cursor: pointer; }
.kh-btn-blue { background: var(--kh-blue); color: #fff; }
.kh-btn-blue:hover { background: var(--kh-blue-dark); color: #fff; }
.kh-btn-red { background: var(--kh-red); color: #fff; }
.kh-btn-ghost { background: #fff; color: var(--kh-ink); border: 1px solid #d8dce3; }

/* Header */
.kh-topbar { background: var(--kh-navy); color: #c9d2ee; font-size: 13px; }
.kh-topbar .kh-wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 20px; flex-wrap: wrap; }
.kh-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--kh-line); }
.kh-header-main { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.kh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.kh-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--kh-blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.kh-logo-name { font-size: 19px; font-weight: 800; color: var(--kh-ink); }
.kh-logo-name span { color: var(--kh-blue); }
.kh-logo-tag { font-size: 11px; color: var(--kh-muted); margin-top: -2px; }
.kh-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--kh-bg); border: 1px solid var(--kh-line); border-radius: 10px; padding: 0 14px; height: 44px; }
.kh-search input { flex: 1; border: 0; background: transparent; outline: none; font: inherit; font-size: 14px; }
.kh-search button { border: 0; background: none; color: var(--kh-blue); font-weight: 600; cursor: pointer; font-size: 13.5px; }
.kh-head-actions { display: flex; align-items: center; gap: 10px; }
.kh-account-chip { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: #eef3ff; }
.kh-account-chip small { font-size: 11px; color: var(--kh-muted); }
.kh-account-chip strong { font-size: 14px; color: var(--kh-blue); }
.kh-cart { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; background: var(--kh-blue); color: #fff; font-size: 14px; font-weight: 600; }
.kh-cart:hover { background: var(--kh-blue-dark); color: #fff; }
.kh-cart-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--kh-blue); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.kh-nav { border-top: 1px solid #eef0f3; }
.kh-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 20px; overflow-x: auto; }
.kh-nav a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 500; color: #374151; white-space: nowrap; border-bottom: 2px solid transparent; }
.kh-nav a:hover, .kh-nav .current-menu-item > a { color: var(--kh-blue); border-bottom-color: var(--kh-blue); }

/* Hero */
.kh-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px; padding-top: 20px; }
.kh-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; border-radius: 16px; padding: 44px 44px 52px; background: linear-gradient(120deg, var(--kh-navy), var(--kh-blue)); color: #fff; position: relative; overflow: hidden; }
.kh-hero-copy { flex: 1 1 320px; min-width: 0; position: relative; z-index: 2; }
.kh-hero-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.16); font-size: 12px; font-weight: 600; }
.kh-hero h1 { font-size: 40px; line-height: 1.15; margin: 16px 0 12px; text-wrap: balance; }
.kh-hero p { font-size: 15px; color: #cdd8f5; line-height: 1.6; margin: 0; }
.kh-hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.kh-hero-cta .kh-btn-white { background: #fff; color: var(--kh-navy); }
.kh-hero-cta .kh-btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.kh-hero-media { flex: 0 1 240px; min-width: 200px; position: relative; z-index: 2; }
.kh-hero-media img { border-radius: 12px; }
.kh-side-col { display: grid; gap: 16px; }
.kh-feed { display: grid; gap: 10px; margin-top: 12px; }
.kh-feed-row { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #4b5563; }
.kh-feed-avatar { width: 28px; height: 28px; border-radius: 50%; background: #eef3ff; color: var(--kh-blue); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.kh-eyebrow { font-size: 13px; font-weight: 700; color: var(--kh-muted); letter-spacing: 0.4px; }
.kh-deal-card { background: #fff5f5; border: 1px solid #fbd5d5; border-radius: 16px; padding: 18px; }
.kh-deal-card .kh-eyebrow { color: #c53030; }
.kh-count { display: flex; gap: 8px; margin-top: 12px; }
.kh-count > div { flex: 1; background: #fff; border-radius: 10px; padding: 8px 0; text-align: center; }
.kh-count b { display: block; font-size: 20px; }
.kh-count span { font-size: 10px; color: #9ca3af; letter-spacing: 0.5px; }

/* Steps + stats */
.kh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.kh-step { background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); padding: 18px; display: flex; gap: 14px; }
.kh-step b { width: 34px; height: 34px; border-radius: 9px; background: var(--kh-blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.kh-step-3 b { background: var(--kh-green); }
.kh-step h3 { font-size: 15px; margin: 0; }
.kh-step p { font-size: 13px; color: var(--kh-muted); margin: 3px 0 0; line-height: 1.5; }
.kh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.kh-stat { background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); padding: 22px; }
.kh-stat:first-child { background: var(--kh-navy); color: #fff; }
.kh-stat b { display: block; font-size: 28px; }
.kh-stat span { font-size: 13px; color: var(--kh-muted); }
.kh-stat:first-child span { color: #a8b3d6; }

/* Product grids */
.kh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.kh-grid-5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kh-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kh-chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid #d8dce3; background: #fff; color: #4b5563; cursor: pointer; }
.kh-chip.is-active { background: var(--kh-blue); border-color: var(--kh-blue); color: #fff; }
.kh-tabpanel[hidden] { display: none; }
.kh-product { border: 1px solid var(--kh-line); border-radius: var(--kh-radius); overflow: hidden; background: #fff; transition: box-shadow .16s, transform .16s; }
.kh-product:hover { box-shadow: 0 10px 24px rgba(22,24,61,0.1); transform: translateY(-2px); }
.kh-product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f2f4f8; }
.kh-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-off { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; background: var(--kh-red); color: #fff; font-size: 11.5px; font-weight: 700; }
.kh-product-body { padding: 12px 13px 14px; }
.kh-product-cat { font-size: 11px; color: #9ca3af; font-weight: 600; }
.kh-product-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 4px 0 8px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-product-name a { color: var(--kh-ink); }
.kh-price { display: flex; align-items: baseline; gap: 7px; }
.kh-price ins { text-decoration: none; font-size: 16.5px; font-weight: 800; color: var(--kh-red); }
.kh-price del { font-size: 12.5px; color: #9ca3af; }
.kh-price .amount { font-size: inherit; }
.kh-product-meta { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11.5px; color: var(--kh-muted); }
.kh-instock { color: var(--kh-green); font-weight: 600; }
.kh-outstock { color: #a15c00; font-weight: 600; }

/* Flash sale */
.kh-flash { background: #fffafa; border: 1px solid #f3d3d3; }
.kh-flash .kh-product { border-color: #f3d3d3; background: #fffafa; }
.kh-flash-count { display: flex; gap: 5px; }
.kh-flash-count > span { background: var(--kh-navy); color: #fff; border-radius: 7px; padding: 5px 9px; font-size: 14px; font-weight: 800; }
.kh-flash-count > span:last-child { background: var(--kh-red); }
.kh-bar { height: 5px; border-radius: 999px; background: #f3dcdc; margin-top: 9px; overflow: hidden; }
.kh-bar i { display: block; height: 100%; background: var(--kh-red); }
.kh-slot { font-size: 11px; color: #a15c5c; margin-top: 5px; font-weight: 600; }

/* Feature split (AI) */
.kh-split { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.kh-split-promo { background: linear-gradient(150deg, var(--kh-navy), #2a2f6b); color: #fff; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.kh-split-promo h2 { font-size: 26px; margin: 14px 0 10px; }
.kh-split-promo p { font-size: 13.5px; color: #b9c2e6; line-height: 1.6; margin: 0; }
.kh-split-list { display: grid; gap: 8px; margin-top: 22px; font-size: 13px; color: #d6dcf5; }
.kh-row-item { display: flex; gap: 14px; align-items: center; border: 1px solid #eef0f3; border-radius: 12px; padding: 12px; }
.kh-row-item:hover { border-color: var(--kh-blue); background: #f8faff; }
.kh-row-thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f2f4f8; }
.kh-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-row-body { flex: 1; min-width: 0; }
.kh-row-body h3 { font-size: 15px; margin: 0; }
.kh-row-body p { font-size: 12.5px; color: var(--kh-muted); margin: 4px 0 0; }
.kh-row-price { text-align: right; }
.kh-row-price del { font-size: 12.5px; color: #9ca3af; display: block; }
.kh-row-price ins { text-decoration: none; font-size: 18px; font-weight: 800; color: var(--kh-red); }
.kh-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.kh-mini-item { display: flex; gap: 12px; align-items: center; border: 1px solid #eef0f3; border-radius: 12px; padding: 11px; }
.kh-mini-item:hover { border-color: #c9cfd9; background: #fafbfc; }
.kh-mini-thumb { width: 54px; height: 54px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: #f2f4f8; }
.kh-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-mini-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; min-height: 37px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-mini-cat { font-size: 11.5px; color: #9ca3af; margin-top: 3px; }
.kh-mini-price { font-size: 14.5px; font-weight: 800; color: var(--kh-red); margin-top: 4px; }

/* Reviews + blog */
.kh-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.kh-review { background: #f7f8fa; border-radius: 12px; padding: 18px; }
.kh-stars { color: #f0a020; font-size: 13px; letter-spacing: 2px; }
.kh-review p { font-size: 13.5px; color: #374151; line-height: 1.6; margin: 10px 0 14px; }
.kh-review-who { display: flex; align-items: center; gap: 10px; }
.kh-review-who span { width: 30px; height: 30px; border-radius: 50%; background: #dbe4f8; color: var(--kh-blue); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.kh-review-who b { font-size: 13px; display: block; }
.kh-review-who em { font-size: 11.5px; color: #9ca3af; font-style: normal; }
.kh-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.kh-post { border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; }
.kh-post-thumb { aspect-ratio: 16/9; background: #f2f4f8; }
.kh-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-post-body { padding: 14px; }
.kh-post-body h3 { font-size: 14.5px; line-height: 1.4; margin: 5px 0 0; }
.kh-post-date { font-size: 12px; color: #9ca3af; margin-top: 8px; }

/* Single product */
.kh-breadcrumb, .woocommerce-breadcrumb { font-size: 13.5px; color: var(--kh-muted); padding: 18px 0; }
.woocommerce div.product { background: transparent; }
.woocommerce div.product .product_title { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--kh-red); font-size: 28px; font-weight: 800; background: #fafbfc; border: 1px solid #eef0f3; border-radius: 10px; padding: 12px 16px; display: block; }
.woocommerce div.product p.price del { font-size: 15px; color: #9ca3af; font-weight: 500; }
.woocommerce div.product form.cart div.quantity { height: 50px; }
.woocommerce div.product form.cart .button, .woocommerce .single_add_to_cart_button { height: 50px; border-radius: 9px !important; background: var(--kh-blue) !important; color: #fff !important; font-weight: 700 !important; padding: 0 26px !important; }
.kh-buy-now { background: var(--kh-red) !important; }
.kh-assurance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.kh-assurance div { border: 1px solid var(--kh-line); border-radius: 10px; padding: 12px; background: #fff; }
.kh-assurance b { font-size: 13px; display: block; }
.kh-assurance span { font-size: 11.5px; color: var(--kh-muted); line-height: 1.4; }
.kh-sold-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--kh-muted); flex-wrap: wrap; margin-bottom: 12px; }
.kh-tag-green { padding: 3px 9px; border-radius: 6px; background: #e7f7ef; color: var(--kh-green); font-size: 12px; font-weight: 600; }
.kh-promo-bar { border-radius: 12px; background: linear-gradient(100deg, var(--kh-red), #f0762f); color: #fff; padding: 14px 16px; margin: 16px 0; }
.kh-promo-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kh-promo-tag { padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.22); font-size: 12px; font-weight: 700; }
.kh-promo-count { display: flex; gap: 5px; }
.kh-promo-count span { background: rgba(0,0,0,0.22); border-radius: 6px; padding: 4px 8px; font-size: 14px; font-weight: 800; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--kh-blue); background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--kh-line); }
.woocommerce .quantity .qty { height: 50px; border: 1px solid #d8dce3; border-radius: 9px; }
.woocommerce ul.products li.product .price { color: var(--kh-red); font-weight: 800; }

/* Footer + floating */
.kh-footer { background: var(--kh-navy); color: #aab4d4; margin-top: 32px; padding: 36px 0 26px; }
.kh-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.kh-footer h3 { color: #fff; font-size: 14px; margin: 0 0 8px; }
.kh-footer p, .kh-footer ul { font-size: 13px; line-height: 1.9; margin: 0; }
.kh-footer ul { list-style: none; padding: 0; }
.kh-footer a { color: #aab4d4; }
.kh-footer a:hover { color: #fff; }
.kh-footer-brand { font-size: 18px; font-weight: 800; color: #fff; }
.kh-footer-brand span { color: #6f95ff; }
.kh-footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kh-fabs { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 60; pointer-events: none; display: flex; justify-content: center; }
.kh-fabs-inner { width: 100%; max-width: 1400px; padding: 0 20px; display: flex; justify-content: flex-end; }
.kh-fabs-stack { pointer-events: auto; display: grid; gap: 10px; }
.kh-fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px rgba(22,24,61,0.3); }
.kh-fab-zalo { background: #0068ff; }
.kh-fab-chat { background: var(--kh-navy); }
.kh-page { padding: 20px 96px 20px 20px; max-width: var(--kh-max); margin: 0 auto; }

@media (max-width: 1024px) {
	.kh-hero-row, .kh-split { grid-template-columns: minmax(0, 1fr); }
	.kh-header-main { flex-wrap: wrap; }
	.kh-search { order: 3; flex: 1 1 100%; }
}
@media (max-width: 640px) {
	.kh-hero { padding: 28px 22px 40px; }
	.kh-hero h1 { font-size: 30px; }
	.kh-page { padding: 16px 20px; }
}

/* ===== Trang sản phẩm chi tiết ===== */
.woocommerce .woocommerce-breadcrumb { font-size: 13.5px; color: var(--kh-muted); margin: 0 0 20px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--kh-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--kh-blue); }

.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 44px; align-items: start; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .kh-reviews,
.woocommerce div.product .kh-notes,
.woocommerce div.product .related,
.woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images img { border-radius: 16px; border: 1px solid var(--kh-line); }
.woocommerce span.onsale { background: var(--kh-blue); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; min-height: 0; min-width: 0; line-height: 1.5; top: 14px; left: 14px; right: auto; margin: 0; }
.woocommerce div.product .product_title { font-size: 27px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; padding: 0; }

/* Hàng đánh giá */
.kh-meta-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13.5px; color: var(--kh-muted); margin: 0 0 14px; }
.woocommerce .kh-meta-row .star-rating { float: none !important; margin: 0 !important; width: 5.4em !important; font-size: 13px !important; color: #f0a020; }
.kh-meta-row b { color: var(--kh-ink); font-size: 14px; }
.kh-meta-row a { font-weight: 600; color: var(--kh-blue); }
.kh-meta-row .kh-dot { color: #cbd0d8; }
.kh-tag-green { background: #e9f7ef; color: var(--kh-green); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 7px; }
.woocommerce div.product .woocommerce-product-rating { display: none; }

.kh-live { display: flex; align-items: center; gap: 10px; border: 1px solid var(--kh-line); border-radius: 12px; padding: 11px 15px; font-size: 13.5px; color: var(--kh-muted); margin: 0 0 14px; }
.kh-live b { color: var(--kh-ink); }
.kh-live-avatar { width: 27px; height: 27px; border-radius: 50%; background: var(--kh-blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }

/* Giá */
.woocommerce div.product p.price,
.woocommerce div.product span.price { display: block; background: #f7f8fa; border: 0; border-radius: 12px; padding: 15px 18px; margin: 0 0 16px; font-size: 25px; font-weight: 800; color: var(--kh-red); line-height: 1.3; }
.woocommerce div.product p.price del,
.woocommerce div.product span.price del { color: #9ca3af; font-size: 16px; font-weight: 600; opacity: 1; margin-right: 10px; }
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins { text-decoration: none; color: var(--kh-red); font-weight: 800; background: none; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 14.5px; line-height: 1.75; color: #4b5563; margin: 0 0 14px; }
.woocommerce div.product .woocommerce-product-details__short-description p { margin: 0 0 4px; }
.kh-stock-line { font-size: 13px; font-weight: 600; margin: 0 0 16px; }
.kh-stock-auto { color: var(--kh-green); }
.kh-stock-manual { color: #a15c00; }

/* Thanh ưu đãi */
.kh-promo { background: linear-gradient(90deg, #e8443f, #f4682f); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; color: #fff; }
.kh-promo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kh-promo-badge { background: rgba(0, 0, 0, .22); border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.kh-promo-clock { display: flex; align-items: center; gap: 6px; }
.kh-promo-label { font-size: 10.5px; font-weight: 800; letter-spacing: .3px; opacity: .95; }
.kh-promo-clock b { background: #fff; color: #e8443f; border-radius: 6px; min-width: 34px; text-align: center; padding: 3px 5px; font-size: 13px; font-weight: 800; line-height: 1.1; }
.kh-promo-clock b i { display: block; font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: .2px; color: #f0776f; }
.kh-promo-bar { height: 8px; border-radius: 999px; background: rgba(120, 20, 15, .38); margin: 11px 0 8px; overflow: hidden; }
.kh-promo-bar i { display: block; height: 100%; border-radius: 999px; background: #ffd479; box-shadow: 0 0 6px rgba(255, 212, 121, .6); transition: width .4s ease; }
.kh-promo-foot { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }

/* Chọn gói dạng nút */
.woocommerce div.product form.cart { margin: 0; }
.woocommerce div.product form.cart table.variations,
.woocommerce div.product form.cart table.variations tbody,
.woocommerce div.product form.cart table.variations tr,
.woocommerce div.product form.cart table.variations th,
.woocommerce div.product form.cart table.variations td { display: block !important; width: 100% !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
.woocommerce div.product form.cart table.variations { margin: 0 0 14px !important; }
.woocommerce div.product form.cart table.variations tr { margin-bottom: 14px; }
.woocommerce div.product form.cart table.variations label { font-size: 14.5px !important; font-weight: 700 !important; color: var(--kh-ink) !important; margin: 0 0 9px !important; display: block !important; }
.woocommerce div.product form.cart table.variations select { display: none !important; }
.kh-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-swatch { border: 1px solid #d8dce3; background: #fff; border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 600; color: #374151; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; }
.kh-swatch:hover { border-color: #9db4ec; }
.kh-swatch.is-active { border-color: var(--kh-blue); background: var(--kh-blue); color: #fff; }
.kh-swatch.is-active em { color: rgba(255, 255, 255, .85); }
.kh-swatch em { font-size: 12.5px; font-style: normal; font-weight: 600; color: var(--kh-muted); }
.kh-swatch.is-oos { position: relative; color: #b3b8c2; border-color: #e6e8ec; background: #fafbfc; cursor: not-allowed; overflow: hidden; }
.kh-swatch.is-oos::after { content: ''; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; background: #d3d7de; transform: rotate(-11deg); }
.woocommerce div.product form.cart .reset_variations { display: inline-block; font-size: 12.5px; color: var(--kh-muted); border: 1px solid var(--kh-line); border-radius: 7px; padding: 4px 11px; margin: 0 0 14px; }
.woocommerce div.product form.cart .woocommerce-variation-price { margin-bottom: 12px; }
.woocommerce div.product form.cart .woocommerce-variation-price .price { background: none !important; padding: 0 !important; margin: 0 !important; font-size: 22px !important; }
.woocommerce div.product form.cart .woocommerce-variation-availability p { font-size: 13px; color: var(--kh-muted); margin: 0 0 8px; }

/* Số lượng + nút mua */
.khoacc-buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 4px 0 0; }
.woocommerce div.product form.cart div.quantity { margin: 0 !important; display: flex; align-items: center; border: 1px solid #d8dce3; border-radius: 10px; overflow: hidden; height: 50px; background: #fff; }
.woocommerce div.product form.cart div.quantity input.qty { width: 46px; height: 100%; border: 0; box-shadow: none; text-align: center; font-size: 15px; font-weight: 700; background: none; -moz-appearance: textfield; }
.woocommerce div.product form.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kh-qty-btn { width: 34px; height: 100%; border: 0; background: none; color: var(--kh-muted); font-size: 17px; font-weight: 700; cursor: pointer; }
.kh-qty-btn:hover { color: var(--kh-blue); }
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .kh-buy-now { flex: 1 1 180px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px !important; font-size: 15px !important; font-weight: 700 !important; padding: 0 22px !important; margin: 0 !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { background: var(--kh-blue) !important; color: #fff !important; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: #1746ad !important; }
.woocommerce div.product form.cart .kh-buy-now { background: #e05252 !important; color: #fff !important; }
.woocommerce div.product form.cart .kh-buy-now:hover { background: #cf3f3f !important; }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled { opacity: .45; }

/* 4 ô cam kết */
.kh-assurance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.kh-assurance > div { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--kh-line); border-radius: 12px; padding: 12px 13px; background: #fff; }
.kh-as-ico { width: 24px; height: 24px; border-radius: 7px; background: #eef3ff; color: var(--kh-blue); font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.kh-as-txt { min-width: 0; }
.kh-as-txt b { font-size: 13px; display: block; margin-bottom: 2px; }
.kh-as-txt span { font-size: 11.5px; color: var(--kh-muted); line-height: 1.45; display: block; }
.woocommerce div.product .product_meta { font-size: 12.5px; color: var(--kh-muted); border-top: 1px solid var(--kh-line); margin-top: 18px; padding-top: 14px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }

/* Hộp lưu ý */
.kh-notes { background: #fffaf0; border: 1px solid #f3dfb8; border-left: 4px solid #f0a020; border-radius: 12px; padding: 20px 24px; margin-top: 34px; }
.kh-notes h3 { font-size: 14.5px; font-weight: 800; color: #8a5a08; margin: 0 0 12px; letter-spacing: .3px; }
.kh-notes ul { list-style: none; margin: 0; padding: 0; }
.kh-notes li { position: relative; padding: 11px 0 11px 30px; font-size: 14px; line-height: 1.65; color: #4b5563; border-bottom: 1px dashed #ecdcbc; }
.kh-notes li:last-child { border-bottom: 0; }
.kh-notes li::before { content: '✓'; position: absolute; left: 0; top: 12px; width: 19px; height: 19px; border-radius: 50%; background: #f0a020; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.kh-notes strong { color: var(--kh-ink); }

@media (max-width: 980px) {
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.kh-assurance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Giá biến thể chỉ hiển thị ở ô giá phía trên */
.woocommerce div.product form.cart .woocommerce-variation-price { display: none !important; }
