/* ============================================================
   เมทัลโฮม สตีล (อุดรธานี) — Main Stylesheet
   ============================================================ */
:root {
  --navy-950: #061433;
  --navy-900: #081b42;
  --navy-800: #0a2250;
  --navy-700: #0e2d66;
  --navy-600: #143a80;
  --blue: #1d5fd1;
  --blue-400: #3b82f6;
  --blue-100: #e6eefb;
  --red: #e0161f;
  --red-700: #b90f17;
  --line: #06c755;
  --line-700: #04a847;
  --bg: #f3f6fb;
  --white: #fff;
  --text: #16213a;
  --muted: #5a6780;
  --border: #dde4ef;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(10, 34, 80, .08);
  --shadow: 0 10px 30px rgba(10, 34, 80, .12);
  --font: 'Kanit', 'Sukhumvit Set', 'Noto Sans Thai', system-ui, sans-serif;
  --font-script: 'Mali', 'Kanit', cursive;
  --container: 1320px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--navy-800); }
p { margin: 0 0 1em; }
ul, ol.breadcrumb { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.5em; border-radius: 8px; border: 2px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn i.fa-arrow-right { transition: transform .2s; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: .9em 1.9em; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn-red { background: linear-gradient(180deg, #ef2b33, var(--red-700)); color: #fff; box-shadow: 0 6px 16px rgba(224, 22, 31, .3); }
.btn-red:hover { color: #fff; background: var(--red-700); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { background: var(--line-700); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.04); }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: #fff; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--navy-900);
  background: linear-gradient(90deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.logo-mark { width: 74px; height: auto; color: #fff; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em; }
.brand-en { font-size: .68rem; font-weight: 500; letter-spacing: .06em; margin-top: 3px; }
.brand-tagline { font-size: .72rem; opacity: .85; margin-top: 2px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav a {
  position: relative; display: block; padding: 8px 13px; border-radius: 8px;
  color: #fff; font-weight: 400; font-size: 1rem;
}
.main-nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 3px; border-radius: 3px;
  background: #fff; transform: translateX(-50%); transition: width .25s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { background: rgba(255,255,255,.12); font-weight: 500; }
.main-nav a.active::after, .main-nav a:hover::after { width: 26px; }
.mobile-nav-contact { display: none; }

.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; color: #fff; }
.header-phone:hover { color: #fff; }
.header-phone-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
  display: grid; place-items: center; font-size: 1.1rem;
}
.header-phone strong { display: block; font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.header-phone strong small { font-size: .8rem; font-weight: 400; }
.header-phone em { display: block; font-style: normal; font-size: .7rem; opacity: .8; }
.header-buttons { display: flex; gap: 8px; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); cursor: pointer; padding: 12px 11px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-900); isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--navy-900) 41%, var(--navy-900) 34%, rgba(8,27,66,.82) 59%, rgba(8,27,66,.25) 79%, rgba(8,27,66,0) 90%),
    linear-gradient(0deg, rgba(8,27,66,.55) 0%, rgba(8,27,66,0) 24%);
}
.page-hero-inner { position: relative; min-height: 440px; display: flex; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.page-hero-content { max-width: 620px; position: relative; z-index: 2; }
.page-hero-title { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; margin-bottom: .1em; text-shadow: 0 3px 12px rgba(0,0,0,.25); }
.page-hero-title span { color: var(--red); }
.page-hero-title .red-text { color: #ff2d36; }
.page-hero-subtitle { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; margin: 0 0 .5em; line-height: 1.2; }
.page-hero-lead { font-size: clamp(1rem, 1.6vw, 1.22rem); font-weight: 400; margin-bottom: .8em; opacity: .96; }
.page-hero-quote { font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.35rem); margin: .2em 0 1em; }
.hero-features { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 8px; }
.hero-features li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 0 18px; font-size: .88rem; line-height: 1.3; font-weight: 400; min-width: 110px;
}
.hero-features li + li { border-left: 1px solid rgba(255,255,255,.3); }
.hero-features li:first-child { padding-left: 0; }
.hero-feature-icon { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); display: grid; place-items: center; font-size: 1.45rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-checklist { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; gap: 10px; background: rgba(8,27,66,.55); backdrop-filter: blur(4px); padding: 18px 22px; border-radius: 12px; }
.hero-checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.05rem; }
.hero-checklist i { font-size: 1.15rem; }
.hero-keywords { position: absolute; right: 30px; top: 40px; z-index: 2; text-align: left; }
.hero-keywords li { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.3; transform: rotate(-4deg); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-script {
  position: absolute; right: 30px; bottom: 34px; z-index: 2; margin: 0; text-align: center;
  font-family: var(--font-script); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.25;
  transform: rotate(-9deg); text-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.swoosh { display: block; width: 85%; height: 16px; margin: 2px auto 0; color: var(--red); }

/* hero: home */
.hero-home .page-hero-inner { min-height: 600px; }
.hero-home .page-hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-style: italic; font-weight: 800; }
.hero-home .page-hero-title small { font-size: .5em; font-style: normal; font-weight: 600; }
.hero-home .page-hero-lead { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; }
.hero-tagline { margin: 22px 0 0; font-family: var(--font-script); font-style: italic; }
.hero-tagline strong { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.hero-tagline span { display: inline-block; font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 600; margin-left: 2.2em; }
.hero-tagline .swoosh { width: 260px; margin: 0 0 0 1.2em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: linear-gradient(180deg, #eef3fa, #f7f9fc); border-bottom: 1px solid var(--border); }
.breadcrumb-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.breadcrumb li { display: flex; align-items: center; color: var(--navy-800); font-weight: 500; }
.breadcrumb li + li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .7rem; margin: 0 10px; color: var(--muted); }
.breadcrumb a { color: var(--muted); font-weight: 400; }
.breadcrumb a i { color: var(--navy-800); margin-right: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; margin: 0; color: var(--navy-800); }
.section-title small { font-size: .45em; font-weight: 400; color: var(--muted); margin-left: .6em; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 4px 0 0; }
.lead-text { font-size: 1.05rem; color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---------- Product card ---------- */
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f5; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.12rem; margin: 0 0 2px; }
.product-card h3 a { color: var(--navy-800); }
.product-card h3 a:hover { color: var(--red); }
.product-card p { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.product-card .btn { margin-top: auto; }
.product-card.compact { text-align: center; }
.product-card.compact .product-card-body { padding: 12px 10px 14px; }
.product-card.compact h3 { font-size: 1.02rem; }
.product-card.compact p { margin: 0; font-size: .84rem; }
.color-dots { display: flex; gap: 6px; margin: 0 0 12px; min-height: 16px; }
.color-dots .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- Work card ---------- */
.work-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-card-img img { transform: scale(1.06); }
.photo-count { position: absolute; right: 10px; bottom: 10px; background: rgba(6,20,51,.85); color: #fff; font-size: .82rem; font-weight: 500; padding: 2px 10px; border-radius: 6px; }
.work-card-body { padding: 12px 16px 14px; }
.work-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.work-card h3 a { color: var(--navy-800); }
.work-card h3 a:hover { color: var(--red); }
.work-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.work-card p i { color: var(--red); }
.work-card.mini .work-card-body { padding: 8px 10px; text-align: center; }
.work-card.mini h3 { font-size: .92rem; }

/* ---------- Home: services + works split ---------- */
.split-services { display: grid; grid-template-columns: 1.02fr 1fr; background: var(--bg); }
.services-panel {
  position: relative; color: #fff; padding: 56px 48px; overflow: hidden; isolation: isolate;
  background: var(--navy-900);
}
.services-panel > img { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; z-index: -2; }
.services-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-900) 30%, rgba(8,27,66,.75) 55%, rgba(8,27,66,.05) 90%); }
.services-panel h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 0; }
.services-panel .section-sub { color: #fff; opacity: .92; margin-bottom: 24px; font-size: 1.15rem; }
.check-list { display: grid; gap: 12px; margin-bottom: 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.06rem; font-weight: 400; }
.check-list li i { color: #fff; background: var(--blue); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: .78rem; flex-shrink: 0; margin-top: 1px; }
.check-list.dark li { color: var(--text); font-size: 1rem; }
.works-panel { padding: 48px 40px; background: #fff; }
.works-panel .section-head { margin-bottom: 18px; }
.works-panel .section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.works-panel .section-sub { font-size: .95rem; }

/* ---------- Feature strip (home) ---------- */
.feature-strip {
  position: relative; padding: 46px 0 70px; overflow: hidden;
  background: linear-gradient(180deg, #dbe6f5 0%, #b7c9e3 45%, #3d5f93 46%, #1b3a6e 100%);
}
.feature-strip::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 54%;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.18) 0 4px, rgba(0,0,0,.12) 4px 26px, rgba(255,255,255,.05) 26px 34px);
}
.feature-strip-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; }
.feature-box { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 10px; }
.feature-item { display: flex; align-items: center; gap: 14px; padding: 4px 18px; }
.feature-item + .feature-item { border-left: 1px solid var(--border); }
.feature-item > i { font-size: 2.3rem; color: var(--navy-800); width: 46px; text-align: center; flex-shrink: 0; }
.feature-item strong { display: block; color: var(--navy-800); font-size: 1.05rem; line-height: 1.25; }
.feature-item span { font-size: .85rem; color: var(--muted); }
.feature-script { color: #fff; font-family: var(--font-script); font-style: italic; font-weight: 700; text-align: center; transform: rotate(-8deg); flex-shrink: 0; text-shadow: 0 3px 14px rgba(0,0,0,.35); }
.feature-script strong { display: block; font-size: 2rem; font-weight: 700; }
.feature-script span { font-size: 1.15rem; }

/* ---------- Products page ---------- */
.hero-products .page-hero-inner { min-height: 400px; }
.quote-band { background: rgba(6,20,51,.88); margin: 16px -100vw 18px -100vw; padding: 10px 100vw; font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.search-form { display: flex; gap: 8px; flex: 0 1 460px; }
.search-input { position: relative; flex: 1; }
.search-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px 0 40px; background: #fff; }
.search-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,209,.15); }
.layout-sidebar { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.cat-box { background: var(--navy-800); border-radius: var(--radius-lg); padding: 18px 10px 12px; color: #fff; }
.cat-box h2 { color: #fff; font-size: 1.45rem; margin: 0 12px 12px; }
.cat-list a { display: flex; align-items: center; gap: 14px; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 400; }
.cat-list a i.cat-icon { width: 22px; text-align: center; opacity: .95; }
.cat-list a .count { margin-left: auto; font-size: .78rem; background: rgba(255,255,255,.14); border-radius: 20px; padding: 0 8px; }
.cat-list a:hover { background: rgba(255,255,255,.1); color: #fff; }
.cat-list a.active { background: linear-gradient(90deg, #ef2b33, var(--red-700)); font-weight: 500; }
.promo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #eef3fa, #d6e2f3); padding: 22px 20px 20px; }
.promo-card h3 { font-size: 1.5rem; margin: 0; }
.promo-card p { color: var(--navy-800); font-weight: 400; margin: 0 0 8px; }
.promo-card img { border-radius: 10px; margin: 8px 0 14px; }
.promo-card::before { content: '\f279'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 10px; top: 8px; font-size: 5.5rem; color: var(--navy-800); opacity: .1; }
.cat-section + .cat-section { margin-top: 44px; }
.cat-section-head { margin-bottom: 18px; }
.cat-section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cat-section-head h2 small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.cat-section-head p { color: var(--muted); margin: 2px 0 0; }
.empty-state { text-align: center; background: var(--bg); border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--navy-600); margin-bottom: 10px; }

.cta-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; }
.cta-card { position: relative; display: flex; align-items: center; gap: 22px; padding: 30px 34px; min-height: 150px; overflow: hidden; isolation: isolate; }
.cta-card h3 { margin: 0; font-size: 1.35rem; }
.cta-card p { margin: 0 0 10px; }
.cta-card > i { font-size: 3.4rem; flex-shrink: 0; }
.cta-card.navy { color: #fff; background: var(--navy-800); justify-content: flex-end; }
.cta-card.navy img { position: absolute; inset: 0; width: 60%; height: 100%; object-fit: cover; z-index: -2; }
.cta-card.navy::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,34,80,.1), var(--navy-800) 55%); z-index: -1; }
.cta-card.navy h3, .cta-card.red h3 { color: #fff; }
.cta-card.red { color: #fff; background: linear-gradient(135deg, #ef2b33, var(--red-700)); }
.cta-card.light { background: linear-gradient(135deg, #f1f5fb, #dfe8f5); }
.cta-card.light > i { color: var(--navy-800); }
.cta-icon-box { width: 84px; height: 84px; border-radius: 14px; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 2.6rem; flex-shrink: 0; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.product-gallery-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #eef1f5; aspect-ratio: 16 / 11; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-info .cat-label { display: inline-block; background: var(--blue-100); color: var(--blue); padding: 2px 12px; border-radius: 20px; font-size: .88rem; font-weight: 500; margin-bottom: 8px; }
.product-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 4px; }
.product-info .short { font-size: 1.15rem; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .96rem; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; background: var(--bg); color: var(--navy-800); font-weight: 500; }
.color-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.color-row .color-dots { margin: 0; }
.color-row .dot { width: 26px; height: 26px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rich-text { font-size: 1.04rem; }
.rich-text h2 { font-size: 1.5rem; margin-top: 1.4em; }
.rich-text ul { list-style: none; margin: 0 0 1em; display: grid; gap: 8px; }
.rich-text ul li { position: relative; padding-left: 28px; }
.rich-text ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--blue); font-size: .9rem; }
.rich-text h3 { font-size: 1.25rem; margin-top: 1.2em; }
.rich-text h4, .rich-text h5, .rich-text h6 { font-size: 1.08rem; margin-top: 1em; }
.rich-text ol { margin: 0 0 1em; padding-left: 1.6em; display: grid; gap: 6px; }
.rich-text ol ol, .rich-text ul ul, .rich-text ol ul, .rich-text ul ol { margin: 6px 0 0; }
.rich-text ul li[data-list="unchecked"]::before { content: '\f0c8'; font-weight: 400; color: var(--muted); }
.rich-text ul li[data-list="checked"]::before { content: '\f14a'; color: var(--line-700); }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; }
.rich-text blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--blue); background: var(--blue-100); border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy-800); }
.rich-text pre { background: var(--navy-900); color: #e6edf7; padding: 14px 18px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; white-space: pre-wrap; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .96rem; }
@media (max-width: 760px) { .rich-text table { display: block; overflow-x: auto; font-size: .9rem; } }
.rich-text th, .rich-text td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.rich-text th { background: var(--navy-800); color: #fff; font-weight: 500; }
.rich-text tbody tr:nth-child(even) td { background: var(--bg); }
.rich-text iframe.ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 14px 0; }
/* รูปแบบจากตัวแก้ไข Quill */
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.rich-text .ql-direction-rtl { direction: rtl; text-align: inherit; }
.rich-text .ql-size-small { font-size: .8em; }
.rich-text .ql-size-large { font-size: 1.4em; }
.rich-text .ql-size-huge { font-size: 2em; line-height: 1.3; }
.rich-text .ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.rich-text .ql-font-monospace { font-family: Monaco, 'Courier New', monospace; }
.rich-text .ql-indent-1 { padding-left: 2em; }
.rich-text .ql-indent-2 { padding-left: 4em; }
.rich-text .ql-indent-3 { padding-left: 6em; }
.rich-text .ql-indent-4 { padding-left: 8em; }
.rich-text .ql-indent-5 { padding-left: 10em; }
.rich-text .ql-indent-6 { padding-left: 12em; }
.rich-text .ql-indent-7 { padding-left: 14em; }
.rich-text .ql-indent-8 { padding-left: 16em; }

.link-more { margin-top: auto; font-weight: 500; color: var(--navy-800); display: inline-flex; align-items: center; gap: 8px; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }


.why-strip { background: linear-gradient(90deg, var(--navy-950), var(--navy-700)); color: #fff; padding: 28px 0; }
.why-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.why-inner h2 { color: #fff; font-size: 1.8rem; margin: 0; line-height: 1.2; }
.why-items { display: grid; grid-template-columns: repeat(5, 1fr); }
.why-items li { text-align: center; padding: 0 10px; font-size: .88rem; line-height: 1.35; opacity: .95; }
.why-items li + li { border-left: 1px solid rgba(255,255,255,.2); }
.why-items i { display: block; font-size: 2rem; margin-bottom: 8px; }
.why-items strong { display: block; font-weight: 500; font-size: 1rem; }
.why-cta { text-align: center; }
.why-cta small { display: block; margin-top: 8px; opacity: .85; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--navy-800); font-weight: 400; font-size: .95rem; box-shadow: var(--shadow-sm); }
.filter-tabs a:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter-tabs a.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter-bar .search-form { flex: 0 1 240px; }

.stats-bar { background: var(--bg); padding: 26px 0; border-top: 1px solid var(--border); }
.stats-bar-inner { display: grid; grid-template-columns: auto repeat(4, 1fr) auto; gap: 20px; align-items: center; }
.stats-bar h2 { font-size: 1.6rem; margin: 0; line-height: 1.2; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat > i { font-size: 2.4rem; color: var(--navy-800); }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy-800); font-weight: 600; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

.testimonials { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: center; }
.testimonials h2 { font-size: 1.7rem; margin: 0; }
.testimonial-track-wrap { position: relative; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 12px; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px 18px 64px; position: relative; }
.testimonial::before { content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 20px; top: 16px; font-size: 1.8rem; color: #b8c3d6; }
.testimonial p { margin: 0 0 8px; font-size: .95rem; }
.testimonial .stars { color: #f5a70a; font-size: .95rem; margin-bottom: 6px; }
.testimonial strong { display: block; color: var(--navy-800); }
.testimonial small { color: var(--muted); }
.slider-btn { position: absolute; top: 50%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy-800); cursor: pointer; transform: translateY(-50%); box-shadow: var(--shadow-sm); z-index: 2; }
.slider-btn:hover { background: var(--navy-800); color: #fff; }
.slider-btn.prev { left: -20px; }
.slider-btn.next { right: -20px; }

.work-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #e9eef5; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { border: 3px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: none; }
.gallery-thumbs button.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.info-card h2 { font-size: 1.3rem; }
.info-list { display: grid; gap: 12px; margin: 14px 0 20px; }
.info-list li { display: flex; gap: 12px; }
.info-list i { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-100); color: var(--navy-800); display: grid; place-items: center; flex-shrink: 0; }
.info-list small { display: block; color: var(--muted); font-size: .82rem; }
.info-list span { font-weight: 500; color: var(--navy-800); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(4,10,25,.92); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-height: 86vh; max-width: min(1200px, 100%); width: auto; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0; }
.about-intro > div { padding: 0 30px; }
.about-intro > div:first-child { padding-left: 0; }
.about-intro > div + div { border-left: 1px solid var(--border); }
.about-intro h2 { font-size: 1.9rem; font-weight: 700; }
.about-intro h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.about-intro h3 i { font-size: 2rem; color: var(--navy-800); }
.about-intro h3 small { font-weight: 400; font-size: .75em; color: var(--muted); }
.quote-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px 16px 60px; position: relative; font-size: 1.1rem; font-weight: 500; color: var(--navy-800); }
.quote-box::before { content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 18px; top: 14px; font-size: 1.8rem; color: #9fb0cb; }
.quote-box cite { display: block; text-align: right; font-style: normal; font-weight: 400; margin-top: 6px; }
.values-list { display: grid; gap: 12px; }
.values-list li { display: flex; align-items: center; gap: 14px; }
.values-list b { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }
.values-list strong { color: var(--navy-800); margin-right: 6px; }

.stats-navy { background: linear-gradient(90deg, var(--navy-950), var(--navy-700)); color: #fff; padding: 26px 0; }
.stats-navy .grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats-navy .stat { justify-content: center; padding: 6px 10px; }
.stats-navy .stat + .stat { border-left: 1px solid rgba(255,255,255,.2); }
.stats-navy .stat > i, .stats-navy .stat strong { color: #fff; }
.stats-navy .stat span { color: rgba(255,255,255,.85); }

.team-timeline { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; }
.team-photo { position: relative; min-height: 380px; overflow: hidden; isolation: isolate; background: var(--navy-900); }
.team-photo img { position: absolute; inset: 0 0 0 auto; width: 70%; height: 100%; object-fit: cover; z-index: -2; }
.team-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-900) 25%, rgba(8,27,66,.2) 70%, rgba(255,255,255,.0)), linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 12%); }
.team-photo p { position: absolute; left: 40px; top: 50%; transform: translateY(-50%) rotate(-6deg); color: #fff; font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.45; margin: 0; }
.timeline-box { padding: 40px 40px 40px 20px; }
.timeline-box h2 { font-size: 1.8rem; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 102px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { display: grid; grid-template-columns: 80px 20px 1fr; gap: 12px; align-items: center; }
.timeline b { color: var(--navy-800); font-weight: 600; text-align: right; }
.timeline i { width: 14px; height: 14px; border-radius: 50%; background: var(--navy-800); box-shadow: 0 0 0 4px #fff; position: relative; justify-self: center; }

.gallery-strip .grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery-strip .grid a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-strip .grid a:hover img { transform: scale(1.08); }

.partner-cta { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--navy-900) 30%, var(--navy-600) 100%); color: #fff; padding: 46px 0; isolation: isolate; }
.partner-cta::after { content: '\f2b5'; font-family: 'Font Awesome 6 Free'; font-weight: 400; position: absolute; left: 44%; top: 50%; transform: translateY(-50%); font-size: 11rem; opacity: .12; z-index: -1; }
.partner-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.partner-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 4px; }
.partner-cta .script-note { font-family: var(--font-script); font-style: italic; font-weight: 700; font-size: 1.35rem; text-align: center; transform: rotate(-6deg); }

/* ---------- Articles ---------- */
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.article-card h3 { font-size: 1.12rem; line-height: 1.4; }
.article-card h3 a { color: var(--navy-800); }
.article-card h3 a:hover { color: var(--red); }
.article-card p { font-size: .92rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article-body h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 18px 0 26px; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card + .side-card { margin-top: 20px; }
.side-card h2 { font-size: 1.2rem; }
.side-list li + li { border-top: 1px solid var(--border); }
.side-list a { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0; color: var(--navy-800); font-weight: 400; font-size: .92rem; line-height: 1.35; align-items: center; }
.side-list img { width: 80px; height: 56px; object-fit: cover; border-radius: 6px; }
.side-cta { background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); color: #fff; text-align: center; }
.side-cta h2 { color: #fff; }
.side-cta .btn + .btn { margin-top: 10px; }
.share-row { display: flex; gap: 10px; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-fb { background: #1877f2; } .share-line { background: var(--line); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; }
.contact-layout h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; margin-bottom: 2px; }
.contact-list { display: grid; gap: 20px; margin-top: 24px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-size: 1.45rem; flex-shrink: 0; }
.contact-icon.line { background: var(--line); font-size: 1.8rem; }
.contact-list strong, .contact-list a.big { display: block; font-size: 1.28rem; font-weight: 600; color: var(--navy-800); line-height: 1.3; }
.contact-list a.big:hover { color: var(--red); }
.contact-list li > div span { color: var(--muted); font-size: .95rem; }   /* เฉพาะคำอธิบาย ไม่ใช่วงกลมไอคอน */
.contact-list .contact-icon { color: #fff; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 20px); }
.form-card-head { background: var(--navy-800); color: #fff; padding: 18px 24px; }
.form-card-head h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.form-card-head p { margin: 0; opacity: .85; font-size: .92rem; }
.form-card form { padding: 22px 24px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .92rem; font-weight: 500; color: var(--navy-800); }
.form-group label .req { color: var(--red); }
.form-control { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; background: #fff; font-weight: 300; transition: border-color .2s, box-shadow .2s; }
select.form-control { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a2250' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
textarea.form-control { height: 110px; padding: 12px 14px; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,209,.15); }
.form-control.is-invalid { border-color: var(--red); }
.invalid-msg { color: var(--red); font-size: .82rem; }
.form-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.form-foot .btn { flex: 1 1 260px; }
.form-note { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); flex: 1 1 200px; line-height: 1.4; }
.form-note i { font-size: 1.4rem; color: var(--navy-600); }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.alert i { font-size: 1.3rem; margin-top: 2px; }
.alert-success { background: #e8f8ee; color: #11683a; border: 1px solid #bfe9cf; }
.alert-error { background: #fdecec; color: #9f1219; border: 1px solid #f6c5c7; }

.contact-extra { display: grid; grid-template-columns: 1.5fr 1fr 0.75fr; gap: 22px; align-items: stretch; }
.map-card .section-head { margin-bottom: 12px; }
.map-card h2 { font-size: 1.6rem; margin: 0; font-weight: 700; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 290px; background: #e5ebf3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours-col { display: grid; gap: 18px; }
.hours-card h2 { font-size: 1.6rem; font-weight: 700; }
.hours-card .hours { display: flex; gap: 16px; align-items: flex-start; }
.hours-card .hours i { font-size: 2.2rem; color: var(--navy-800); }
.hours-card .hours strong { display: block; color: var(--navy-800); font-size: 1.15rem; }
.agent-card { position: relative; background: linear-gradient(135deg, #eaf1fb, #d3e0f2); border-radius: var(--radius-lg); padding: 20px 20px 20px 110px; min-height: 130px; display: flex; align-items: center; overflow: hidden; }
.agent-card .agent-avatar { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 76px; height: 76px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 0 0 5px rgba(255,255,255,.7); }
.agent-card p { margin: 0; font-family: var(--font-script); font-style: italic; font-weight: 600; color: var(--navy-800); font-size: 1.05rem; line-height: 1.45; }
.online-card { text-align: center; }
.online-card h2 { font-size: 1.2rem; }
.online-card .line-id { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--line-700); font-size: 1.2rem; }
.online-card .line-id i { font-size: 1.6rem; }
.online-card .qr { margin: 12px auto; }


/* ---------- QR ---------- */
.qr { position: relative; width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 10px; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.qr::after { content: 'LINE'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--line); color: #fff; font-weight: 700; font-size: .7rem; padding: 2px 5px; border-radius: 4px; border: 2px solid #fff; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: rgba(255,255,255,.88); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 36px; padding-top: 50px; padding-bottom: 40px; }
.footer-grid > div + div { border-left: 1px solid rgba(255,255,255,.12); padding-left: 36px; }
.footer-logo { display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; margin-bottom: 14px; width: fit-content; }
.footer-logo:hover { color: #fff; }
.footer-logo .logo-mark { width: 150px; margin-bottom: 4px; }
.footer-logo .brand-name { font-size: 2.3rem; }
.footer-logo .brand-en { font-size: .78rem; }
.footer-brand p { font-size: .9rem; margin: 0; }
.footer-title { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.footer-contact { font-style: normal; }
.footer-menu ul { columns: 2; column-gap: 30px; }
.footer-menu li { margin-bottom: 8px; break-inside: avoid; }
.site-footer a { color: rgba(255,255,255,.88); font-weight: 300; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 10px; font-size: .95rem; }
.footer-contact li i { width: 20px; text-align: center; margin-top: 5px; color: #fff; }
.footer-qr { text-align: center; }
.footer-qr .qr { margin: 0 auto 10px; }
.footer-qr p { font-weight: 500; color: #fff; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .88rem; }
.footer-slogan { font-size: 1.05rem !important; font-weight: 500; color: #fff; }
.footer-slogan span { margin: 0 8px; opacity: .6; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); border: 0; cursor: pointer; transition: transform .2s, opacity .3s; }
.fab-btn:hover { transform: scale(1.08); color: #fff; }
.fab-line { background: var(--line); font-size: 1.7rem; }
.fab-phone { background: var(--red); animation: ring 2.2s infinite; }
.fab-top { background: var(--navy-800); font-size: 1.1rem; opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,22,31,.5); } 70% { box-shadow: 0 0 0 14px rgba(224,22,31,0); } }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); background: #fff; color: var(--navy-800); font-weight: 500; }
.pagination a:hover { border-color: var(--navy-800); }
.pagination .current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--navy-800); line-height: 1; }
.error-page .code span { color: var(--red); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab-phone { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
  .header-contact { display: none; }
  .main-nav { justify-content: flex-end; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .testimonial-track { grid-auto-columns: calc((100% - 22px) / 2); }
  .stats-bar-inner { grid-template-columns: repeat(4, 1fr); }
  .stats-bar-inner h2, .stats-bar-inner .stats-cta { grid-column: span 2; }
  .why-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .contact-extra { grid-template-columns: 1fr 1fr; }
  .contact-extra .map-card { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .logo-mark { width: 58px; }
  .brand-name { font-size: 1.5rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); z-index: 120;
    background: var(--navy-900); flex-direction: column; justify-content: flex-start;
    padding: 90px 18px 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; font-size: 1.08rem; }
  .main-nav a::after { display: none; }
  .mobile-nav-contact { display: grid; gap: 10px; margin-top: 22px; }
  .nav-open .main-nav { transform: none; }
  .nav-toggle { position: relative; z-index: 130; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }

  .page-hero-media { width: 100%; }
  .page-hero::before { background: linear-gradient(90deg, rgba(8,27,66,.95) 0%, rgba(8,27,66,.8) 60%, rgba(8,27,66,.45) 100%); }
  .hero-checklist, .hero-keywords { display: none; }
  .hero-script { font-size: 1.3rem; right: 16px; bottom: 16px; opacity: .9; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .split-services { grid-template-columns: 1fr; }
  .feature-strip-inner { flex-direction: column; }
  .feature-box { grid-template-columns: repeat(2, 1fr); row-gap: 18px; width: 100%; }
  .feature-item:nth-child(3) { border-left: 0; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
  .product-detail, .work-detail, .article-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .why-items { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .why-items li:nth-child(4) { border-left: 0; }
  .about-intro { grid-template-columns: 1fr; gap: 30px; }
  .about-intro > div { padding: 0; }
  .about-intro > div + div { border-left: 0; border-top: 1px solid var(--border); padding-top: 26px; }
  .team-timeline { grid-template-columns: 1fr; }
  .timeline-box { padding: 36px 24px; }
  .stats-navy .grid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .stats-navy .stat:nth-child(3) { border-left: 0; }
  .gallery-strip .grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 46px 0; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 1.3rem; }
  .brand-en { font-size: .58rem; }
  .logo-mark { width: 48px; }
  .page-hero-inner, .hero-home .page-hero-inner { min-height: 0; padding-top: 40px; padding-bottom: 80px; }
  .hero-features li { min-width: 0; width: 50%; padding: 10px 6px !important; border-left: 0 !important; }
  .hero-feature-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .hero-buttons .btn { flex: 1 1 auto; }
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .product-card-body { padding: 12px; }
  .product-card h3 { font-size: 1rem; }
  .services-panel { padding: 44px 20px; }
  .services-panel > img { width: 100%; opacity: .35; }
  .works-panel { padding: 40px 16px; }
  .feature-box { grid-template-columns: 1fr; }
  .feature-item + .feature-item { border-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
  .sidebar { grid-template-columns: 1fr; }
  .search-form { flex: 1 1 100%; }
  .cta-card { padding: 24px 20px; }
  .why-items { grid-template-columns: repeat(2, 1fr); }
  .why-items li { border-left: 0 !important; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-auto-columns: 88%; }
  .slider-btn { display: none; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-extra { grid-template-columns: 1fr; }
  .team-photo img { width: 100%; opacity: .5; }
  .timeline::before { left: 82px; }
  .timeline li { grid-template-columns: 60px 20px 1fr; }
  .gallery-strip .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-brand { text-align: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .fab-btn { width: 46px; height: 46px; }
}

/* detail split (product) */
.detail-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 1080px) { .detail-split { grid-template-columns: 1fr; } }

/* mobile fixes */
@media (max-width: 1080px) { .nav-open .site-header { z-index: 115; } }
@media (max-width: 760px) { .hero-script { display: none; } }

/* ============================================================
   SEO / AEO components
   ============================================================ */
.page-hero-title .hero-kicker,
.hero-kicker {
  display: table; margin-bottom: 14px; padding: 5px 14px; border-radius: 30px;
  background: rgba(224, 22, 31, .92); color: #fff;
  font-size: clamp(.82rem, 1.2vw, .98rem); font-style: normal; font-weight: 500; line-height: 1.35; letter-spacing: 0;
  text-shadow: none;
}
.answer-lead { font-size: 1.1rem; font-weight: 400; color: var(--text); border-left: 4px solid var(--red); padding: 4px 0 4px 16px; margin: 10px 0 16px; }
.suitable { color: var(--navy-800); }
.suitable i { color: var(--line-700); }

/* entity / business facts */
.entity-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.entity-grid .section-title { margin-bottom: 10px; }
.facts-title { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.facts-title i { color: var(--blue); }
.facts-list { margin: 0; display: grid; }
.facts-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { font-weight: 500; color: var(--navy-800); }
.facts-list dd { margin: 0; color: var(--text); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 20px); }
.faq-head .section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.faq-head .section-sub { margin: 10px 0 20px; }
.faq-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; font-weight: 500; color: var(--navy-800); line-height: 1.45; }
.faq-item summary i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-100); color: var(--navy-800); display: grid; place-items: center; font-size: .8rem; transition: transform .25s, background .2s; }
.faq-item[open] summary i { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-answer { padding: 0 20px 16px; color: var(--text); }
.faq-answer p { margin: 0; }

/* article: summary / toc / author */
.answer-summary { background: linear-gradient(135deg, #eef4ff, #f7faff); border: 1px solid #cfdcf3; border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 16px 22px; margin: 18px 0; }
.answer-summary-title { font-weight: 600; color: var(--navy-800); margin: 0 0 8px; font-size: 1.08rem; }
.answer-summary-title i { color: #f5a70a; }
.answer-summary ul { display: grid; gap: 6px; }
.answer-summary li { position: relative; padding-left: 22px; }
.answer-summary li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.article-cover { margin: 18px 0 26px; }
.toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 26px; }
.toc-title { font-weight: 600; color: var(--navy-800); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.toc a { color: var(--navy-700); }
.rich-text h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.article-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article-body .article-meta { flex-wrap: wrap; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 30px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.author-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: var(--navy-800); display: grid; place-items: center; }
.author-avatar .logo-mark { width: 44px; color: #fff; }
.author-name { font-weight: 600; color: var(--navy-800); margin: 0 0 2px; }
.author-box p { margin: 0; font-size: .95rem; }
.side-title { font-size: 1.2rem; font-weight: 600; color: var(--navy-800); margin: 0 0 .5em; }
.side-cta .side-title { color: #fff; }

@media (max-width: 1080px) {
  .entity-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq-head { position: static; }
}
@media (max-width: 760px) {
  .facts-list > div { grid-template-columns: 1fr; gap: 0; }
  .faq-item summary { padding: 14px 16px; }
  .faq-answer { padding: 0 16px 14px; }
}

/* ปุ่มแอดมิน (แสดงเฉพาะตอนล็อกอินหลังบ้าน) */
.btn-admin,
.main-nav .btn-admin { background: #f0b429; color: var(--navy-900); font-weight: 500; }
.btn-admin:hover { background: #d99e12; color: var(--navy-900); }
.main-nav .btn-admin { margin-bottom: 4px; }

/* ปุ่มแก้ไขบนการ์ด (เฉพาะแอดมิน) */
.product-card, .work-card, .article-card { position: relative; }
.card-edit {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 34px; height: 34px; border-radius: 9px;
  background: #f0b429; color: var(--navy-900);
  display: grid; place-items: center; font-size: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: .92;
}
.card-edit:hover { background: #d99e12; color: var(--navy-900); opacity: 1; transform: scale(1.06); }
.breadcrumb-inner .btn-admin { margin-left: auto; }

/* ---------- โปรโมชั่น ---------- */
.promo-item { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.promo-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.promo-item-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.promo-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo-item:hover .promo-item-img img { transform: scale(1.05); }
.promo-item-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 18px; }
.promo-item h3 { font-size: 1.15rem; margin: 0; line-height: 1.4; }
.promo-item h3 a { color: var(--navy-800); }
.promo-item h3 a:hover { color: var(--red); }
.promo-item p { margin: 0; color: var(--muted); font-size: .93rem; }
.promo-item .promo-until { color: var(--red); font-size: .88rem; }
.promo-item .link-more { margin-top: auto; padding-top: 6px; }
.promo-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 30px; background: var(--red); color: #fff; font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.work-detail .promo-badge { margin-bottom: 10px; }
figure.gallery-main { margin: 0; }
.promo-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 30px 36px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; box-shadow: var(--shadow); }
.promo-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 4px; }
.promo-cta p { margin: 0; opacity: .9; }
.promo-cta .action-row { margin: 0; }
@media (max-width: 760px) {
  .promo-cta { padding: 24px 20px; }
  .promo-cta .action-row .btn { flex: 1 1 100%; }
}

/* ---------- อัลบั้มภาพสินค้า ---------- */
.product-gallery .gallery-thumbs { grid-template-columns: repeat(6, 1fr); }
.thumb-more { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--navy-800) center / cover no-repeat; color: #fff; text-align: center; text-decoration: none; }
.thumb-more::before { content: ''; position: absolute; inset: 0; background: rgba(8,27,66,.72); transition: background .2s; }
.thumb-more:hover::before { background: rgba(224,22,31,.8); }
.thumb-more span { position: relative; font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.thumb-more small { display: block; font-size: .7rem; font-weight: 400; opacity: .9; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.album-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.album-grid a[hidden] { display: none; }
.album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-grid a:hover img { transform: scale(1.06); }
.album-more { text-align: center; margin-top: 24px; }
.album-more em { font-style: normal; }
.lightbox .lb-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 40px); color: #fff; font-size: .9rem; opacity: .85; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .album-grid a { border-radius: 6px; }
  .product-gallery .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .lightbox { padding: 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { width: 40px; height: 40px; }
  .lightbox .lb-prev { left: 6px; } .lightbox .lb-next { right: 6px; }
}

/* หน้าติดต่อเรา: ข้อมูลติดต่อ (ซ้าย) + แผนที่ (ขวา) / ด้านล่าง: เวลาทำการ + ช่องทางออนไลน์ */
#contact-info { scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-layout .map-card { margin-top: 6px; }
.contact-layout .map-frame { height: 410px; }
.contact-extra.no-map { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1080px) { .contact-layout .map-frame { height: 380px; } }
@media (max-width: 760px) {
  .contact-layout .map-frame { height: 300px; }
  .contact-extra.no-map { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- PDPA: แบนเนอร์คุกกี้ / ตั้งค่า / สื่อภายนอก ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; max-width: 1180px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(6,20,51,.22); }
.cookie-banner-inner { display: flex; align-items: center; gap: 20px 28px; padding: 18px 22px; }
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.cookie-banner-text a { color: var(--blue); text-decoration: underline; }
.cookie-banner-title { color: var(--navy-800) !important; font-weight: 600; font-size: 1.05rem !important; margin-bottom: 4px !important; }
.cookie-banner-title i { color: #d58a1c; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-link { background: none; border: 0; color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; padding-left: 8px; padding-right: 8px; }
.btn-link:hover { color: var(--red); }
body.has-cookie-banner .fab { bottom: 150px; }

.cookie-modal { position: fixed; inset: 0; z-index: 450; background: rgba(6,20,51,.6); display: grid; place-items: center; padding: 16px; }
.cookie-modal[hidden] { display: none; }
body.cookie-modal-open { overflow: hidden; }
.cookie-modal-box { width: min(620px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cookie-modal-head, .cookie-modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; }
.cookie-modal-head { justify-content: space-between; border-bottom: 1px solid var(--border); }
.cookie-modal-head h2 { margin: 0; font-size: 1.3rem; color: var(--navy-800); }
.cookie-modal-foot { justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--border); }
.cookie-modal-body { padding: 16px 22px; overflow-y: auto; }
.cookie-modal-body > p { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.cookie-modal-body a { color: var(--blue); text-decoration: underline; }
.cookie-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.cookie-cat { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-cat-head strong { color: var(--navy-800); font-weight: 600; }
.cookie-cat p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cookie-always { font-size: .82rem; color: var(--line-700); font-weight: 500; white-space: nowrap; }
.cookie-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch span { position: absolute; inset: 0; border-radius: 26px; background: #c9d1de; transition: background .2s; pointer-events: none; }
.cookie-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cookie-switch input:checked + span { background: var(--line-700); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.consent-embed { width: 100%; height: 100%; min-height: 240px; display: grid; place-items: center; background: linear-gradient(135deg, #eef3fb, #e3eaf5); border-radius: inherit; text-align: center; padding: 20px; }
.consent-embed-video { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); margin: 14px 0; }
.consent-embed-msg { max-width: 420px; }
.consent-embed-msg > i { font-size: 2.2rem; color: var(--navy-600); margin-bottom: 8px; }
.consent-embed-video .consent-embed-msg > i { color: #e62117; }
.consent-embed-msg p { margin: 0 0 12px; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.consent-embed-msg strong { color: var(--navy-800); }
.consent-embed-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.consent-embed-actions .btn-light { background: #fff; border: 1px solid var(--border); color: var(--navy-800); }
.consent-embed-more { display: inline-block; margin-top: 10px; font-size: .82rem; color: var(--muted); text-decoration: underline; }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding-top: 10px; padding-bottom: 4px; font-size: .88rem; }
.footer-legal a, .footer-legal button { color: rgba(255,255,255,.75); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; text-decoration: underline; }

@media (max-width: 760px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; padding: 14px 16px; gap: 12px; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
  .cookie-banner-actions .btn-link { flex-basis: 100%; }
  body.has-cookie-banner .fab { bottom: 250px; }
  .cookie-modal-foot .btn { flex: 1 1 auto; }
}

/* ---------- หน้านโยบาย ---------- */
.policy-page { max-width: 920px; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.policy-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; border: 1px solid var(--border); background: #fff; color: var(--navy-800); font-size: .92rem; }
.policy-nav a:hover { border-color: var(--navy-800); }
.policy-nav a.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.policy-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 4px; }
.policy-updated { color: var(--muted); font-size: .9rem; margin-top: 0; }
.policy-page h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.policy-tag { font-size: .75rem; font-weight: 500; padding: 2px 10px; border-radius: 20px; background: #e5f6ec; color: var(--line-700); }
.policy-tag.opt { background: var(--blue-100); color: var(--navy-700); }
.policy-contact { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin: 12px 0 18px; }
.policy-contact p { margin: 0 0 6px; }
.policy-contact ul { margin: 0; }
.policy-contact li { padding-left: 0 !important; }
.policy-contact li::before { display: none; }
.policy-contact li i { width: 20px; color: var(--navy-600); }
.policy-table-wrap { overflow-x: auto; margin: 14px 0; }
.policy-table-wrap table { display: table; margin: 0; min-width: 560px; }
.policy-table-wrap td { font-size: .92rem; }
.policy-table-wrap code { font-size: .85rem; white-space: nowrap; }
.help-text { font-size: .88rem; color: var(--muted); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--red); }

/* ---------- ปุ่มแก้ไขรูป/ส่วนหัว (เฉพาะแอดมิน) ---------- */
.image-edit { left: auto; right: 8px; }
.gallery-strip-item { position: relative; }
.gallery-strip .grid a.card-edit { aspect-ratio: auto; display: grid; border-radius: 9px; }
.hero-edit { position: absolute; top: 14px; right: 14px; z-index: 5; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
/* โลโก้แบบรูปภาพ (อัปโหลดในหลังบ้าน) */
.logo-img { object-fit: contain; height: auto; max-height: 72px; }
.brand .logo-img { width: auto; max-width: 240px; max-height: 64px; }
.footer-logo .logo-img { width: auto; max-width: 240px; max-height: 110px; }
@media (max-width: 760px) { .brand .logo-img { max-width: 170px; max-height: 46px; } }

/* ---------- แถบ “จัดส่งทั่วไทย” (หน้าติดต่อเรา) ---------- */
.delivery-strip { padding: 56px 0 64px; background: var(--bg); }
.delivery-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; box-shadow: var(--shadow); }
.delivery-photo { position: relative; min-height: 380px; background: var(--navy-700); }
.delivery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.delivery-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(8,27,66,.55)); pointer-events: none; }
.delivery-badge { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; background: var(--red); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.delivery-body { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.delivery-kicker { margin: 0 0 6px; color: #9fc0ff; font-weight: 600; letter-spacing: .04em; font-size: .9rem; text-transform: uppercase; }
.delivery-title { color: #fff; margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }
.delivery-title span { display: block; font-family: var(--font-script); font-style: italic; font-weight: 600; font-size: .72em; color: #ffd166; margin-top: 4px; }
.delivery-text { margin: 0 0 22px; opacity: .88; }
.delivery-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.delivery-items li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.delivery-items i { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #ffd166; font-size: 1.05rem; }
.delivery-items strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.delivery-items span { display: block; font-size: .8rem; opacity: .78; line-height: 1.35; margin-top: 2px; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1080px) {
  .delivery-items { grid-template-columns: minmax(0, 1fr); }
  .delivery-items li { align-items: center; }
}
@media (max-width: 860px) {
  .delivery-card { grid-template-columns: minmax(0, 1fr); }
  .delivery-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .delivery-photo::after { background: linear-gradient(180deg, transparent 60%, rgba(8,27,66,.45)); }
  .delivery-body { padding: 28px 22px 30px; }
  .delivery-actions .btn { flex: 1 1 auto; }
}

/* ---------- ปุ่มติดต่อแบบการ์ด (โทร / LINE) ---------- */
.cta-btns { display: grid; gap: 10px; margin-top: 14px; text-align: left; }
.cta-btn { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; color: #fff; overflow: hidden; isolation: isolate; text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.cta-btn:hover { color: #fff; transform: translateY(-3px); }
.cta-btn:active { transform: translateY(-1px) scale(.99); }
.cta-btn:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
/* ประกายแสงวิ่งผ่านเมื่อชี้ */
.cta-btn::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.cta-btn:hover::before { left: 120%; }
.cta-btn-phone { background: linear-gradient(135deg, #ff3b44, var(--red-700)); box-shadow: 0 8px 20px rgba(224,22,31,.35); }
.cta-btn-phone:hover { box-shadow: 0 12px 26px rgba(224,22,31,.45); }
.cta-btn-line { background: linear-gradient(135deg, #1ed760, var(--line-700)); box-shadow: 0 8px 20px rgba(6,199,85,.3); }
.cta-btn-line:hover { box-shadow: 0 12px 26px rgba(6,199,85,.42); }
.cta-btn-icon { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 1.15rem; backdrop-filter: blur(4px); }
.cta-btn-line .cta-btn-icon { font-size: 1.6rem; }
/* วงคลื่นรอบไอคอนโทรศัพท์ + ไอคอนสั่นเบา ๆ */
.cta-btn-phone .cta-btn-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255,255,255,.7); animation: cta-ripple 2s ease-out infinite; }
.cta-btn-phone .cta-btn-icon i { animation: cta-shake 2.6s ease-in-out infinite; }
.cta-btn-line:hover .cta-btn-icon i { animation: cta-pop .5s ease; }
.cta-btn-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cta-btn-text small { font-size: .76rem; opacity: .88; font-weight: 400; }
.cta-btn-text strong { font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-btn-arrow { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: rgba(255,255,255,.18); transition: transform .25s, background .25s; }
.cta-btn:hover .cta-btn-arrow { transform: translateX(4px); background: rgba(255,255,255,.32); }
@keyframes cta-ripple { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@keyframes cta-shake { 0%, 76%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 84% { transform: rotate(12deg); } 88% { transform: rotate(-10deg); } 92% { transform: rotate(6deg); } }
@keyframes cta-pop { 0% { transform: scale(1); } 45% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cta-btn, .cta-btn::before, .cta-btn-arrow { transition: none; }
  .cta-btn-phone .cta-btn-icon::after, .cta-btn-phone .cta-btn-icon i, .cta-btn-line:hover .cta-btn-icon i { animation: none; }
}
