/* ==========================================================================
   NEXABIO LAB — design system
   Palette: navy · blue · green, on white. Serif display to echo the wordmark.
   ========================================================================== */

:root {
  --navy-900: #071429;
  --navy-800: #0b1f3f;
  --navy-700: #12315e;
  --navy-600: #1b4586;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-100: #dbe7fb;
  --blue-50:  #eff5ff;
  --green-600:#0f766e;
  --green-500:#10b981;
  --green-50: #ecfdf5;
  --gold:     #c6a15b;
  --gold-soft:#e6d3ab;

  --ink:      #0f1e35;
  --ink-2:    #33455f;
  --muted:    #5f7089;
  --line:     #e3eaf4;
  --line-2:   #eef3f9;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fc;
  --bg-tint:  #f0f6ff;

  --accent:   var(--blue-600);

  --r-sm: 8px;  --r: 14px;  --r-lg: 20px;  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(11,31,63,.05), 0 2px 8px rgba(11,31,63,.05);
  --sh-2: 0 2px 6px rgba(11,31,63,.06), 0 12px 28px rgba(11,31,63,.09);
  --sh-3: 0 8px 20px rgba(11,31,63,.10), 0 24px 56px rgba(11,31,63,.13);

  /* One family for Thai AND Latin so mixed lines never mismatch in shape or size. */
  --ff-thai: 'Noto Sans Thai', 'Noto Sans', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 28px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }

body {
  margin: 0;
  font-family: var(--ff-thai);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

h1,h2,h3,h4 { color: var(--ink); line-height: 1.28; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.95rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
s { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ic { flex: none; vertical-align: -.18em; }
.ic-xs { width: 15px; height: 15px; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { color: var(--accent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ── eyebrow / section heads ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .7em;
}
a.eyebrow:hover { color: var(--navy-700); }
.lede { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--muted); max-width: 62ch; }
.sec-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 46px); text-align: center; }
.sec-head .lede { margin-inline: auto; }
.sec-head h2 { position: relative; padding-bottom: .5em; }
.sec-head h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 62px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section.alt { background: var(--bg-alt); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
  text-align: center; line-height: 1.35; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--navy-700), var(--blue-600)); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(29,78,216,.28); }
.btn-outline { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); box-shadow: var(--sh-1); }
.btn-ghost { border-color: rgba(11,31,63,.16); color: var(--navy-800); background: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-800); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { color: #fff; box-shadow: 0 10px 24px rgba(6,199,85,.3); }

/* ── announce + header ─────────────────────────────────────────────────── */
.announce {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-600), var(--navy-800));
  color: #dbe7fb; font-size: .84rem; text-align: center; line-height: 1.5;
  padding: 8px var(--pad); display: flex; align-items: center; justify-content: center; gap: 9px;
}
.announce span { min-width: 0; }
.announce .ic { color: var(--gold-soft); }
@media (max-width: 600px) { .announce { font-size: .78rem; padding: 7px var(--pad); } }

.site-head {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-head.stuck { box-shadow: var(--sh-1); }
.head-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); min-height: 84px; }
.brand { display: block; padding: 10px 14px 10px 0; }
.brand img { width: 118px; height: auto; }
.nav { margin-inline: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; gap: 5px; padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: .93rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); font-weight: 600; }

