/* ============================================================
   ทรัพย์สกล HOME SHOW — Shared stylesheet
   Local Modern Trade · White / Gray / Red (#ed1c24)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Noto+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --red: #ed1c24;
  --red-dark: #c20d14;
  --red-soft: #fdeaeb;
  --ink: #16181d;
  --gray-900: #1f2228;
  --gray-700: #41454e;
  --gray-500: #6b7280;
  --gray-400: #9aa0aa;
  --gray-300: #d4d7dd;
  --gray-200: #e6e8ec;
  --gray-100: #f1f2f4;
  --gray-50:  #f7f8f9;
  --white: #ffffff;

  --line: #e6e8ec;
  --shadow-sm: 0 1px 2px rgba(20,24,29,.06), 0 1px 1px rgba(20,24,29,.04);
  --shadow-md: 0 6px 18px rgba(20,24,29,.08), 0 2px 6px rgba(20,24,29,.05);
  --shadow-lg: 0 18px 50px rgba(20,24,29,.14), 0 6px 16px rgba(20,24,29,.07);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --font: 'Noto Sans Thai', 'Noto Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--gray-50); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--red); text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--red); }
.kicker--center { justify-content: center; }

.sec-head { max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.sec-head p { color: var(--gray-500); font-size: 18px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(237,28,36,.28); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--gray-300); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink); color: #cfd2d8;
  font-size: 13.5px; font-weight: 500;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #cfd2d8; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-right { display: flex; align-items: center; gap: 16px; }
.tb-social { display: inline-flex; align-items: center; gap: 8px; }
.tb-social a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #cfd2d8; transition: color .15s, background .15s; }
.tb-social a:hover { color: #fff; background: rgba(255,255,255,.14); }
.tb-social svg { width: 16px; height: 16px; opacity: 1; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-header .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-block: 12px; position: relative; min-height: 0; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.brand { display: flex; align-items: center; gap: 12px; }
.header-inner .brand img { height: 78px; width: auto; display: block; transition: height .25s ease; }
.scrolled .header-inner .brand img { height: 48px; }
.site-header .header-inner { transition: padding .25s ease; }
.scrolled .site-header .header-inner { padding-block: 8px; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 12px; background: var(--red);
  display: grid; place-items: center; color: #fff; font-weight: 900;
  font-size: 20px; letter-spacing: -.02em; box-shadow: 0 6px 14px rgba(237,28,36,.3);
  flex-shrink: 0;
}
.brand img.mark { width: 56px; height: 48px; object-fit: contain; background: none; box-shadow: none; border-radius: 0; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt .b1 { font-weight: 900; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.brand .bt .b2 { font-weight: 800; font-size: 11px; letter-spacing: .22em; color: var(--red); }

.nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-weight: 600; font-size: 15.5px; color: var(--gray-700);
  padding: 9px 14px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--gray-100); }
.nav a.active { color: var(--red); }
.tb-lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding: 9px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--gray-700);
  transition: background .15s, color .15s;
}
.lang:hover { background: var(--gray-100); color: var(--ink); }
.lang .flag { width: 20px; height: 14px; border-radius: 2px; overflow: hidden; display: inline-block; }

.header-inner .burger { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.footer-brand img { height: 70px; width: auto; margin-bottom: 18px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* ---------- Placeholder media ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: grid; place-items: center; color: var(--gray-400);
  border-radius: var(--radius);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.018) 0 14px, transparent 14px 28px);
}
.ph .ph-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.ph .ph-in svg { width: 34px; height: 34px; opacity: .6; }
.ph .ph-in span { font-size: 13.5px; font-weight: 600; color: var(--gray-500); letter-spacing: .01em; }
.ph--red { background: linear-gradient(135deg, #fbe3e4, #f6cccd); color: var(--red); }
.ph--red .ph-in span { color: var(--red-dark); }
.ph--dark { background: linear-gradient(135deg, #2a2e36, #1c1f25); }
.ph--dark .ph-in span { color: #aab; }
.ph--dark .ph-in svg { opacity: .5; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-300); color: var(--gray-700);
}
.chip--salary { background: #e9f9ef; border-color: #b7e9c8; color: #167a40; font-weight: 700; }

/* ---------- Stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat .n { font-size: clamp(34px, 5vw, 52px); font-weight: 900; color: var(--red); letter-spacing: -.02em; line-height: 1; }
.stat .l { color: var(--gray-500); font-weight: 600; font-size: 15px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bdc6; padding-top: 72px; }
.site-footer a { color: #b9bdc6; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.site-footer .brand .b1 { color: #fff; }
.site-footer h4 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .02em; margin-bottom: 18px; text-transform: uppercase; }
.foot-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.foot-contact { display: flex; flex-direction: column; gap: 13px; font-size: 15px; }
.foot-contact .fc { display: flex; gap: 11px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--red); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s, transform .15s; }
.foot-social a:hover { background: var(--red); transform: translateY(-2px); }
.foot-social svg { width: 20px; height: 20px; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8c9099; }

/* ---------- Utilities ---------- */
.muted { color: var(--gray-500); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .wrapf { flex-wrap: wrap; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Star rating ---------- */
.stars { display: inline-flex; gap: 2px; color: #ffb400; }
.stars svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr; justify-items: center; }
  .site-header .header-inner { grid-template-columns: 1fr; justify-items: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
  .topbar .tb-left span.hide-sm { display: none; }
  .header-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .lang span.lang-txt { display: none; }

  /* Topbar มือถือ: แถวเดียวสะอาด — เบอร์โทรซ้าย + โซเชียลขวา (ซ่อน "นัดหมาย" ที่มีในเมนูแล้ว) */
  .topbar { font-size: 12.5px; }
  .topbar .wrap { min-height: 0; padding-block: 8px; gap: 6px 12px; flex-wrap: nowrap; }
  .topbar .tb-right > a { display: none; }
  .topbar .tb-left { gap: 12px; min-width: 0; }
  .topbar .tb-left span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar svg { width: 13px; height: 13px; }
  .tb-social a { width: 24px; height: 24px; }

  /* Trust-strip มือถือ: ลดขนาดหัวข้อเล็กน้อย (กฎ 1 คอลัมน์อยู่ด้านล่าง หลังกฎ 2 คอลัมน์) */
  .ts-item strong { font-size: 15.5px; }

  /* กัน scroll ซ้าย-ขวา (horizontal overflow) บนมือถือ — clip ที่ body ไม่พัง sticky/scroll แนวตั้ง */
  body { overflow-x: clip; }

  /* Footer สวยขึ้นบนมือถือ */
  .site-footer { padding-top: 46px; }
  .foot-grid { gap: 28px; padding-bottom: 36px; }
  .footer-brand img { height: 56px; margin-bottom: 12px; }
  .site-footer p { font-size: 14.5px; }
  .foot-social { gap: 9px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px); background:
  radial-gradient(1100px 500px at 88% -10%, var(--red-soft), transparent 60%),
  linear-gradient(180deg, #fff, var(--gray-50)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .badge { margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 900; line-height: 1.08; }
.hero-copy h1 .hl { color: var(--red); }
.hero-copy > p { font-size: clamp(17px, 1.8vw, 19px); color: var(--gray-700); margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust span { font-size: 15px; color: var(--gray-700); }
.hero-trust strong { color: var(--ink); }

.hero-media { position: relative; }
.hero-ph-main { aspect-ratio: 4/3.4; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.hero-ph-badge {
  position: absolute; left: -18px; bottom: 38px; background: #fff; border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero-ph-badge .hpb-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.hero-ph-badge .hpb-ico svg { width: 24px; height: 24px; }
.hero-ph-badge .hpb-n { font-weight: 900; font-size: 22px; color: var(--ink); line-height: 1; }
.hero-ph-badge .hpb-l { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.hero-ph-mini { position: absolute; right: -14px; top: -14px; width: 132px; height: 132px; border-radius: 18px; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.hero-ph-mini .ph-in svg { width: 26px; height: 26px; }
.hero-ph-mini .ph-in span { font-size: 12px; }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 28px; }
.ts-item { display: flex; align-items: center; gap: 14px; }
.ts-item svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
.ts-item strong { display: block; font-size: 16px; color: var(--ink); }
.ts-item span { font-size: 14px; color: var(--gray-500); }

/* ---------- Category cards ---------- */
.cat-card { display: flex; flex-direction: column; }
.cat-ph { aspect-ratio: 16/10; border-radius: 0; }
.cat-body { padding: 22px 22px 24px; position: relative; }
.cat-ico { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(237,28,36,.3); }
.cat-ico svg { width: 26px; height: 26px; }
.cat-body h3 { font-size: 21px; margin-top: 12px; }
.cat-body p { color: var(--gray-500); font-size: 15px; margin-top: 10px; }
.cat-link { display: inline-block; margin-top: 16px; color: var(--red); font-weight: 700; font-size: 15px; }

/* ---------- Brand strip ---------- */
.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-logo { height: 104px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 8px 14px; transition: transform .15s, box-shadow .15s; }
.brand-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-logo img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
.brand-logo:hover img { transform: scale(1.04); }
.brand-logo span { font-weight: 900; font-size: 18px; letter-spacing: .03em; color: var(--gray-400); align-items: center; justify-content: center; text-align: center; line-height: 1.15; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.g-score { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
.section--ink .g-score { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.g-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--gray-700); border-right: 1px solid var(--line); padding-right: 16px; }
.section--ink .g-logo { color: #cfd2d8; border-color: rgba(255,255,255,.12); }
.g-num { font-size: 38px; font-weight: 900; color: var(--ink); line-height: 1; }
.section--ink .g-num { color: #fff; }
.g-count { font-size: 13px; color: var(--gray-500); }
.review-card { padding: 24px; }
.reviews-slider { position: relative; }
.reviews-viewport { overflow: hidden; padding: 6px 2px; }
.reviews-track { display: flex; gap: 26px; transition: transform .5s ease; }
.reviews-track .review-card { flex: 0 0 calc((100% - 52px) / 3); }
.rv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 3; box-shadow: var(--shadow-md); transition: background .15s, transform .15s; }
.rv-arrow:hover { background: var(--gray-100); transform: translateY(-50%) scale(1.06); }
.rv-arrow svg { width: 22px; height: 22px; }
.rv-prev { left: -62px; } .rv-next { right: -62px; }
@media (max-width: 1320px) { .rv-prev { left: -10px; } .rv-next { right: -10px; } }
@media (max-width: 860px) {
  .reviews-track .review-card { flex: 0 0 84%; }
}
@media (max-width: 560px) {
  .rv-arrow { display: none; }
  /* มือถือ: ปัดทีละ 1 รีวิว (native scroll-snap) — ปิด JS transform */
  .reviews-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .reviews-viewport::-webkit-scrollbar { display: none; }
  .reviews-track { transform: none !important; gap: 14px; }
  .reviews-track .review-card { flex: 0 0 100%; scroll-snap-align: center; }
}
.rc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rc-av { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-100); color: var(--gray-700); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.rc-name { font-weight: 700; font-size: 16px; }
.review-card p { color: var(--gray-700); font-size: 15.5px; }

/* ---------- TikTok ---------- */
.tiktok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tt-card { display: flex; flex-direction: column; gap: 12px; }
.tt-ph { aspect-ratio: 9/16; border-radius: var(--radius); position: relative; }
.tt-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.tt-play svg { width: 24px; height: 24px; color: var(--red); margin-left: 3px; }
.tt-cap { font-size: 14.5px; font-weight: 600; color: #d8dbe1; }

/* ---------- Concrete CTA ---------- */
.concrete-cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cc-copy { background: linear-gradient(135deg, var(--red), var(--red-dark)); padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.cc-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 16px; }
.cc-copy p { margin-top: 16px; font-size: 17px; }
.cc-ph { border-radius: 0; min-height: 320px; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
  .tiktok-grid { grid-template-columns: repeat(2, 1fr); }
  .concrete-cta { grid-template-columns: 1fr; }
  .cc-ph { min-height: 240px; order: -1; }
}
@media (max-width: 860px) {
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; gap: 22px; }
  .reviews-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  /* มือถือเล็ก: trust-strip 1 คอลัมน์ ข้อความไม่ตัดบรรทัด (วางหลังกฎ 2 คอลัมน์เพื่อให้ชนะ) */
  .trust-strip .wrap { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
}
@media (max-width: 560px) {
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .tiktok-grid { grid-template-columns: 1fr 1fr; }
  .hero-ph-mini { width: 96px; height: 96px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--gray-50), #fff); border-bottom: 1px solid var(--line); padding-block: clamp(34px, 4vw, 54px); }
.page-hero .crumb { font-size: 13.5px; color: var(--gray-500); font-weight: 600; margin-bottom: 12px; }
.page-hero .crumb a:hover { color: var(--red); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.page-hero p { color: var(--gray-600, var(--gray-500)); font-size: 16px; margin-top: 12px; max-width: 640px; }

/* ---------- About ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-story-ph { aspect-ratio: 4/3.2; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-points { display: flex; flex-direction: column; gap: 12px; }
.ap { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 16px; }
.ap svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.vm-card { padding: 30px; }
.vm-ico { width: 56px; height: 56px; border-radius: 15px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.vm-ico svg { width: 28px; height: 28px; }
.vm-card h3 { font-size: 22px; }
.vm-card p { color: var(--gray-500); margin-top: 10px; font-size: 15.5px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.tl-item { position: relative; }
.tl-year { font-weight: 900; color: var(--red); font-size: 16px; margin-bottom: 14px; padding-left: 22px; position: relative; }
.tl-year::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl-body { padding: 22px; }
.tl-body h3 { font-size: 18px; }
.tl-body p { color: var(--gray-500); font-size: 14.5px; margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.gallery .ph { border-radius: var(--radius); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

@media (max-width: 860px) {
  .about-story { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Products ---------- */
.cat-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cat-nav .chip { padding: 10px 19px; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.cat-nav .chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-nav .chip.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(237,28,36,.28); }
.cat-nav .chip.active:hover { color: #fff; transform: translateY(-2px); }

.prod-note { display: flex; gap: 13px; align-items: center; max-width: 880px; margin: 26px auto 0; background: var(--red-soft); border: 1px solid #f6cccd; border-radius: var(--radius); padding: 15px 24px; }
.prod-note svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.prod-note p { font-size: 14px; color: var(--gray-700); line-height: 1.55; }
.prod-note strong { color: var(--ink); }
@media (max-width: 640px) { .prod-note { align-items: flex-start; } }
.prod-cat-head { display: flex; align-items: flex-start; gap: 24px; }
.pch-num { font-size: clamp(44px, 6vw, 72px); font-weight: 900; color: var(--gray-200); line-height: .9; flex-shrink: 0; letter-spacing: -.03em; }
.prod-cat-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.prod-card { display: flex; flex-direction: column; }
.prod-ph { aspect-ratio: 4/3; border-radius: 0; }
.prod-body { padding: 20px; }
.prod-body h3 { font-size: 19px; }
.prod-body p { color: var(--gray-500); font-size: 14.5px; margin-top: 8px; margin-bottom: 14px; }

.concrete-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cf-copy h3 { font-size: clamp(22px, 2.8vw, 30px); }
.cf-feats { display: flex; flex-direction: column; gap: 12px; }
.cf-feat { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.cf-feat svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
.cf-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-ph { aspect-ratio: 3/4; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.cf-ph2 { aspect-ratio: 3/4; border-radius: var(--radius); margin-top: 32px; box-shadow: var(--shadow-md); }

@media (max-width: 860px) {
  .prod-cat-head { gap: 14px; }
  .concrete-feature { grid-template-columns: 1fr; }
}

/* ---------- Articles ---------- */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.feat-ph { border-radius: 0; min-height: 340px; }
.feat-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feat-body h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 16px; }
.feat-body p { margin-top: 14px; }
.art-meta { display: flex; gap: 18px; margin-top: 16px; }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--gray-500); font-weight: 500; }
.art-meta svg { width: 15px; height: 15px; }
.feat-body .cat-link { margin-top: 20px; }
.art-card { display: flex; flex-direction: column; }
.art-ph { aspect-ratio: 16/10; border-radius: 0; }
.art-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.art-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.art-body h3 { font-size: 19px; }
.art-body p { font-size: 14.5px; margin-top: 8px; }
.art-body .art-meta { margin-top: auto; padding-top: 16px; }

.news-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; min-width: 0; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--gray-300); font-family: inherit; font-size: 15px; background: #fff; }
.news-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .feat-ph { min-height: 220px; }
  .news-band { grid-template-columns: 1fr; }
}

/* ---------- Careers ---------- */
.why-card { text-align: center; padding: 12px; }
.why-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin: 0 auto 16px; }
.why-ico svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 19px; }
.why-card p { color: var(--gray-500); font-size: 14.5px; margin-top: 8px; }

.jobs { display: flex; flex-direction: column; gap: 16px; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: box-shadow .2s, border-color .2s; }
.job-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.job-main h3 { font-size: 20px; }
.job-main p { font-size: 14.5px; margin-top: 6px; }
.job-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.job-card .btn { flex-shrink: 0; }

.apply-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.apply-info { display: flex; flex-direction: column; gap: 14px; }
.ai-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.ai-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.ai-ico svg { width: 22px; height: 22px; }
.ai-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); }
.ai-val { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.ai-note { background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: var(--radius); padding: 16px 20px; font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.ai-note strong { display: block; color: var(--ink); margin-bottom: 4px; }

.apply-form { padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md); }
.af-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-100); }
.af-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(237,28,36,.28); }
.af-ic svg { width: 24px; height: 24px; }
.af-head h3 { font-size: 21px; }
.af-head p { color: var(--gray-500); font-size: 14px; margin-top: 2px; }
.ff { display: flex; flex-direction: column; gap: 7px; }
.ff label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.ff input, .ff select, .ff textarea { padding: 13px 15px; border-radius: 10px; border: 1px solid var(--gray-300); font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.ff textarea { resize: vertical; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 860px) {
  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card .btn { width: 100%; }
  .apply-grid { grid-template-columns: 1fr; }
  .ff-row { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
/* Channel cards */
.ch-cards { margin-top: 44px; }
.cc-card { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cc-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; transition: transform .25s ease; }
.cc-card:hover .cc-ico { transform: scale(1.08) rotate(-4deg); }
.cc-ico svg { width: 30px; height: 30px; }
.cc-fb { background: #e7f0fe; color: #1877f2; }
.cc-tt { background: #f0f1f3; color: #111; }
.cc-line { background: #e6f6ea; color: #06c755; }
.cc-card h3 { font-size: 19px; }
.cc-card p { color: var(--gray-500); font-size: 14.5px; margin-top: 8px; flex: 1; }
.cc-act { color: var(--red); font-weight: 800; font-size: 14px; margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; }
.cc-act i { font-style: normal; transition: transform .25s ease; }
.cc-card:hover .cc-act i { transform: translateX(4px); }

/* Map + info + form */
.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; margin-top: 12px; }
.contact-left { display: flex; flex-direction: column; gap: 22px; }
.info-card { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.info-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.info-row:last-of-type { border-bottom: 0; }
.info-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.info-ic svg { width: 20px; height: 20px; }
.info-row > div { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); }
.info-val { font-size: 15.5px; font-weight: 600; color: var(--gray-900); line-height: 1.5; }
.info-nav { margin-top: 12px; gap: 9px; }

.contact-form { padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md); }
.cf-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-100); }
.cf-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(237,28,36,.28); }
.cf-ic svg { width: 24px; height: 24px; }
.cf-head h3 { font-size: 21px; }
.cf-head p { color: var(--gray-500); font-size: 14px; margin-top: 2px; }
.cf-note { background: #e9f9ef; border: 1px solid #b7e9c8; color: #167a40; font-weight: 700; font-size: 14.5px; padding: 12px 16px; border-radius: 12px; }
.contact-form .ff input::placeholder, .contact-form .ff textarea::placeholder { color: var(--gray-400); }

@media (max-width: 860px) {
  .contact-main { grid-template-columns: 1fr; }
}

/* ---------- Hero banner image ---------- */
.hero-banner-img { background: #d9dce0; }
.hero-banner-img img { display: block; width: 100%; height: auto; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; aspect-ratio: 3168 / 1344; max-height: 86vh; overflow: hidden; background: #d9dce0; }

/* ---------- Hero RICH (DB-driven hero section) ---------- */
.hero-rich { aspect-ratio: auto; max-height: none; height: var(--hero-h, 88vh); min-height: 520px; background: #16181d; }
.hero-rich .hs-slide { position: absolute; inset: 0; display: flex; opacity: 0; transition: opacity .8s ease; padding: 0; overflow: hidden; }
.hero-rich .hs-slide.is-active { opacity: 1; z-index: 1; }
.hrh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hrh-overlay { position: absolute; inset: 0; z-index: 1; }
.hrh-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 64px); display: flex; flex-direction: column; gap: 22px; align-items: inherit; }
.hero-rich .hs-slide[style*="flex-start"] .hrh-inner { align-items: flex-start; }
.hrh-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: 9999px; }
.hrh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(237,28,36,.3); animation: hrhPulse 1.8s ease-in-out infinite; }
@keyframes hrhPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.hrh-h { font-weight: 900; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.hrh-h span { display: block; }
.hrh-s { max-width: 620px; line-height: 1.6; font-weight: 500; margin: 0; }
.hrh-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hrh-cta { display: inline-flex; align-items: center; gap: 9px; padding: 11px 30px; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s; }
.hrh-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.hrh-cta--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }
.hrh-cta--ghost:hover { background: rgba(255,255,255,.22); }
.hrh-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; z-index: 2; display: block; }
@media (max-width: 860px) { .hero-rich { height: auto; min-height: 0; }
  .hero-rich .hs-slide { position: absolute; }
  .hrh-inner { padding: 110px 22px 90px; gap: 18px; }
  .hrh-s { font-size: 1rem !important; }
}
.hs-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; }
img.hs-slide { width: 100%; height: 100%; object-fit: cover; }
.hs-slide.is-active { opacity: 1; }
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background .15s, transform .15s; box-shadow: var(--shadow-md); }
.hs-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hs-arrow svg { width: 24px; height: 24px; }
.hs-prev { left: 18px; } .hs-next { right: 18px; }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 9px; z-index: 3; }
.hs-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.hs-dots button.is-active { background: #fff; width: 28px; border-radius: 6px; }

/* ---------- Brand feature ---------- */
.brand-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.brand-photo { aspect-ratio: 4/3.4; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background-size: cover; background-position: center; }
.brand-content .kicker { margin-bottom: 14px; }
.brand-content h2 { font-size: clamp(28px, 3.6vw, 40px); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- Promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.promo-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.promo-ph { aspect-ratio: 16/11; background-size: cover; background-position: center; position: relative; }
.promo-badge { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 10px; box-shadow: 0 6px 14px rgba(237,28,36,.35); }
.promo-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.promo-body h3 { font-size: 20px; }
.promo-body p { color: var(--gray-500); font-size: 14.5px; margin-top: 8px; }
.promo-valid { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gray-500); font-weight: 600; margin-top: 14px; }
.promo-valid svg { width: 15px; height: 15px; color: var(--red); }
.promo-body .btn { margin-top: 18px; }

@media (max-width: 1080px) {
  .brand-feature { grid-template-columns: 1fr; }
  .brand-media { max-width: 520px; }
}
@media (max-width: 860px) {
  .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-slider { max-height: none; }
  .hs-arrow { width: 40px; height: 40px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hero banner ---------- */
.hero-banner {
  position: relative; min-height: clamp(440px, 70vh, 660px);
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff;
}
.banner-inner { max-width: 760px; }
.banner-badge { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.hero-banner h1 { color: #fff; font-size: clamp(36px, 5.6vw, 66px); font-weight: 900; line-height: 1.1; }
.hero-banner h1 .hl { color: #ff5159; }
.hero-banner > .wrap > .banner-inner > p { color: #e6e8ec; font-size: clamp(17px, 2vw, 20px); margin-top: 20px; max-width: 600px; }
.hero-banner .hero-actions { margin-top: 32px; }
.banner-rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 12px 20px; border-radius: 999px; background: rgba(0,0,0,.34); backdrop-filter: blur(4px); }
.banner-rating span { font-size: 15px; color: #f1f2f4; }
.banner-rating strong { color: #fff; }

/* ---------- Home about media ---------- */
.home-about-media { position: relative; }
.home-about-ph { aspect-ratio: 4/3.3; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background-size: cover; background-position: center; }

@media (max-width: 1080px) {
  .home-about-media { max-width: 560px; }
}
@media (max-width: 560px) {
  .hero-banner { min-height: 78vh; }
  .banner-rating { width: 100%; justify-content: center; }
}

/* ---------- Real photos (injected by photos.js) ---------- */
.ph.has-photo { background-size: cover; background-position: center; color: transparent; }
.ph.has-photo::after { display: none; }
.ph.has-photo .ph-in { display: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 100; }
.mobile-menu.open { display: block; }
.mobile-menu .mm-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.mobile-menu .mm-panel {
  position: absolute; top: 0; right: 0; width: min(340px, 86vw); height: 100%;
  background: #fff; box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .25s ease;
}
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mobile-menu .mm-panel a { font-weight: 600; font-size: 17px; padding: 14px 12px; border-radius: 10px; color: var(--gray-700); }
.mobile-menu .mm-panel a:hover, .mobile-menu .mm-panel a.active { background: var(--gray-100); color: var(--red); }
.mobile-menu .mm-close { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.mobile-menu .mm-close svg { width: 22px; height: 22px; }

/* ============================================================
   OVERRIDES — Hero full-bleed · Nav to edges · Clickable slides
   (ทรัพย์สกล HOME SHOW · added)
   ============================================================ */

/* ----- Hero slider: กว้าง 100% · ความสูงไหลตามรูปจริง (ไม่ครอบ ไม่บิด) ----- */
/* ใช้ grid ซ้อนสไลด์ในเซลล์เดียว → container สูงตามรูปเอง + ยัง crossfade ได้ */
.hero-slider {
  width: 100%;
  display: grid;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
}
.hero-slider .hs-slide {
  position: static;            /* override base position:absolute → ให้อยู่ใน grid */
  inset: auto;
  grid-area: 1 / 1;            /* ซ้อนทุกสไลด์ในเซลล์เดียวกัน */
  opacity: 0;
  transition: opacity .8s ease;
  display: block;
}
.hero-slider .hs-slide:not(.is-active) { pointer-events: none; }
.hero-slider .hs-slide.is-active { opacity: 1; z-index: 1; }
.hero-slider .hs-slide img { width: 100%; height: auto; display: block; }  /* สูงตามสัดส่วนจริงของรูป */
a.hs-slide { cursor: pointer; }

/* ----- Hero RICH (text hero): สูงตามค่าที่ตั้งใน admin (--hero-h) ไม่ใช่ auto -----
   ต้อง specificity สูงกว่า .hero-slider override ด้านบน + คืน layout สไลด์เป็น absolute
   (เดิม .hero-slider override บังคับ height:auto/grid ซึ่งทำให้ปรับความสูงไม่ขึ้น)
   เฉพาะเดสก์ท็อป (≥861px) — มือถือยังสูง auto ไหลตามเนื้อหาตามเดิม */
@media (min-width: 861px) {
  .hero-slider.hero-rich { display: block; height: var(--hero-h, 88vh); min-height: 300px; }
  .hero-slider.hero-rich .hs-slide {
    position: absolute; inset: 0; grid-area: auto; display: flex;
  }
}

/* ----- Header & nav: เมนูชิดกลางใกล้โลโก้ + เว้นระยะระหว่างเมนูให้โปร่ง ----- */
.site-header .header-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 40px);
  gap: clamp(20px, 2.4vw, 40px);          /* ระยะเมนู ↔ โลโก้ */
}
.header-inner .nav-left  { justify-content: flex-end; }    /* ชิดเข้าหาโลโก้ตรงกลาง */
.header-inner .nav-right { justify-content: flex-start; }
.header-inner .nav { gap: clamp(6px, 1.1vw, 16px); }        /* ระยะระหว่างเมนูแต่ละอัน */
.header-inner .nav a { font-size: 16px; padding: 10px 14px; }
/* เมนูหน้าพม่า — ข้อความพม่ายาวกว่าไทย เลยลดขนาด + ไม่ตัดบรรทัด ให้อยู่แถวเดียว */
.mm-header .nav { flex-wrap: nowrap; gap: 2px; }
.mm-header .nav a { font-size: 13px; padding: 8px 8px; white-space: nowrap; }
@media (max-width: 1080px) {
  .site-header .header-inner { padding-inline: clamp(16px, 4vw, 28px); }
}

/* ----- TikTok embeds (วิดีโอจริง) บนพื้นเข้ม ----- */
.section--ink .tiktok-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.section--ink .tiktok-grid .tt-card { width: 325px; max-width: 100%; }
.section--ink .tiktok-grid .tt-card .tiktok-embed { border-radius: 14px; overflow: hidden; }
.tt-profile { display: flex; justify-content: center; }
.tt-profile .tiktok-embed { width: 100%; }

/* ============================================================
   PREMIUM CATEGORY TILES (หน้าแรก — ประเภทสินค้า)
   ============================================================ */
.cat-grid { gap: 22px; }
.cat-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); background: var(--gray-200);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile .cat-ph {
  position: absolute; inset: 0; height: 100%; width: 100%;
  aspect-ratio: auto; border-radius: 0;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.cat-tile:hover .cat-ph { transform: scale(1.08); }
.cat-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; transition: background .35s ease;
  background: linear-gradient(180deg, rgba(20,24,29,.04) 0%, rgba(20,24,29,.12) 38%, rgba(20,24,29,.86) 100%);
}
.cat-tile:hover::after {
  background: linear-gradient(180deg, rgba(237,28,36,.14) 0%, rgba(20,24,29,.3) 42%, rgba(20,24,29,.93) 100%);
}
.cat-tile-num { display: none; }
.cat-tile-ico {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 46px; height: 46px; border-radius: 13px; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(237,28,36,.45);
  transition: transform .35s ease;
}
.cat-tile:hover .cat-tile-ico { transform: rotate(-6deg) scale(1.06); }
.cat-tile-ico svg { width: 24px; height: 24px; }
.cat-tile-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 22px; color: #fff; }
.cat-tile-content h3 { color: #fff; font-size: 22px; line-height: 1.2; }
.cat-tile-content p {
  color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55;
  margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s ease, opacity .3s ease, margin-top .3s ease;
}
.cat-tile:hover .cat-tile-content p { max-height: 100px; opacity: 1; }
.cat-tile-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-weight: 800; font-size: 14px; color: #fff; letter-spacing: .01em;
}
.cat-tile-link svg { width: 18px; height: 18px; transition: transform .3s ease; }
.cat-tile:hover .cat-tile-link svg { transform: translateX(5px); }
@media (hover: none) {
  .cat-tile-content p { max-height: 100px; opacity: 1; }   /* มือถือ: โชว์รายละเอียดเสมอ */
}
@media (max-width: 560px) {
  .cat-tile { aspect-ratio: 4 / 5; }
  .cat-tile-num { font-size: 32px; }
}

/* ============================================================
   TIKTOK CLIPS — รูปปก + กดเล่นในโมดัล (แถวละ 4)
   ============================================================ */
.tt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tt-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: #1c1f25 center / cover no-repeat;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tt-thumb:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tt-thumb-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.04) 45%, rgba(0,0,0,.78) 100%); }
.tt-thumb-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .25s ease, background .25s ease;
}
.tt-thumb:hover .tt-thumb-play { transform: scale(1.12); background: #fff; }
.tt-thumb-play svg { width: 24px; height: 24px; color: var(--red); margin-left: 3px; }
.tt-thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; z-index: 1;
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
@media (max-width: 900px) { .tt-grid { grid-template-columns: repeat(2, 1fr); } }

/* มือถือ: เลื่อนปัดแนวนอนทีละ 1 คลิป (scroll-snap) แทนการเรียงลงล่างยาวๆ */
@media (max-width: 640px) {
  .tt-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* ดึงออกเต็มจอ (นอก padding ของ .wrap) เพื่อให้เห็น peek คลิปถัดไปสวยๆ */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .tt-grid::-webkit-scrollbar { display: none; }
  .tt-thumb {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .tt-thumb:hover { transform: none; }   /* กัน hover-lift บนทัช */
}

/* โมดัลเล่นคลิป */
.tt-modal { display: none; position: fixed; inset: 0; z-index: 200; }
.tt-modal.open { display: block; }
.tt-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
.tt-modal-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, 92vw); }
.tt-modal-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 84vh; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.tt-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tt-modal-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.tt-modal-close:hover { background: rgba(255,255,255,.3); }
.tt-modal-close svg { width: 22px; height: 22px; }

/* ----- Pagination (หน้าบ้าน) ----- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager-btn {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 15px; transition: border-color .15s, background .15s, color .15s;
}
.pager-btn:hover { border-color: var(--ink); }
.pager-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(237,28,36,.28); }
.pager-btn.is-disabled { color: var(--gray-300); border-color: var(--line); cursor: default; }
.pager-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--gray-400); font-weight: 700; }

/* ----- Product card: ราคา + ป้าย ----- */
.prod-card .prod-price { margin-top: 10px; font-weight: 800; font-size: 18px; color: var(--red); }
.prod-card .prod-price span { color: var(--gray-400); font-weight: 600; font-size: 13px; }
.prod-card .prod-ph { position: relative; }
.prod-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.prod-cat-head > div { min-width: 0; }

/* ============================================================
   PROMO SLIDER — สไลด์อัตโนมัติ แถวละ 4 · รูปจัตุรัสเต็มภาพ
   ============================================================ */
.promo-slider { position: relative; }
.promo-viewport { overflow: hidden; padding: 6px 2px; }
.promo-track { display: flex; gap: 22px; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.promo-track .promo-card { flex: 0 0 calc((100% - 44px) / 3); }   /* 3 ใบ/แถว */
.promo-img { display: block; aspect-ratio: 1 / 1; background: var(--gray-100); overflow: hidden; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }  /* รูป 1:1 = เต็มภาพ ไม่ตัด */
.promo-card:hover .promo-img img { transform: scale(1.04); }
@media (max-width: 860px)  { .promo-track .promo-card { flex: 0 0 calc((100% - 22px) / 2); } }
@media (max-width: 560px)  {
  /* มือถือ: ปัดทีละ 1 โปรโมชั่น (native scroll-snap) — ปิด JS transform */
  .promo-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .promo-viewport::-webkit-scrollbar { display: none; }
  .promo-track { transform: none !important; gap: 14px; }
  .promo-track .promo-card { flex: 0 0 100%; scroll-snap-align: center; }
}

/* ----- Google review card extras ----- */
.rc-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.rc-g { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 900; font-size: 12px; vertical-align: middle; box-shadow: 0 1px 3px rgba(0,0,0,.18); border: 1px solid var(--line); }
.rc-sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; }

/* ----- Contact: Google Map embed ----- */
.map-embed { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
