/* Premier Worlds - Modern Website Stylesheet */
/* Fonts loaded via <link> in HTML <head> (async) — @import removed to avoid render-blocking */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --orange-primary: #FF6500;
  --orange-light: #FF8C00;
  --orange-dark: #CC4400;
  --orange-glow: rgba(255, 101, 0, 0.12);
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #6a6a6a;   /* darkened for WCAG contrast (was #888) */
  --border: #e5e5e5;
  --border-hover: #FF6500;
  --gradient-orange: linear-gradient(135deg, #FF6500, #FF8C00);
  --gradient-dark: linear-gradient(135deg, #f5f5f5, #ffffff);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-orange: 0 4px 24px rgba(255,101,0,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Kanit', 'Sarabun', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--orange-primary); border-radius: 3px; }

/* ─── HEADER / NAV ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Solid dark — same tone as the original header (rgb(20,20,22)) */
  background: rgb(20, 20, 22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgb(20, 20, 22);
  box-shadow: 0 4px 30px rgba(0,0,0,0.45);
}

/* Navbar links — white on dark bar */
.header .nav-links > a,
.header .nav-links > .nav-dropdown > a {
  color: rgba(255,255,255,0.72);
}

.header .nav-links > a:hover,
.header .nav-links > a.active,
.header .nav-links > .nav-dropdown > a:hover,
.header .nav-links > .nav-dropdown > a.active {
  color: #ffffff !important;
  background: transparent;       /* minimal: no box — just white text + thin underline */
}

.header .logo-text {
  color: #ffffff;
}

/* Dropdown — white background, dark text */
.header .dropdown-menu a {
  color: var(--text-secondary);
}

.header .dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255,101,0,0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;               /* Apple-style slim bar */
  position: relative;         /* anchor for centered .nav-links */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient-orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-orange);
}

.logo-text span { color: var(--orange-primary); }

/* Logo image */
.logo-img-link { gap: 0; }
.logo-img {
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;                 /* center on the page regardless of    */
  left: 0; right: 0;                  /* logo / lang-toggle widths.           */
  margin: 0 auto;                     /* NOTE: do NOT use transform here — a   */
  width: max-content;                 /* transform would make the fixed mega  */
  pointer-events: none;               /* menu anchor to .nav-links not the    */
}                                     /* viewport and break its full width.   */
.nav-links > * { pointer-events: auto; }

.nav-links a {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-weight: 400;            /* Apple-style light weight */
  font-size: 0.8rem;           /* ~12.8px, small & minimal */
  letter-spacing: 0.1px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

/* Minimal nav: no background box — just a subtle color change on hover
   and a refined thin underline marking the current page. */
.nav-links a:hover {
  color: var(--text-primary);
  background: transparent;
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 500;
  background: transparent;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 13px; right: 13px;       /* thin line under the text only */
  height: 2px;
  background: var(--orange-primary);
  border-radius: 0;                         /* sharp, matches theme */
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 280px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  width: 100%;
}

.dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255,101,0,0.1);
}

.dropdown-menu .dot {
  width: 6px; height: 6px;
  background: var(--orange-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Online quote menu TEMPORARILY DISABLED (hidden, system kept intact) ───
   To re-enable: delete this single rule. */
.nav-cta,
.mobile-cta,
a[href$="quote.html"] { display: none !important; }

.nav-cta {
  background: var(--gradient-orange) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-orange);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255,101,0,0.35) !important;
  background: rgba(255,101,0,0) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 80px 20px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 320px;
  text-align: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,101,0,0.1);
}

.mobile-nav .mobile-cta {
  background: var(--gradient-orange);
  color: white !important;
  margin-top: 12px;
}

.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* ─── HERO SECTION ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 56px;
}

/* ─── HERO BANNER (full-width image slider) ─── */
.hero.hero-banner {
  min-height: 0;
  display: block;
  padding-top: 0;
  margin-top: 56px;            /* offset for fixed header (slim bar) */
  width: 100%;
  background: #fff5eb;
  /* aspect ratio matches first banner image (5414 x 2757) */
  aspect-ratio: 5414 / 2757;
  overflow: hidden;
}

.hero.hero-banner .hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero.hero-banner .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: block;
}

.hero.hero-banner .hero-slide.active {
  opacity: 1;
  pointer-events: all;
  position: absolute;
}

.hero.hero-banner .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fills container, preserves image aspect ratio */
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Banner nav arrows — vertically centered on the image */
.hero.hero-banner .hero-nav-btn {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.9rem;
}
.hero.hero-banner .hero-prev { right: auto; left: 18px; }
.hero.hero-banner .hero-next { left: auto; right: 18px; }
.hero.hero-banner .hero-nav-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Banner dots — overlay at bottom of image */
.hero.hero-banner .hero-dots {
  bottom: 18px;
}
.hero.hero-banner .hero-dot::before {
  background: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.9);
}
.hero.hero-banner .hero-dot.active::before {
  background: var(--orange-primary);
  border-color: #fff;
}