/* products dropdown */
.nav .has-sub { position: relative; }
.nav .has-sub > a .ic { color: var(--muted); transition: transform .18s; }
.nav .has-sub:hover > a .ic, .nav .has-sub:focus-within > a .ic { transform: rotate(180deg); color: var(--blue-600); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 296px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 20;
}
.submenu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 12px; }
.nav .has-sub:hover .submenu, .nav .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.submenu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.submenu a { flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 13px; border-radius: var(--r-sm); }
.submenu strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.submenu span { color: var(--muted); font-size: .79rem; font-weight: 400; }
.submenu a:hover strong { color: var(--blue-600); }
.submenu .sub-all { margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.submenu .sub-all a { flex-direction: row; align-items: center; gap: 7px; color: var(--blue-600); font-weight: 600; font-size: .88rem; }

.head-cta { display: flex; gap: 8px; align-items: center; }
.head-cta .btn { padding: 9px 17px; font-size: .87rem; }
.burger { display: none; background: none; border: 0; color: var(--navy-800); padding: 8px; cursor: pointer; border-radius: var(--r-sm); }
.burger:hover { background: var(--blue-50); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--pad); }
.mobile-nav a { display: block; padding: 13px 8px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }
.mobile-nav .m-sub > ul { padding: 0; margin: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line-2); }
.mobile-nav .m-sub a { display: flex; align-items: center; gap: 7px; padding: 11px 8px 11px 22px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.mobile-nav .m-sub li:last-child a { border-bottom: 0; }
.mobile-nav .m-sub .ic { color: var(--gold); }
.mobile-cta { display: flex; gap: 10px; padding: 14px var(--pad) 20px; }
.mobile-cta .btn { flex: 1; }

@media (max-width: 1080px) {
  .nav, .head-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .mobile-nav { display: block; }
  .mobile-nav[hidden] { display: none; }
}

/* ── hero slider ───────────────────────────────────────────────────────── */
.hero { position: relative; background: linear-gradient(170deg, var(--bg-tint), #fff 62%); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(37,99,235,.10), transparent 65%),
    radial-gradient(700px 380px at 4% 100%, rgba(15,118,110,.08), transparent 62%);
  pointer-events: none;
}
.slides { position: relative; }
.slide { display: none; padding: clamp(34px, 5vw, 62px) 0 clamp(20px, 3vw, 34px); }
.slide.on { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slide-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.slide-copy h1, .slide-copy .h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.1rem); color: var(--navy-800); margin: 0 0 .45em;
  font-weight: 700; line-height: 1.22; letter-spacing: -.015em;
}
.slide-copy .h1 { display: block; }
.slide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.slide-cta.center { justify-content: center; }
.slide-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 38px); margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.slide-stats dt {
  font-family: var(--ff-thai); font-size: clamp(1.32rem, 2.1vw, 1.62rem); font-weight: 700;
  color: var(--navy-700); line-height: 1.25; letter-spacing: -.01em;
  font-variant-numeric: normal; font-feature-settings: normal;
}
.slide-stats dd { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.slide-media { position: relative; }
.slide-media > img:not(.slide-logo) { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-3); object-fit: cover; aspect-ratio: 4/5; }
.slide-media img.slide-logo {
  position: absolute; left: -14px; bottom: -14px; width: clamp(120px, 16vw, 178px); height: auto;
  background: rgba(255,255,255,.95); padding: 12px 16px; border-radius: var(--r); box-shadow: var(--sh-2);
  aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line);
}
.slide.dark .slide-copy h1, .slide.dark .slide-copy .h1 { color: var(--navy-900); }

.hero-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding-bottom: 12px; position: relative; z-index: 2; }
.nav-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy-700); display: grid; place-items: center; cursor: pointer;
  transition: .18s; box-shadow: var(--sh-1);
}
.nav-btn:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: var(--blue-100); cursor: pointer; transition: .25s; }
.dots button[aria-selected="true"] { width: 30px; background: var(--blue-600); }
.hero-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .82rem; color: var(--muted); margin: 0; padding: 0 var(--pad) 26px; position: relative; z-index: 2;
}

@media (max-width: 900px) {
  .slide-inner { grid-template-columns: 1fr; }
  .slide-media { order: -1; max-width: 420px; margin-inline: auto; }
  .slide-media > img:not(.slide-logo) { aspect-ratio: 1/1; }
  .slide-logo { left: auto; right: 10px; bottom: -10px; }
}

