/* =========================================================
   Keramic – Trang chủ (giao diện giống bản thiết kế localhost)
   Mọi quy tắc gói trong .kth để không ảnh hưởng theme Flatsome.
   ========================================================= */
.kth {
  --bg: #0c0e11; --bg2: #11151a; --surface: #161b21; --surface2: #1c222a; --line: #262e37;
  --text: #ecf0f3; --muted: #b4bec8; --gold: #d6a650; --gold2: #f0c873; --gold-ink: #1a1307; --zalo: #0068ff;
  --r: 14px; --wrap: 1180px;
  background: var(--bg); color: var(--text);
  font: 18px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
.kth *, .kth *::before, .kth *::after { box-sizing: border-box; }
.kth [hidden] { display: none !important; }
.kth a { color: var(--gold2); text-decoration: none; }
.kth a:hover { text-decoration: underline; }
.kth img { max-width: 100%; height: auto; display: block; border: 0; }
.kth p { margin: 0 0 .8em; }
.kth ul, .kth ol { margin: 0; padding: 0; }
.kth li { margin: 0; }
.kth .kth-h1, .kth .kth-h2, .kth .kth-h3 { font-family: inherit; color: var(--text); text-transform: none; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
.kth .kth-h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.kth .kth-h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kth .kth-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.kth .kth-h3 { font-size: 1.15em; }
.kth-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.kth-narrow { max-width: 900px; }
.kth-muted { color: var(--muted); }
.kth-small { font-size: .85em; margin: 0; }
.kth-eyebrow, .kth-kicker { color: var(--gold2); font-size: .8em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.kth-fine { color: var(--muted); font-size: .85em; margin-top: 16px; }

/* Nút */
.kth .kth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin: 0; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; text-decoration: none; box-shadow: none; }
.kth .kth-btn:hover { transform: translateY(-1px); text-decoration: none; }
.kth .kth-btn svg { width: 20px; height: 20px; }
.kth .kth-btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); }
.kth .kth-btn-ghost { background: transparent; color: var(--text); border-color: #3a4550; }
.kth .kth-btn-ghost:hover { border-color: var(--gold); }
.kth .kth-btn-zalo { background: var(--zalo); color: #fff; }
.kth .kth-btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.kth-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Ảnh nền chạy */
.kth-hero { position: relative; display: flex; align-items: center; min-height: min(86vh, 760px); padding: 96px 0 110px; }
.kth-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.kth-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 6s ease-out; }
.kth-hero-bg img.on { opacity: 1; transform: scale(1); }
.kth-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, rgba(10, 12, 15, .94) 0%, rgba(10, 12, 15, .78) 45%, rgba(10, 12, 15, .45) 100%),
  linear-gradient(0deg, rgba(10, 12, 15, .95) 0%, rgba(10, 12, 15, 0) 35%); }
