/* =========================================================================
   K.B.Auto — site stylesheet (loaded by kbauto-core; Oxygen does not load the theme)
   Design: Figma "Home/Hot Cars/Review/Contact Us - K.B.Auto" (1920 frames), docs/figma/*.md
   Breakpoints: xl ≥1600 · lg 1200–1599 · md 768–1199 · sm <768
   Selectors are prefixed with `body` so they win over Oxygen's generic class CSS
   (element-level settings made in Oxygen still win, because they use IDs).
   ========================================================================= */

:root {
	--kb-red: #DC2626;
	--kb-red-deep: #B70011;
	--kb-dark: #2E3132;
	--kb-black: #090100; /* page-head bands (Figma 2026-09-27) */
	--kb-red-dark: #A60000; /* footer + reviews CTA card (Figma 2026-09-27) */
	--kb-footer-bg: var(--kb-red-dark);
	--kb-pink: #FFB4AB;
	--kb-pink-soft: #FFDAD6;
	--kb-text: #191C1D;
	--kb-text-2: #5F5E60;
	--kb-text-nav: #5C403C;
	--kb-text-footer: #E1E3E4;
	--kb-white: #FFFFFF;
	--kb-gray-50: #F8F9FA;
	--kb-gray-100: #F3F4F5;
	--kb-gray-150: #EDEEEF;
	--kb-line-green: #0EAC00;
	--kb-fb-blue: #0055FF;
	--kb-font-latin: "Plus Jakarta Sans", sans-serif;
	--kb-font-thai: "Noto Sans Thai", sans-serif;
	--kb-font: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
	--kb-radius-xs: 2px;
	--kb-radius-sm: 4px;
	--kb-radius-md: 8px;
	--kb-shadow-card: 0 1px 2px rgba(0, 0, 0, .05);
	--kb-shadow-header: 0 1px 8px rgba(0, 0, 0, .04);
	--kb-container: 1920px;
	--kb-gutter: 100px;
	--kb-header-h: 80px;
}
@media (max-width: 1439px) { :root { --kb-gutter: 48px; } }
@media (max-width: 1023px) { :root { --kb-gutter: 32px; --kb-header-h: 72px; } }
@media (max-width: 767px)  { :root { --kb-gutter: 16px; --kb-header-h: 64px; } }

/* ---------------------------------------------------------------- base */
html body.kbauto-site {
	font-family: var(--kb-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--kb-text);
	background: var(--kb-white);
	-webkit-font-smoothing: antialiased;
}
:where(body.kbauto-site) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--kb-font); color: var(--kb-text); }
:where(body.kbauto-site) :where(a) { color: inherit; }
:where(body.kbauto-site) :where(img) { max-width: 100%; height: auto; }
body .kb-site-footer .kb-footer-title, body .kb-dark-cta .kb-dark-cta__title { color: #fff; }
body .kb-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Oxygen sections: 1920 max, responsive side gutter */
body .ct-section-inner-wrap { max-width: var(--kb-container); padding-left: var(--kb-gutter); padding-right: var(--kb-gutter); }
body .kb-section--flush > .ct-section-inner-wrap { max-width: none; padding-left: 0; padding-right: 0; }
body .ct-section-inner-wrap > .ct-div-block, body .ct-section-inner-wrap > .ct-shortcode, body .ct-section-inner-wrap > .ct-text-block { width: 100%; }
body .ct-shortcode, body .ct-text-block { max-width: 100%; }

/* visibility helpers */
@media (max-width: 767px) { body .kb-hide-mobile { display: none !important; } }
@media (min-width: 768px) { body .kb-show-mobile { display: none !important; } }

/* ---------------------------------------------------------------- header (Figma 1920×80, glass, sticky) */
body .kb-site-header {
	position: sticky; top: 0; z-index: 1000; display: block; width: 100%;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	box-shadow: var(--kb-shadow-header);
	transition: box-shadow .2s ease;
}
body.admin-bar .kb-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .kb-site-header { top: 46px; } }
body .kb-site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .08); }
body .kb-site-header__inner {
	display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 24px;
	width: 100%; max-width: var(--kb-container); min-height: var(--kb-header-h); margin: 0 auto; padding: 0 var(--kb-gutter);
}
body .kb-site-header__logo { display: block; flex: none; order: 1; line-height: 0; }
body .kb-site-header__logo img { display: block; width: 129px; height: auto; }
@media (max-width: 1023px) { body .kb-site-header__logo img { width: 110px; } }
@media (max-width: 767px)  { body .kb-site-header__logo img { width: 96px; } }

/* primary nav (Oxygen Menu element) */
body .kb-site-nav { order: 2; flex: 1 1 auto; display: flex; justify-content: center; }
body .kb-site-nav .oxy-nav-menu-list { gap: 24px; }
body .kb-site-nav .menu-item a {
	padding: 0 !important; font-size: 14px; line-height: 20px; letter-spacing: .28px; font-weight: 600;
	color: var(--kb-text-nav); text-decoration: none; border: 0 !important;
}
body .kb-site-nav .menu-item a:hover { color: var(--kb-red-deep); }
body .kb-site-nav .current-menu-item > a, body .kb-site-nav .current_page_item > a { color: var(--kb-red-deep); font-weight: 500; font-size: 15px; line-height: 24px; letter-spacing: 0; }
@media (min-width: 1600px) {
	body .kb-site-nav .menu-item a { font-size: 18px; line-height: 24px; letter-spacing: .2px; }
	body .kb-site-nav .current-menu-item > a, body .kb-site-nav .current_page_item > a { font-size: 18px; line-height: 24px; }
}

/* header actions (phone pill + LINE) */
body .kb-site-header__actions { order: 3; flex: none; width: auto; }
body .kb-header-actions { display: flex; align-items: center; gap: 16px; }
body .kb-phone-pill {
	display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--kb-radius-sm);
	background: var(--kb-gray-100); color: var(--kb-text); font-size: 12px; line-height: 16px; letter-spacing: .48px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
body .kb-phone-pill svg { width: 12px; height: 12px; }
body .kb-line-btn {
	display: inline-flex; align-items: center; gap: 4px; padding: 4px 16px; border-radius: var(--kb-radius-sm);
	background: var(--kb-red); color: #fff !important; font-size: 12px; line-height: 16px; letter-spacing: .48px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s;
}
body .kb-line-btn:hover { background: var(--kb-red-deep); }
body .kb-line-btn svg { width: 12px; height: 12px; }
@media (min-width: 1600px) {
	body .kb-phone-pill, body .kb-line-btn { font-size: 14px; line-height: 20px; letter-spacing: .28px; }
	body .kb-phone-pill svg, body .kb-line-btn svg { width: 14px; height: 14px; }
}

