/* =========================================================
   กล่องพิมพ์ลาย.com — Theme (โทนสีเดิมของเว็บ: ส้ม #EA8935 / น้ำตาล #4D2604)
   ========================================================= */
:root {
  --brown: #4D2604;
  --brown-900: #2E1602;
  --brown-700: #6B3A10;
  --orange: #EA8935;
  --orange-600: #D9721A;
  --orange-300: #F4BE7E;
  --orange-100: #FCE9D4;
  --cream: #FBF5EE;
  --sand: #EFE1D3;
  --text: #3A3A3A;
  --muted: #6D6D6D;
  --line: #E9DCCD;
  --white: #fff;
  --line-green: #06C755;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(77, 38, 4, .25);
  --shadow-sm: 0 4px 14px -6px rgba(77, 38, 4, .22);
  --container: 1200px;
  --header-h: 76px;
  --dock-h: 136px;
  --font-head: 'Kanit', 'Sarabun', system-ui, sans-serif;
  --font-body: 'Sarabun', 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --slide-ratio-desktop: 1170 / 446;
  --slide-ratio-mobile: 600 / 446;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.no-scroll { overflow: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brown); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }
.mt-1 { margin-top: 12px; }
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.ic-sm { width: 16px; height: 16px; }
.ic-line { --line-text: var(--brown); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 1.2; text-align: center; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; box-shadow: 0 8px 20px -8px rgba(234, 137, 53, .8); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px -8px rgba(234, 137, 53, .95); }
.btn-outline { border-color: var(--orange); color: var(--brown); background: #fff; }
.btn-outline:hover { background: var(--orange-100); color: var(--brown); }
.btn-dark { background: var(--brown); color: #fff; }
.btn-dark:hover { background: var(--brown-700); color: #fff; }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { color: var(--brown); }
.btn-line { background: linear-gradient(135deg, #FFD36E, var(--orange)); color: var(--brown); --line-text: var(--orange); }
.btn-line .ic-line { color: var(--brown); }
.btn-line:hover { color: var(--brown); }
.btn-fb { background: #3B5998; color: #fff; }
.btn-fb:hover { color: #fff; }
.btn .ic { width: 20px; height: 20px; }
.btn .ic-line { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px #fff; border-radius: 7px; }
.ic-line { border-radius: 26%; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--brown); color: #f6e7d6; font-size: 14px; display: none; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #f6e7d6; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--orange-300); }
.topbar .ic-line { --line-text: var(--brown); color: var(--orange-300); }
.tb-company { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-en { opacity: .7; font-weight: 400; margin-left: 6px; }
.tb-links .ic-line { width: 18px; height: 18px; }
.tb-links { display: flex; gap: 18px; flex-wrap: nowrap; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(77, 38, 4, .45); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.brand-logo { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand-logo.lg { width: 72px; height: 72px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: clamp(16px, 4.6vw, 22px); font-weight: 700; color: var(--brown); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text strong span { color: var(--orange); }
.brand-text small { font-size: 13px; color: var(--brown-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-desktop { display: none; margin-left: auto; }
.nav-desktop > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; }
.nav-desktop li { position: relative; }
.nav-desktop > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--brown); white-space: nowrap; }
.nav-desktop > ul > li > a:hover, .nav-desktop > ul > li.active > a { background: var(--orange-100); color: var(--brown); }
.nav-desktop > ul > li.active > a { box-shadow: inset 0 -3px 0 var(--orange); }
.nav-desktop .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; max-width: min(440px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 70; }
.nav-desktop .sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-desktop li:last-child .sub, .nav-desktop li:nth-last-child(2) .sub { left: auto; right: 0; }
.nav-desktop .has-sub:hover > .sub, .nav-desktop .has-sub:focus-within > .sub, .nav-desktop .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav-desktop .sub a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.4; color: var(--text); }
.nav-desktop .sub a:hover { background: var(--cream); color: var(--brown); }
.header-cta { display: none; margin-left: 8px; }

.header-actions { display: flex; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.circle-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.circle-btn:active { transform: scale(.94); }
.circle-menu { background: linear-gradient(135deg, #FFC56B, var(--orange)); color: var(--brown); }
.circle-dark { background: var(--brown); color: #fff; --line-text: var(--brown); }
.circle-dark:hover { color: var(--orange-300); }
.circle-btn .ic { width: 22px; height: 22px; }
.circle-line { background: #06C755; }
.circle-line .ic-line { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px #fff; border-radius: 7px; }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(46, 22, 2, .45); opacity: 0; transition: opacity .25s; }
.drawer.open { opacity: 1; }
.drawer-inner { position: absolute; inset: 0 0 auto 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #FFFDF9 0%, var(--cream) 100%); padding: 14px 16px calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); transform: translateY(-16px); transition: transform .25s; border-radius: 0 0 26px 26px; }
.drawer.open .drawer-inner { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--brown) 0%, var(--brown-700) 100%); color: #fff; padding: 10px 16px 10px 10px; border-radius: 18px; min-width: 0; box-shadow: var(--shadow-sm); }
.drawer-brand:hover { color: #fff; }
.drawer-brand .brand-logo { width: 44px; height: 44px; border-radius: 12px; border: 0; }
.drawer-brand strong { display: block; font-family: var(--font-head); font-size: 20px; line-height: 1.2; color: #fff; }
.drawer-brand small { display: block; font-size: 12.5px; color: var(--orange-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-brand > span:last-child { min-width: 0; }
.drawer-close { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--sand); color: var(--brown); display: grid; place-items: center; flex: 0 0 auto; }
.drawer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-link { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--brown); font-family: var(--font-head); font-size: 17px; font-weight: 500; text-align: left; box-shadow: 0 2px 6px -4px rgba(77, 38, 4, .25); }
.dm-link span { flex: 1; min-width: 0; }
.dm-link .ic { color: var(--brown-700); }
.dm-caret { transition: transform .2s; }
.dm-item.expanded .dm-caret { transform: rotate(180deg); }
.dm-item.active > .dm-link { background: linear-gradient(135deg, #FFF3DD, #FFE3B8); border-color: var(--orange-300); }
.dm-sub { list-style: none; margin: 6px 0 0; padding: 6px; background: #fff; border-radius: 14px; border: 1px dashed var(--orange-300); }
.dm-sub a { display: block; padding: 10px 14px 10px 46px; border-radius: 10px; font-size: 15.5px; line-height: 1.45; color: var(--text); position: relative; }
.dm-sub a::before { content: ''; position: absolute; left: 24px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); transform: translateY(-50%); }
.dm-sub a:hover { background: var(--cream); }
.drawer-contact { margin-top: 16px; padding: 14px; background: var(--brown); border-radius: 18px; display: grid; gap: 4px; }
.drawer-contact a { display: flex; align-items: center; gap: 12px; color: #fff; padding: 8px 6px; font-size: 15px; min-width: 0; }
.drawer-contact a span { overflow-wrap: anywhere; }
.drawer-contact .ic { color: var(--orange-300); }
.drawer-contact .ic-line { --line-text: var(--brown); }

/* ---------- Mobile dock (bottom nav + CTA) ---------- */
.mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 22px); pointer-events: none; }
.mobile-dock > * { pointer-events: auto; }
.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: #fff; border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(77, 38, 4, .45); height: 64px; padding: 0 4px; margin: 0 -12px; }
.bn-item, .bn-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; font-family: var(--font-head); font-size: 13px; color: var(--brown-700); line-height: 1.1; min-width: 0; }
.bn-item span, .bn-center > span:last-child { white-space: nowrap; }
.bn-item .ic { width: 24px; height: 24px; }
.bn-item.active { color: var(--orange-600); font-weight: 600; }
.bn-item.active .ic { stroke-width: 2.2; }
.bn-center { justify-content: flex-end; padding-bottom: 8px; font-weight: 600; color: var(--brown); }
.bn-bubble { width: 62px; height: 62px; margin-top: -34px; margin-bottom: 2px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FFD36E, var(--orange)); color: var(--brown); border: 5px solid #fff; box-shadow: 0 8px 18px -6px rgba(234, 137, 53, .9); }
.bn-bubble .ic { width: 26px; height: 26px; }
.dock-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 8px; background: #fff; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.dock-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 16px; font-family: var(--font-head); font-size: 18px; font-weight: 600; box-shadow: var(--shadow-sm); }
.dock-btn .ic { width: 24px; height: 24px; }
.dock-call { background: linear-gradient(135deg, var(--brown-700), var(--brown)); color: #fff; }
.dock-call:hover { color: #fff; }
.dock-line { background: linear-gradient(135deg, #FFD36E, var(--orange)); color: var(--brown); --line-text: var(--orange); }
.dock-line .ic-line { width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 0 0 1.5px #fff; }
.dock-line:hover { color: var(--brown); }
body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }

/* floating contact (desktop) */
.float-contact { display: none; position: fixed; right: 18px; bottom: 24px; z-index: 50; flex-direction: column; gap: 10px; align-items: flex-end; }
.fc { display: flex; align-items: center; gap: 0; height: 52px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 0; color: #fff; box-shadow: var(--shadow); font-family: var(--font-head); font-size: 15px; overflow: hidden; transition: gap .2s, padding .2s; }
.fc span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.fc:hover { gap: 8px; color: #fff; }
.fc:hover span { max-width: 220px; }
.fc .ic { width: 24px; height: 24px; }
.fc-line .ic-line { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px #fff; border-radius: 7px; }
.fc-top { padding: 0; justify-content: center; width: 52px; }
.fc { justify-content: center; padding: 0 14px; }
.fc-phone { background: var(--brown); }
.fc-line { background: var(--line-green); --line-text: var(--line-green); }
.fc-fb { background: #3B5998; }
.fc-top { background: var(--orange); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.show-top .fc-top { opacity: 1; visibility: visible; transform: none; }

/* ---------- Breadcrumb / page hero ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 14px 0 0; margin: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumb li + li::before { content: '›'; color: var(--orange); }
.breadcrumb a { color: var(--brown-700); }
.breadcrumb li[aria-current] { color: var(--muted); overflow-wrap: anywhere; }
.page-hero { position: relative; margin: 14px 20px 28px; padding: 44px 0 40px; border-radius: 26px; background: radial-gradient(circle at 85% 20%, rgba(255, 211, 110, .55), transparent 40%), linear-gradient(135deg, var(--brown) 0%, var(--brown-700) 55%, var(--orange-600) 130%); color: #fff; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border: 34px solid rgba(255, 255, 255, .07); border-radius: 40px; transform: rotate(18deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); margin-bottom: 8px; }
.page-hero p { color: #f8e6d2; max-width: 760px; margin: 0; }
.kicker { display: inline-block; font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--orange-600); margin-bottom: 6px; }
.page-hero .kicker { color: var(--orange-300); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.pt-0 { padding-top: 0; }
.section.pt-2 { padding-top: 24px; }
.section-alt { background: var(--cream); }
.section-dark { background: linear-gradient(160deg, var(--brown-900), var(--brown)); color: #f6e7d6; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 6px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; max-width: none; flex-wrap: wrap; }
.sec-head.light h2 { color: #fff; }
.sec-head.light .kicker { color: var(--orange-300); }
.sec-head p { color: var(--muted); }
.sec-head.light p { color: #e9d3bb; }
.h-line { font-size: clamp(22px, 2.6vw, 28px); padding-left: 14px; border-left: 5px solid var(--orange); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; width: 100%; background: var(--sand); overflow: hidden; aspect-ratio: var(--slide-ratio-mobile); }
.hero-slider .slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide picture, .slide a, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.sl-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--brown); box-shadow: var(--shadow-sm); transition: background .2s; }
.sl-nav:hover { background: #fff; }
.sl-prev { left: 12px; }
.sl-next { right: 12px; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.sl-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: width .25s, background .25s; }
.sl-dots button.active { width: 28px; background: var(--orange); }
.hero-slider.single .sl-nav, .hero-slider.single .sl-dots { display: none; }

/* ---------- Intro ---------- */
.intro { padding: 48px 0 24px; background: linear-gradient(180deg, var(--cream), #fff); }
.intro-grid { display: grid; gap: 28px; align-items: center; }
.intro-company { font-family: var(--font-head); font-size: 20px; color: var(--orange-600); font-weight: 600; margin: 0 0 4px; }
.intro h1 { font-size: clamp(26px, 4.2vw, 44px); }
.lead { font-size: 18px; color: #555; }
.intro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.intro-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.intro-points li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-family: var(--font-head); font-weight: 500; color: var(--brown); }
.ip-icon { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, var(--orange) 0%, var(--orange-600) 55%, var(--brown-700) 100%); box-shadow: 0 8px 18px -10px rgba(77, 38, 4, .7); }
.ip-icon img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(46, 22, 2, .35)); }
.answer-box { margin-top: 18px; margin-bottom: 0; }
.answer-box p, .answer-box.inline { background: #FFF8EE; border: 1px solid var(--orange-300); border-left: 6px solid var(--orange); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0; font-size: 16px; }
.answer-box.inline { margin: 8px 0 22px; }

/* ---------- Services / Why ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.svc-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: 18px 20px 22px; }
.svc-body h3 { font-size: 20px; }
.svc-body p { margin: 0; color: #555; font-size: 16px; }
.why-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.why-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); text-align: center; }
.why-icon { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 26px; background: linear-gradient(140deg, var(--orange) 0%, var(--orange-600) 55%, var(--brown-700) 100%); display: grid; place-items: center; box-shadow: 0 12px 24px -12px rgba(77, 38, 4, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.why-icon img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(46, 22, 2, .35)); }

.why-card h3 { font-size: 19px; }
.why-card p { margin: 0; color: #555; font-size: 16px; }

/* ---------- Product cards ---------- */
.p-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.p-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; min-width: 0; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; cursor: zoom-in; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-zoom, .g-zoom { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brown); box-shadow: var(--shadow-sm); opacity: .9; transition: transform .2s; }
.p-media:hover .p-zoom, a:hover > .g-zoom { transform: scale(1.1); }
.p-badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 99px; background: var(--brown); color: #fff; font-size: 12.5px; font-family: var(--font-head); }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 17.5px; margin-bottom: 6px; }
.p-body h3 a { color: var(--brown); }
.p-body h3 a:hover { color: var(--orange-600); }
.p-body p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-actions .btn { padding-left: 8px; padding-right: 8px; }

/* listing tools */
.list-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-family: var(--font-head); font-size: 15px; color: var(--brown); }
.chip img { width: 20px; height: 20px; object-fit: contain; }
.chip span { background: var(--sand); border-radius: 99px; padding: 0 8px; font-size: 12.5px; }
.chip.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.chip.active span { background: var(--orange); color: #fff; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 99px; border: 1.5px solid var(--line); font: inherit; font-size: 16px; background: #fff; }
.search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-100); }
.no-result { text-align: center; color: var(--muted); padding: 30px 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pager a { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 99px; border: 1.5px solid var(--line); font-family: var(--font-head); background: #fff; }
.pager a.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ---------- Box types / steps ---------- */
.type-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.type-card { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--line); overflow: hidden; }
.type-no { position: absolute; right: 14px; top: 6px; font-family: var(--font-head); font-size: 52px; font-weight: 700; color: var(--orange-100); line-height: 1; }
.type-card h3 { font-size: 19px; position: relative; padding-right: 54px; }
.type-card p { margin: 0; color: #555; position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.step-no { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FFD36E, var(--orange)); color: var(--brown); font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.steps h3 { font-size: 18px; }
.steps p { margin: 0; font-size: 15.5px; color: #555; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); }
.gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .08); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.07); }
.gallery .g-zoom { width: 32px; height: 32px; right: 8px; bottom: 8px; }
.gallery .g-zoom .ic { width: 18px; height: 18px; }
.svc-media .g-zoom { opacity: .9; }

/* ---------- Articles ---------- */
.a-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.a-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.a-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.a-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.a-card:hover .a-media img { transform: scale(1.05); }
.a-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.a-body h3 { font-size: 18.5px; }
.a-body p { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 600; color: var(--orange-600); }
.art-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.prose { font-size: 18px; }
.prose h2 { font-size: clamp(22px, 2.8vw, 30px); }
.prose p { text-indent: 2em; }
.prose img { border-radius: 14px; cursor: zoom-in; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 18px; font-weight: 500; }
.faq summary .ic { color: var(--orange); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details[open] summary { background: var(--orange-100); }
.faq-a { padding: 14px 20px 6px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 20px; margin: 10px 0 0; }
.cta-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 34px 32px; border-radius: 26px; background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 4px; }
.cta-inner p { margin: 0; color: #fff3e5; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-inner .btn-line { background: var(--brown); color: #fff; --line-text: var(--brown); }
.cta-inner .btn-line .ic-line { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.cc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.cc-head h3 { margin: 0; font-size: 21px; }
.cc-head p { margin: 0; color: var(--muted); font-size: 14px; }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cc-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 4px; min-width: 0; }
.cc-list li > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--orange-100); color: var(--brown); }
.cc-list li > .ic-line { padding: 0; border-radius: 12px; }
.cc-list li > div { min-width: 0; overflow-wrap: anywhere; }
.cc-list small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.contact-side { display: grid; gap: 12px; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.qr-card img { width: 200px; height: 200px; object-fit: contain; margin: 0 auto 8px; border-radius: 12px; }
.qr-card p { font-family: var(--font-head); color: var(--brown); }
.inquiry-grid { display: grid; gap: 26px; align-items: start; }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.f-row { display: grid; gap: 14px; margin-bottom: 14px; }
.f-row label { display: grid; gap: 6px; font-family: var(--font-head); font-size: 15px; color: var(--brown); min-width: 0; }
.f-row input, .f-row textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: 16px; color: var(--text); background: #fff; min-width: 0; }
.f-row input[readonly] { background: var(--cream); }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-100); }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-note { margin: 12px 0 0; font-size: 15px; }
.form-note.err { color: #c0392b; }
.form-note.ok { color: #1e8449; }
.map-embed { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--sand); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-grid { display: grid; gap: 22px; align-items: start; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.addr-card { display: flex; gap: 12px; font-style: normal; background: var(--cream); border-radius: 16px; padding: 16px; }
.addr-card .ic { color: var(--orange-600); }
.zoom-figure { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in; background: var(--cream); }
.zoom-figure img { width: 100%; }
.pay-steps { margin: 26px 0 0; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; gap: 28px; align-items: start; }
.pd-gallery { min-width: 0; }
.pd-main { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); aspect-ratio: 1; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: rgba(46, 22, 2, .75); color: #fff; font-size: 14px; white-space: nowrap; pointer-events: none; }
.pd-zoom .ic { width: 18px; height: 18px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs a { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.pd-thumbs a.active { border-color: var(--orange); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { min-width: 0; }
.pd-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--orange-100); color: var(--brown); font-family: var(--font-head); font-size: 14px; margin-bottom: 10px; }
.pd-info h1 { font-size: clamp(26px, 3.6vw, 38px); }
.answer-inline { background: #FFF8EE; border-left: 5px solid var(--orange); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 18px 0 20px; font-size: 16px; }
.spec th, .spec td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 36%; background: var(--cream); font-family: var(--font-head); font-weight: 500; color: var(--brown); }
.spec td { overflow-wrap: anywhere; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); padding: 10px 14px; border-radius: 12px; }
.feature-list .ic { color: var(--orange-600); margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; margin-top: 10px; }
.tags span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--brown-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-900); color: #e9d3bb; margin-top: 64px; font-size: 15.5px; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer a { color: #e9d3bb; }
.site-footer a:hover { color: var(--orange-300); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: var(--orange-300); white-space: normal; }
.f-about p { margin-top: 14px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); --line-text: var(--brown-900); }
.f-social a:hover { background: var(--orange); color: #fff; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.f-links a { line-height: 1.45; display: inline-block; }
.f-contact { font-style: normal; }
.f-contact p { display: flex; gap: 10px; margin: 0 0 10px; align-items: flex-start; }
.f-contact .ic { color: var(--orange-300); margin-top: 4px; --line-text: var(--brown-900); }
.f-contact span { min-width: 0; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 14px; text-align: center; color: #c9ab8c; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 10, 2, .94); display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; touch-action: pan-y; }
.lightbox.open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px calc(10px); padding-top: max(10px, env(safe-area-inset-top)); color: #fff; font-family: var(--font-head); }
.lb-tools { display: flex; gap: 6px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; padding: 0 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: zoom-in; transition: transform .25s ease, opacity .2s; user-select: none; -webkit-user-drag: none; }
.lightbox.zoomed .lb-stage img { transform: scale(2.2); cursor: zoom-out; }
.lightbox.loading .lb-stage img { opacity: .3; }
.lb-spinner { position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--orange); animation: spin 1s linear infinite; display: none; }
.lightbox.loading .lb-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; z-index: 2; }
.lb-nav:hover { background: var(--orange); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.single .lb-nav { display: none; }
.lb-caption { color: #f3dcc3; text-align: center; padding: 12px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); font-size: 15px; min-height: 48px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
  .brand-text small { font-size: 11.5px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .circle-btn { width: 40px; height: 40px; }
  .circle-btn .ic { width: 20px; height: 20px; }
  .circle-line .ic-line { width: 22px; height: 22px; }
  .page-hero { margin: 10px 12px 22px; padding: 30px 0 28px; border-radius: 20px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-body { padding: 10px 10px 12px; }
  .p-body h3 { font-size: 15.5px; }
  .p-body p { font-size: 13.5px; -webkit-line-clamp: 2; }
  .p-actions { grid-template-columns: 1fr; gap: 6px; }
  .p-zoom { width: 32px; height: 32px; }
  .p-zoom .ic { width: 18px; height: 18px; }
  .section { padding: 46px 0; }
  .cta-band { padding: 0 12px; }
  .cta-inner { padding: 26px 20px; }
  .cta-buttons .btn { flex: 1 1 100%; }
  .dock-btn { font-size: 17px; }
}
@media (max-width: 359px) {
  .brand-text small { display: none; }
  .bn-item, .bn-center { font-size: 12px; }
}
@media (min-width: 600px) {
  .f-row.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero-slider { aspect-ratio: var(--slide-ratio-desktop); }
  .sl-nav { width: 52px; height: 52px; margin-top: -26px; }
  .sl-prev { left: 24px; }
  .sl-next { right: 24px; }
  .sl-dots { bottom: 18px; }
  .intro-grid { grid-template-columns: 1.4fr 1fr; }
  .contact-grid { grid-template-columns: 1.6fr 1fr; }
  .pd-grid { grid-template-columns: 1fr 1.1fr; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
}
@media (min-width: 992px) {
  .inquiry-grid { grid-template-columns: 1.6fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr 1.4fr; }
}
/* Desktop navigation */
@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .topbar { display: block; }
  .nav-desktop { display: block; }
  .header-actions, .mobile-dock { display: none; }
  .float-contact { display: flex; }
  body { padding-bottom: 0; }
  .drawer { display: none !important; }
  .page-hero { margin: 18px auto 34px; max-width: calc(var(--container) - 40px); }
  .page-hero .container { padding: 0 44px; }
  .site-footer { margin-top: 80px; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .nav-desktop > ul > li > a { padding: 9px 9px; font-size: 15.5px; }
  .brand-text small { display: none; }
  .tb-en { display: none; }
}
/* กันปุ่มติดต่อลอย (ขวา) ทับหัวข้อ/เนื้อหา บนจอที่ไม่กว้างพอ */
@media (min-width: 1100px) and (max-width: 1399px) {
  main .container, .site-footer .container { padding-left: 84px; padding-right: 84px; }
  .page-hero { margin-left: 84px; margin-right: 84px; }
  .page-hero .container { padding: 0 36px; }
  .cta-band { padding: 0 84px; }
}
@media (min-width: 1360px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1100px) and (max-width: 1360px) {
  .tb-links a:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .mobile-dock, .float-contact, .drawer, .hero-slider .sl-nav, .cta-band { display: none !important; }
  body { padding: 0; }
}
