/*
Theme Name: Giang Nam PCCC - Bao Son Edition
Theme URI: https://www.giangnamvietnam.com/
Author: Công ty Bảo Sơn
Author URI: https://baoson.info/
Description: Giao diện thương mại điện tử và phân phối thiết bị PCCC chuẩn SEO, Mobile-First, tuân thủ Nghị định 52/2013, 85/2021, 13/2023 và Luật BVQLNTD 2023. Thiết kế và tối ưu bởi Công ty Bảo Sơn.
Version: 1.0.0
Text Domain: giangnam-baoson
*/

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --accent-soft: #fef2f2;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(20px, 2.2vw, 26px); }
h3 { font-size: 17px; }

.mono, .tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Signature 3px fire-safety top rule */
.gn-top-rule {
  height: 3px;
  background: var(--accent);
}

/* Top Utility Bar */
.gn-topbar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gn-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.gn-topbar a { color: #f8fafc; }
.gn-topbar a:hover { color: #fca5a5; }
.gn-topbar-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gn-topbar-sep { color: #475569; }

/* Main Sticky Header */
.gn-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.gn-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.gn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}
.gn-brand img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}
.gn-brand-text { display: flex; flex-direction: column; }
.gn-brand-name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.gn-brand-sub { font-size: 12px; color: var(--muted); }

/* Search Bar */
.gn-search {
  flex: 1;
  max-width: 440px;
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.gn-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}
.gn-search input {
  flex: 1;
  border: 0;
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  background: transparent;
}
.gn-search button {
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gn-search button:hover { background: var(--accent); color: #fff; }

.gn-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #e2e8f0; color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Enterprise 3-Zone Navigation Bar + 4-Column Mega Menu */
.gn-nav-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}
.gn-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  position: relative;
}
.gn-mega-trigger {
  position: static;
  flex-shrink: 0;
}
.gn-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  background: var(--dark);
  color: #ffffff;
  border: 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gn-cat-btn:hover,
.gn-mega-trigger:hover .gn-cat-btn,
.gn-mega-trigger.open .gn-cat-btn {
  background: var(--accent);
}
.gn-chev { transition: transform 0.15s ease; }
.gn-mega-trigger:hover .gn-chev,
.gn-mega-trigger.open .gn-chev,
.gn-has-drop:hover .gn-chev,
.gn-has-drop.open .gn-chev { transform: rotate(180deg); }

.gn-mega-panel {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  z-index: 100;
  padding: 24px 24px 16px;
}
.gn-mega-trigger:hover .gn-mega-panel,
.gn-mega-trigger.open .gn-mega-panel {
  display: block;
}
.gn-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gn-mega-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.gn-mega-col ul { list-style: none; margin: 0; padding: 0; }
.gn-mega-col li { margin-bottom: 2px; }
.gn-mega-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.gn-mega-col a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.gn-mega-cnt { font-size: 11.5px; color: var(--muted); }
.gn-mega-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.gn-mega-all { font-weight: 600; color: var(--accent); }

.gn-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.gn-nav-list > li { position: relative; }
.gn-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.gn-nav-list > li > a:hover,
.gn-nav-list > li.current-menu-item > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.gn-nav-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 999px;
}

/* Policies Dropdown */
.gn-drop-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 248px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 95;
}
.gn-has-drop:hover .gn-drop-menu,
.gn-has-drop.open .gn-drop-menu { display: block; }
.gn-drop-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 4px;
}
.gn-drop-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Right Utility Link */
.gn-nav-right { flex-shrink: 0; }
.gn-nav-zalo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0054cc;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.gn-nav-zalo:hover {
  background: #0068ff;
  border-color: #0068ff;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .gn-nav-right { display: none; }
  .gn-mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .gn-mobile-toggle { display: inline-flex; }
  .gn-nav-bar { display: none; }
  .gn-nav-bar.open { display: block; }
  .gn-nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; }
  .gn-cat-btn { width: 100%; justify-content: space-between; border-radius: 6px; margin-bottom: 6px; }
  .gn-mega-panel { position: static; box-shadow: none; padding: 12px; border-radius: 6px; margin-bottom: 8px; }
  .gn-mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .gn-mega-foot { flex-direction: column; align-items: flex-start; }
  .gn-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .gn-nav-list > li > a { width: 100%; height: 40px; border-bottom: 1px solid var(--border); padding: 0 4px; justify-content: space-between; }
  .gn-drop-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--accent); margin: 4px 0 8px 8px; padding: 4px 0 4px 8px; }
}