/* tablet + mobile: logo | actions | hamburger */
@media (max-width: 1199px) {
	body .kb-site-nav { order: 3; flex: none; }
	body .kb-site-header__actions { order: 2; margin-left: auto; }
	body .kb-site-nav .oxy-menu-toggle { cursor: pointer; }
	body .kb-site-nav .oxy-nav-menu-hamburger-line { background-color: var(--kb-text) !important; }
}
@media (max-width: 767px) {
	body .kb-header-actions { gap: 8px; }
	body .kb-phone-pill span { display: none; }
	body .kb-phone-pill { padding: 8px; }
	body .kb-line-btn { padding: 6px 10px; }
	body .kb-line-btn span { display: none; }
	body .kb-line-btn svg { width: 16px; height: 16px; }
}

/* ---------------------------------------------------------------- footer (Figma 1920×301, #2E3132) */
/* Deep red footer (Figma 2026-09-27); !important beats Oxygen's #section-8-103 background rule. */
body .kb-site-footer { background-color: var(--kb-footer-bg) !important; color: var(--kb-text-footer); }
body .kb-site-footer .ct-section-inner-wrap { display: block; }
body .kb-site-footer > .ct-section-inner-wrap { padding-bottom: 30px !important; } /* was 50px (Oxygen) — owner asked for less space under the copyright */
body .kb-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
body .kb-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
body .kb-footer-brand { display: flex; flex-direction: row; align-items: center; gap: 8px; }
body .kb-footer-brand__name { margin: 0; color: #fff; font-family: var(--kb-font-latin); font-size: 18px; line-height: 26px; font-weight: 700; }
body .kb-badge-premium { display: inline-block; padding: 2px 4px; border-radius: var(--kb-radius-xs); background: var(--kb-red); color: #fff; font-family: var(--kb-font-latin); font-size: 11px; line-height: 16px; letter-spacing: .88px; font-weight: 700; }
body .kb-badge-premium:empty { display: none; } /* "ป้ายข้างชื่อ" left blank in ข้อมูลติดต่อ */
body .kb-site-footer .kb-badge-premium { background: #fff; color: var(--kb-footer-bg); } /* a red badge would vanish on the red footer (owner's choice) */
body .kb-footer-text { font-size: 13px; line-height: 21px; letter-spacing: .13px; color: var(--kb-text-footer); }
body .kb-footer-title { margin: 0; color: #fff; font-size: 14px; line-height: 20px; letter-spacing: .7px; text-transform: uppercase; font-weight: 700; }
body .kb-footer-menu .oxy-nav-menu-list { flex-direction: column; gap: 4px; }
body .kb-footer-menu .menu-item a { padding: 0 !important; color: var(--kb-text-footer); font-size: 13px; line-height: 20px; letter-spacing: .13px; text-decoration: none; border: 0 !important; }
body .kb-footer-menu .menu-item a:hover { color: #fff; }
body .kb-footer-menu .oxy-menu-toggle { display: none !important; }
body .kb-footer-menu .oxy-nav-menu-list { display: flex !important; }
body .kb-footer-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
body .kb-footer-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 20px; letter-spacing: .13px; }
body .kb-footer-line svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--kb-pink); }
body .kb-footer-line a, body .kb-footer-line span { color: var(--kb-text-footer); text-decoration: none; }
body .kb-footer-line a:hover { color: #fff; }
body .kb-footer-bottom { padding-top: 30px; text-align: center; }
body .kb-footer-copy { width: 100%; text-align: center; font-size: 13px; line-height: 20px; letter-spacing: .13px; color: var(--kb-text-footer); }
@media (max-width: 1199px) { body .kb-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { body .kb-footer-cols { grid-template-columns: 1fr; gap: 28px; } body .kb-footer-copy { font-size: 12px; } }

/* ---------------------------------------------------------------- shared type */
body .kb-h2 { margin: 0; font-family: var(--kb-font); font-size: 40px; line-height: 48px; letter-spacing: -1px; font-weight: 500; color: var(--kb-text); }
body .kb-subtitle { margin: 0; font-size: 15px; line-height: 24px; color: var(--kb-text-2); }
body .kb-text-lg { font-size: 18px; line-height: 29px; color: var(--kb-text-2); }
body .kb-text-md { font-size: 15px; line-height: 24px; color: var(--kb-text-2); }
@media (max-width: 767px) { body .kb-h2 { font-size: 28px; line-height: 36px; letter-spacing: -.5px; } body .kb-text-lg { font-size: 16px; line-height: 26px; } }

body .kb-section-head { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; width: 100%; }
body .kb-section-head__text { display: flex; flex-direction: column; gap: 8px; max-width: 70%; }
@media (max-width: 767px) { body .kb-section-head__text { max-width: 100%; } }
body .kb-link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; letter-spacing: .28px; font-weight: 500; color: var(--kb-text); text-decoration: none; }
body .kb-link-arrow::after { content: "→"; font-size: 14px; transition: transform .2s; }
body .kb-link-arrow:hover { color: var(--kb-red); }
body .kb-link-arrow:hover::after { transform: translateX(3px); }

body .kb-h-sub { font-family: var(--kb-font-thai); font-weight: 400; font-size: 28px; line-height: 36px; letter-spacing: -.56px; color: var(--kb-text-footer); margin-left: 8px; }
body .kb-h-sub--gray { color: rgba(95, 94, 96, .8); font-family: var(--kb-font-latin); font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -.8px; }
@media (max-width: 767px) { body .kb-h-sub { display: block; margin-left: 0; font-size: 20px; line-height: 28px; } body .kb-h-sub--gray { font-size: 26px; line-height: 32px; } }

body .kb-overline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--kb-font-latin); font-size: 11px; line-height: 16px; letter-spacing: 1.1px; font-weight: 700; text-transform: uppercase; color: var(--kb-red-deep); }
body .kb-overline .kb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-red); display: inline-block; }
body .kb-row-label { display: flex; align-items: center; gap: 16px; width: 100%; }
body .kb-row-label .kb-overline { white-space: nowrap; }
body .kb-row-label hr { flex: 1; margin: 0; border: 0; border-top: 1px solid #E1E3E4; }
body .kb-row-label__right { font-size: 11px; line-height: 16px; letter-spacing: .88px; color: var(--kb-text-2); white-space: nowrap; }
@media (max-width: 767px) { body .kb-row-label__right { display: none; } }

/* pills / chips */
body .kb-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--kb-radius-xs); font-size: 11px; line-height: 16px; letter-spacing: .88px; font-weight: 400; white-space: nowrap; width: auto; }
body .kb-pill svg { width: 10px; height: 12px; }
body .kb-pill--red { background: var(--kb-red); color: #fff; }
body .kb-pill--pink { background: var(--kb-pink-soft); color: #410002; border-radius: 12px; font-family: var(--kb-font-latin); font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
body .kb-pill--pink svg { width: 12px; height: 12px; }
body .kb-pill--gray { background: var(--kb-gray-150); color: var(--kb-text); border-radius: 12px; font-size: 12px; letter-spacing: .48px; }
body .kb-pill--dark { background: rgba(255, 255, 255, .1); color: var(--kb-text-footer); font-family: var(--kb-font-latin); font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
body .kb-dot--green { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-line-green); display: inline-block; }
body .kb-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12px; line-height: 16px; letter-spacing: .48px; color: var(--kb-text-nav); }
body .kb-status-row svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }
body .kb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body .kb-chips span, body .kb-chips a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 16px; border-radius: var(--kb-radius-sm); font-size: 12px; line-height: 16px; letter-spacing: .48px; background: #fff; color: var(--kb-text-2); text-decoration: none; box-shadow: var(--kb-shadow-card); }
body .kb-chips .is-active { background: var(--kb-text); color: #fff; }
body .kb-chips--square span, body .kb-chips--square a { border-radius: var(--kb-radius-xs); }
body .kb-chips--square .is-active { background: var(--kb-dark); }
body .kb-stock-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 16px; letter-spacing: .88px; color: var(--kb-text-2); }
body .kb-stock-updated .kb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--kb-red); }

