/* ═══════════════════════════════════════════════════════
   Jinbei Chemical — Design System
   Reference: jinbeifood.com (deep navy + seafoam accent)
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --primary-blue: #0f4ea8;
  --primary-deep: #082f74;
  --teal-accent: #00c6a7;
  --dark-blue: #10346a;
  --light-blue: #e8f4fc;
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #1f2b3d;
  --muted: #607087;
  --border: #dde4ef;
  --shadow-sm: 0 4px 12px rgba(16, 52, 106, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 52, 106, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --font-family: "Segoe UI", Arial, system-ui, sans-serif;
  --max-w: 1380px;
  --header-h: 126px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  color: var(--fg);
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  z-index: 1000;
  backdrop-filter: none;
  background: #fff;
  border-bottom: 1px solid rgba(221, 228, 239, 0.9);
  box-shadow: 0 10px 28px rgba(15, 37, 74, 0.06);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.header-top {
  background: #0d1d34;
  color: #fff; font-size: 13px;
  max-height: 40px; overflow: hidden;
  transition: max-height 0.24s, opacity 0.2s, transform 0.24s;
  display: flex;
}
.header-top-inner {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 8px 20px; width: 100%; max-width: var(--max-w); margin: 0 auto;
  transition: padding 0.24s;
}
.header-main {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center; gap: 24px;
  padding: 20px 0; position: relative;
  max-width: var(--max-w); margin: 0 auto; padding-left: 32px; padding-right: 32px;
  transition: padding 0.24s, gap 0.24s;
}
.logo {
  display: flex; align-items: center; gap: 14px;
  justify-self: start; min-width: 0;
}
.logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15,78,168,0.08), rgba(15,78,168,0.02)), #fff;
  border: 1px solid rgba(15,78,168,0.12);
  box-shadow: 0 4px 10px rgba(15,78,168,0.08);
  font-weight: 800; font-size: 22px; color: var(--primary-blue);
  transition: width 0.24s, height 0.24s, flex-basis 0.24s, border-radius 0.24s;
}
.logo-text {
  display: flex; flex-direction: column; gap: 2px;
}
.logo-name {
  font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
  color: #0f254a; line-height: 1.1; white-space: nowrap;
}
.logo-name span { font-weight: 400; color: var(--muted); font-size: 18px; }
.logo-sub {
  font-size: 11px; color: var(--muted); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}

/* ── Navigation ── */
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 36px;
}
.nav-links a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 46px; font-weight: 600; font-size: 17px;
  color: #264168; padding: 6px 0;
  transition: color 0.22s, transform 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2.5px;
  background: var(--primary-blue);
  transform: scaleX(0); transition: transform 0.22s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-deep);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  cursor: pointer; padding: 10px 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 100%; height: 2.5px; border-radius: 2px; background: var(--primary-deep); }

/* ── Header condensed (on scroll) ── */
.header-condensed {
  background: rgba(255,255,255,0.98);
  border-bottom-color: rgba(214,223,235,0.95);
  box-shadow: 0 16px 34px rgba(15,37,74,0.1);
}
.header-condensed .header-top {
  max-height: 0; opacity: 0; transform: translateY(-100%);
  border-bottom-color: transparent;
}
.header-condensed .header-top-inner { padding-top: 0; padding-bottom: 0; }
.header-condensed .header-main { gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.header-condensed .logo-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; font-size: 18px; }
.header-condensed .logo-img { max-height: 38px; max-width: 160px; }
.header-condensed .logo-name { font-size: 22px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-pill); font-weight: 700;
  font-size: 15px; border: 1.5px solid transparent;
  cursor: pointer; transition: 0.25s ease; line-height: 1.4;
}
.btn-primary { background: var(--primary-blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,78,168,0.25); }
.btn-outline { background: #fff; border-color: #cfd9ea; color: #24436d; }
.btn-outline:hover { border-color: var(--primary-blue); background: var(--light-blue); }
.btn-sm { padding: 8px 20px; font-size: 13px; min-height: 38px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn svg { transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }

/* ── Hero Carousel ── */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 520px;
  margin-top: var(--header-h);
  overflow: hidden;
  background: #0d1d34;
}
.hero-carousel .slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-carousel .slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
}
.hero-carousel .slides .slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-carousel .slides .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel .slides .slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,29,52,0.92) 0%, rgba(13,29,52,0.65) 50%, rgba(13,29,52,0.35) 100%);
}
.hero-carousel .slides .slide .slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-carousel .slides .slide .slide-text {
  max-width: 620px;
  color: #fff;
}
.hero-carousel .slides .slide .slide-text .slide-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,198,167,0.2);
  color: #5eead4;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,198,167,0.25);
}
.hero-carousel .slides .slide .slide-text h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero-carousel .slides .slide .slide-text .slide-title-highlight {
  color: #5eead4;
}
.hero-carousel .slides .slide .slide-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
  max-width: 560px;
}
.hero-carousel .slides .slide .slide-text .slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-carousel .slides .slide .slide-text .slide-actions .btn-primary {
  background: #fff;
  color: #0f4ea8;
}
.hero-carousel .slides .slide .slide-text .slide-actions .btn-primary:hover {
  background: #f0f4ff;
  box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}