/* Slide-1 headline overlay — text from code, sits in the image's empty top space */
.hero.hero-banner .hero-text {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(6px, 0.9vw, 12px);
  padding: 1.6% 6% 0;
  pointer-events: none;            /* clicks pass through to the slide link */
  z-index: 4;
  text-align: center;
}
.hero.hero-banner .hero-text-title {
  margin: 0;
  color: #ffffff;                  /* white headline */
  font-weight: 500;                /* lighter / thinner */
  font-size: clamp(1.35rem, 3.3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 22px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.6);  /* dark shadow for legibility */
  max-width: 22ch;
}
.hero.hero-banner .hero-text-sub {
  margin: 0;
  color: #ffffff;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.7vw, 1.4rem);   /* smaller than the title */
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.6);
  max-width: 46ch;
}
.hero.hero-banner .hero-text-btn {
  pointer-events: auto;            /* button stays clickable */
  display: inline-block;
  background: var(--orange-primary, #FF6500);   /* solid orange fill */
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  letter-spacing: 0.3px;
  padding: clamp(8px, 0.85vw, 11px) clamp(20px, 1.9vw, 30px);
  border: 2px solid var(--orange-primary, #FF6500);   /* square frame */
  border-radius: 0;                /* square corners */
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transition: background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .2s ease;
}
.hero.hero-banner .hero-text-btn:hover {
  background: #e65a00;             /* darker orange on hover */
  border-color: #e65a00;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  /* Mobile portrait banner — Apple-style 4:5 tall card */
  .hero.hero-banner {
    margin-top: 56px;
    aspect-ratio: 4 / 5;       /* portrait, replaces landscape 6144:2986 on mobile */
  }
  .hero.hero-banner .hero-slide picture,
  .hero.hero-banner .hero-slide a.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero.hero-banner .hero-nav-btn {
    width: 36px; height: 36px; font-size: 1.4rem;
  }
  .hero.hero-banner .hero-prev { left: 10px; }
  .hero.hero-banner .hero-next { right: 10px; }
  .hero.hero-banner .hero-dots { bottom: 12px; }
  .hero.hero-banner .hero-text { padding: 6% 6% 0; }
  .hero.hero-banner .hero-text-title { font-size: clamp(1.15rem, 6.6vw, 2.1rem); max-width: none; white-space: nowrap; }
  .hero.hero-banner .hero-text-sub { font-size: clamp(0.72rem, 3.55vw, 1.05rem); max-width: none; white-space: nowrap; }
  .hero.hero-banner .hero-text-btn { display: inline-block; width: auto; align-self: center; font-size: 0.78rem; padding: 8px 20px; }
  /* Portfolio heading on mobile — keep on one line (higher specificity to beat desktop rule) */
  .pf-header h2.section-title { font-size: clamp(1.1rem, 6.8vw, 1.9rem); white-space: nowrap; }
  /* Screen-logo "View more" button — hidden on mobile only (card itself stays clickable) */
  .slh-card .slh-card-btn { display: none; }

  /* Static secondary banner — mobile uses the dedicated 4:5 image (space reserved → no CLS) */
  .static-banner img {
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(255,120,0,0.13) 0%, rgba(255,160,0,0.06) 50%, transparent 75%),
    radial-gradient(ellipse 40% 50% at 8% 15%, rgba(255,150,50,0.07) 0%, transparent 60%),
    linear-gradient(150deg, #ffffff 0%, #fffcf8 45%, #fff5eb 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,100,0,0.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 65% 80% at 76% 52%, black 20%, transparent 72%);
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 0.80fr 1.20fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── New centered layout ── */
.hero-container-new {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text-center {
  width: 100%;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px;
}

/* Single product image */
.hero-img-single {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  padding: 16px 40px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.hero-img-single:hover {
  transform: translateY(-4px);
}

.hero-img-single img {
  height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,101,0,0.08);
  border: 1px solid rgba(255,101,0,0.30);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #cc4400;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 3px rgba(255,101,0,0.2);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Title ── */
.hero-title {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 0;
  padding-bottom: 24px;
  position: relative;
  color: #111111;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 4px;
  background: var(--gradient-orange);
  border-radius: 3px;
}

.hero-title .highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-desc {
  font-size: 1rem;
  color: #666666;
  line-height: 1.8;
  margin-top: 24px;
  margin-bottom: 30px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-actions .btn-primary {
  padding: 15px 34px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(255,101,0,0.40), 0 2px 8px rgba(255,101,0,0.20);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-orange);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,101,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  color: #333333;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(0,0,0,0.14);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--orange-primary);
  background: rgba(255,101,0,0.08);
  color: var(--orange-dark);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 28px;
}

.stat-item { text-align: left; }
.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: #888888; margin-top: 4px; }

/* ── Hero Visual — Product Stage ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}

.hero-3d::before { display: none; }
.hero-3d::after  { display: none; }

/* Clean product wrap */
.hero-photo-wrap {
  width: 100%;
  height: 100%;
  background: transparent;
  position: relative;
  z-index: 1;
  filter: none;
  transition: transform 0.45s ease;
}

.hero-photo-wrap:hover {
  transform: scale(1.03) translateY(-4px);
  filter: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10%;
}

/* Hide floating badge pills */
.floating-card { display: none; }

/* ─── HERO SLIDE COUNTER ─── */
.hero-counter {
  position: absolute;
  bottom: 24px;
  left: calc(50% - 200px);
  display: flex;
  align-items: baseline;
  gap: 4px;
  z-index: 10;
}
.hero-counter .cnt-current {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange-primary);
  line-height: 1;
  letter-spacing: -1px;
}
.hero-counter .cnt-sep {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin: 0 3px;
}
.hero-counter .cnt-total {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
@media (max-width: 768px) {
  .hero-counter { display: none; }
}

/* ─── HERO SLIDER ─── */
.hero-slides {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
  width: 100%;
}

/* Nav dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 24px; height: 24px;        /* ≥24px tap target (a11y) */
  padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.hero-dot::before {                  /* the visible small dot */
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.28); background: rgba(0,0,0,0.12);
  transition: var(--transition);
}
.hero-dot.active::before {
  background: var(--orange-primary); border-color: var(--orange-primary);
  width: 26px; border-radius: 4px;
}
.hero-dot:hover:not(.active)::before {
  border-color: rgba(0,0,0,0.50); background: rgba(0,0,0,0.22);
}

/* Nav arrows */
.hero-nav-btn {
  position: absolute;
  bottom: 18px;
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(0,0,0,0.65);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  top: auto;
  transform: none;
}

.hero-nav-btn:hover {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
  box-shadow: 0 6px 24px rgba(255,101,0,0.40);
  transform: scale(1.1);
}

.hero-prev { right: calc(50% + 90px); }
.hero-next { left:  calc(50% + 90px); }

@media (max-width: 768px) {
  .hero-nav-btn { width: 36px; height: 36px; font-size: 1.4rem; bottom: 14px; }
  .hero-prev { right: calc(50% + 72px); }
  .hero-next { left:  calc(50% + 72px); }
  .hero-dots { bottom: 22px; }
}

/* ─── SECTIONS ─── */
.section { padding: 100px 24px; }
.section-sm { padding: 60px 24px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,101,0,0.1);
  border: 1px solid rgba(255,101,0,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

/* Portfolio (ผลงานติดตั้งจริง) heading — larger than other section titles */
.pf-header .section-title {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
}

.section-title .highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(255,101,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  background: var(--orange-glow);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(255,101,0,0.2);
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.products-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(255,101,0,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,101,0,0.15);
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--orange-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-svg {
  height: 80%;
  width: auto;
  transition: var(--transition);
}

.product-card:hover .product-svg {
  transform: scale(1.05);
}

.product-info {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-code {
  font-size: 0.75rem;
  color: var(--orange-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.product-colors {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.color-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: var(--transition);
}

.color-dot:hover { transform: scale(1.2); }
.color-dot.silver { background: linear-gradient(135deg, #d0d0d0, #a0a0a0); }
.color-dot.black { background: linear-gradient(135deg, #333, #111); border-color: #555; }
.color-dot.gold { background: linear-gradient(135deg, #FFD700, #B8860B); }

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-detail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,101,0,0.1);
  color: var(--orange-primary);
  border: 1px solid rgba(255,101,0,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-detail:hover {
  background: var(--orange-primary);
  color: white;
  border-color: var(--orange-primary);
}

.btn-contact-small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-contact-small:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

/* ─── CATEGORY TABS ─── */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
}

/* ─── PRODUCT DETAIL PAGE ─── */
.product-detail {
  padding-top: 120px;
  padding-bottom: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--orange-primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-secondary); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.detail-grid > * { min-width: 0; }

.detail-image-wrap {
  position: sticky;
  top: 100px;
  min-width: 0;
  overflow: hidden;
}

.detail-image-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin-bottom: 16px;
}

.detail-image-main svg {
  width: 70%;
  height: 70%;
}

.detail-image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 80px);
  gap: 12px;
}

.thumb {
  width: 80px; height: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  padding: 8px;
}

.thumb.active,
.thumb:hover { border-color: var(--orange-primary); }

.detail-info .product-code { font-size: 0.85rem; margin-bottom: 12px; }
.detail-info .product-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; line-height: 1.3; }

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stars { color: #FFB800; }

.detail-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
/* "Read more" collapsed state — clamp to 3 lines, hide the divider while collapsed */
.detail-desc.detail-desc--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.detail-desc-toggle {
  display: inline-block;
  margin: 10px 0 32px;
  padding: 0;
  background: none;
  border: none;
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}
.detail-desc-toggle:hover { text-decoration: underline; }

/* Promotional price box (coffee warmer subpage) */
.promo-price {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1.5px solid var(--orange-primary);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6ef 0%, #ffe9d8 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.promo-price-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange-primary);
  letter-spacing: 0.2px;
}
.promo-price-amount {
  font-size: 1.05rem;
  font-weight: 600;
  color: #14141a;
}
.promo-price-amount strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-left: 2px;
}
.promo-price-period {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.spec-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-value { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

.color-section { margin-bottom: 32px; }
.color-section-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; color: var(--text-secondary); }

.color-options { display: flex; flex-wrap: wrap; gap: 12px; }

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.color-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: var(--transition);
}

.color-option:hover .color-circle,
.color-option.active .color-circle {
  border-color: var(--orange-primary);
  transform: scale(1.1);
}

.color-name { font-size: 0.75rem; color: var(--text-muted); }

/* ── Color Preview Popup (belt color) ── */
.color-preview-popup {
  display: none;
  flex-direction: column;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  animation: cppFadeIn 0.2s ease;
}

@keyframes cppFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cpp-stripe {
  width: 100%;
  height: 52px;
  transition: background 0.25s ease;
}

.cpp-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
}

.cpp-name-label,
.cpp-code-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.cpp-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cpp-divider {
  color: var(--border);
  font-size: 1rem;
}

.cpp-code {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--orange-primary);
  background: rgba(255,101,0,0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,101,0,0.2);
}

.cpp-copy {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 3px 8px;
  transition: var(--transition);
}

.cpp-copy:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-orange);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: var(--shadow-orange);
}

.btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,101,0,0.45);
}

.btn-tel {
  background: var(--gradient-orange);
  box-shadow: var(--shadow-orange);
  text-decoration: none;
}

.btn-tel:hover {
  box-shadow: 0 8px 32px rgba(255,101,0,0.45);
}

.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00B900;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-line:hover {
  background: #009900;
  transform: translateY(-2px);
}

.detail-features {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.detail-features h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

.feature-list { display: flex; flex-direction: column; gap: 10px; }

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list-item::before {
  content: '✓';
  color: var(--orange-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── ABOUT PAGE ─── */
.about-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,101,0,0.1), transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.about-stat-card:hover {
  border-color: rgba(255,101,0,0.3);
  transform: translateY(-2px);
}

.about-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ─── CONTACT PAGE ─── */
.contact-hero {
  padding-top: 120px;
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-info-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.contact-info-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.7; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--orange-glow);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--orange-primary);
  flex-shrink: 0;
}

.contact-item-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; line-height: 1.6; }

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.social-btn:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.social-btn.line-btn { border-color: #00B900; color: #00B900; }
.social-btn.line-btn:hover { background: #00B900; color: white; }

/* ─── CONTACT FORM ─── */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.form-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255,101,0,0.1);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-orange);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: var(--shadow-orange);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,101,0,0.45);
}

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(255,101,0,0.3);
  transform: translateY(-4px);
}

.testimonial-stars { color: #FFB800; font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-org { font-size: 0.8rem; color: var(--text-muted); }

/* ─── SCREEN LOGO SECTION ─── */
/* ─── SCREEN LOGO SECTION (redesigned) ─── */
.screen-logo-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.screen-logo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(255,107,0,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255,150,50,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.screen-logo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Image side */
.screen-logo-img-wrap {
  position: relative;
}

.screen-logo-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 20px 50px rgba(0,0,0,0.10),
    0 8px 20px rgba(255,107,0,0.08);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.screen-logo-img-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,107,0,0.25),
    0 28px 60px rgba(0,0,0,0.14),
    0 12px 28px rgba(255,107,0,0.15);
}

.screen-logo-img-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  object-fit: cover;
}
.screen-logo-img-frame:hover img {
  transform: scale(1.04);
}