/* buttons */
body .kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: var(--kb-radius-sm); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .28px; text-decoration: none; transition: background .2s ease; }
body .kb-btn svg { width: 16px; height: 16px; flex: none; }
body .kb-btn--red { background: var(--kb-red); color: #fff !important; }
body .kb-btn--red:hover { background: var(--kb-red-deep); }
body .kb-btn--dark { background: var(--kb-dark); color: #fff !important; }
body .kb-btn--dark:hover { background: #000; }
body .kb-btn--white { background: #fff; color: var(--kb-text) !important; }
body .kb-btn--white:hover { background: var(--kb-gray-100); }
body .kb-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
body .kb-cta-buttons .kb-btn { padding: 8px 24px; border-radius: var(--kb-radius-xs); font-size: 14px; line-height: 20px; letter-spacing: .28px; }
body .kb-cta-buttons .kb-btn svg { width: 14px; height: 14px; }
body .kb-cta-buttons--rounded .kb-btn { border-radius: var(--kb-radius-sm); }

/* ---------------------------------------------------------------- HOME: hero slider */
body .kb-hero { position: relative; background: #fff; }
body .kb-hero-slider { width: 100%; }
body .kb-hero-slider .oxygen-unslider-container, body .kb-hero-slider .unslider { width: 100%; }
body .kb-hero-slider ul { margin: 0; padding: 0; }
body .kb-hero-slider .ct-slide { padding: 0 !important; display: block; }
/* Slider layout that Oxygen used to generate per slider (#slider-3-28 …); now shared by [kbauto_hero]. */
body .kb-hero-slider .unslider { padding: 0; }
body .kb-hero-slider .unslider-wrap { display: flex; }
body .kb-hero-slider .unslider, body .kb-hero-slider .oxygen-unslider-container, body .kb-hero-slider .unslider-wrap, body .kb-hero-slider .unslider-wrap li { height: 100%; }
body .kb-hero-slider .unslider-fade ul li.unslider-active { width: 100%; }
body .kb-hero-slider .ct-slide { height: 100%; }
/* Slide dots sit a little above the banner's bottom edge: 10px on phones up to 28px on large screens. */
body .kb-hero-slider .unslider .unslider-nav { position: absolute; bottom: clamp(10px, 2.2vw, 28px); left: 0; right: 0; z-index: 100; }
body .kb-hero > .ct-section-inner-wrap > .ct-shortcode { width: 100%; }
/* PC/tablet banner: fixed 1920×750 (2.56:1) — on a 1920×1080 monitor header + banner + red strip fill the screen.
   Mobile banner is fixed 3:4 (MB artwork 1080×1440). */
body .kb-hero-img { display: block; width: 100% !important; max-width: none; height: auto; aspect-ratio: 1920 / 750; object-fit: cover; object-position: center; }
/* PC banner (≥768px) fills the first screen: header (80) + banner + red strip (120) = window height.
   Kept within the 1920×840 artwork: never taller than it (no side crop), never shorter than its middle 1920×630 band. */
body .kb-hero-slider:not(.kb-hero-slider--mobile) .kb-hero-img { aspect-ratio: auto; height: clamp(32.8125vw, calc(100vh - 200px), 43.75vw) !important; }
body .kb-hero-slider--mobile .kb-hero-img { aspect-ratio: 640 / 300; object-fit: cover; object-position: center; } /* MB artwork 640×300 ratio, e.g. 1280×600 (PC banners fall back here, cropped a little at the sides) */
body .kb-hero-slider .unslider-nav { position: absolute; left: 0; right: 0; margin: 0; }
body .kb-hero-slider .unslider-nav ol { display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
body .kb-hero-slider .unslider-nav ol li { width: 10px; height: 10px; margin: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; }
body .kb-hero-slider .unslider-nav ol li.unslider-active { background: var(--kb-red); }
/* Drag/swipe to change slide (site.js): vertical page scroll still passes through on touch screens. */
body .kb-hero-slider { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
body .kb-hero-slider img { -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) {
	body .kb-hero-slider .unslider { cursor: grab; }
	body .kb-hero-slider.is-dragging .unslider { cursor: grabbing; }
}
body .kb-hero-slider .unslider-nav ol li:only-child { display: none; }

/* HOME: social strip under the banner (Figma 1920×120, icons 70px) — [kbauto_social_bar], icons from "ข้อมูลติดต่อ" */
body .kb-social-strip { background: var(--kb-black); }
body .kb-social-strip .ct-shortcode { width: 100%; }
body .kb-social-strip__icons { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; width: 100%; }
body .kb-social-strip__icon { display: block; width: 70px; height: 70px; flex: none; transition: transform .2s; }
body .kb-social-strip__icon:hover { transform: translateY(-3px) scale(1.04); }
body .kb-social-strip__icon img { display: block; width: 70px !important; height: 70px !important; border-radius: 50%; object-fit: cover; }
body .kb-social-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--kb-white); color: var(--kb-text); }
body .kb-social-fallback svg { width: 46%; height: 46%; }
@media (max-width: 767px) {
	body .kb-social-strip__icons { gap: 20px; }
	body .kb-social-strip__icon, body .kb-social-strip__icon img { width: 52px !important; height: 52px !important; }
}

/* Floating contact button, every page bottom right: headset → X, the strip's channels slide up with labels (site.js) */
.kb-social-sticky { --kb-fab: 60px; --kb-fab-gap: 24px; position: fixed; right: calc(var(--kb-fab-gap) + env(safe-area-inset-right, 0px)); bottom: calc(var(--kb-fab-gap) + env(safe-area-inset-bottom, 0px)); z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--kb-font); pointer-events: none; }
.kb-social-sticky__list { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; visibility: hidden; transition: visibility 0s linear .4s; }
.kb-social-sticky.is-open .kb-social-sticky__list { visibility: visible; transition-delay: 0s; }
.kb-social-sticky__item { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: 0; transform: translateY(12px) scale(.85); transform-origin: right center; transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .3, 1.2); transition-delay: calc(var(--kb-i, 0) * 45ms); }
.kb-social-sticky.is-open .kb-social-sticky__item { opacity: 1; transform: none; pointer-events: auto; }
.kb-social-sticky__label { padding: 9px 14px; border-radius: 999px; background: var(--kb-white); color: var(--kb-text); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.kb-social-sticky__icon { display: block; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--kb-white); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); overflow: hidden; transition: transform .2s; }
.kb-social-sticky__icon img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.kb-social-sticky__item:hover .kb-social-sticky__icon, .kb-social-sticky__item:focus-visible .kb-social-sticky__icon { transform: scale(1.06); }
.kb-social-sticky__item:focus-visible { outline: none; }
.kb-social-sticky__item:focus-visible .kb-social-sticky__label { box-shadow: 0 0 0 3px var(--kb-text); }
.kb-social-sticky__toggle { position: relative; display: grid; place-items: center; width: var(--kb-fab); height: var(--kb-fab); margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--kb-red); color: var(--kb-white); box-shadow: 0 6px 20px rgba(0, 0, 0, .28); cursor: pointer; pointer-events: auto; transition: transform .2s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.kb-social-sticky__toggle:hover { background: var(--kb-red-deep); transform: scale(1.05); }
.kb-social-sticky__toggle:focus-visible { outline: 3px solid var(--kb-text); outline-offset: 3px; }
.kb-social-sticky__toggle svg { position: absolute; width: 30px; height: 30px; transition: transform .3s ease, opacity .2s ease; }
.kb-social-sticky__toggle .kb-ic-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.kb-social-sticky.is-open .kb-ic-headset { opacity: 0; transform: rotate(90deg) scale(.6); }
.kb-social-sticky.is-open .kb-ic-close { opacity: 1; transform: none; }
body:has(.oxy-nav-menu-open) .kb-social-sticky, .kb-lightbox-open .kb-social-sticky { display: none; }
@media (max-width: 767px) {
	.kb-social-sticky { --kb-fab: 56px; --kb-fab-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .kb-social-sticky__list, .kb-social-sticky__item, .kb-social-sticky__toggle, .kb-social-sticky__toggle svg { transition: none; } }
@media print { .kb-social-sticky { display: none; } }

/* HOME: latest arrivals */
body .kb-latest { background: var(--kb-gray-50); }
body .kb-latest .ct-section-inner-wrap { display: flex; flex-direction: column; gap: 40px; }

/* HOME: services row — 4 round images + caption (Figma 1920×201) */
body .kb-services { background: #fff; }
/* Tablet/PC layout comes from Oxygen's ID rule (#div_block-27-28: centred flex row of 4); phones switch to a 2 × 2 grid below. */
body .kb-services__grid { gap: 30px; width: 100%; }
body .kb-service { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
body .kb-service__img { display: block; width: 100px !important; height: 100px !important; border-radius: 50%; object-fit: cover; background: var(--kb-gray-100); }
body .kb-service__text { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--kb-text); text-align: center; text-wrap: balance; }
@media (max-width: 1023px) { body .kb-services__grid { gap: 24px; } }
@media (max-width: 767px)  { body .kb-services__grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; align-items: start !important; } }
@media (max-width: 479px)  { body .kb-service__img { width: 84px !important; height: 84px !important; } body .kb-service__text { font-size: 14px; line-height: 20px; } }

/* ---------------------------------------------------------------- page head (dark) */
/* Dark page-head band (Hot Cars, car archive/brand). !important beats Oxygen's #section-1-29 background rule. */
body .kb-page-head { background-color: var(--kb-black) !important; color: #fff; }
body .kb-page-head__row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; width: 100%; }
body .kb-page-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 720px; }
body .kb-page-head h1, body .kb-page-head .kb-page-head__title { margin: 0; font-family: var(--kb-font-latin); font-size: 40px; line-height: 48px; letter-spacing: -1px; font-weight: 700; color: #fff; }
body .kb-page-head p, body .kb-page-head__desc { margin: 0; font-size: 15px; line-height: 24px; color: var(--kb-text-footer); }
@media (max-width: 767px) { body .kb-page-head h1, body .kb-page-head .kb-page-head__title { font-size: 30px; line-height: 38px; } }
/* template (archive) variant renders its own inner container */
body .kb-page-head__inner { max-width: var(--kb-container); margin: 0 auto; padding: 40px var(--kb-gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; } /* stock box sits at the bottom, like Hot Cars */

body .kb-stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--kb-radius-sm); background: rgba(225, 227, 228, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; width: auto; }
body .kb-stat svg { width: 22px; height: 21px; color: var(--kb-pink); flex: none; }
body .kb-stat__label { display: block; font-size: 11px; line-height: 16px; letter-spacing: .88px; text-transform: uppercase; color: var(--kb-text-footer); }
body .kb-stat__value { display: block; font-size: 18px; line-height: 26px; color: #fff; }

/* Hot Cars list + assurance band */
body .kb-hot-list { background: var(--kb-gray-50); }
body .kb-assurance-band { background: var(--kb-gray-100); }
body .kb-assurance { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; width: 100%; max-width: 1440px; margin: 0 auto; padding: 40px; border-radius: var(--kb-radius-md); background: #fff; box-shadow: var(--kb-shadow-card); }
body .kb-assurance__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 580px; }
body .kb-assurance h2, body .kb-assurance__title { margin: 0; font-size: 28px; line-height: 36px; letter-spacing: -.56px; font-weight: 500; color: var(--kb-text); }
body .kb-assurance p, body .kb-assurance__desc { margin: 0; font-size: 15px; line-height: 24px; color: var(--kb-text-2); }
@media (max-width: 767px) { body .kb-assurance { padding: 24px; } body .kb-assurance h2, body .kb-assurance__title { font-size: 22px; line-height: 30px; } }

/* ---------------------------------------------------------------- reviews page */
body .kb-reviews { background: var(--kb-gray-50); overflow-x: clip; }
body .kb-reviews .ct-section-inner-wrap { display: flex; flex-direction: column; gap: 32px; }
/* Reviews intro sits inside the same Oxygen section as the review grid, so its dark full-width band is drawn
   behind the intro row (Figma 2026-09-27: 28px above and below the text, like the Hot Cars band). */
body .kb-reviews > .ct-section-inner-wrap { padding-top: 28px !important; }
body .ct-div-block:has(> .kb-page-intro__text) { position: relative; isolation: isolate; margin-bottom: 28px; }
body .ct-div-block:has(> .kb-page-intro__text)::before { content: ""; position: absolute; z-index: -1; top: -28px; bottom: -28px; left: 50%; width: 100vw; margin-left: -50vw; background: var(--kb-black); }
body .kb-page-intro__text .kb-h1-xl { color: #fff; }
body .kb-page-intro__text .kb-text-lg { color: var(--kb-text-footer); }
body .kb-page-intro { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; width: 100%; }
body .kb-page-intro__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 720px; }
body .kb-h1-xl { margin: 0; font-family: var(--kb-font); font-size: 56px; line-height: 64px; letter-spacing: -1.68px; font-weight: 500; color: var(--kb-text); }
body .kb-h-accent { margin: 0; font-family: var(--kb-font-latin); font-size: 40px; line-height: 48px; letter-spacing: -.8px; font-weight: 700; color: rgba(220, 38, 38, .9); }
@media (max-width: 767px) { body .kb-h1-xl { font-size: 36px; line-height: 44px; letter-spacing: -1px; } body .kb-h-accent { font-size: 26px; line-height: 32px; } }
/* Rating box on the dark band: translucent glass, same recipe as the Hot Cars .kb-stat. */
body .kb-stat-card { display: inline-flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--kb-radius-sm); background: rgba(225, 227, 228, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); width: auto; }
body .kb-stat-card__icon { width: 52px; height: 44px; border-radius: var(--kb-radius-sm); background: var(--kb-pink-soft); display: grid; place-items: center; color: var(--kb-red-deep); flex: none; }
body .kb-stat-card__icon svg { width: 22px; height: 22px; }
body .kb-stat-card__value { display: block; font-family: var(--kb-font-latin); font-size: 22px; line-height: 30px; letter-spacing: -.22px; font-weight: 700; color: #fff; }
body .kb-stat-card__label { display: block; font-size: 13px; line-height: 20px; letter-spacing: .13px; color: #fff; }
/* Score + 5 stars ([kbauto_review_rating]); the red layer is clipped to the exact average (4.86 → 4 stars + 86% of the 5th). */
body .kb-stat-card__top { display: flex; align-items: center; gap: 10px; }
body .kb-stat-card__top .kb-stat-card__value { display: inline; }
body .kb-rating-stars { --s: 14px; --g: 2px; position: relative; display: inline-flex; line-height: 0; color: rgba(255, 255, 255, .25); }
body .kb-rating-stars__base, body .kb-rating-stars__fill { display: inline-flex; gap: var(--g); white-space: nowrap; }
body .kb-rating-stars__fill { position: absolute; top: 0; left: 0; overflow: hidden; width: calc(var(--kb-full, 5) * (var(--s) + var(--g)) + var(--kb-frac, 0) * var(--s)); color: var(--kb-red); }
body .kb-rating-stars svg { flex: none; width: var(--s); height: var(--s); }
body .kb-stat-card:not(:has(.kb-stat-card__value)) { display: none; } /* no reviews yet */
/* Page-head rows (Hot Cars, Reviews): on phones and tablets put the stat card under the text instead of beside it.
   Matched by structure because these rows carry Oxygen layout settings (ID rules), not classes. */
@media (max-width: 1023px) {
	body .ct-div-block:has(> .kb-stat), body .ct-div-block:has(> .kb-stat-card),
	body .kb-page-head__row, body .kb-page-intro { flex-direction: column !important; align-items: flex-start !important; flex-wrap: wrap !important; gap: 20px; }
	body .kb-stat, body .kb-stat-card { max-width: 100%; }
}
/* Tablet and up: the stat card keeps its size instead of being squeezed by the text beside it. */
@media (min-width: 768px) {
	body .kb-stat, body .kb-stat-card { flex-shrink: 0; }
	body .kb-stat__label, body .kb-stat__value, body .kb-stat-card__label { white-space: nowrap; }
}
body .kb-stat__label, body .kb-stat-card__label { text-wrap: balance; }
body .kb-trust { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; width: 100%; padding: 40px; border-radius: var(--kb-radius-md); background: var(--kb-gray-100); }
body .kb-trust__left { display: flex; align-items: center; gap: 16px; }
body .kb-trust__icon { width: 56px; height: 56px; border-radius: 12px; background: var(--kb-red); color: #fff; display: grid; place-items: center; flex: none; }
body .kb-trust__icon svg { width: 22px; height: 27px; }
body .kb-trust h4 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; color: var(--kb-text); }
body .kb-trust p { margin: 4px 0 0; font-size: 13px; line-height: 20px; letter-spacing: .13px; color: var(--kb-text-2); }
body .kb-trust__stats { display: flex; gap: 16px; }
body .kb-trust__stat { text-align: right; }
body .kb-trust__stat + .kb-trust__stat { padding-left: 16px; border-left: 1px solid #E1E3E4; }
body .kb-trust__stat small { display: block; font-size: 11px; line-height: 16px; letter-spacing: .88px; text-transform: uppercase; color: var(--kb-text-2); }
body .kb-trust__stat strong { display: block; font-size: 22px; line-height: 30px; letter-spacing: -.22px; font-weight: 500; color: var(--kb-text); white-space: nowrap; }
body .kb-trust__stat strong.is-red { color: var(--kb-red-deep); }
/* Phones: the two figures stack (side by side they broke mid-word, e.g. "1,240+ / คัน"). */
@media (max-width: 767px) {
	body .kb-trust { padding: 24px; }
	body .kb-trust__stats { flex-direction: column; gap: 12px; width: 100%; }
	body .kb-trust__stat { text-align: left; }
	body .kb-trust__stat + .kb-trust__stat { padding: 12px 0 0; border-left: 0; border-top: 1px solid #E1E3E4; }
}

body .kb-dark-cta { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 64px; border-radius: 16px; background: var(--kb-red-dark); overflow: hidden; position: relative; }
body .kb-dark-cta__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 760px; }
body .kb-dark-cta__title { margin: 0; font-size: 40px; line-height: 48px; letter-spacing: -.8px; font-weight: 500; color: #fff; text-wrap: balance; }
body .kb-dark-cta__desc { font-size: 18px; line-height: 28px; color: var(--kb-text-footer); }
/* Buttons on the red CTA card (Figma 2026-09-27): red phone icon; the red "ติดต่อฝ่ายขาย" button becomes a white outline
   button, because a red button would blend into the red card (owner's choice). */
body .kb-dark-cta .kb-btn--white svg { color: var(--kb-red-deep); }
body .kb-dark-cta .kb-btn--red { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px #fff; }
body .kb-dark-cta .kb-btn--red:hover, body .kb-dark-cta .kb-btn--red:focus-visible { background: rgba(255, 255, 255, .14); }
@media (max-width: 767px) { body .kb-dark-cta { padding: 32px 20px; } body .kb-dark-cta__title { font-size: 28px; line-height: 36px; } body .kb-dark-cta__desc { font-size: 16px; line-height: 26px; } }

/* ---------------------------------------------------------------- contact page */
/* Contact intro (section #1 on page 31 lost its kb-contact-head class, so it is matched by its description block):
   dark band (Figma 2026-09-27). Red accents use --kb-red instead of Figma's #B70011 — easier to read on black (owner's choice). */
body .kb-contact-head, body .ct-section:has(.kb-contact-head__desc) { background-color: var(--kb-black) !important; }
body .kb-contact-head .ct-section-inner-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
body .kb-contact-head__desc { max-width: 720px; color: var(--kb-text-footer); }
body .ct-section:has(.kb-contact-head__desc) .kb-h1-xl { color: #fff; }
body .ct-section:has(.kb-contact-head__desc) .kb-h-sub--gray { color: var(--kb-red); }
body .ct-section:has(.kb-contact-head__desc) .kb-status-row { color: var(--kb-red); }
/* The decorative glow was removed from the design; its Oxygen element (#div_block-6-31) stays but is hidden. */
body .kb-glow-orb { display: none !important; }
body .kb-channels { background: var(--kb-gray-50); }
body .kb-channels .ct-section-inner-wrap, body .kb-map-section .ct-section-inner-wrap, body .kb-gallery-section .ct-section-inner-wrap { display: flex; flex-direction: column; gap: 24px; }
body .kb-map-section { background: #fff; }
body .kb-map-block { display: flex; flex-direction: column; align-items: stretch; gap: 20px; width: 100%; max-width: 992px; margin: 0 auto; }
body .kb-map-block__head { display: flex; flex-direction: column; gap: 4px; }
body .kb-map-block__head h2 { text-wrap: balance; } /* keeps "ถนนกาญจนาภิเษก" together on phones */
body .kb-h3 { margin: 0; font-size: 28px; line-height: 36px; letter-spacing: -.56px; font-weight: 500; color: var(--kb-text); }
body .kb-map { position: relative; border-radius: var(--kb-radius-md); overflow: hidden; background: var(--kb-gray-100); box-shadow: var(--kb-shadow-card); height: var(--kb-map-h, 400px); }
body .kb-map iframe, body .kb-map__img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
body .kb-map a { display: block; height: 100%; }
@media (max-width: 767px) { body .kb-map { height: 280px; } }
body .kb-amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body .kb-amenity { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--kb-radius-sm); background: var(--kb-gray-100); }
body .kb-amenity svg { width: 20px; height: 20px; color: var(--kb-red-deep); flex: none; }
/* Figma 2026-09-27 icon sizes: parking P 13×18, speedometer 20×16, cup 18×18 (centred in the 20px column). */
body .kb-amenity svg.kb-ic-park { width: 13px; height: 18px; margin: 0 3.5px; }
body .kb-amenity svg.kb-ic-speed { width: 20px; height: 18px; }
body .kb-amenity svg.kb-ic-cup { width: 18px; height: 18px; margin: 0 1px; }
body .kb-amenity strong { display: block; font-size: 14px; line-height: 20px; letter-spacing: .28px; font-weight: 500; color: var(--kb-text); }
body .kb-amenity span { display: block; font-size: 13px; line-height: 20px; letter-spacing: .13px; color: var(--kb-text-2); }
@media (max-width: 767px) { body .kb-amenities { grid-template-columns: 1fr; } }
body .kb-privacy-note { font-size: 13px; line-height: 20px; color: var(--kb-text-2); }
body .kb-privacy-note a, body .kb-privacy-link { color: var(--kb-red-deep); text-decoration: underline; text-underline-offset: 2px; }

body .kb-gallery-section { background: var(--kb-gray-50); }
body .kb-gallery-head { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; width: 100%; }
body .kb-gallery-head__desc { max-width: 392px; }
body .kb-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; width: 100%; }
/* Contact page cards are finished images (text + rounded card baked in, 1212×876). The clip trims the thin white
   border and corners of the export so they sit cleanly on the grey section background. */
body .kb-gallery-grid > .ct-image { display: block; width: 100%; height: auto; max-width: 100%; clip-path: inset(0.35% 0.6% 1.15% 0.5% round 1.6% / 2.2%); }
body .kb-gallery-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 288px; padding: 16px; border-radius: var(--kb-radius-md); overflow: hidden; background-color: var(--kb-dark); background-size: cover; background-position: center; box-shadow: var(--kb-shadow-card); }
body .kb-gallery-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, 0) 100%); }
body .kb-gallery-card > * { position: relative; z-index: 1; }
body .kb-gallery-card__over { font-family: var(--kb-font-latin); font-size: 11px; line-height: 16px; letter-spacing: .55px; font-weight: 700; text-transform: uppercase; color: var(--kb-pink-soft); }
body .kb-gallery-card__caption { font-size: 18px; line-height: 26px; color: #F0F1F2; }
@media (max-width: 1599px) { body .kb-gallery-grid { gap: 24px; } }
@media (max-width: 1023px) { body .kb-gallery-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; } } /* text in the images needs width */
/* Heading row above the cards (an Oxygen flex row without a class, so matched as "the block right before the grid"):
   on tablet/phone put the description under the heading, left-aligned with the stacked cards. */
@media (max-width: 1023px) {
	body .ct-div-block:has(+ .kb-gallery-grid) { flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; gap: 8px; width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) { body .ct-div-block:has(+ .kb-gallery-grid) .ct-text-block div { display: inline; } } /* the 2nd sentence sits in its own inline-edited <div>; let it flow on phones */
@media (max-width: 767px)  { body .kb-gallery-grid { grid-template-columns: 1fr; } body .kb-gallery-card { min-height: 240px; } }

/* ---------------------------------------------------------------- single car (template "Car – Single") */
body .kb-single-car { background: var(--kb-gray-50); width: 100%; }
body .kb-single__container { max-width: var(--kb-container); margin: 0 auto; padding: 24px var(--kb-gutter) 64px; }
body .kb-single__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 20px; color: var(--kb-text-2); margin-bottom: 20px; }
body .kb-single__crumbs a { color: var(--kb-text-2); text-decoration: none; }
body .kb-single__crumbs a:hover { color: var(--kb-red); }
body .kb-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; }
body .kb-single__image { position: relative; aspect-ratio: 4 / 3; background: var(--kb-gray-100); border-radius: var(--kb-radius-md); overflow: hidden; box-shadow: var(--kb-shadow-card); }
body .kb-single__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
body .kb-single__image .kb-car-card__badge { top: 16px; }
body .kb-single__image .kb-car-card__badge--brand { left: 16px; }
body .kb-single__image .kb-car-card__badge--fuel { right: 16px; }
body .kb-single__image .kb-car-card__badge--hot { left: 16px; top: 48px; }
/* Main image opens every photo full screen (site.js lightbox); badges and thumbnails sit on top. */
body .kb-single__zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in; }
body .kb-single__zoom:focus-visible { outline: 3px solid var(--kb-red); outline-offset: -3px; }
body .kb-single__image .kb-car-card__badge { z-index: 2; pointer-events: none; }
/* Thumbnails overlaid on the main image, bottom-left; scroll sideways when there are many. */
body .kb-single__thumbs { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; gap: 8px; max-width: 50%; margin: 0; padding: 8px; box-sizing: border-box; border-radius: 10px; background: rgba(25, 28, 29, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
body .kb-single__thumbs a { position: relative; flex: 0 0 96px; width: 96px; height: 72px; border-radius: 6px; overflow: hidden; opacity: .78; transition: opacity .2s; }
body .kb-single__thumbs a:hover, body .kb-single__thumbs a:focus-visible, body .kb-single__thumbs a.is-active { opacity: 1; }
body .kb-single__thumbs a::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: 6px; pointer-events: none; }
body .kb-single__thumbs a.is-active::after { border-color: var(--kb-red); }
body .kb-single__thumbs a:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
body .kb-single__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
	body .kb-single__thumbs { left: 10px; bottom: 10px; gap: 6px; max-width: 70%; padding: 6px; border-radius: 8px; }
	body .kb-single__thumbs a { flex-basis: 56px; width: 56px; height: 42px; border-radius: 4px; }
	body .kb-single__thumbs a::after { border-width: 2px; border-radius: 4px; }
}
body .kb-single__desc { margin-top: 32px; padding: 24px; background: #fff; border-radius: var(--kb-radius-md); box-shadow: var(--kb-shadow-card); }
body .kb-single__desc h2 { font-size: 18px; line-height: 26px; font-weight: 700; margin: 0 0 12px; }
body .kb-single__desc p { font-size: 15px; line-height: 24px; color: var(--kb-text-2); }
body .kb-single__panel { position: sticky; top: calc(var(--kb-header-h) + 16px); display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #fff; border-radius: var(--kb-radius-md); box-shadow: var(--kb-shadow-card); }
body .kb-single__title { font-family: var(--kb-font); font-size: 24px; line-height: 32px; font-weight: 700; margin: 0; color: var(--kb-text); }
body .kb-single__price { display: flex; align-items: baseline; gap: 10px; }
body .kb-single__price strong { font-size: 30px; line-height: 38px; letter-spacing: -.3px; font-weight: 700; color: var(--kb-red); }
body .kb-single__price s { font-size: 14px; color: var(--kb-text-2); }
body .kb-single__excerpt { margin: 0; font-size: 14px; line-height: 22px; color: var(--kb-text-2); }
body .kb-single__specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body .kb-single__specs > div { padding: 10px 12px; background: var(--kb-gray-100); border-radius: var(--kb-radius-sm); }
body .kb-single__specs dt { font-size: 11px; line-height: 16px; letter-spacing: .48px; color: var(--kb-text-2); text-transform: uppercase; }
body .kb-single__specs dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--kb-text); }
body .kb-single__actions { display: grid; gap: 8px; }
body .kb-single__trust { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; line-height: 20px; color: var(--kb-text-2); }
body .kb-single__trust li::before { content: "✓"; color: var(--kb-red); font-weight: 700; margin-right: 8px; }
body .kb-single__related { margin-top: 56px; display: grid; gap: 32px; }
/* "รถคันอื่นที่น่าสนใจ" is always one full row: 4 cars (≥1600px), 3 (1200–1599px, e.g. Mac), 2 (tablet + mobile).
   The column counts follow the kb-cols-4 breakpoints in car-card.css. */
@media (max-width: 1599px) { body .kb-single__related .kb-car-grid > .kb-car-card:nth-child(n+4) { display: none; } }
@media (max-width: 1199px) { body .kb-single__related .kb-car-grid > .kb-car-card:nth-child(n+3) { display: none; } }
/* 1024–1199px: photo beside a narrower details panel (stacked, the photo filled the screen and pushed the price far down). */
@media (min-width: 1024px) and (max-width: 1199px) { body .kb-single__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; } }
@media (max-width: 1023px) { body .kb-single__grid { grid-template-columns: 1fr; } body .kb-single__panel { position: static; } }
@media (max-width: 767px)  { body .kb-single__container { padding: 16px var(--kb-gutter) 48px; } body .kb-single__title { font-size: 20px; line-height: 28px; } }

/* ---------------------------------------------------------------- car archive (template "Car – Archive") */
body .kb-archive-car { background: var(--kb-gray-50); width: 100%; }
body .kb-archive-car__inner { max-width: var(--kb-container); margin: 0 auto; padding: 8px var(--kb-gutter) 64px; display: grid; gap: 32px; }
body .kb-archive-car__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 0; }
body .kb-pagination { display: flex; justify-content: center; }
body .kb-pagination .nav-links { display: flex; gap: 8px; }
body .kb-pagination .page-numbers { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--kb-radius-xs); background: #fff; color: var(--kb-text); text-decoration: none; font-size: 13px; box-shadow: var(--kb-shadow-card); }
body .kb-pagination .page-numbers.current { background: var(--kb-dark); color: #fff; }
body .kb-archive-car .kb-assurance { max-width: none; }

/* ---------------------------------------------------------------- 404 + plain pages (e.g. privacy policy) */
body .kb-404 { background: var(--kb-gray-50); }
body .kb-404 .ct-section-inner-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
body .kb-404__code { font-family: var(--kb-font-latin); font-size: 96px; line-height: 1; font-weight: 800; color: var(--kb-red); }
body .kb-prose { max-width: 860px; margin: 0 auto; padding: 48px var(--kb-gutter) 72px; font-size: 16px; line-height: 1.8; color: var(--kb-text); }
body .kb-prose h1 { font-size: 36px; line-height: 44px; margin: 0 0 24px; }
body .kb-prose h2 { font-size: 22px; line-height: 30px; margin: 32px 0 12px; }
body .kb-prose h3 { font-size: 18px; line-height: 26px; margin: 24px 0 8px; }
body .kb-prose p, body .kb-prose li { color: var(--kb-text-2); }
body .kb-prose a { color: var(--kb-red-deep); text-decoration: underline; }
body .kb-prose ul { padding-left: 20px; }

/* ---------------------------------------------------------------- menu panel (hamburger, below 1199px)
   Phones: full screen. 768–1198px: 380px panel from the right over a dimmed page (tap outside or Esc closes – site.js).
   Each link is a rounded row with an icon (includes/menu.php); phone + LINE buttons sit at the bottom (copied by site.js). */
body .kb-menu-icon, body .kb-menu-cta { display: none; }
/* Desktop header menu (≥1199px, horizontal): the same icons in front of each link, in the link colour. */
@media (min-width: 1199px) {
	body .kb-site-nav:not(.oxy-nav-menu-open) .menu-item > a { display: inline-flex; align-items: center; gap: 6px; }
	body .kb-site-nav:not(.oxy-nav-menu-open) .kb-menu-icon { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; }
	body .kb-site-nav:not(.oxy-nav-menu-open) .kb-menu-icon svg { width: 16px; height: 16px; overflow: visible; }
}
@media (min-width: 1600px) {
	body .kb-site-nav:not(.oxy-nav-menu-open) .kb-menu-icon, body .kb-site-nav:not(.oxy-nav-menu-open) .kb-menu-icon svg { width: 18px; height: 18px; }
}
/* Hot Cars: 24px fire right against the text (owner 2026-09-29). The flame fills x 3–13 of its 16-unit box,
   so the box is trimmed to the flame (15px wide) and the svg overhangs it by the empty 4.5px on each side. */
@media (min-width: 1199px) {
	body .kb-site-nav:not(.oxy-nav-menu-open) .menu-item > a:has(> .kb-menu-icon--fire) { gap: 0; }
	body .kb-site-nav:not(.oxy-nav-menu-open) .kb-menu-icon--fire { width: 15px; height: 24px; margin-right: 2px; }
	body .kb-site-nav:not(.oxy-nav-menu-open) .kb-menu-icon--fire svg { width: 24px; height: 24px; margin: 0 -4.5px; }
}
/* Hot Cars fire icon (includes/menu.php): sways from its base, the yellow core pulses, the gradient shifts red ↔ orange. */
body .kb-fire { overflow: visible; }
body .kb-fire__flame { transform-box: fill-box; transform-origin: 50% 95%; animation: kb-fire-sway 1.2s ease-in-out infinite; }
body .kb-fire__core { transform-box: fill-box; transform-origin: 50% 100%; animation: kb-fire-core .8s ease-in-out infinite; }
body .kb-fire__s1 { animation: kb-fire-s1 1.2s ease-in-out infinite; }
body .kb-fire__s2 { animation: kb-fire-s2 1.2s ease-in-out infinite; }
@keyframes kb-fire-sway { 0%, 100% { transform: scale(1, 1) rotate(0); } 20% { transform: scale(.95, 1.07) rotate(-3deg); } 45% { transform: scale(1.03, .96) rotate(2deg); } 70% { transform: scale(.97, 1.05) rotate(-1.5deg); } }
@keyframes kb-fire-core { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.78) translateY(4%); opacity: .75; } }
@keyframes kb-fire-s1 { 0%, 100% { stop-color: #DC2626; } 50% { stop-color: #EA580C; } }
@keyframes kb-fire-s2 { 0%, 100% { stop-color: #F97316; } 50% { stop-color: #FBBF24; } }
@media (prefers-reduced-motion: reduce) { body .kb-fire__flame, body .kb-fire__core, body .kb-fire__s1, body .kb-fire__s2 { animation: none; } }
/* backdrop-filter on the header would trap the fixed panel inside the 64–80px header, so drop the blur while it is open */
body .kb-site-header:has(.oxy-nav-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
body .kb-site-nav.oxy-nav-menu-open {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0;
	display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
	width: 100%; padding: 76px 20px 24px; overflow-y: auto; background: #fff;
	animation: kb-menu-in .25s ease-out;
}
body.admin-bar .kb-site-nav.oxy-nav-menu-open { top: 32px; }
@media (max-width: 782px) { body.admin-bar .kb-site-nav.oxy-nav-menu-open { top: 46px; } }
body .kb-site-nav.oxy-nav-menu-open .oxy-menu-toggle { position: absolute; top: 14px; right: 12px; display: grid; place-items: center; width: 48px; height: 48px; }
body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-hamburger-wrap { position: static; }
body .kb-site-nav.oxy-nav-menu-open > div[class*="-container"] { flex: none; width: 100%; max-height: none; overflow: visible; padding: 0; }
body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-list { display: flex !important; flex-direction: column !important; align-items: stretch; gap: 8px; width: 100%; margin: 0; padding: 0; }
body .kb-site-nav.oxy-nav-menu-open .menu-item { width: 100%; }
/* .oxy-nav-menu-list in the selectors outweighs Oxygen's own "transparent !important" link background */
body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-list .menu-item > a {
	display: flex; align-items: center; justify-content: flex-start !important; gap: 14px; width: 100%;
	padding: 14px 16px !important; border-radius: 12px; background-color: var(--kb-gray-100) !important;
	font-size: 16px; line-height: 24px; letter-spacing: 0; font-weight: 600; text-align: left; transition: background-color .15s;
}
body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-list .menu-item > a { color: var(--kb-text); }
body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-list .menu-item > a:hover { background-color: var(--kb-gray-150) !important; }
body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-list .current-menu-item > a, body .kb-site-nav.oxy-nav-menu-open .oxy-nav-menu-list .current_page_item > a { color: var(--kb-red-deep); }
body .kb-site-nav.oxy-nav-menu-open .kb-menu-icon { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: var(--kb-text-2); }
body .kb-site-nav.oxy-nav-menu-open .current-menu-item .kb-menu-icon, body .kb-site-nav.oxy-nav-menu-open .current_page_item .kb-menu-icon { color: inherit; }
body .kb-site-nav.oxy-nav-menu-open .kb-menu-icon svg { width: 22px; height: 22px; }
body .kb-site-nav.oxy-nav-menu-open .kb-menu-cta { display: grid; gap: 8px; margin-top: auto; padding: 0; max-height: none; overflow: visible; }
body .kb-site-nav.oxy-nav-menu-open .kb-menu-cta .kb-btn { width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 20px; }
@media (min-width: 768px) {
	body .kb-site-nav.oxy-nav-menu-open { left: auto; width: 380px; box-shadow: -8px 0 32px rgba(0, 0, 0, .12); }
	body .kb-site-header:has(.oxy-nav-menu-open)::after { content: ""; position: fixed; inset: 0; z-index: 1999; background: rgba(0, 0, 0, .45); animation: kb-fade-in .25s ease-out; }
}
@keyframes kb-menu-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes kb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body .kb-site-nav.oxy-nav-menu-open, body .kb-site-header:has(.oxy-nav-menu-open)::after { animation: none; } }

/* ---------------------------------------------------------------- full-screen photo viewer (review photos, site.js) */
html.kb-lightbox-open { overflow: hidden; }
.kb-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); touch-action: none; -webkit-user-select: none; user-select: none; }
.kb-lightbox[hidden] { display: none; }
.kb-lightbox__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 64px 88px; box-sizing: border-box; }
.kb-lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; -webkit-user-drag: none; }
@media (min-width: 768px) { .kb-lightbox__img { max-width: min(1200px, 72vw); max-height: 76vh; } }
.kb-lightbox__close, .kb-lightbox__nav { position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s; }
.kb-lightbox__close svg, .kb-lightbox__nav svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kb-lightbox__nav svg { width: 28px; height: 28px; }
.kb-lightbox__close:hover, .kb-lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.kb-lightbox__close:focus-visible, .kb-lightbox__nav:focus-visible { outline: 3px solid #DC2626; outline-offset: 2px; }
.kb-lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; }
.kb-lightbox__nav { top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.kb-lightbox__nav--prev { left: 16px; }
.kb-lightbox__nav--next { right: 16px; }
.kb-lightbox__nav[hidden] { display: none; }
.kb-lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; color: #fff; font-size: 14px; line-height: 20px; letter-spacing: .5px; text-align: center; }
@media (max-width: 767px) {
	.kb-lightbox__stage { padding: 64px 0 56px; }
	.kb-lightbox__img { border-radius: 0; }
	.kb-lightbox__nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(0, 0, 0, .45); }
	.kb-lightbox__nav svg { width: 22px; height: 22px; }
	.kb-lightbox__nav--prev { left: 8px; }
	.kb-lightbox__nav--next { right: 8px; }
}
