/* ktvhecom product template (mockup v2) — mọi selector scope dưới #ktvhecom-product (id dùng chung preview + live) để không rò rỉ theme */
#ktvhecom-product{--kg:#3fae49;--kgd:#2b7a34;--kgbg:#e9f7ea;--knavy:#14263f;--kblue:#2a83e9;--kbluebg:#e8f2fd;
  --korange:#ff6a00;--kred:#e53935;--kgold:#ffb300;--kgoldbg:#fff6da;--ktext:#1f2b38;--kmuted:#5f7181;
  --kline:#e2e8f0;--kcard:#fff;--kshadow:0 2px 10px rgba(20,38,63,.07);
  font-family:-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--ktext);line-height:1.6;max-width:1220px;margin:0 auto;padding:0 16px 40px}
#ktvhecom-product *{box-sizing:border-box}
#ktvhecom-product .kbadge-mock{background:#101826;color:#ffd166;font-size:12px;padding:6px 12px;border-radius:8px;text-align:center;margin:12px 0}
#ktvhecom-product .kcrumb{font-size:13px;color:var(--kmuted);padding:10px 0 4px}
#ktvhecom-product .kcrumb a{color:var(--kblue);text-decoration:none}
#ktvhecom-product .ktitlerow{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
#ktvhecom-product h1.ktitle{font-size:27px;line-height:1.25;margin:0}
#ktvhecom-product .kbadge-hot{background:linear-gradient(135deg,#ff8a00,#f24405);color:#fff;font-size:11.5px;font-weight:700;border-radius:6px;padding:4px 10px;white-space:nowrap;margin-top:7px}
#ktvhecom-product .krating{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--kmuted);margin:6px 0 14px;flex-wrap:wrap}
#ktvhecom-product .kstars{color:#ffb300;font-size:16px;letter-spacing:1.5px}
#ktvhecom-product .kfield{background:#fff;border:1px solid var(--kline);border-radius:20px;font-size:12px;padding:3px 11px;color:#33475b}
/* 3 khu hero/main/side qua grid-areas: desktop = hero+main trái, side phải (span 2 hàng);
   mobile 1 cột thứ tự hero -> SIDE (giá/khuyến mại ngay dưới video) -> main. */
