/*
Theme Name: Jiarui Lite
Theme URI: https://jiaruigongmao.1688.com
Author: Jinyun Jiarui Industry & Trade Co., Ltd.
Author URI: https://jiaruigongmao.1688.com
Description: Ultra-light custom theme for the Jinyun Jiarui B2B site (Chainsaw Guide Bars & Ladders Manufacturer). Ported 1:1 from the static website-demo design — no framework, no CDN, no external fonts. Registers the "product" custom post type with the "product_line" taxonomy (guide-bar / ladder) and native meta fields. Polylang-compatible (text domain: jiarui).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jiarui
Tags: e-commerce, two-columns, custom-menu, translation-ready
*/

/* ============================================================
   The rules below are ported verbatim from website-demo/css/style.css
   (the single source of truth for the site's visual design).
   ============================================================ */

/* ==========================================================================
   GSB ChainBar Manufacturing — Global Stylesheet
   Pure hand-written CSS. No frameworks, no external fonts, no CDN.
   Mobile-first. Breakpoints: 768px, 1024px.
   ========================================================================== */

:root {
  --color-dark: #1f2937;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-text: #374151;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-soft: #f3f4f6;
  --color-bg-dark: #111827;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow-card: 0 1px 3px rgba(17, 24, 39, 0.08), 0 4px 14px rgba(17, 24, 39, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(17, 24, 39, 0.1), 0 12px 28px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --container: 1200px;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4 {
  color: var(--color-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn--accent:hover {
  background: #d97706;
  color: var(--color-bg-dark);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--block {
  display: block;
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-dark);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand:hover { color: var(--color-dark); }

.brand__mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--color-dark);
  border-radius: 6px;
}

.brand__name span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-dark);
}

.nav-toggle .icon-close { display: none; }

.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
}

.site-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-bg-soft);
}

.site-nav a:hover { color: var(--color-primary); }

.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  box-shadow: inset 3px 0 0 var(--color-primary);
  padding-left: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switch__item {
  padding: 6px 10px;
  color: var(--color-muted);
}

.lang-switch__item--active {
  background: var(--color-dark);
  color: #fff;
}

.lang-switch__item--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-dark) 60%, #2b3a55 100%);
  color: #e5e7eb;
  padding: 64px 0;
}

.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero .kicker {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: #9ca3af;
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__badges svg { color: var(--color-accent); }

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }

.feature-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Category cards ---------- */

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.category-card__body {
  padding: 20px 22px 24px;
}

.category-card h3 { margin-bottom: 6px; }

.category-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.category-card .link-more {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Stats banner ---------- */

.stats {
  background: var(--color-bg-dark);
  color: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 18px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}

.stat span {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--color-dark);
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
}

.faq details[open] summary::after { content: "\2212"; }

.faq .faq__answer {
  padding: 0 20px 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.faq .faq__answer p { margin: 0; }

/* ---------- CTA strip ---------- */

.cta-strip {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 52px 0;
}

.cta-strip h2 { color: #fff; }

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ---------- Products page ---------- */

.page-hero {
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-dark));
  color: #d1d5db;
  padding: 46px 0;
}

.page-hero h1 { color: #fff; margin-bottom: 8px; }

.page-hero p { margin: 0; max-width: 700px; color: #9ca3af; }

.breadcrumb {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 14px;
}

.breadcrumb a { color: #d1d5db; }
.breadcrumb a:hover { color: #fff; }

.filter-bar {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.filter-bar__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.filter-bar__label {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-right: 4px;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-bg-soft);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.product-card__media {
  position: relative;
  background: var(--color-bg-soft);
}

.product-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 22px;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.spec-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--color-bg-soft);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-bg-soft);
}

.spec-list .k { color: var(--color-muted); }

.spec-list .v {
  font-weight: 600;
  color: var(--color-dark);
  text-align: right;
}

.product-card .btn { margin-top: auto; }

.product-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 20px;
  scroll-margin-top: 140px;
}

.product-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.demo-note {
  margin-top: 44px;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: #92400e;
}

/* ---------- About page ---------- */

.two-col {
  display: grid;
  gap: 32px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.facts li {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.facts b {
  display: block;
  font-size: 1.25rem;
  color: var(--color-dark);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--color-border);
}

.timeline li {
  position: relative;
  padding: 0 0 30px 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--color-primary);
}

.timeline .year {
  display: inline-block;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline h3 { margin-bottom: 4px; font-size: 1.02rem; }

.timeline p { color: var(--color-muted); font-size: 0.92rem; margin: 0; }

/* Certificates */

.cert-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cert-card__badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-accent);
}