.kth-hero-in { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.kth-lead { font-size: 1.12em; color: #d6dde3; max-width: 620px; }
.kth-panel { background: rgba(22, 27, 33, .82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.kth-panel-title { font-size: 1.25em; font-weight: 700; }
.kth-sample { margin-top: 18px; padding: 14px 16px; border-radius: 10px; border: 1px dashed #4b3c20; background: rgba(214, 166, 80, .06); display: flex; justify-content: space-between; gap: 10px; }
.kth-sample span { color: var(--muted); font-size: .85em; }
.kth-sample strong { font-family: Consolas, monospace; letter-spacing: .08em; color: var(--gold2); }

/* Gạch đầu dòng */
.kth-ticks { list-style: none !important; margin: 0 0 12px !important; padding: 0 !important; }
.kth-ticks li { position: relative; padding-left: 26px; margin: 6px 0; color: #d4dbe1; list-style: none; }
.kth-ticks li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Thanh danh mục */
.kth-cat-wrap { position: relative; z-index: 3; margin-top: -56px; }
.kth-cat { list-style: none !important; margin: 0 !important; padding: 10px !important; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.kth-cat li { list-style: none; }
.kth-cat a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 6px; border-radius: 12px; color: var(--text); font-size: .82em; font-weight: 600; line-height: 1.3; }
.kth-cat a:hover { background: var(--surface2); color: var(--gold2); text-decoration: none; }
.kth-cat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(214, 166, 80, .12); color: var(--gold2); }
.kth-cat-ic svg { width: 26px; height: 26px; }

/* Khối chung */
.kth-sec { padding: 84px 0; }
.kth-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kth-head { max-width: 760px; margin-bottom: 36px; }

/* Thẻ dịch vụ ảnh lớn */
.kth-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.kth-svc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; scroll-margin-top: 120px; transition: border-color .2s, transform .2s; }
.kth-svc:hover, .kth-svc:target { border-color: #5a4622; transform: translateY(-2px); }
.kth-svc-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface2); }
.kth-svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
.kth-svc:hover .kth-svc-media img { transform: scale(1.04); }
.kth-svc-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 56px 20px 16px;
  background: linear-gradient(0deg, rgba(8, 10, 12, .92) 0%, rgba(8, 10, 12, .6) 55%, rgba(8, 10, 12, 0) 100%); }
.kth-svc-cap .kth-h3 { margin: 0; font-size: 1.2em; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.kth-svc-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(214, 166, 80, .92); color: var(--gold-ink); }
.kth-svc-ic svg { width: 24px; height: 24px; }
.kth-svc-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 22px; flex: 1; }
.kth-svc-short { margin: 0; color: #d0d7dd; }
.kth-more summary { cursor: pointer; color: var(--gold2); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.kth-more summary::-webkit-details-marker { display: none; }
.kth-more summary::after { content: "▾"; transition: transform .2s; }
.kth-more[open] summary::after { transform: rotate(180deg); }
.kth-more[open] summary { margin-bottom: 10px; }
.kth-note { font-size: .86em; color: #e8cf9a; background: rgba(229, 176, 74, .08); border-left: 3px solid #e5b04a; padding: 8px 10px; border-radius: 6px; }
.kth-svc-body .kth-btn { align-self: flex-start; margin-top: auto; }

/* Về xưởng */
.kth-store { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.kth-store-img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.kth-addr { color: #d4dbe1; margin-bottom: 6px; }
.kth-addr b { color: var(--text); }

/* Quy trình */
.kth-steps { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kth-steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.kth-step-no { display: inline-block; font: 800 1.6em Consolas, monospace; color: var(--gold); margin-bottom: 8px; }
.kth-steps p { color: var(--muted); margin: 0; }

/* Hình ảnh thi công */
.kth-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.kth-gal figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kth-gal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.kth-gal a:hover img { transform: scale(1.03); }
.kth-gal figcaption { padding: 10px 14px; font-size: .88em; color: var(--muted); }

/* Form */
.kth-field { display: flex; flex-direction: column; gap: 6px; font-size: .9em; color: var(--muted); margin: 0; }
.kth-grow { flex: 1 1 220px; }
.kth input:not([type=checkbox]), .kth select, .kth textarea {
  width: 100%; height: auto; min-height: 50px; margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 15px; font-family: inherit; font-size: 1rem; line-height: 1.4; box-shadow: none; }
.kth textarea { min-height: 96px; resize: vertical; }
.kth input:focus, .kth select:focus, .kth textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 166, 80, .18); background: var(--bg); color: var(--text); }
.kth input::placeholder, .kth textarea::placeholder { color: #6f7a85; }
.kth input[type=date] { color-scheme: dark; }
.kth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.kth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kth-span2 { grid-column: span 2; }
.kth-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; color: var(--muted); margin: 0; }
.kth-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.kth-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kth-msg { font-weight: 600; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.kth-ok { color: #4cc38a; background: rgba(76, 195, 138, .1); }
.kth-err { color: #ef6b6b; background: rgba(239, 107, 107, .1); }

/* Tra cứu bảo hành */
.kth-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 16px; }
.kth .kth-tabs button { background: none; border: 0; margin: 0; color: var(--muted); padding: 10px 18px; border-radius: 999px; font-family: inherit; font-size: .9rem; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer; min-height: 0; }
.kth .kth-tabs button[aria-selected=true] { background: var(--surface2); color: var(--gold2); }
.kth-lookup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0; }

/* Phần mềm */
.kth-apks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kth-apk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.kth-apk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.kth-apk-head .kth-h3 { margin: 0; }

/* Hỏi đáp */
.kth-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
.kth-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.kth-faq summary::-webkit-details-marker { display: none; }
.kth-faq summary::after { content: "+"; color: var(--gold2); font-size: 1.3em; line-height: 1; }
.kth-faq details[open] summary::after { content: "–"; }
.kth-faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Màn hình vừa */
@media (max-width: 1100px) {
  .kth-cat { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 960px) {
  .kth-hero-in, .kth-store { grid-template-columns: 1fr; }
  .kth-steps { grid-template-columns: 1fr 1fr; }
}
/* Điện thoại */
@media (max-width: 760px) {
  .kth { font-size: 17px; }
  .kth-hero { min-height: 0; padding: 56px 0 48px; }
  .kth-hero::before { background: linear-gradient(0deg, rgba(10, 12, 15, .95) 10%, rgba(10, 12, 15, .7) 100%); }
  .kth-panel { display: none; }
  .kth-cat-wrap { margin-top: 0; padding-top: 16px; }
  .kth-cat { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px !important; }
  .kth-cat li { flex: 0 0 104px; scroll-snap-align: start; }
  .kth-sec { padding: 60px 0; }
  .kth-svc-grid { grid-template-columns: 1fr; }
  .kth-steps { grid-template-columns: 1fr; }
  .kth-form-grid { grid-template-columns: 1fr; }
  .kth-span2 { grid-column: auto; }
  .kth-lookup .kth-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kth-hero-bg img { transition: none; transform: none; }
}