.hero-carousel .slides .slide .slide-text .slide-actions .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
}
.hero-carousel .slides .slide .slide-text .slide-actions .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.hero-carousel .slides .slide .slide-text .slide-trust {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.hero-carousel .slides .slide .slide-text .slide-trust .st-item {
  text-align: left;
}
.hero-carousel .slides .slide .slide-text .slide-trust .st-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #5eead4;
  line-height: 1;
  margin-bottom: 3px;
}
.hero-carousel .slides .slide .slide-text .slide-trust .st-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.hero-carousel .controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.hero-carousel .controls .dots {
  display: flex;
  gap: 8px;
}
.hero-carousel .controls .dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}
.hero-carousel .controls .dots .dot.active {
  background: #5eead4;
  width: 28px;
  border-radius: 5px;
}
.hero-carousel .controls .ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.hero-carousel .controls .ctrl-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Trust Bar ── */
.trust-bar { background: #0d1d34; padding: 16px 0; }
.trust-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500; }
.trust-item .icon { font-size: 14px; font-weight: 700; color: var(--teal-accent); }

/* ── Section ── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-accent { width: 40px; height: 4px; background: var(--primary-blue); border-radius: 2px; margin: 0 auto 16px; }
.section-header h2 { font-size: 34px; color: var(--dark-blue); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em; }
.section-header p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 auto; }

/* ── Section background variants (light, non-distracting) ── */
.bg-alt { background: #f5f7fa; }
.bg-light { background: #f8faff; }

/* ── Product Grid (Home) ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: #fff;
  border: 1px solid #e3ebf6; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 28px;
  transition: 0.3s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.icon-box { width: 48px; height: 48px; background: var(--light-blue); border-radius: 8px; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: var(--primary-blue); margin-bottom: 16px; }
.product-card h3 { font-size: 18px; color: var(--dark-blue); margin-bottom: 10px; }
.product-card p { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-footer { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--primary-blue); }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 24px; }
.stat-number { font-size: 40px; font-weight: 900; color: var(--primary-blue); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Values Grid ── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); transition: 0.3s;
}
.value-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.v-icon { font-size: 24px; margin-bottom: 14px; color: var(--primary-blue); font-weight: 700; }
.value-card h3 { font-size: 17px; color: var(--dark-blue); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════
   Product Detail — Continuous Sections
   ═══════════════════════════════════════ */
.pd-sections {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.pd-section {
  padding: 32px 0;
}
.pd-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--light-blue);
}
.pd-section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Section: Product Details */
.pd-detail h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 14px;
}
.pd-detail p {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 900px;
}
.pd-detail .detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  max-width: 900px;
}
.pd-detail .detail-features li {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
  list-style: disc;
  list-style-position: inside;
  padding: 6px 0;
}
.pd-detail .detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pd-detail .detail-tags span {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--light-blue);
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
}

/* Section: Specifications */
.pd-specs table {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}
.pd-specs table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.pd-specs table td:first-child {
  font-weight: 600;
  color: var(--dark-blue);
  width: 180px;
  background: #f8faff;
}
.pd-specs table tr:last-child td {
  border-bottom: none;
}

/* Section: Packaging & Shipping */
.pd-ship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
}
.pd-ship h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-blue);
}
.pd-ship ul { list-style: disc; list-style-position: inside; }
.pd-ship li {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
  padding: 4px 0;
}

/* Responsive: Sections */
@media (max-width: 768px) {
  .pd-detail .detail-features { grid-template-columns: 1fr; }
  .pd-ship { grid-template-columns: 1fr; }
}