.screen-logo-img-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: #fff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,107,0,0.35);
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  animation: float 3s ease-in-out infinite;
}

/* Content side */
.screen-logo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.screen-logo-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 16px;
}

.screen-logo-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #111111;
  margin-bottom: 20px;
}
.screen-logo-title .highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screen-logo-desc {
  font-size: 1rem;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 32px;
}

.screen-logo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.slc-chip {
  background: rgba(255,101,0,0.06);
  border: 1px solid rgba(255,101,0,0.18);
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.slc-chip:hover {
  border-color: rgba(255,101,0,0.5);
  background: rgba(255,101,0,0.12);
  transform: translateY(-1px);
}

.screen-logo-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.slc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-primary);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}
.slc-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,0,0.5);
}
.slc-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.15);
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.slc-btn-line:hover {
  border-color: var(--orange-primary);
  color: var(--orange-dark);
}

/* ─── CTA SECTION ─── */
.cta-section {
  padding: 80px 24px;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255,101,0,0.12) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.cta-desc { font-size: 1rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
/* Footer brand logo image (same as top header logo) */
.footer-logo-link { display: inline-block; margin-bottom: 16px; }
.footer-logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.footer-brand-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 340px; margin-bottom: 24px; }

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--orange-primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--orange-primary); }

/* ─── RELATED PRODUCTS ─── */
.related-section { padding: 80px 24px; border-top: 1px solid var(--border); }

/* Real product video section */
.product-video-section {
  padding: 72px 24px;
  background: var(--bg-primary);
  border-top: 3px solid rgba(255,101,0,0.15);
}
.product-video-wrap {
  position: relative;
  max-width: 900px;
  margin: 36px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  background: #000;
}
.product-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  display: block;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: transform .25s ease, background .25s ease;
}
.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--orange-primary);
}
.yt-facade-play::after {
  content: "";
  display: block;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
@media (max-width: 768px) {
  .product-video-section { padding: 48px 16px; }
  .product-video-wrap { border-radius: 12px; margin-top: 24px; }
}

/* ─── PAGE HERO ─── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(255,101,0,0.08), transparent);
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── BELT PORTFOLIO SECTION ─── */
.portfolio-section { background: var(--bg-primary); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── NEW PORTFOLIO SECTION ─── */
.pf-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.pf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.pf-header {
  text-align: center;
  margin-bottom: 48px;
}
/* Enlarged subtitle — matches belt-gallery headline weight/size */
.pf-header .section-desc {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.5px;
  max-width: none;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .pf-header .section-desc { font-size: 1.3rem; }
}

/* pf-card base */
.pf-card {
  position: relative;
  border-radius: 0;            /* sharp corners (matches showcase / mega / banners) */
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}
.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pf-card:hover img { transform: scale(1.06); }

/* Caption overlay — always visible */
.pf-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  padding: 40px 16px 14px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  transition: padding 0.3s;
}
.pf-card:hover .pf-cap { padding-bottom: 18px; }
.pf-cap-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.pf-cap-name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.pf-cap-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  margin-top: 2px;
}

/* ── BENTO hero grid ── */
.pf-bento {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 10px;
  margin-bottom: 10px;
}
/* Large hero card spans 2 rows */
.pf-card.pf-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
}
/* Wide card spans 2 columns on bottom row */
.pf-card.pf-wide {
  grid-column: 2 / span 2;
  grid-row: 2;
}

/* ── 4-col small grid ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.pf-grid .pf-card { aspect-ratio: 3/2; }

/* ── Clients belt bar ── */
.pf-clients {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 32px;
}
.pf-clients-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.pf-clients-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* CTA */
.pf-cta { text-align: center; }

.belt-card {
  border-radius: var(--radius-md);
  aspect-ratio: 5 / 1.4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}

.belt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  border-color: rgba(255,101,0,0.3);
}

/* Fabric texture stripe overlay */
.belt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 5px,
    rgba(255,255,255,0.025) 5px,
    rgba(255,255,255,0.025) 6px
  );
  pointer-events: none;
}