.cert-card p { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Blog page ---------- */

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.post-card__meta .cat {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.post-card h2 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.post-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  flex: 1;
}

/* ---------- Contact page ---------- */

.map-placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    #eceef1 0,
    #eceef1 14px,
    #e4e7ea 14px,
    #e4e7ea 28px
  );
  border: 1px dashed #c7cdd4;
  border-radius: var(--radius);
  min-height: 300px;
  color: var(--color-muted);
  padding: 32px;
}

.map-placeholder svg { color: var(--color-primary); }

.map-placeholder strong { color: var(--color-dark); }

.contact-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-bg-soft);
  font-size: 0.95rem;
}

.contact-info li:last-child { border-bottom: none; }

.contact-info svg {
  flex: 0 0 auto;
  color: var(--color-primary);
  margin-top: 3px;
}

.contact-info b {
  display: block;
  color: var(--color-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

/* Form */

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-field .req { color: #dc2626; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-dark);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: var(--color-primary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 4px 0 0;
}

/* Team */

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.team-card__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-soft);
  display: grid;
  place-items: center;
  color: #9ca3af;
}

.team-card h3 { margin-bottom: 2px; }

.team-card .role {
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.team-card p { color: var(--color-muted); font-size: 0.88rem; margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-dark);
  color: #9ca3af;
  font-size: 0.9rem;
  padding: 52px 0 0;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-nav ul,
.footer-nap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { margin-bottom: 8px; }

.footer-nap li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-nap svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--color-accent);
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 320px;
}

.footer-certs {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-certs span {
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d1d5db;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  font-size: 0.8rem;
  text-align: center;
  color: #6b7280;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  max-width: 900px;
  margin: 0 auto 10px;
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Breakpoint: >= 768px
   ========================================================================== */

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }

  .section { padding: 76px 0; }

  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .site-nav a {
    padding: 8px 14px;
    border-bottom: none;
    border-radius: 6px;
    font-size: 0.92rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--color-primary);
    border-radius: 6px 6px 0 0;
    padding-left: 14px;
  }

  .hero { padding: 90px 0; }
  .hero h1 { font-size: 2.7rem; }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .stats__grid { grid-template-columns: repeat(4, 1fr); }

  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }

  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }

  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .form-field--full { grid-column: 1 / -1; }
}

/* ==========================================================================
   Breakpoint: >= 1024px
   ========================================================================== */

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3-lg { grid-template-columns: repeat(3, 1fr); }

  .hero h1 { font-size: 3rem; }

  .stat b { font-size: 2.5rem; }
}

/* ==========================================================================
   Product detail & blog article pages
   ========================================================================== */

.breadcrumb--light {
  color: var(--color-muted);
  margin: 18px 0 0;
}

.breadcrumb--light a { color: var(--color-primary); }
.breadcrumb--light a:hover { color: var(--color-primary-dark); }

.pd-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}

.pd-main-img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.pd-thumbs img {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pd-thumbs img {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.pd-thumbs img:hover {
  border-color: var(--color-primary);
}

.pd-thumbs img.is-active {
  border-color: var(--color-primary);
  border-width: 2px;
}

.pd-tag {
  display: inline-block;
  background: var(--color-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pd-info h1 { font-size: 1.65rem; }

.pd-sub {
  color: var(--color-muted);
  margin-bottom: 18px;
}

.pd-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.pd-points li {
  display: flex;
  gap: 9px;
  padding: 5px 0;
  font-size: 0.95rem;
}

.pd-points svg {
  flex: 0 0 auto;
  color: var(--color-accent);
  margin-top: 4px;
}

.pd-partno {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.pd-partno b {
  color: var(--color-dark);
  font-size: 1.05rem;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--disabled {
  background: var(--color-bg-soft);
  color: var(--color-muted);
  border: 2px solid var(--color-border);
  cursor: not-allowed;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

.spec-table th {
  background: var(--color-bg-soft);
  color: var(--color-dark);
  font-weight: 600;
  width: 42%;
}

.chain-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.chain-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.chain-card .btn { margin-top: auto; }

.product-card h3 a,
.post-card h2 a { color: inherit; }

.product-card h3 a:hover,
.post-card h2 a:hover { color: var(--color-primary); }

.product-card__media a { display: block; }

.article-header {
  max-width: 820px;
  margin: 0 auto 24px;
}

.article-header h1 { font-size: 1.9rem; }

.article-hero {
  max-width: 820px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}

.article-body h3 { margin-top: 1.4em; }

.article-body li { margin-bottom: 6px; }

.article-body .spec-table { margin: 18px 0; }

.more-posts {
  max-width: 820px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.more-posts h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.more-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more-posts li { margin-bottom: 8px; }

@media (min-width: 768px) {
  .pd-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .pd-info h1 { font-size: 2.1rem; }

  .article-header h1 { font-size: 2.3rem; }
}