/* ── CTA Banner ── */
.cta-banner {
  background: #0d1d34;
  padding: 72px 0; text-align: center; color: #fff;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: 0.8; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── Footer ── */
.footer { background: #0b1a2e; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo-icon { background: rgba(15,78,168,0.25); border-color: rgba(15,78,168,0.2); color: #fff; box-shadow: none; }
.footer-brand .logo-img { max-width: 190px; max-height: 48px; filter: none; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-name span { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; line-height: 1.55; }
.footer-col a:hover { color: var(--teal-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 48px; padding: 20px 32px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06); display: grid; place-items: center; font-size: 16px; transition: 0.2s; }
.footer-social a:hover { background: var(--primary-blue); }

/* ═══════════════════════════════════════
   PAGE: Products
   ═══════════════════════════════════════ */
.page-hero {
  margin-top: var(--header-h);
  padding: 64px 0 48px;
  background: #f5f7fa;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: 36px; font-weight: 900; color: var(--dark-blue); margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: var(--muted); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary-blue); }
.breadcrumb span { margin: 0 6px; }
.product-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.product-tab {
  padding: 8px 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 14px; color: var(--fg);
  cursor: pointer; transition: 0.2s;
}
.category-tabs a {
  padding: 8px 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 14px; color: var(--fg);
  cursor: pointer; transition: 0.2s; text-decoration: none;
}
.product-tab:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.product-tab.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.category-tabs a:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.category-tabs a.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

/* Product Detail Page */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-image-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  max-width: 560px;
}
.pd-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--light-blue);
  overflow: hidden;
}
.pd-gallery-main .gd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pd-gallery-main .gd-slide.active { opacity: 1; }
.pd-gallery-main .gd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--fg);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  user-select: none;
}
.pd-gallery-main:hover .gd-arrow { opacity: 1; }
.gd-arrow:hover { background: #fff; }
.gd-arrow-left { left: 10px; }
.gd-arrow-right { right: 10px; }
.pd-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.pd-gallery-thumbs .gd-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.pd-gallery-thumbs .gd-thumb.active { border-color: var(--primary-blue); opacity: 1; }
.pd-gallery-thumbs .gd-thumb:hover { opacity: 0.8; }
.gd-dots {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  gap: 6px;
  z-index: 2;
}
.gd-dots .gd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.gd-dots .gd-dot.active { background: #fff; }
.pd-info h1 {
  font-size: 30px;
  color: var(--fg);
  margin-bottom: 6px;
}
.pd-info .pd-cat {
  font-size: 13px;
  color: var(--primary-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.pd-info .pd-spec {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.pd-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.pd-table tr { border-bottom: 1px solid #f0f3f8; }
.pd-table tr:last-child { border-bottom: none; }
.pd-table td {
  padding: 12px 16px;
  font-size: 15px;
}
.pd-table td:first-child {
  color: var(--muted);
  font-weight: 500;
  width: 140px;
  background: #f8faff;
}
.pd-table td:last-child {
  font-weight: 600;
  color: var(--fg);
}
.pd-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.pd-actions a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s;
}
.pd-actions a:first-child { background: var(--primary-blue); color: #fff; }
.pd-actions a:first-child:hover { background: var(--primary-deep); }
.pd-actions a:last-child { border: 1.5px solid var(--border); color: var(--primary-blue); }
.pd-actions a:last-child:hover { background: var(--light-blue); }
.pd-extra {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
  line-height: 1.7;
}
.pd-extra strong { color: var(--fg); }
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.pd-related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  display: block;
  color: inherit;
}
.pd-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.pd-related-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.pd-related-card .pd-rc-body { padding: 12px 14px 14px; }
.pd-related-card .pd-rc-body h4 {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}
.pd-related-card .pd-rc-body .pd-rc-spec {
  font-size: 12px;
  color: var(--muted);
}
.pd-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.pd-support-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.pd-support-item .psi-label {
  width: 48px;
  height: 36px;
  flex: 0 0 48px;
  border-radius: 6px;
  background: var(--light-blue);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 0.05em;
}
.pd-support-item h5 {
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 2px;
}
.pd-support-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }
  .pd-image-wrap { max-width: 100%; }
  .pd-related-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-support { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gd-arrow { display: none; }
  .gd-dots { display: flex; }
  .pd-gallery-thumbs { display: none; }
  .pd-actions { flex-direction: column; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-support { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 24px; }
}

/* ═══════════════════════════════════════
   Products — Image Card Grid + Pagination
   ═══════════════════════════════════════ */
.prod-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}
.prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }

/* Product Image */
.prod-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 180px;
  max-height: 240px;
  background: #f4f6fa;
  overflow: hidden;
}
.prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-img-wrap .prod-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--teal-accent);
  color: #fff;
  font-weight: 700;
}
.prod-img-wrap .prod-badge-best {
  background: #ed6a3d;
  color: #fff;
}