#ktvhecom-product .kgrid{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-areas:"hero side" "main side";gap:22px;align-items:start;padding-bottom:80px}
#ktvhecom-product .khero{grid-area:hero;min-width:0}
#ktvhecom-product .kmain{grid-area:main;min-width:0}
#ktvhecom-product .kside{grid-area:side}
@media(max-width:1000px){#ktvhecom-product .kgrid{grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "side" "main"}
  #ktvhecom-product .kside{position:static}}
/* Chống tràn ngang mobile: grid con min-width:0 + nội dung bài cũ (iframe 750px,
   bảng, ảnh fixed-width) phải co/cuộn trong khung — thiếu là cả trang bị đẩy
   rộng hơn viewport, nhìn như "không responsive". overflow-x:clip (không phải
   hidden) để .kside position:sticky vẫn hoạt động. */
#ktvhecom-product{overflow-x:clip}
#ktvhecom-product .kmain,#ktvhecom-product .kside{min-width:0}
#ktvhecom-product .kbody img{max-width:100%;height:auto}
#ktvhecom-product .kbody iframe,#ktvhecom-product .kbody video,#ktvhecom-product .kbody embed{max-width:100%}
#ktvhecom-product .kbody table{display:block;max-width:100%;overflow-x:auto}
#ktvhecom-product .kfinal,#ktvhecom-product .kband .kin{min-width:0}
#ktvhecom-product .kcard{background:var(--kcard);border:1px solid var(--kline);border-radius:14px;box-shadow:var(--kshadow);overflow:hidden;margin-bottom:20px}
#ktvhecom-product .ksec{padding:22px 24px}
#ktvhecom-product .ksechead{display:flex;align-items:center;gap:10px;margin-bottom:16px}
#ktvhecom-product .ksechead .kic{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0;background:var(--kgbg)}
#ktvhecom-product .ksechead h2{font-size:20px;line-height:1.3;margin:0}
#ktvhecom-product .ksechead small{display:block;font-size:12.5px;color:var(--kmuted);font-weight:400}
#ktvhecom-product .kvideo{position:relative;aspect-ratio:16/9;background:linear-gradient(120deg,#0d3a1e,#1d6b35 55%,#3fae49 130%);display:flex;align-items:center;justify-content:center}
#ktvhecom-product .kvideo iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#ktvhecom-product .kplay{width:74px;height:74px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 24px rgba(0,0,0,.35);cursor:pointer}
#ktvhecom-product .kplay::after{content:"";border-style:solid;border-width:13px 0 13px 22px;border-color:transparent transparent transparent var(--kred);margin-left:6px}
#ktvhecom-product .ktrust{display:grid;grid-template-columns:repeat(4,1fr);background:var(--knavy)}
@media(max-width:640px){#ktvhecom-product .ktrust{grid-template-columns:repeat(2,1fr)}}
#ktvhecom-product .ktt{padding:12px 8px;text-align:center;color:#c9d6e6;font-size:11.5px;border-right:1px solid rgba(255,255,255,.08)}
#ktvhecom-product .ktt b{display:block;color:#fff;font-size:19px}
#ktvhecom-product .ktt b em{font-style:normal;color:#ffd166;font-size:13px}
#ktvhecom-product .ksteps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:900px){#ktvhecom-product .ksteps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){#ktvhecom-product .ksteps{grid-template-columns:1fr}}
#ktvhecom-product .kstep{border-radius:12px;padding:14px;border-top:4px solid var(--kg);background:#fbfdfb;border-left:1px solid var(--kline);border-right:1px solid var(--kline);border-bottom:1px solid var(--kline)}
#ktvhecom-product .kstep .kn{display:inline-flex;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#2b7a34,#3fae49);color:#fff;font-weight:700;font-size:14px;align-items:center;justify-content:center;margin-bottom:8px}
#ktvhecom-product .kstep b{display:block;font-size:14px;margin-bottom:6px;color:var(--kgd);text-transform:uppercase}
#ktvhecom-product .kstep ul{list-style:none;margin:0;padding:0}
#ktvhecom-product .kstep li{font-size:12.5px;color:#42525f;padding:2px 0 2px 16px;position:relative}
#ktvhecom-product .kstep li::before{content:"›";position:absolute;left:2px;color:var(--kg);font-weight:700}
#ktvhecom-product details.kacc{border:1px solid var(--kline);border-radius:11px;margin-bottom:10px;background:#fff;overflow:hidden}
#ktvhecom-product details.kacc summary{cursor:pointer;padding:13px 16px;font-weight:700;font-size:14.5px;list-style:none;display:flex;align-items:center;gap:10px;background:#fafcff}
#ktvhecom-product details.kacc summary::-webkit-details-marker{display:none}
#ktvhecom-product details.kacc summary .ktg{margin-left:auto;color:var(--kg);font-size:18px;font-weight:700}
#ktvhecom-product details.kacc[open] summary .ktg::after{content:"–"}
#ktvhecom-product details.kacc:not([open]) summary .ktg::after{content:"+"}
#ktvhecom-product details.kacc .kbody{padding:12px 18px 16px;font-size:13.5px;color:#42525f}
#ktvhecom-product .kexpand{font-size:13px;color:var(--kblue);cursor:pointer;background:none;border:none;padding:4px 0;font-weight:600}
#ktvhecom-product table.kcmp{width:100%;border-collapse:collapse;font-size:13px}
#ktvhecom-product table.kcmp th{background:var(--knavy);color:#fff;padding:11px 12px;text-align:left}
#ktvhecom-product table.kcmp th.kvh{background:#0b5d20;text-align:center}
#ktvhecom-product table.kcmp th.kother{text-align:center;background:#33465e}
#ktvhecom-product table.kcmp td{border:1px solid var(--kline);padding:8px 12px}
#ktvhecom-product table.kcmp td.kvh{background:#f2faf3;text-align:center;font-weight:700;color:var(--kgd)}
#ktvhecom-product table.kcmp td.kother{text-align:center;color:#a94442;background:#fdf7f7}
#ktvhecom-product .kbexcl{background:var(--kgold);color:#5c3d00;font-size:10.5px;font-weight:700;border-radius:4px;padding:1px 6px;margin-left:4px}
#ktvhecom-product .kvs{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--kline);border-radius:12px;overflow:hidden}
@media(max-width:700px){#ktvhecom-product .kvs{grid-template-columns:1fr}}
#ktvhecom-product .kvs .kcol{padding:16px 18px}
#ktvhecom-product .kvs .kcol.kon{background:linear-gradient(180deg,#f0faf1,#fff)}
#ktvhecom-product .kvs .kcol.koff{background:#f7f8fa;border-left:1px solid var(--kline)}
#ktvhecom-product .kvs h4{font-size:15px;margin:0 0 10px}
#ktvhecom-product .kvs li{list-style:none;font-size:13px;padding:5px 0 5px 24px;position:relative;color:#42525f;border-bottom:1px dashed #e8edf2}
#ktvhecom-product .kvs .kon li::before{content:"✓";position:absolute;left:2px;color:var(--kg);font-weight:700}
#ktvhecom-product .kvs .koff li::before{content:"✗";position:absolute;left:2px;color:#c62828;font-weight:700}
#ktvhecom-product .kband{border-radius:14px;overflow:hidden;box-shadow:var(--kshadow);margin-bottom:20px}
#ktvhecom-product .kband .kin{background:linear-gradient(135deg,#ff8a00,#f24405);padding:22px 24px;color:#fff;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
#ktvhecom-product .kband h3{font-size:19px;flex:1 1 300px;margin:0}
#ktvhecom-product .kband h3 small{display:block;font-size:13px;font-weight:400;opacity:.95;margin-top:3px}
#ktvhecom-product .kband .kcta2{background:#fff;color:#d84300;font-weight:700;font-size:14.5px;border:none;border-radius:9px;padding:12px 22px;cursor:pointer;text-decoration:none}
#ktvhecom-product .ktes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:900px){#ktvhecom-product .ktes{grid-template-columns:1fr}}
#ktvhecom-product .ktes .kt{background:#fbfcfe;border:1px solid var(--kline);border-radius:12px;padding:15px}
#ktvhecom-product .ktes .kst{color:#ffb300;font-size:13px;margin-bottom:6px}
#ktvhecom-product .ktes p{font-size:13px;color:#42525f;font-style:italic;margin:0 0 10px}
#ktvhecom-product .kava{width:36px;height:36px;border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;background:var(--kg)}
#ktvhecom-product .kfinal{border-radius:14px;background:linear-gradient(135deg,#2b7a34,#3fae49);color:#fff;padding:30px 26px;text-align:center}
#ktvhecom-product .kfinal h3{font-size:22px;margin:0 0 6px}
/* BUY BOX */
/* sticky CHỈ desktop — khai báo không-media từng bị đè lên rule mobile đứng trước
   (cùng specificity, rule sau thắng) làm buy-box ghim cứng che nội dung trên điện thoại.
   top 64px = header dính Flatsome 51px (đo thực tế khi .stuck) + 13px thở —
   thiếu là thanh "Ưu đãi + countdown" chui xuống dưới menu khi cuộn. */
@media(min-width:1001px){#ktvhecom-product .kside{position:sticky;top:72px}
  /* đăng nhập: WP admin-bar 32px đè trên header dính -> cộng thêm */
  body.admin-bar #ktvhecom-product .kside{top:104px}}
#ktvhecom-product .kbuyhead{background:linear-gradient(135deg,#2b7a34,#3fae49);color:#fff;padding:12px 20px;font-size:13px;display:flex;justify-content:space-between;align-items:center}
#ktvhecom-product .kcd{background:rgba(0,0,0,.22);border-radius:6px;padding:2px 10px;font-weight:700}
#ktvhecom-product .kbuyin{padding:18px 20px}
#ktvhecom-product .kpricehead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
#ktvhecom-product .kpnow{font-size:30px;font-weight:800;color:var(--kred)}
#ktvhecom-product .kpold{font-size:16px;color:var(--kmuted);text-decoration:line-through}
#ktvhecom-product .kboff{background:var(--kred);color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:2px 8px}
#ktvhecom-product .ksave{font-size:12.5px;color:var(--kgd);font-weight:700;margin:2px 0 12px}
#ktvhecom-product .klbl{font-size:13px;font-weight:700;margin:8px 0;color:#33414d;text-transform:uppercase}
#ktvhecom-product .kopts{display:grid;gap:8px;margin-bottom:14px}
#ktvhecom-product .kopt{border:1.5px solid var(--kline);border-radius:11px;padding:10px 13px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;transition:.15s;position:relative}
#ktvhecom-product .kopt:hover{border-color:#94ce99}
#ktvhecom-product .kopt.ksel{border-color:var(--kg);background:var(--kgbg);box-shadow:0 0 0 3px rgba(63,174,73,.13)}
#ktvhecom-product .kopt .ktick{width:17px;height:17px;border-radius:50%;border:2px solid #c6cfd8;flex-shrink:0}
#ktvhecom-product .kopt.ksel .ktick{border-color:var(--kg);background:var(--kg)}
#ktvhecom-product .kopt .knm{font-size:13px;font-weight:700;flex:1}
#ktvhecom-product .kopt .kpr{text-align:right;flex-shrink:0}
#ktvhecom-product .kopt .kpr b{color:var(--kred);font-size:13.5px;display:block}
#ktvhecom-product .kopt .kpr s{color:var(--kmuted);font-size:11px}
#ktvhecom-product .kopt .kpop{position:absolute;top:-9px;right:10px;background:var(--korange);color:#fff;font-size:9.5px;font-weight:700;border-radius:4px;padding:1px 7px}
#ktvhecom-product .kcta{display:block;width:100%;background:linear-gradient(135deg,#ff8a00,#f24405);color:#fff;text-align:center;font-size:17px;font-weight:800;padding:14px;border:none;border-radius:11px;cursor:pointer;box-shadow:0 4px 14px rgba(242,68,5,.35);text-decoration:none}
#ktvhecom-product .kcta small{display:block;font-weight:500;font-size:11px;opacity:.92;margin-top:2px}
#ktvhecom-product .krow2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
#ktvhecom-product .kbtno{display:block;text-align:center;font-size:12.5px;font-weight:700;padding:9px 4px;border-radius:9px;text-decoration:none}
#ktvhecom-product .kbtn-green{border:1.5px solid var(--kg);color:var(--kgd);background:#fff}
#ktvhecom-product .kbtn-blue{border:1.5px solid var(--kblue);color:var(--kblue);background:#fff}
#ktvhecom-product .khot{font-size:13.5px;text-align:center;margin-top:11px;color:#33414d}
#ktvhecom-product .khot b{color:var(--kred)}
#ktvhecom-product .kdiv{border-top:1px dashed var(--kline);margin:15px 0}
#ktvhecom-product .kmini h3{font-size:13.5px;margin:0 0 7px;display:flex;align-items:center;gap:6px}
#ktvhecom-product .kmini.kgift h3{color:var(--kred)}
#ktvhecom-product .kmini.kcommit h3{color:var(--kgd)}
#ktvhecom-product .kmini ul{list-style:none;margin:0;padding:0}
#ktvhecom-product .kmini li{font-size:12.5px;padding:2.5px 0 2.5px 21px;position:relative;color:#42525f}
#ktvhecom-product .kmini li b{color:var(--kred)}
#ktvhecom-product .kmini.kgift li::before{content:"🎁";position:absolute;left:0}
#ktvhecom-product .kmini.kcommit li::before{content:"✓";position:absolute;left:0;color:var(--kg);font-weight:700}
#ktvhecom-product .kchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
#ktvhecom-product .kchip{background:#eef2f6;border-radius:20px;font-size:11px;padding:4px 10px;color:#33414d;font-weight:600}
#ktvhecom-product .kbene{display:grid;grid-template-columns:1fr 1fr;gap:6px 22px}
@media(max-width:640px){#ktvhecom-product .kbene{grid-template-columns:1fr}}
#ktvhecom-product .kbene div{font-size:13.5px;padding:6px 0 6px 26px;position:relative;color:#3a4a58;border-bottom:1px dashed #eef2f6}
#ktvhecom-product .kbene div::before{content:"✔";position:absolute;left:0;top:8px;color:#fff;background:var(--kg);width:17px;height:17px;font-size:10px;border-radius:50%;display:flex;align-items:center;justify-content:center}
#ktvhecom-product .kstickybar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--kline);box-shadow:0 -4px 18px rgba(0,0,0,.1);padding:9px 14px;display:none;z-index:9999}
#ktvhecom-product .kstickybar .kin2{max-width:1220px;margin:0 auto;display:flex;align-items:center;gap:12px;justify-content:space-between}
#ktvhecom-product .kstickybar .kcta{width:auto;padding:11px 20px;font-size:14px;box-shadow:none}
@media(max-width:1000px){#ktvhecom-product .kstickybar{display:block}}

/* ---- Grid card (archive + [ux_products] fallback khi Woo tắt) — scope .ktvhecom-grid ---- */
/* Khớp khung theme: banner/container Flatsome = 1170px nội dung (đo thực tế 11/08) —
   grid tự giới hạn + căn giữa để không bung full-bleed ở khu vực content-area trang chủ */
.ktvhecom-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:18px auto;max-width:1170px}
@media(max-width:1199px){.ktvhecom-grid{padding-left:15px;padding-right:15px}}
@media(max-width:980px){.ktvhecom-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.ktvhecom-grid{grid-template-columns:1fr}}
.ktvhecom-grid .kpcard{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(20,38,63,.07);display:flex;flex-direction:column;transition:transform .15s ease, box-shadow .15s ease}
.ktvhecom-grid .kpcard:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(20,38,63,.13)}
.ktvhecom-grid .kpimg{display:block;aspect-ratio:4/3;background:#f2f6fa;overflow:hidden}
.ktvhecom-grid .kpimg img{width:100%;height:100%;object-fit:cover;display:block}
.ktvhecom-grid .kpbody{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.ktvhecom-grid .kpcat{font-size:11.5px;color:#2a83e9;font-weight:600;text-transform:uppercase;letter-spacing:.3px}
.ktvhecom-grid .kptitle{font-size:15px;line-height:1.35;font-weight:700;margin:0}
.ktvhecom-grid .kptitle a{color:#1f2b38;text-decoration:none}
.ktvhecom-grid .kptitle a:hover{color:#2b7a34}
.ktvhecom-grid .kpstars{color:#ffb300;font-size:13px;letter-spacing:1px}
.ktvhecom-grid .kpstars small{color:#5f7181;letter-spacing:0}
.ktvhecom-grid .kpprice{font-size:15.5px;font-weight:800;color:#e53935;margin-top:auto}
.ktvhecom-grid .kpprice .kfrom{font-size:12px;color:#5f7181;font-weight:400;margin-right:4px}
.ktvhecom-grid .kpcta{display:block;text-align:center;background:linear-gradient(135deg,#3fae49,#2b7a34);color:#fff;font-weight:700;font-size:13.5px;border-radius:8px;padding:9px 10px;text-decoration:none;margin-top:8px}
.ktvhecom-grid .kpcta:hover{filter:brightness(1.06);color:#fff}
.ktvhecom-archive-head{max-width:1220px;margin:14px auto 0;padding:0 16px}
.ktvhecom-archive-head h1{font-size:26px;margin:0 0 6px}
.ktvhecom-archive-head .kdesc{color:#5f7181;font-size:14.5px}
.ktvhecom-archive-wrap{max-width:1220px;margin:0 auto;padding:0 16px 40px}