.gn-mobile-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--ink);
  cursor: pointer;
}

/* Hero Section */
.gn-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}
.gn-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.gn-hero-h1 {
  font-size: clamp(26px, 2.85vw, 35px);
  line-height: 1.24;
  text-wrap: balance;
  margin: 0 0 14px;
}
.gn-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.gn-hero-lead {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 600px;
}
.gn-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.gn-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.gn-stat-box {
  padding-right: 12px;
  border-right: 1px solid var(--border);
}
.gn-stat-box:last-child { border-right: 0; padding-right: 0; }
.gn-stat-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gn-stat-label { font-size: 12px; color: var(--muted); }

.gn-hero-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gn-hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}
.gn-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 4.5s ease-out;
  pointer-events: none;
}
.gn-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.gn-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gn-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease, color 0.15s ease;
  z-index: 4;
}
.gn-hero-slider:hover .gn-slider-btn { opacity: 1; }
.gn-slider-btn:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.gn-slider-prev { left: 12px; }
.gn-slider-next { right: 12px; }

.gn-slider-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 4;
}
.gn-slider-caption {
  font-size: 12px;
  font-weight: 500;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 5px;
  max-width: 72%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gn-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 8px;
  border-radius: 999px;
}
.gn-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s ease;
}
.gn-dot.is-active {
  width: 20px;
  background: #ffffff;
}
.gn-slider-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.12);
  z-index: 5;
}
.gn-slider-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}
@media (max-width: 768px) {
  .gn-slider-btn { opacity: 0.9; width: 30px; height: 30px; }
}
.gn-hero-card-meta {
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Sections */
.gn-section { padding: 44px 0; }
.gn-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gn-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.gn-section-sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* 6-Group B2B Product Showcase Grid */
.gn-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gn-showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gn-showcase-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.gn-showcase-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gn-showcase-thumb {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gn-showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gn-showcase-meta {
  flex: 1;
  min-width: 0;
}
.gn-showcase-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
}
.gn-showcase-title a { color: var(--ink); }
.gn-showcase-title a:hover { color: var(--accent); }
.gn-showcase-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.gn-showcase-all {
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.gn-sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.gn-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gn-sub-chip span { font-size: 11.5px; color: var(--muted); }
.gn-sub-chip:hover {
  background: var(--accent-soft);
  border-color: rgba(185, 28, 28, 0.35);
  color: var(--accent);
}
.gn-sub-chip:hover span { color: var(--accent); }

@media (max-width: 1024px) {
  .gn-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gn-showcase-grid { grid-template-columns: 1fr; }
}

/* Product Grid */
.gn-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gn-product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gn-product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.gn-product-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #fff;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.gn-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gn-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.gn-product-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gn-product-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.gn-product-title a { color: inherit; }
.gn-product-title a:hover { color: var(--accent); }
.gn-product-price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.gn-product-price-quote { color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.gn-product-vat { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 400; color: var(--muted); }
.gn-product-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Catalogue Table */
.gn-doc-search {
  width: 100%;
  max-width: 440px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 16px;
}
.gn-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.gn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.gn-table th, .gn-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.gn-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.gn-table tr:last-child td { border-bottom: 0; }

/* Editorial News Grid & Featured Post */
.gn-editorial-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.gn-cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gn-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.gn-pill:hover, .gn-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.gn-featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  align-items: center;
}
.gn-featured-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.gn-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gn-featured-body { padding: 24px 28px 24px 0; display: flex; flex-direction: column; gap: 12px; }
.gn-featured-title { font-size: clamp(20px, 2vw, 25px); margin: 0; line-height: 1.3; }
.gn-featured-title a { color: var(--ink); }
.gn-featured-title a:hover { color: var(--accent); }
.gn-featured-excerpt { font-size: 14.5px; color: var(--ink-2); margin: 0; }

.gn-post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.gn-post-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 4px;
}

.gn-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gn-news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gn-news-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.gn-news-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.gn-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gn-news-card-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gn-news-title {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gn-news-title a { color: var(--ink); }
.gn-news-title a:hover { color: var(--accent); }
.gn-news-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gn-news-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gn-read-more { font-size: 13px; font-weight: 500; color: var(--accent); }
.gn-news-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.gn-post-cta {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Single Article 2-Column Editorial Layout */
.gn-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  margin-top: 12px;
}
.gn-single-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.gn-share-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gn-single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.gn-single-h1 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.28;
  margin: 0 0 20px;
}
.gn-single-hero-img {
  margin: 0 0 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.gn-single-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.gn-toc-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.gn-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.gn-toc-toggle {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.gn-toc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}
.gn-toc-list li { margin-bottom: 6px; }
.gn-toc-list li.gn-toc-sub { margin-left: 16px; list-style-type: disc; font-size: 13.5px; }
.gn-toc-list a { color: var(--ink-2); }
.gn-toc-list a:hover { color: var(--accent); }

.gn-prose {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.gn-prose p { margin: 0 0 16px; }
.gn-prose h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  scroll-margin-top: 90px;
}
.gn-prose h3 {
  font-size: 17px;
  margin: 20px 0 10px;
  scroll-margin-top: 90px;
}

.gn-author-box {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.gn-author-box img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.gn-author-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.gn-author-desc { font-size: 13px; color: var(--muted); margin: 0; }

.gn-single-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gn-aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.gn-aside-dark {
  background: var(--dark);
  border-color: var(--dark);
  border-top: 3px solid var(--accent);
}
.gn-aside-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.gn-aside-prod-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gn-aside-prod {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.gn-aside-prod:hover { background: var(--surface-2); color: var(--accent); }
.gn-aside-prod img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}
.gn-aside-prod-name {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gn-aside-prod-price { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: 3px; }

.gn-related-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .gn-single-layout { grid-template-columns: 1fr; }
  .gn-single-aside { position: static; }
}
@media (max-width: 768px) {
  .gn-single-main { padding: 20px; }
}
@media (max-width: 900px) {
  .gn-featured-post { grid-template-columns: 1fr; gap: 0; }
  .gn-featured-body { padding: 20px; }
}

/* 3-Region Support Directory */
.gn-branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gn-branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
/* 3-Tier Business Contact Center (CRO Optimized) */
.gn-contact-hub {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gn-hotline-hero {
  background: var(--dark);
  color: #f8fafc;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gn-hotline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.gn-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}
.gn-hotline-hero-num {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.gn-hotline-hero-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}
.gn-hotline-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-zalo {
  background: #0068ff;
  color: #ffffff;
}
.btn-zalo:hover {
  background: #0054cc;
  color: #ffffff;
}
.btn-dark-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-dark-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.gn-sales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gn-sales-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gn-sales-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.gn-sales-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gn-sales-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.gn-sales-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.gn-sales-num:hover { color: var(--accent); }
.gn-sales-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gn-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gn-mini-call:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.gn-mini-zalo { color: #0068ff; background: #eff6ff; border-color: #bfdbfe; }
.gn-mini-zalo:hover { background: #0068ff; border-color: #0068ff; color: #fff; }
.gn-mini-copy:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gn-mini-btn.is-copied, .btn.is-copied { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }

.gn-acct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gn-acct-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gn-acct-role { font-size: 13px; font-weight: 600; color: var(--ink); }
.gn-acct-note { font-weight: 400; color: var(--muted); }
.gn-acct-num { font-size: 16px; font-weight: 600; color: var(--ink); display: inline-block; margin-top: 2px; }
.gn-acct-card .gn-sales-actions { min-width: 196px; }

@media (max-width: 1024px) {
  .gn-sales-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gn-sales-grid { grid-template-columns: 1fr; }
  .gn-hotline-hero { padding: 16px; }
}

/* Single Product & Content Pages */
.gn-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gn-breadcrumb a { color: var(--muted); }
.gn-breadcrumb a:hover { color: var(--accent); }

.gn-single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}
.gn-single-gallery .gn-gallery-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gn-single-gallery .gn-gallery-frame img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border: 0;
  padding: 0;
}
.gn-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.gn-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.gn-trust-item svg { color: var(--accent); flex-shrink: 0; }
.gn-prod-sku-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.gn-prod-h1 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 14px; line-height: 1.3; }
.gn-pdf-inline { font-weight: 600; color: var(--accent); }
.gn-price-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
}
.gn-price-main { font-size: 26px; font-weight: 600; color: var(--accent); }
.gn-price-quote-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.gn-price-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.gn-buy-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}
.gn-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.gn-qty-box button {
  width: 36px;
  height: 40px;
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.gn-qty-box button:hover { background: #e2e8f0; }
.gn-qty-box input {
  width: 52px;
  height: 40px;
  border: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.gn-secondary-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 4-Tab B2B Product Details */
.gn-prod-tabs-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}
.gn-prod-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow-x: auto;
}
.gn-tab-btn {
  padding: 14px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.gn-tab-btn:hover { color: var(--ink); }
.gn-tab-btn.active {
  background: var(--surface);
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.gn-tab-panel { display: none; padding: 28px; }
.gn-tab-panel.active { display: block; }
@media (max-width: 640px) {
  .gn-trust-strip { grid-template-columns: 1fr; }
  .gn-tab-panel { padding: 20px; }
}
.gn-spec-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
}
.gn-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.gn-spec-row:last-child { border-bottom: 0; }

.gn-article-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 900px;
  margin: 16px auto 48px;
}
.gn-article-box h2 { margin-top: 24px; font-size: 20px; }
.gn-article-box h3 { margin-top: 18px; font-size: 17px; }
.gn-article-box ul, .gn-article-box ol { padding-left: 20px; }
.gn-article-box li { margin-bottom: 6px; }

/* Shop Layout with Smart Collapsible Sidebar & Mobile-First Grid */
.gn-shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 12px 0 48px;
}
.gn-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.gn-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.gn-sidebar-close {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}
.gn-sidebar-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.gn-cat-tree { list-style: none; margin: 0; padding: 0; }
.gn-cat-tree li { margin-bottom: 2px; }
.gn-tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gn-tree-row > a {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 5px;
}
.gn-tree-row > a:hover, .gn-tree-parent.active > .gn-tree-row > a {
  background: var(--accent-soft);
  color: var(--accent);
}
.gn-tree-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.gn-tree-toggle:hover { background: var(--surface-2); color: var(--ink); }
.gn-tree-parent.is-open > .gn-tree-row .gn-tree-toggle { transform: rotate(180deg); }
.gn-tree-children {
  display: none;
  list-style: none;
  padding: 2px 0 6px 12px;
  margin: 0 0 4px 8px;
  border-left: 1px solid var(--border);
}
.gn-tree-parent.is-open > .gn-tree-children { display: block; }
.gn-tree-children a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 4px;
}
.gn-tree-children a:hover, .gn-tree-children li.active > a {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.gn-sidebar-cta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Category Header Banner */
.gn-cat-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gn-cat-banner-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gn-cat-banner h1 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.gn-cat-count-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.gn-cat-banner-desc { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 680px; }

/* Horizontal Sub-category Filter Pills */
.gn-cat-subpills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}
.gn-subpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.gn-subpill span { font-size: 11.5px; color: var(--muted); }
.gn-subpill:hover, .gn-subpill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.gn-subpill:hover span, .gn-subpill.active span { color: rgba(255, 255, 255, 0.85); }

/* Shop Toolbar */
.gn-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13px;
}
.gn-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gn-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.gn-result-count { color: var(--muted); }
.gn-sort-form { display: inline-flex; align-items: center; gap: 8px; }
.gn-sort-label { color: var(--muted); font-size: 13px; }
.gn-sort-select {
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.gn-shop-main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.gn-product-card {
  min-width: 0;
}
/* Responsive Shop Grid (3 cols Desktop -> 2 cols Tablet & Mobile!) */
.gn-shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .gn-shop-layout { grid-template-columns: minmax(0, 1fr); }
  .gn-sidebar { display: none; margin-bottom: 16px; }
  .gn-sidebar.open { display: block; }
  .gn-sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
  .gn-mobile-filter-btn { display: inline-flex; }
  .gn-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 640px) {
  .gn-cat-banner { padding: 16px; }
  .gn-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gn-shop-grid .gn-product-body { padding: 10px; }
  .gn-shop-grid .gn-product-title { font-size: 13px; min-height: 36px; }
  .gn-shop-grid .gn-product-actions .btn { padding: 7px 6px; font-size: 12px; }
  .gn-sort-label { display: none; }
}