/* Product Info Below Image */
.prod-info {
  padding: 14px 16px 16px;
}
.prod-info h3 {
  font-size: 15px;
  color: var(--fg);
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
}
.prod-info .prod-spec {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 10px;
}
.prod-info .prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 0;
}
.prod-info .prod-meta span {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 12px;
}
.prod-info .prod-meta span em {
  font-style: normal;
  color: var(--fg);
  font-weight: 600;
}

/* Pagination */
.prod-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}
.prod-page-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  color: var(--fg);
  background: var(--surface);
  cursor: pointer;
  transition: 0.2s;
}
.prod-page-btn:hover:not(.active):not(.disabled) { border-color: var(--primary-blue); color: var(--primary-blue); }
.prod-page-btn.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.prod-page-btn.disabled { opacity: 0.3; cursor: default; }
.prod-page-btn.arrow { font-size: 16px; }

@media (max-width: 1100px) {
  .prod-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .prod-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .prod-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-info { padding: 10px 12px 12px; }
  .prod-info h3 { font-size: 13px; }
}

/* ═══════════════════════════════════════
   PAGE: Contact
   ═══════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { position: sticky; top: 156px; }
.contact-info h2 { font-size: 28px; color: var(--dark-blue); margin-bottom: 8px; }
.contact-info .contact-sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-method:last-child { border-bottom: none; }
.contact-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: #f0f4fe; display: grid; place-items: center; color: var(--primary-blue); }
.contact-icon svg { width: 20px; height: 20px; display: block; }
.contact-method h4 { font-size: 15px; color: var(--fg); margin-bottom: 3px; font-weight: 700; }
.contact-method p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-method a { color: var(--primary-blue); font-weight: 600; }
.contact-method a:hover { text-decoration: underline; }

.contact-info-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--light-blue);
}
.contact-info-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.contact-resources {
  margin-top: 8px;
  padding: 20px 24px;
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-resources h4 {
  font-size: 14px;
  color: var(--dark-blue);
  margin-bottom: 12px;
  font-weight: 700;
}
.contact-resources ul {
  list-style: none;
  padding: 0;
}
.contact-resources ul li {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.contact-resources ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-blue);
  opacity: 0.4;
}
.contact-resources ul li strong { color: var(--fg); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.whatsapp-btn:hover { background: #1da851; }
.whatsapp-btn svg { width: 18px; height: 18px; display: block; }

.inquiry-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.inquiry-form h3 { font-size: 22px; color: var(--dark-blue); margin-bottom: 6px; }
.inquiry-form .form-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: var(--font-family);
  transition: border-color 0.2s, box-shadow 0.2s; background: #fff;
  color: var(--fg);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #aab4c5; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(15,78,168,0.1);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group .checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 14px; color: var(--muted); cursor: pointer;
}
.form-group .checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--primary-blue);
}
.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  background: var(--primary-blue); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  font-family: var(--font-family);
}
.submit-btn:hover { background: var(--primary-deep); }
.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.submit-btn svg { width: 18px; height: 18px; display: block; stroke: currentColor; stroke-width: 2.5; fill: none; }
.contact-modal-open { overflow: hidden; }
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 38, 0.58);
}
.contact-modal-overlay.is-open { display: flex; }
.contact-modal {
  position: relative;
  width: min(100%, 440px);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 34px 30px 30px;
  box-shadow: 0 24px 70px rgba(10, 20, 38, 0.26);
  text-align: center;
}
.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}
.contact-modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}
.contact-modal-icon::before { content: "!"; }
.contact-modal-overlay.is-success .contact-modal-icon {
  background: #e8f8ef;
  color: #147a4b;
}
.contact-modal-overlay.is-success .contact-modal-icon::before { content: "✓"; }
.contact-modal-overlay.is-error .contact-modal-icon {
  background: #fff0ee;
  color: #b42318;
}
.contact-modal h3 {
  margin-bottom: 10px;
  color: var(--dark-blue);
  font-size: 22px;
  line-height: 1.25;
}
.contact-modal-message {
  margin: 0 auto 14px;
  max-width: 360px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.7;
}
.contact-modal-countdown {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}
.contact-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.contact-modal-action:hover { background: var(--primary-deep); }

/* Contact CTA */
.contact-cta {
  background: #0a2540;
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.contact-cta h2 { font-size: 30px; margin-bottom: 12px; font-weight: 800; }
.contact-cta p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.contact-cta .btn { background: #25D366; border-color: #25D366; color: #fff; }
.contact-cta .btn:hover { background: #1da851; border-color: #1da851; }

.prod-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.3s; color: inherit; }

/* ═══════════════════════════════════════
   PAGE: About
   ═══════════════════════════════════════ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-split-img { border-radius: var(--radius-md); overflow: hidden; min-height: 340px; background: var(--light-blue); }
.about-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-intro h2 { font-size: 30px; color: var(--dark-blue); margin-bottom: 16px; }
.about-intro h2 span { color: var(--primary-blue); }
.about-intro p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.about-intro .intro-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.about-intro .intro-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg); }
.about-intro .intro-meta-item strong { color: var(--primary-blue); }
.section-line { width: 40px; height: 3px; background: var(--primary-blue); margin: 0 auto 14px; border-radius: 2px; }

.tl-section { max-width: 820px; margin: 0 auto; }
.tl { position: relative; padding: 0; }
.tl::before { content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-left: 68px; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 12px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-blue); border: 3px solid #e2edff; }
.tl-year { font-size: 13px; font-weight: 700; color: var(--primary-blue); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.tl-item h4 { font-size: 18px; color: var(--dark-blue); margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.tl-img { margin-top: 10px; border-radius: var(--radius-md); overflow: hidden; max-height: 160px; background: var(--light-blue); }
.tl-img img { width: 100%; height: 160px; object-fit: cover; display: block; }

.factory-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.factory-detail:last-child { margin-bottom: 0; }
.factory-detail.reverse { direction: rtl; }
.factory-detail.reverse > * { direction: ltr; }
.factory-detail-img { border-radius: var(--radius-md); overflow: hidden; min-height: 300px; background: var(--light-blue); }
.factory-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.factory-detail-text h3 { font-size: 24px; color: var(--dark-blue); margin-bottom: 4px; }
.factory-detail-text .h3-sub { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.factory-detail-text p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
.factory-detail-text .factory-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.factory-detail-text .stat-chip { padding: 8px 0; text-align: center; }
.factory-detail-text .stat-chip .num { font-size: 22px; font-weight: 800; color: var(--primary-blue); line-height: 1.2; }
.factory-detail-text .stat-chip .label { font-size: 11px; color: var(--muted); }
.factory-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.factory-gallery-item { border-radius: var(--radius-md); overflow: hidden; height: 180px; background: var(--light-blue); }
.factory-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.adv-card-img { height: 140px; background: var(--light-blue); overflow: hidden; }
.adv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adv-card-body { padding: 24px 24px 28px; }
.adv-card h3 { font-size: 16px; color: var(--dark-blue); margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.adv-card .adv-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.cert-card-img { height: 110px; background: var(--light-blue); overflow: hidden; display: grid; place-items: center; }
.cert-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-card-body { padding: 20px 24px 24px; }
.cert-card .cert-badge { display: inline-block; padding: 2px 12px; border-radius: 4px; background: var(--light-blue); color: var(--primary-blue); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; }
.cert-card h4 { font-size: 16px; color: var(--dark-blue); margin-bottom: 4px; }
.cert-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════
   PAGE: News
   ═══════════════════════════════════════ */
.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  color: inherit;
  text-decoration: none;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.news-card-img {
  aspect-ratio: 16/9;
  height: auto;
  min-height: 170px;
  max-height: 220px;
  overflow: hidden;
  background: var(--light-blue);
  position: relative;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-img .news-cat-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.news-card-body { padding: 24px; }
.news-card-date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; color: var(--dark-blue); margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-footer { margin-top: 14px; color: var(--primary-blue); font-size: 14px; font-weight: 600; }

/* ═══════════════════════════════════════
   News Detail Page
   ═══════════════════════════════════════ */
.nd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.nd-main { min-width: 0; }
.nd-image {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--light-blue);
  margin-bottom: 32px;
}
.nd-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nd-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
}
.nd-meta .nd-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}
.nd-meta .nd-date {
  color: var(--muted);
}
.nd-main h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-blue);
  line-height: 1.3;
  margin-bottom: 24px;
}
.nd-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
}
.nd-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-top: 36px;
  margin-bottom: 14px;
}
.nd-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-top: 28px;
  margin-bottom: 10px;
}
.nd-body p {
  margin-bottom: 16px;
}
.nd-body ul, .nd-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.nd-body li {
  margin-bottom: 8px;
}
.nd-body strong {
  color: var(--dark-blue);
}
.nd-sidebar {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
.nd-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-blue);
}
.nd-sidebar .nd-related-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.nd-sidebar .nd-related-item:hover { opacity: 0.8; }
.nd-sidebar .nd-related-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.nd-related-item .nd-ri-img {
  width: 100px;
  height: 70px;
  max-width: 100px;
  aspect-ratio: 10/7;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-blue);
}
.nd-related-item .nd-ri-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nd-related-item .nd-ri-body {
  flex: 1;
  min-width: 0;
}
.nd-related-item .nd-ri-date {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.nd-related-item .nd-ri-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .nd-layout { grid-template-columns: 1fr; }
  .nd-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
  }
  .nd-sidebar .nd-related-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .nd-sidebar .nd-related-item { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
}
@media (max-width: 600px) {
  .nd-sidebar .nd-related-items { grid-template-columns: 1fr; }
  .nd-main h1 { font-size: 24px; }
  .nd-body { font-size: 15px; }
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a,
.pagination span.current,
.pagination span.ellipsis,
.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface);
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}
.pagination a.prev,
.pagination a.next {
  font-size: 20px;
  line-height: 1;
}
.pagination a:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.pagination span.current { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); cursor: default; }
.pagination span.ellipsis { border-color: transparent; background: transparent; color: var(--muted); cursor: default; }
.page-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.page-btn.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

