:root {
  --navy: #0b1b34;
  --navy-soft: #142a4a;
  --yellow: #ffda48;
  --yellow-hover: #ffd020;
  --text: #111111;
  --muted: #5a6575;
  --line: #e6e9ef;
  --panel: #f5f7fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(11, 27, 52, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Sarabun", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Top header */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 420px;
}
.logo img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center 26%;
  border-radius: 50%;
  flex-shrink: 0;
  background: #0b1b34;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  min-width: 0;
}
.logo-text strong {
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.logo-text span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  max-width: 17rem;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fafbfc;
}
.search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 12px 18px;
  background: transparent;
}
.search button {
  border: 0;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  cursor: default;
}
.icons {
  display: flex;
  gap: 10px;
  min-width: 120px;
  justify-content: flex-end;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: white;
  color: var(--navy);
  font-size: 16px;
  cursor: default;
}

/* Nav */
.nav {
  background: var(--navy);
  color: white;
}
.nav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.nav a {
  padding: 13px 18px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; background: rgba(255,255,255,0.06); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0b1b34 0%, #16345f 55%, #1d4b7c 100%);
  color: white;
  padding: 42px 0 36px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,218,72,0.18);
  color: var(--yellow);
  border: 1px solid rgba(255,218,72,0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
}
.hero p {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.86);
  font-size: 17px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-dark {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline {
  background: white;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.hero-visual img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #0a1528;
}

/* Sections */
.section {
  padding: 48px 0;
}
.section.alt { background: var(--panel); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 28px;
  color: var(--navy);
}
.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card .num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.single-product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.single-product .media {
  background: #eef2f7;
  padding: 18px;
}
.single-product .media img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.single-product .info {
  padding: 28px 28px 28px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.badge {
  display: inline-block;
  width: fit-content;
  background: #fff6cc;
  color: #7a5b00;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.single-product h3 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--navy);
}
.price {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 14px;
}
.price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}
.bullets {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li { margin: 6px 0; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.social-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.social-card .platform {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.social-card .handle {
  color: var(--muted);
  font-size: 13px;
}

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trust-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.trust-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.trust-item span {
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.86);
  padding: 36px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.footer h4 {
  margin: 0 0 10px;
  color: white;
}
.footer p, .footer a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li { margin: 8px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.preview-note {
  opacity: 0.85;
}

/* Product page */
.breadcrumb {
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a { color: var(--navy); font-weight: 600; }
.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 10px 0 40px;
}
.gallery-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.thumbs button {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: white;
  cursor: pointer;
}
.thumbs button.active,
.thumbs button:hover {
  border-color: var(--navy);
}
.thumbs img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.buy-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 18px;
  align-self: start;
}
.buy-box h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--navy);
  line-height: 1.3;
}
.meta-line {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  color: var(--muted);
}
.qty .box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--navy);
  font-weight: 700;
  background: #fafbfc;
}
.delivery {
  background: #f3f8ff;
  border: 1px solid #d7e6ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 18px;
  color: var(--navy-soft);
  font-size: 14px;
}
.disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8e8;
  border: 1px solid #ffe6a3;
  border-radius: 12px;
  color: #6b5400;
  font-size: 13px;
  font-weight: 600;
}
.toast {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  font-size: 13px;
}
.toast.show { display: block; }

@media (max-width: 900px) {
  .hero-grid,
  .single-product,
  .product-layout,
  .footer-grid,
  .feature-grid,
  .trust,
  .social-grid {
    grid-template-columns: 1fr;
  }
  .single-product .info { padding: 20px; }
  .logo { min-width: auto; }
  .search { display: none; }
}

.article-page { padding: 24px 0 72px; }
.article-page h1 {
  color: var(--navy);
  font-size: 36px;
  margin: 0 0 10px;
}
.article-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--muted);
}
.article-empty p { margin: 0 0 8px; }
.article-empty p:last-child { margin-bottom: 0; }
.article-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.article-placeholder { color: var(--muted); }
.article-back { margin-top: 28px; }
.article-back a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.article-figure { margin: 20px 0 24px; }
.article-figure-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--panel);
}
.article-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* hrg-deploy-v6 */