/* Forms & Quote Modal */
.gn-form-group { margin-bottom: 14px; }
.gn-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.gn-form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
}
.gn-form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1); }
.gn-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.gn-consent-box input { margin-top: 3px; flex-shrink: 0; }
.gn-alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bbf7d0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.gn-alert-err { background: var(--accent-soft); color: var(--accent); border: 1px solid #fecaca; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }

.gn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gn-modal-backdrop.open { display: flex; }
.gn-modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.gn-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gn-modal-close { background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; padding: 4px 8px; }

/* Footer */
.gn-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 48px 0 24px;
  border-top: 3px solid var(--accent);
}
.gn-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gn-footer h3 { color: #f8fafc; font-size: 15px; margin-bottom: 14px; }
.gn-footer p, .gn-footer li { font-size: 13.5px; color: #cbd5e1; margin: 0 0 8px; }
.gn-footer ul { list-style: none; padding: 0; margin: 0; }
.gn-footer a { color: #cbd5e1; }
.gn-footer a:hover { color: #ffffff; }
.gn-bct-badge img { max-width: 168px; height: auto; margin-top: 8px; }
.gn-footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
}

/* Corporate Profile Page (page-gioi-thieu.php) */
.gn-about-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 44px;
}
.gn-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gn-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.gn-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.gn-pillar-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.gn-pillar-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.gn-supply-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gn-supply-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gn-supply-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.gn-supply-num { font-size: 13px; font-weight: 600; color: var(--accent); }
.gn-supply-card h3 { font-size: 16px; margin: 0; color: var(--ink); }
.gn-supply-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; flex: 1; }

.gn-legal-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.gn-legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
}
.gn-bct-verify-card {
  background: var(--dark);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 1024px) {
  .gn-pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-supply-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gn-pillar-grid, .gn-supply-grid { grid-template-columns: 1fr; }
}

/* Mobile Quick Action Bar */
.gn-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  padding: 8px 12px;
  gap: 8px;
  z-index: 80;
}

/* Pagination */
.gn-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.gn-pagination .page-numbers {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font-mono);
}
.gn-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .gn-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .gn-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gn-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gn-product-grid.gn-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gn-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gn-shop-layout { grid-template-columns: minmax(0, 1fr); }
  .gn-single-product-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  .gn-topbar-meta:last-child { display: none; }
  .gn-search { display: none; }
  .gn-header-actions .btn-primary { display: none; }
  .gn-mobile-toggle { display: inline-flex; }
  .gn-nav-bar { display: none; }
  .gn-nav-bar.open { display: block; }
  .gn-nav-list { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .gn-stats-row { grid-template-columns: repeat(2, 1fr); }
  .gn-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gn-news-grid, .gn-branch-grid { grid-template-columns: 1fr; }
  .gn-hotline-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-footer-grid { grid-template-columns: 1fr; }
  .gn-article-box { padding: 20px; }
  .gn-mobile-bar { display: flex; }
}