/* ═══════════════════════════════════════
   Reponsive
   ═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   HOME PAGE: Factory / Featured Products / News
   ═══════════════════════════════════════ */
.factory-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 24px; }
.factory-showcase.reverse { direction: rtl; }
.factory-showcase.reverse > * { direction: ltr; }
.factory-info h3 { font-size: 20px; color: var(--dark-blue); margin-bottom: 8px; }
.factory-info .h3-sub { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.factory-info p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
.factory-image { background: var(--light-blue); border-radius: var(--radius-md); min-height: 280px; display: grid; place-items: center; overflow: hidden; }
.factory-image img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; }
.factory-image .img-placeholder { width: 100%; height: 280px; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.factory-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.factory-tag { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 13px; color: var(--muted); background: var(--surface); }
.home-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-prod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: 0.3s;
}
.home-prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.home-prod-header {
  background: var(--light-blue); padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
}
.home-prod-header h3 { font-size: 17px; color: var(--dark-blue); }
.home-prod-header .prod-badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(15,78,168,0.08); color: var(--primary-blue); }
.home-prod-body { padding: 16px 20px; }
.home-prod-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f3f8; font-size: 14px; }
.home-prod-image-row { display: block; padding: 0 0 12px; border-bottom: none; }
.home-prod-image {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--light-blue);
  margin-bottom: 4px;
}
.home-prod-row:last-child { border-bottom: none; }
.home-prod-row .row-label { color: var(--muted); }
.home-prod-row .row-value { font-weight: 600; color: var(--fg); }
.home-prod-cta { display: block; padding: 12px 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--primary-blue); border-top: 1px solid var(--border); transition: 0.2s; }
.home-prod-cta:hover { background: var(--light-blue); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-news-mini .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .hero-carousel { height: 440px; }
  .hero-carousel .slides .slide .slide-text { max-width: 500px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-showcase { grid-template-columns: 1fr; }
  .factory-showcase.reverse { direction: ltr; }
  .home-product-detail { grid-template-columns: 1fr; }
  .home-news-mini .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .about-split { grid-template-columns: 1fr; }
  .factory-detail { grid-template-columns: 1fr; }
  .factory-detail.reverse { direction: ltr; }
  .factory-gallery { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 32px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-main { grid-template-columns: 1fr auto; }
  .logo-name { font-size: 20px; }
  .logo-name span { font-size: 14px; }
  .hero-carousel { height: 380px; }
  .hero-carousel .slides .slide .slide-trust { gap: 16px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .product-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .adv-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .factory-detail-text .factory-stats { grid-template-columns: 1fr; }
  .factory-gallery-item { height: 140px; }
  .header-top { font-size: 12px; }
  .header-top-inner { gap: 12px; }
  .page-hero { padding: 48px 0 32px; }
  .page-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-main { padding-left: 16px; padding-right: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-carousel { height: 340px; }
  .hero-carousel .slides .slide .slide-trust { display: none; }
  .home-news-mini .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 12px; }
  .news-grid { grid-template-columns: 1fr; }
}
