/*
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; }

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;
}

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%; }

/* Navigation Bar */
.gn-nav-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.gn-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.gn-nav-list > li > a {
  display: block;
  padding: 10px 14px;
  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-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.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.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-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;
}
.gn-hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.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);
}
.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: 32px;
  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;
}
@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 img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.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 Sidebar */
.gn-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding: 16px 0 48px;
}
.gn-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.gn-sidebar-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.gn-cat-tree { list-style: none; margin: 0; padding: 0; }
.gn-cat-tree li { margin-bottom: 4px; }
.gn-cat-tree a {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 4px;
}
.gn-cat-tree a:hover, .gn-cat-tree li.active > a { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.gn-cat-tree ul { list-style: none; padding-left: 14px; margin: 2px 0 6px; }

/* 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;
}

/* 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: 1fr; }
  .gn-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gn-product-grid { grid-template-columns: repeat(3, 1fr); }
  .gn-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-shop-layout { grid-template-columns: 1fr; }
  .gn-single-product-grid { grid-template-columns: 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; }
}