/* ── trust bar ─────────────────────────────────────────────────────────── */
.trust { background: var(--navy-800); color: #cfe0f7; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-block: 24px; }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 8px 12px; }
.trust-item .ic { color: var(--gold-soft); }
.trust-item strong { display: block; color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.trust-item span { font-size: .8rem; color: #9db8de; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── grids & cards ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid.cats { grid-template-columns: repeat(4, 1fr); }
.grid.prods { grid-template-columns: repeat(4, 1fr); }
.grid.promos, .grid.arts { grid-template-columns: repeat(3, 1fr); }
.grid.benefits { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid.cats, .grid.prods, .grid.benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid.promos, .grid.arts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid.promos, .grid.arts, .grid.benefits { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .grid.cats { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--blue-100); }
.card-media { position: relative; display: block; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.card-body h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--blue-600); }
.card-body .muted { font-size: .88rem; line-height: 1.6; margin-bottom: 12px; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; box-shadow: var(--sh-1);
}
.badge.gold { background: linear-gradient(135deg, var(--gold), #a5803f); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: auto; }
.card:hover .link { gap: 10px; }

.chiplist { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.chiplist li {
  display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--ink-2);
  background: var(--bg-alt); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 999px;
}
.chiplist .ic { color: var(--accent); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 1.22rem; color: var(--navy-800); font-weight: 700; }
.price s { font-size: .85rem; }
.price .unit { font-size: .76rem; color: var(--muted); }
.price .ask { font-size: .98rem; font-weight: 600; color: var(--green-600); }
.price-lg strong { font-size: clamp(1.7rem, 3vw, 2.15rem); }
.price-lg .ask { font-size: 1.3rem; }
.price-lg { margin: 6px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* category card */
.card.cat { position: relative; padding: 34px 22px 24px; text-align: center; align-items: center; border-radius: var(--r-lg); }
.card.cat::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); opacity: .85; }
.card.cat:hover { border-color: var(--accent); }
.cat-logo { width: 190px; height: auto; margin: 6px auto 12px; }
.card.cat h3 { margin: 0 0 2px; font-size: 1.2rem; }
.cat-tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.card.cat .muted { font-size: .87rem; margin-bottom: 14px; }

/* benefit card */
.card.benefit { padding: 24px 20px; }
.b-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); margin-bottom: 14px; }
.card.benefit h3 { font-size: 1.02rem; }
.card.benefit .muted { font-size: .87rem; margin: 0; }

.card.promo .card-media img { aspect-ratio: 4/3; }
.card.art .card-media img { aspect-ratio: 3/2; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .ic { color: var(--line); width: 44px; height: 44px; }

/* ── split section ─────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 4.5vw, 62px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-2); aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-media { max-width: 460px; margin-inline: auto; } }

.feature-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ic { color: var(--blue-600); margin-top: 4px; }
.feature-list strong { display: block; color: var(--ink); font-size: 1rem; }
.feature-list span { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── page head / crumbs ────────────────────────────────────────────────── */
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 11px 0; }
.crumbs li + li::before { content: '/'; color: var(--line); margin-right: 8px; }
.crumbs li[aria-current] { color: var(--muted); }
.page-head { padding: clamp(38px, 5.5vw, 68px) 0 clamp(24px, 3vw, 38px); background: linear-gradient(170deg, var(--bg-tint), #fff); }
.page-head h1 { margin-bottom: .35em; }
.center-page { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.center-page .lede { margin-inline: auto; }

/* ── filters ───────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: .88rem; font-weight: 500;
  transition: .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip.on .ic { color: var(--gold-soft); }
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 15px; background: #fff; }
.search .ic { color: var(--muted); }
.search input { border: 0; outline: 0; font: inherit; font-size: .9rem; padding: 6px 2px; min-width: 190px; background: none; color: var(--ink); }

/* ── category hero ─────────────────────────────────────────────────────── */
.cat-hero { background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 7%, #fff), #fff 65%); padding: clamp(36px, 5vw, 66px) 0; }
.cat-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.cat-hero-logo { width: clamp(190px, 26vw, 270px); height: auto; margin-bottom: 18px; }
.cat-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: var(--navy-800); }
.cat-hero-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-3); aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 880px) { .cat-hero-inner { grid-template-columns: 1fr; } .cat-hero-media { max-width: 420px; margin-inline: auto; } }

.info-fig { margin: clamp(28px, 4vw, 46px) auto 0; max-width: 940px; }
.info-fig img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-2); border: 1px solid var(--line); }
.info-fig figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ── product detail ────────────────────────────────────────────────────── */
.pdp { padding: clamp(28px, 4vw, 54px) 0; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 58px); align-items: start; }
.pdp-main img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-2); aspect-ratio: 1/1; object-fit: cover; background: var(--bg-alt); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 78px; height: 78px; padding: 0; border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: .18s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--blue-100); }
.thumb.on { border-color: var(--accent); }
.pdp-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .3em; }
.pdp-quick { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pdp-quick li { display: flex; gap: 11px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 14px; }
.pdp-quick .ic { color: var(--accent); margin-top: 3px; }
.pdp-quick span { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pdp-quick strong { font-size: .92rem; color: var(--ink); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.ticks .ic { color: var(--green-500); margin-top: 3px; }
.pdp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pdp-cta .btn { flex: 1 1 220px; }
.stock { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin: 16px 0 0; }
.stock.ok .ic { color: var(--green-500); }
.stock.pre .ic { color: var(--gold); }
@media (max-width: 880px) { .pdp-grid { grid-template-columns: 1fr; } .pdp-quick { grid-template-columns: 1fr; } }

.pdp-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.specs { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; position: sticky; top: 96px; }
.specs h2 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.specs .ic { color: var(--accent); }
.specs dl { margin: 0 0 20px; }
.specs dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .89rem; }
.specs dl > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
@media (max-width: 880px) { .pdp-detail { grid-template-columns: 1fr; } .specs { position: static; } }

/* ── prose ─────────────────────────────────────────────────────────────── */
.prose { color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; color: var(--navy-700); }
.prose p, .prose li { line-height: 1.85; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.prose th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.prose img { border-radius: var(--r); margin: 1.2em 0; }
.biz-table { width: 100%; border-collapse: collapse; }
.biz-table th, .biz-table td { border-bottom: 1px solid var(--line); padding: 13px 4px; text-align: left; vertical-align: top; }
.biz-table th { width: 200px; color: var(--muted); font-weight: 500; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue-500);
  border-radius: var(--r); padding: 16px 18px;
}
.notice.big { margin-top: 38px; }
.notice .ic { color: var(--blue-600); margin-top: 4px; }
.notice p { margin: 0; font-size: .87rem; line-height: 1.7; }

/* ── steps ─────────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 26px); counter-reset: s; }
.step { position: relative; display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; }
.step-n { position: absolute; top: -10px; right: 18px; font-family: var(--ff-thai); font-size: 2.1rem; font-weight: 700; color: var(--blue-50); line-height: 1; }
.step-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.step h2 { margin: 0 0 6px; }
.step .muted { margin: 0; font-size: .9rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faqs { display: grid; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.faq[open] { border-color: var(--blue-100); box-shadow: var(--sh-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; font-size: .97rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-600); }
.faq summary .ic { flex: none; color: var(--muted); transition: transform .22s; }
.faq[open] summary .ic { transform: rotate(180deg); color: var(--blue-600); }
.faq-a { padding: 0 20px 20px; }
.faq-a p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.8; }
.faq-topic { margin-bottom: 34px; }
.faq-topic h2 { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; color: var(--navy-700); margin-bottom: 14px; }
.faq-topic h2 .ic { color: var(--gold); }

/* ── article ───────────────────────────────────────────────────────────── */
.art-head { margin-bottom: 26px; }
.art-head .meta { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.art-cover img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-2); margin-bottom: 30px; aspect-ratio: 16/10; object-fit: cover; }

/* ── contact ───────────────────────────────────────────────────────────── */
.contact-sec { background: linear-gradient(165deg, var(--navy-800), var(--navy-700) 60%, var(--navy-600)); color: #cfe0f7; padding: clamp(48px, 7vw, 90px) 0; position: relative; overflow: hidden; }
.contact-sec::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 0%, rgba(37,99,235,.28), transparent 60%);
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.contact-copy h2 { color: #fff; }
.contact-copy p { color: #b6cdec; }
.contact-copy .eyebrow { color: var(--gold-soft); }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.icon-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; }
.icon-list .ic { color: var(--gold-soft); margin-top: 4px; flex: none; }
.icon-list a { color: #dbe7fb; }
.icon-list a:hover { color: #fff; text-decoration: underline; }
.icon-list.big { margin-top: 26px; }
.icon-list.big li { font-size: .95rem; }

.contact-form { background: #fff; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-3); }
.contact-form h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 1.15rem; }
.contact-form h3 .ic { color: var(--blue-600); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.contact-form label span { color: #dc2626; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; font: inherit; font-size: .93rem; font-weight: 400;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50);
}
.contact-form input.err, .contact-form select.err { border-color: #dc2626; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.form-note { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); margin: 12px 0 0; font-weight: 400; }
.form-msg { margin: 12px 0 0; font-size: .9rem; font-weight: 600; }
.form-msg.ok { color: var(--green-600); }
.form-msg.bad { color: #dc2626; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form .row { grid-template-columns: 1fr; } }

.map iframe, .map > * { width: 100%; min-height: 400px; border: 0; border-radius: var(--r-lg); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-foot { background: var(--navy-900); color: #93aacd; font-size: .9rem; padding-top: clamp(44px, 6vw, 72px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(24px, 3.5vw, 48px); padding-bottom: 40px; }
.foot-brand img { width: 168px; height: auto; margin-bottom: 16px; }
.foot-brand p { font-size: .86rem; line-height: 1.75; color: #8aa3c7; }
.site-foot h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .01em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-foot a { color: #93aacd; }
.site-foot a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #cfe0f7; transition: .18s;
}
.socials a:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.foot-contact .icon-list .ic { color: var(--gold-soft); }
.disclaimer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }
.disclaimer p { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.7; color: #7e97bd; margin: 0; }
.disclaimer .ic { color: var(--gold); margin-top: 3px; flex: none; }
.disclaimer strong { color: #b6cdec; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 22px; padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .8rem;
}
.foot-bottom p { margin: 0; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── floating LINE ─────────────────────────────────────────────────────── */
.float-line {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: #06c755; color: #fff; font-weight: 600; font-size: .92rem;
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(6,199,85,.4);
  transition: transform .2s, box-shadow .2s;
}
.float-line:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(6,199,85,.5); }
@media (max-width: 560px) { .float-line span { display: none; } .float-line { padding: 15px; right: 14px; bottom: 14px; } }

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  .site-head, .site-foot, .float-line, .announce, .hero-controls, .contact-sec { display: none !important; }
  body { color: #000; }
}