.belt-brand-name {
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.belt-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Individual belt brand colors */
.belt-siamscape { background: #0d0d0d; }
.belt-siamscape .belt-brand-name { color: #e0e0e0; font-size: 1.05rem; letter-spacing: 4px; }

.belt-sso { background: #111111; }
.belt-sso .belt-brand-name { color: #f5c518; font-size: 0.88rem; letter-spacing: 2px; }

.belt-impact { background: #b50000; }
.belt-impact .belt-brand-name { color: #ffb6c1; font-size: 0.82rem; letter-spacing: 2px; }

.belt-paragon { background: #0a0a0a; }
.belt-paragon .belt-brand-name {
  color: transparent;
  background: linear-gradient(135deg, #d4af37, #f5e17a, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1rem; letter-spacing: 4px;
}

.belt-fashion { background: #003d82; }
.belt-fashion .belt-brand-name { color: #ffffff; font-size: 0.9rem; letter-spacing: 3px; }

.belt-esplanade { background: #1c4e80; }
.belt-esplanade .belt-brand-name { color: #ffffff; font-size: 0.95rem; letter-spacing: 2px; }

/* ─── BELT LOGO PHOTO GALLERY ─── */
.belt-gallery-wrap {
  border-top: 1px solid var(--border);
  padding-top: 52px;
  margin-bottom: 40px;
}

.belt-gallery-header-inner {
  text-align: center;
  margin-bottom: 36px;
}

.belt-gallery-headline-line1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}

.belt-gallery-headline-line1 em {
  font-style: normal;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.belt-gallery-headline-line2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.belt-gallery-sub {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

.belt-gallery-sub strong {
  color: var(--orange-primary);
  font-weight: 700;
}

.belt-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.belt-photo-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: default;
}



.belt-photo-slot {
  aspect-ratio: 7 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.07);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 5px,
    rgba(255,255,255,0.025) 5px, rgba(255,255,255,0.025) 6px
  );
  transition: border-color 0.2s;
}

.belt-slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

.belt-slot-img[src=""] { display: none; }
.belt-slot-img:not([src]) { display: none; }

.belt-slot-label {
  position: relative;
  z-index: 2;
  font-size: clamp(0.5rem, 0.9vw, 0.7rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0 6px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.belt-photo-slot-empty {
  aspect-ratio: 5 / 1.8;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1.5px dashed rgba(255,101,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}

.belt-photo-card:hover .belt-photo-slot-empty {
  border-color: rgba(255,101,0,0.5);
  background: rgba(255,101,0,0.04);
}

.belt-photo-slot-empty span {
  font-size: 1rem;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .belt-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .belt-photo-grid { grid-template-columns: 1fr; margin-left: -16px; margin-right: -16px; }
  .belt-gallery-headline-line1 { font-size: 2.2rem; letter-spacing: -0.8px; }
  .belt-gallery-headline-line2 { font-size: 1.3rem; }
  .belt-gallery-sub { font-size: 1rem; }
}

/* ─── PRODUCT PORTFOLIO PHOTO GALLERY ─── */
.portfolio-section {
  padding: 72px 24px;
  background: var(--bg-secondary);
  border-top: 3px solid rgba(255,101,0,0.15);
}

.portfolio-section .section-header {
  margin-bottom: 40px;
}

.portfolio-section .section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 auto;
}

.portfolio-cta {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.portfolio-cta-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.product-portfolio {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.product-portfolio h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.product-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portfolio-photo {
  border-radius: 0;            /* sharp corners */
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-photo:hover {
  border-color: rgba(255,101,0,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.portfolio-photo:hover img { transform: scale(1.05); }

/* Homepage portfolio - real photo grid */
.portfolio-photo-main {
  border-radius: 0;            /* sharp corners */
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  grid-column: span 2;
}

.portfolio-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-photo-main:hover {
  border-color: rgba(255,101,0,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.portfolio-photo-main:hover img { transform: scale(1.03); }

.portfolio-real-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.portfolio-real-grid .portfolio-photo-main { grid-column: 1; grid-row: span 2; aspect-ratio: 4/3; }

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1.05fr 0.95fr; gap: 28px; padding: 56px 36px; }
  .hero-3d { max-width: 400px; }
  .floating-card { display: none; }
  .detail-grid { grid-template-columns: 1fr; min-width: 0; }
  .detail-grid > * { min-width: 0; }
  .detail-image-wrap { position: static; width: 100%; max-width: 100%; min-width: 0; }
  .detail-image-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1;
  }
  .detail-image-main img { width: 100%; height: 100%; }
  .screen-logo-inner { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .screen-logo-content { text-align: center; }
  .screen-logo-chips { justify-content: center; }
  .screen-logo-actions { justify-content: center; }
  /* Portfolio */
  .pf-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .pf-card.pf-hero { grid-column: 1 / span 2; grid-row: 1; }
  .pf-card.pf-wide { grid-column: 1 / span 2; grid-row: 3; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-logo-eyebrow { text-align: center; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .hero-container { grid-template-columns: 1fr; gap: 16px; text-align: center; padding: 40px 20px 88px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; display: flex; justify-content: center; }
  .hero-3d { max-width: 260px; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-title::after { left: 50%; transform: translateX(-50%); }
  .products-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Portfolio mobile */
  .pf-section { padding: 60px 0; }
  .pf-container { padding: 0 16px; }
  .pf-bento { grid-template-columns: 1fr; grid-template-rows: 240px 180px 180px 180px; }
  .pf-card.pf-hero { grid-column: 1; grid-row: 1; }
  .pf-card.pf-wide { grid-column: 1; grid-row: 4; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-clients-track { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: row; gap: 24px; justify-content: center; align-items: flex-start; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  /* Product-page portfolio: match the homepage "ผลงานติดตั้งจริงของลูกค้า" look on mobile
     — flush 16px gutter, 1 column, same 3/2 image size */
  .product-portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-section { padding: 60px 0; }  /* 0 here; inner .container gives the 16px gutter (= homepage) */
  .portfolio-photo { aspect-ratio: 3 / 2; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 0;
  }
  .thumb { width: 72px; height: 72px; flex-shrink: 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .product-portfolio-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── TRUST BADGES STRIP ───
   Strip of 6 trust indicators below the hero banner.
   ═══════════════════════════════════════════════════════════════ */
.trust-strip {
  background: linear-gradient(180deg, #ffffff 0%, #fff5eb 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 28px 16px;
}
.trust-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}
.trust-item:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,101,0,0.08);
}
.trust-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,101,0,0.08);
  border-radius: 12px;
}
.trust-text { line-height: 1.25; }
.trust-title {
  font-weight: 800;
  color: #111;
  font-size: 0.98rem;
  letter-spacing: -0.2px;
}
.trust-sub {
  font-size: 0.78rem;
  color: #777;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .trust-strip-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-strip { padding: 22px 14px; }
  .trust-icon { font-size: 1.5rem; width: 38px; height: 38px; border-radius: 10px; }
  .trust-title { font-size: 0.88rem; }
  .trust-sub { font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── REVIEWS / TESTIMONIALS SECTION ───
   ═══════════════════════════════════════════════════════════════ */
.reviews-section {
  background: linear-gradient(180deg, #fff5eb 0%, #ffffff 100%);
  padding: 100px 24px;
}
.reviews-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(255,101,0,0.18);
  border-radius: 100px;
  padding: 10px 22px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.reviews-rating-summary .rating-stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.reviews-rating-summary .rating-score {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--orange-dark);
}
.reviews-rating-summary .rating-count {
  font-size: 0.88rem;
  color: #666;
}
.reviews-grid {
  max-width: 1280px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 22px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255,101,0,0.10);
  line-height: 1;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255,101,0,0.12);
  border-color: rgba(255,101,0,0.25);
}
.review-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-text {
  color: #333;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 22px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5eb, #ffe5cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.review-name {
  font-weight: 800;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.3;
}
.review-role {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}
.reviews-cta {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .reviews-section { padding: 60px 16px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 24px 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── FAQ SECTION ───
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
  background: #ffffff;
  padding: 100px 24px;
}
.faq-list {
  max-width: 820px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover {
  border-color: rgba(255,101,0,0.30);
  box-shadow: 0 6px 20px rgba(255,101,0,0.06);
}
.faq-item[open] {
  border-color: var(--orange-primary);
  box-shadow: 0 10px 28px rgba(255,101,0,0.10);
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 800;
  color: #111;
  font-size: 1.02rem;
  line-height: 1.5;
  position: relative;
  list-style: none;
  padding-right: 56px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,101,0,0.10);
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.25s;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--orange-primary);
  color: #fff;
}
.faq-answer {
  padding: 0 26px 22px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.faq-answer p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 16px 0 0;
}
.faq-answer a {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: underline;
}
.faq-cta {
  text-align: center;
  margin-top: 44px;
}
.faq-cta-text {
  color: #666;
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.faq-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .faq-section { padding: 60px 16px; }
  .faq-item summary { padding: 18px 22px; font-size: 0.95rem; padding-right: 50px; }
  .faq-answer { padding: 0 22px 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── MOBILE NAV SUB-MENU (Accordion) ───
   ═══════════════════════════════════════════════════════════════ */
.mobile-nav-group {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 0;
}
.mobile-nav-group > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  user-select: none;
  transition: var(--transition);
}
.mobile-nav-group > summary::-webkit-details-marker { display: none; }
.mobile-nav-group > summary::after {
  content: "\25BE";              /* ▾ */
  font-size: 0.8em;
  transition: transform .25s ease;
}
.mobile-nav-group[open] > summary { color: var(--text-primary); }
.mobile-nav-group[open] > summary::after { transform: rotate(180deg); }

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 4px 0 6px;
}

/* ── Category accordion inside mobile product menu ── */
.mobile-cat {
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.mobile-cat > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 6px;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}
.mobile-cat > summary::-webkit-details-marker { display: none; }
.mobile-cat > summary::after {
  content: "\25BE";
  font-size: 0.72em;
  color: var(--text-muted);
  transition: transform .25s ease;
}
.mobile-cat[open] > summary { color: var(--orange-primary); }
.mobile-cat[open] > summary::after {
  transform: rotate(180deg);
  color: var(--orange-primary);
}

/* ── Product-card grid (Anker-style) ── */
.mobile-pcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 0 14px;
}
.mobile-nav .mobile-pcards a.mobile-pcard {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  padding: 10px !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  color: var(--text-primary);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mobile-nav .mobile-pcards a.mobile-pcard:hover {
  background: #fff;
  border-color: var(--orange-primary);
}
.mobile-pcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f7;
}
.mobile-pcard-name {
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-secondary);
}
.mobile-pcard-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1.4px solid #1aa8e0;
  color: #1aa8e0;
  z-index: 1;
}
.mobile-pcard-badge.hot { border-color: #ff5a3c; color: #ff5a3c; }
.mobile-pcard-badge.new { border-color: #1aa8e0; color: #1aa8e0; }

/* ── Prominent solid-black "สินค้าทั้งหมด" button ── */
.mobile-nav .mobile-nav-sub > a.mobile-nav-all {
  margin-top: 12px;
  width: 100% !important;
  max-width: none !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 15px 24px !important;
  background: #14141a;
  color: #fff !important;
  border-radius: 0;            /* sharp corners */
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.mobile-nav .mobile-nav-sub > a.mobile-nav-all:hover {
  background: #000;
  color: #fff !important;
}
.mobile-nav .mobile-nav-sub > a.mobile-nav-all strong { font-weight: 800; color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   ─── FLOATING CONTACT BUTTON ───
   Sticky LINE + Phone buttons at bottom-right.
   ═══════════════════════════════════════════════════════════════ */
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  pointer-events: none;
}
.floating-contact a {
  pointer-events: all;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.floating-contact a:hover {
  transform: scale(1.10) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.floating-contact .fc-line {
  background: #00B900;
  animation: float-pulse 2.5s ease-in-out infinite;
}
.floating-contact .fc-tel {
  background: var(--gradient-orange);
}
.floating-contact .fc-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #111;
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.floating-contact .fc-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #111;
}
.floating-contact a:hover .fc-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,185,0,0.30), 0 0 0 0 rgba(0,185,0,0.4); }
  50% { box-shadow: 0 8px 24px rgba(0,185,0,0.30), 0 0 0 14px rgba(0,185,0,0); }
}
@media (max-width: 640px) {
  .floating-contact { right: 14px; bottom: 14px; gap: 10px; }
  .floating-contact a { width: 52px; height: 52px; font-size: 1.5rem; }
  .floating-contact .fc-tooltip { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── PRICE HINT BADGE ───
   ═══════════════════════════════════════════════════════════════ */
.price-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fff7ec, #ffe9d3);
  border: 1px solid rgba(255,101,0,0.30);
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.price-hint::before {
  content: '💰';
  font-size: 0.9em;
}

/* ═══════════════════════════════════════════════════════════════
   ─── IMAGE LIGHTBOX (Zoom modal for product images) ───
   Auto-attached to .detail-image-main img + portfolio photos
   ═══════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 60px 20px;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay .lb-stage {
  position: relative;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-overlay.zoomed img {
  cursor: grab;
  max-width: none;
  max-height: none;
  width: 180%;
  height: auto;
  transform: scale(1);
}
.lightbox-overlay.zoomed.grabbing img { cursor: grabbing; }

/* close button */
.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

/* prev / next arrows */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* counter */
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 18px;
  border-radius: 100px;
}

/* zoom hint */
.lb-hint {
  position: absolute;
  top: 22px;
  left: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 100px;
  pointer-events: none;
}


body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .lb-close { width: 42px; height: 42px; font-size: 1.3rem; top: 12px; right: 14px; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-counter { font-size: 0.82rem; padding: 5px 14px; }
  .lb-hint { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── SOCIAL SHARE BUTTONS (on product detail pages) ───
   ═══════════════════════════════════════════════════════════════ */
.product-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px dashed rgba(0, 0, 0, 0.10);
  flex-wrap: wrap;
}
.product-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  color: #444;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  position: relative;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}
.share-line:hover { border-color: #00B900; color: #00B900; background: rgba(0, 185, 0, 0.06); }
.share-fb:hover { border-color: #1877F2; color: #1877F2; background: rgba(24, 119, 242, 0.06); }
.share-x:hover { border-color: #111; color: #111; background: rgba(0, 0, 0, 0.04); }
.share-copy:hover { border-color: var(--orange-primary); color: var(--orange-primary); background: rgba(255, 101, 0, 0.06); }
.share-btn .share-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.share-btn:hover .share-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.share-btn.copied {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

/* ═══════════════════════════════════════════════════════════════
   ─── SEARCH TRIGGER (nav button) + SEARCH PANEL (modal) ───
   ═══════════════════════════════════════════════════════════════ */
.search-trigger {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-right: 8px;
}
.search-trigger:hover {
  background: rgba(255,101,0,0.20);
  border-color: rgba(255,101,0,0.50);
  color: #fff;
  transform: scale(1.05);
}

.search-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 20px;
}
.search-panel.active {
  opacity: 1;
  pointer-events: all;
}
.search-modal {
  background: #fff;
  width: 100%;
  max-width: 660px;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.search-panel.active .search-modal { transform: translateY(0); }

.search-bar-wrap {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 14px;
}
.search-bar-wrap::before {
  content: '🔍';
  font-size: 1.4rem;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.08rem;
  font-family: inherit;
  background: transparent;
  color: #111;
  font-weight: 500;
}
.search-input::placeholder { color: #aaa; font-weight: 400; }
.search-shortcut {
  font-size: 0.78rem;
  background: rgba(0,0,0,0.06);
  padding: 4px 10px;
  border-radius: 6px;
  color: #777;
  font-weight: 600;
}
.search-close {
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #666;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-close:hover { background: rgba(0,0,0,0.10); color: #111; }

.search-results {
  max-height: 460px;
  overflow-y: auto;
  padding: 8px 0;
}
.sr-empty {
  padding: 28px 24px;
  color: #888;
  text-align: center;
  font-size: 0.96rem;
}
.sr-empty a { color: var(--orange-primary); font-weight: 700; }
.sr-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.sr-item:hover {
  background: rgba(255,101,0,0.06);
  border-left-color: var(--orange-primary);
}
.sr-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.sr-info { flex: 1; min-width: 0; }
.sr-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: 0.3px;
}
.sr-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 2px 0 4px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-name mark {
  background: rgba(255,101,0,0.20);
  color: var(--orange-dark);
  padding: 1px 3px;
  border-radius: 3px;
}
.sr-cat {
  font-size: 0.78rem;
  color: #888;
}
.sr-arrow {
  color: var(--orange-primary);
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.sr-item:hover .sr-arrow {
  opacity: 1;
  transform: translateX(4px);
}

body.search-open { overflow: hidden; }
@media (max-width: 640px) {
  .search-panel { padding: 60px 12px; }
  .search-modal { border-radius: 16px; }
  .search-shortcut { display: none; }
  .sr-item { padding: 10px 16px; }
  .sr-item img { width: 48px; height: 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── HERO BANNER OVERLAY (HTML text on top of banner image) ───
   ═══════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero.hero-banner .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 6vw;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, transparent 75%);
  pointer-events: none;
}
.hero-overlay-inner {
  max-width: 580px;
  color: #fff;
  pointer-events: all;
  transform: translateY(-8px);
}
.hero-overlay-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,101,0,0.20);
  border: 1px solid rgba(255,170,80,0.55);
  color: #ffd9a8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-overlay-title {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.hero-overlay-title .ho-accent {
  background: linear-gradient(135deg, #ff7a1a, #ffae66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-overlay-sub {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  margin: 0 0 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  max-width: 520px;
}
.hero-overlay-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ho-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}
.ho-btn-primary {
  background: var(--gradient-orange);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255,101,0,0.45);
}
.ho-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255,101,0,0.55);
}
.ho-btn-ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ho-btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-2px);
}

/* Hide overlay on very narrow phones to avoid clutter; image text already conveys */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 0 5vw;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.30) 60%, rgba(0,0,0,0.65) 100%);
    align-items: flex-end;
    padding-bottom: 70px;
  }
  .hero-overlay-inner { transform: none; }
  .hero-overlay-eyebrow { font-size: 0.72rem; padding: 4px 10px; margin-bottom: 10px; }
  .hero-overlay-title { font-size: 1.35rem; letter-spacing: -0.5px; margin-bottom: 8px; }
  .hero-overlay-sub { display: none; }
  .ho-btn { font-size: 0.82rem; padding: 10px 18px; border-radius: 10px; }
}
@media (max-width: 480px) {
  .hero-overlay-title { font-size: 1.15rem; }
  .hero-overlay-cta { gap: 8px; }
  .ho-btn { padding: 9px 14px; font-size: 0.76rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── COMPANY TIMELINE (about.html) ───
   ═══════════════════════════════════════════════════════════════ */
.timeline-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff5eb 100%);
  padding: 100px 24px;
}
.timeline-section .highlight em {
  font-style: normal;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.timeline-wrap {
  max-width: 1100px;
  margin: 60px auto 0;
  position: relative;
  padding: 20px 0;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(255,101,0,0.20) 0%, var(--orange-primary) 50%, rgba(255,101,0,0.20) 100%);
  transform: translateX(-50%);
  border-radius: 4px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 24px 50px;
  box-sizing: border-box;
}
.timeline-item[data-side="left"] {
  left: 0;
  text-align: right;
}
.timeline-item[data-side="right"] {
  left: 50%;
  text-align: left;
}
.tl-dot {
  position: absolute;
  top: 30px;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 3px solid var(--orange-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(255,101,0,0.25);
  transition: transform 0.3s ease;
}
.timeline-item[data-side="left"] .tl-dot {
  right: -28px;
}
.timeline-item[data-side="right"] .tl-dot {
  left: -28px;
}
.tl-dot:hover { transform: scale(1.10) rotate(8deg); }
.tl-dot-active {
  background: var(--gradient-orange);
  border-color: #fff;
  box-shadow: 0 0 0 4px var(--orange-primary), 0 8px 28px rgba(255,101,0,0.35);
  animation: tl-pulse 2.4s ease-in-out infinite;
}
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--orange-primary), 0 8px 28px rgba(255,101,0,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255,101,0,0.30), 0 8px 28px rgba(255,101,0,0.45); }
}

.tl-card {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.tl-card::before {
  content: '';
  position: absolute;
  top: 38px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.06);
  transform: rotate(45deg);
}
.timeline-item[data-side="left"] .tl-card::before {
  right: -8px;
  border-left: 0; border-bottom: 0;
}
.timeline-item[data-side="right"] .tl-card::before {
  left: -8px;
  border-right: 0; border-top: 0;
}
.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255,101,0,0.12);
  border-color: rgba(255,101,0,0.25);
}
.tl-year {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.tl-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #111;
  line-height: 1.35;
  margin: 0 0 10px;
}
.tl-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}
.tl-desc strong { color: var(--orange-dark); font-weight: 800; }

.tl-card-current {
  background: linear-gradient(135deg, #fff7ec 0%, #fff 100%);
  border-color: rgba(255,101,0,0.35);
  box-shadow: 0 14px 40px rgba(255,101,0,0.15);
}
.tl-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-cta a { font-size: 0.88rem; padding: 10px 18px; }

@media (max-width: 768px) {
  .timeline-section { padding: 60px 16px; }
  .timeline-line { left: 28px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding: 18px 0 18px 70px; }
  .timeline-item[data-side="left"] .tl-dot,
  .timeline-item[data-side="right"] .tl-dot {
    left: 0; right: auto;
    top: 22px;
    width: 48px; height: 48px;
    font-size: 1.2rem;
    border-width: 2.5px;
  }
  .timeline-item[data-side="left"] .tl-card::before,
  .timeline-item[data-side="right"] .tl-card::before {
    left: -8px; right: auto;
    border: 1.5px solid rgba(0,0,0,0.06);
    border-right: 0; border-top: 0;
  }
  .tl-card { padding: 18px 20px; border-radius: 14px; }
  .tl-title { font-size: 1.02rem; }
  .tl-desc { font-size: 0.88rem; line-height: 1.7; }
  .tl-cta a { font-size: 0.8rem; padding: 8px 14px; }
}

/* ─── ARTICLE (long-form content) ─── */
.article-section { background: #ffffff; }
.article-wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.article-block { margin-bottom: 96px; }
.article-block:last-child { margin-bottom: 0; }
.article-block .article-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,101,0,0.08);
  border: 1px solid rgba(255,101,0,0.30);
  color: #cc4400;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.article-block h2.article-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #111;
}
.article-block h2.article-title .highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.article-block .article-lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.article-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 40px 0 14px;
  color: #111;
  position: relative;
  padding-left: 18px;
}
.article-block h3::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 22px;
  background: var(--gradient-orange);
  border-radius: 3px;
}
.article-block p {
  font-size: 1rem;
  line-height: 1.95;
  color: #333;
  margin: 0 0 16px;
}
.article-block strong { color: #111; font-weight: 800; }
.article-block ul, .article-block ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.article-block ul li, .article-block ol li {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 8px;
}
.article-block .article-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.article-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.article-block thead { background: #fff5eb; }
.article-block th, .article-block td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
.article-block th { font-weight: 800; color: #111; }
.article-block tr:last-child td { border-bottom: 0; }
.article-block .article-callout {
  background: linear-gradient(180deg, #fff7ec, #fff);
  border: 1px solid rgba(255,101,0,0.18);
  border-left: 4px solid var(--orange-primary);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
}
.article-block .article-callout p { margin: 0; color: #333; }
.article-block .article-callout p + p { margin-top: 10px; }
.article-block .faq-q {
  font-weight: 800;
  color: #111;
  margin-top: 18px;
  margin-bottom: 4px;
}
.article-block .faq-a { margin-top: 0; color: #444; }
.article-block .article-cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-block a {
  color: var(--orange-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,101,0,0.45);
  transition: color .2s, border-color .2s;
}
.article-block a:hover {
  color: #cc4400;
  border-bottom-color: var(--orange-primary);
}
.article-block .article-cta-row a { border-bottom: 0; }
/* CTA buttons must keep their real button colors, not inherit the orange link color */
.article-block .article-cta-row .btn-primary { color: #fff; }
.article-block .article-cta-row .btn-secondary { color: #333; }
@media (max-width: 640px) {
  .article-block { margin-bottom: 64px; }
  .article-block h3 { font-size: 1.12rem; }
}

/* ─── BLOG (cards, meta, article body) ─── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: rgba(255,101,0,0.35);
}
.blog-card-cover {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}
.blog-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-emoji {
  position: absolute;
  left: 14px; top: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #cc4400;
}
.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cc4400;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #111;
  margin: 0 0 10px;
}
.blog-card-snippet {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 16px;
  flex: 1;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-primary);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: auto;
  transition: gap .2s ease;
}
.blog-card-cta:hover { gap: 12px; }

.blog-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #777;
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .blog-card-title { font-size: 1.02rem; }
  .blog-card-body { padding: 18px 18px 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   ─── LANGUAGE TOGGLE BUTTON (TH/EN) ───
   ═══════════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.5px;
  user-select: none;
}
.lang-toggle:hover {
  background: rgba(255,101,0,0.18);
  border-color: rgba(255,101,0,0.45);
  color: #fff;
}
.lang-toggle .lt-th,
.lang-toggle .lt-en {
  padding: 2px 6px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  font-weight: 700;
}
.lang-toggle .lt-divider {
  opacity: 0.35;
  margin: 0 1px;
  font-weight: 400;
}
/* Default (Thai) state — TH highlighted (darker orange so white text passes WCAG) */
.lang-toggle .lt-th { background: #b23a00; color: #fff; }
.lang-toggle .lt-en { color: rgba(255,255,255,0.78); }
/* English state — EN highlighted */
.lang-toggle.is-en .lt-th { background: transparent; color: rgba(255,255,255,0.78); }
.lang-toggle.is-en .lt-en { background: #b23a00; color: #fff; }

@media (max-width: 768px) {
  .lang-toggle {
    font-size: 0.75rem;
    padding: 6px 10px;
    margin-right: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ─── BANNER SLIDE LINKS (clickable hero slides) ───
   ═══════════════════════════════════════════════════════════════ */
.hero.hero-banner .hero-slide a.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}
.hero.hero-banner .hero-slide a.hero-slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   ─── PRODUCT SEARCH BAR (products page only) ───
   ═══════════════════════════════════════════════════════════════ */
.product-search-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto 28px;
}
.product-search-input {
  width: 100%;
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  padding: 16px 56px 16px 22px;
  color: #111;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.product-search-input::placeholder { color: #aaa; font-weight: 400; }
.product-search-input:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 6px 24px rgba(255, 101, 0, 0.15);
}
.product-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.product-search-clear:hover {
  background: rgba(255, 101, 0, 0.15);
  color: var(--orange-primary);
}
.product-search-meta {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}
.product-search-meta strong { color: var(--orange-primary); font-weight: 700; }

.product-search-empty {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #fff8f0, #fff);
  border-radius: 16px;
  border: 1px dashed rgba(255, 101, 0, 0.20);
  margin: 0 auto 24px;
  max-width: 600px;
}
.product-search-empty .pse-icon { font-size: 2.4rem; margin-bottom: 12px; }
.product-search-empty .pse-title { font-size: 1.05rem; font-weight: 800; color: #111; margin-bottom: 8px; }
.product-search-empty .pse-desc { color: #666; font-size: 0.92rem; line-height: 1.65; }

@media (max-width: 600px) {
  .product-search-input { padding: 14px 48px 14px 18px; font-size: 0.95rem; }
  .product-search-clear { width: 28px; height: 28px; right: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── IMAGE LIGHTBOX (product detail pages only) ───
   Triggered by clicking .detail-image-main img
   ═══════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 60px 24px;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay .lb-stage {
  position: relative;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.lightbox-overlay img.lb-image {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-overlay.active img.lb-image { transform: scale(1); }
.lightbox-overlay.zoomed img.lb-image {
  cursor: zoom-out;
  max-width: none;
  max-height: none;
  width: auto;
  height: 160vh;
  transform: scale(1);
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: 0.4px;
}
.lb-hint {
  position: absolute;
  top: 22px;
  left: 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.40);
  padding: 6px 14px;
  border-radius: 100px;
  pointer-events: none;
}

/* show zoom-in cursor on product image */
.product-detail .detail-image-main img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.product-detail .detail-image-main img:hover { opacity: 0.96; }

body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .lb-close { width: 42px; height: 42px; font-size: 1.25rem; top: 12px; right: 14px; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-counter { font-size: 0.8rem; padding: 5px 14px; }
  .lb-hint { display: none; }
  .lightbox-overlay { padding: 40px 12px; }
}

/* ============================================================
   HOMEPAGE — 2x2 SHOWCASE GRID (สินค้ายอดนิยม)
   ============================================================ */
.showcase-wrap {
  padding: 0 16px;
  max-width: 1600px;
  margin: 0 auto;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.showcase-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f1f1f3;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: transform .35s ease, box-shadow .35s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.14);
}
.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.showcase-card:hover img {
  transform: scale(1.04);
}
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.showcase-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title btn" "sub btn";
  align-items: center;
  column-gap: 22px;
}
.showcase-title {
  grid-area: title;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.showcase-sub {
  grid-area: sub;
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.92;
  margin: 0;
}
.showcase-btn {
  grid-area: btn;
  align-self: center;
  justify-self: end;
  display: inline-block;
  background: #fff;
  color: #14141a;
  padding: 11px 22px;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.showcase-card:hover .showcase-btn {
  background: var(--orange-primary, #FF6500);
  color: #fff;
  transform: translateX(2px);
}

/* Mobile: stack as single column, taller cards (matches reference screenshot) */
@media (max-width: 768px) {
  /* Match side margins to the screen-logo section (.slh-container = 12px) */
  #products.section { padding-left: 12px; padding-right: 12px; }
  .showcase-wrap { padding: 0; }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }
  .showcase-card { aspect-ratio: 4 / 5; border-radius: 0; }
  .showcase-content { left: 22px; right: 22px; bottom: 22px; display: block; }
  .showcase-title { font-size: 1.3rem; }
  .showcase-sub { font-size: 0.88rem; margin-bottom: 14px; }
  .showcase-btn { padding: 10px 18px; font-size: 0.85rem; }
}

/* ============================================================
   STATIC SECONDARY BANNER (under hero slider)
   ============================================================ */
.static-banner {
  display: block;
  width: 100%;
  /* White groove between the two main banners (Anker-style) */
  margin: 14px 0 0 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.static-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Desktop only: reserve landscape space (CLS). Mobile uses 4:5 (set in the max-width:768px block above). */
@media (min-width: 769px) {
  .static-banner img { aspect-ratio: 6144 / 2986; }
}
.static-banner a {
  display: block;
  line-height: 0;
}

/* ============================================================
   MEGA MENU — "สินค้าของเรา" navigation popup
   ============================================================ */
.nav-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: 56px;            /* sits right under the slim sticky header */
  background: #fff;
  border-top: 1px solid var(--border, #e5e5e5);
  border-bottom: 1px solid var(--border, #e5e5e5);
  box-shadow: 0 18px 36px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  z-index: 998;
}
.nav-dropdown.open .nav-mega,
.nav-mega.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}
.nav-mega-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 28px 32px 36px;
}
.nav-mega-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--border, #ececec);
  padding-right: 18px;
}
.nav-mega-cat {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  color: #222;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease, font-weight .15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-mega-cat:hover { background: #f5f5f7; }
.nav-mega-cat.active {
  background: #f1f1f3;
  font-weight: 700;
  color: #14141a;
  position: relative;
}
.nav-mega-cat.active::after {
  content: "›";
  color: #888;
  font-size: 1.1rem;
}
.nav-mega-main { min-width: 0; max-height: 74vh; overflow-y: auto; padding-right: 4px; }
.nav-mega-pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #14141a;
  margin: 6px 0 18px;
}
.nav-mega-pane-title a {
  color: #14141a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-mega-pane-title a::after { content: "›"; color: #888; }
.nav-mega-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nav-mega-products[hidden] { display: none; }
.nav-mega-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f5f5f7;
  border-radius: 0;            /* sharp corners (matches user request) */
  text-decoration: none;
  color: #14141a;
  transition: background .18s ease, transform .18s ease;
  min-height: 92px;
}
.nav-mega-card:hover {
  background: #ececef;
  transform: translateY(-1px);
}
.nav-mega-card-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  border-radius: 0;
}
.nav-mega-card-name {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  color: #222;
}
.nav-mega-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.4px solid #1aa8e0;
  color: #1aa8e0;
  background: #fff;
}
.nav-mega-badge.hot { border-color: #ff5a3c; color: #ff5a3c; }
.nav-mega-badge.new { border-color: #1aa8e0; color: #1aa8e0; }

/* Hide the old plain dropdown when mega is present */
.nav-dropdown .dropdown-menu.legacy-dropdown { display: none !important; }

/* Mobile: hide mega menu entirely (mobile uses its own offcanvas nav) */
@media (max-width: 1024px) {
  .nav-mega { display: none; }
}

/* ── Mega menu: prominent solid-black "สินค้าทั้งหมด" button in sidebar ── */
.nav-mega-side .nav-mega-all {
  margin-top: 14px;
  padding: 13px 16px;
  background: #14141a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;            /* sharp corners */
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-mega-side .nav-mega-all:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.24);
}
.nav-mega-side .nav-mega-all span { color: #fff; }
.nav-mega-side .nav-mega-all::after {
  content: "→";
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

/* ── Mega menu: prominent "Shop All" footer button at bottom of each pane ── */
.nav-mega-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border, #ececec);
}
.nav-mega-foot .nav-mega-shopall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14141a;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .2px;
  padding: 13px 28px;
  border-radius: 0;            /* sharp corners */
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-mega-foot .nav-mega-shopall:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.24);
}

/* ============================================================
   SCREEN LOGO HERO — Anker-style single banner card
   ============================================================ */
.slh-section {
  padding: 80px 0;
  background: #f5f5f7;
}
.slh-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}
.slh-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #14141a;
  line-height: 1.2;
  margin: 0 0 40px 0;
  letter-spacing: -0.5px;
}
.slh-section-title .highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.slh-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  text-decoration: none;
  background: #14141a;
  border-radius: 0;          /* sharp corners */
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  transition: transform .4s ease, box-shadow .4s ease;
}
.slh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
}
.slh-card picture,
.slh-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.slh-card:hover img { transform: scale(1.03); }
.slh-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Vignette: subtle dark wash from the left so overlay text reads */
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}
.slh-overlay {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  max-width: 42%;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.slh-card-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px 0;
}
.slh-card-sub {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.92;
  margin: 0 0 22px 0;
}
.slh-card-btn {
  display: inline-block;
  background: #fff;
  color: #14141a;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 0;          /* sharp corners */
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.slh-card:hover .slh-card-btn {
  background: var(--orange-primary, #FF6500);
  color: #fff;
  transform: translateX(3px);
}

/* Tablet */
@media (max-width: 1024px) {
  .slh-section { padding: 60px 0; }
  .slh-section-title { font-size: 2rem; }
  .slh-overlay { left: 40px; max-width: 50%; }
  .slh-card-title { font-size: 1.8rem; }
  .slh-card { aspect-ratio: 16 / 7; }
}

/* Mobile — portrait card with overlay at bottom-left (matches Anker mobile) */
@media (max-width: 768px) {
  .slh-section { padding: 40px 0; }
  .slh-container { padding: 0 12px; }
  .slh-section-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
  }
  .slh-card { aspect-ratio: 4 / 5; }
  .slh-card::after {
    /* Bottom-up gradient on mobile so text reads against the lower band */
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.78) 100%);
  }
  .slh-overlay {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 30px;
    transform: none;
    max-width: 100%;
  }
  .slh-card-title { font-size: 1.5rem; margin-bottom: 6px; }
  .slh-card-sub { font-size: 0.88rem; margin-bottom: 16px; }
  .slh-card-btn { padding: 10px 22px; font-size: 0.88rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ─── ACCESSIBILITY: minimum touch-target sizes (mobile) ───
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .footer-links a { display: inline-block; padding: 7px 0; min-height: 24px; }
  .footer-bottom-links a { display: inline-block; padding: 8px 6px; }
  .hero.hero-banner .hero-dot { min-width: 20px; min-height: 20px; }
  .lang-toggle { min-height: 40px; }
}

/* ── Align "สินค้ายอดนิยม" (popular products) gutters with the belt gallery
      & rest of the page on desktop — equal left/right margins (1280px) ── */
@media (min-width: 769px) {
  .showcase-wrap { max-width: 1600px; }  /* match .slh-container above */
  #products { padding-left: 0; padding-right: 0; }
}

/* ── Mobile menu: "view all in this category" button (bottom of each expanded category) ── */
.mobile-nav .mobile-cat .mobile-cat-all {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 16px;
  background: #fff;
  color: var(--orange-primary) !important;
  border: 1.5px solid var(--orange-primary);
  border-radius: 0;
  text-align: center;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.mobile-nav .mobile-cat .mobile-cat-all:hover,
.mobile-nav .mobile-cat .mobile-cat-all:active {
  background: var(--orange-primary);
  color: #fff !important;
}

/* ── Desktop mega menu: "view all in this category" button (bottom of each pane) — matches mobile ── */
.nav-mega-pane .nav-mega-all-cat {
  display: block;
  width: 100%;
  margin: 16px 0 2px;
  padding: 12px 16px;
  background: #fff;
  color: var(--orange-primary);
  border: 1.5px solid var(--orange-primary);
  border-radius: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-mega-pane .nav-mega-all-cat:hover {
  background: var(--orange-primary);
  color: #fff;
}

/* ── Products listing: flush gutters on mobile (match product subpages = 16px) ── */
@media (max-width: 768px) {
  #all-products { padding-left: 0; padding-right: 0; }
}
