/*
Theme Name:  GiaInox — Giá Inox 304
Theme URI:   https://anvinasoft.com
Author:      Anvinasoft
Author URI:  https://anvinasoft.com
Description: Theme theo dõi giá inox 304 thời gian thực. Tối ưu SEO, accessibility WCAG 2.1 AA, hiệu năng Core Web Vitals. Hỗ trợ biểu đồ giá, bảng giá nhiều loại inox 304.
Version:     1.0.1
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giainox
Tags:        inox, steel, price-tracker, vietnamese, seo, responsive
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Green palette (giống maythichgi.com)
═══════════════════════════════════════════════════════════ */
:root {
  /* Greens (primary brand — đồng bộ maythichgi.com) */
  --blue-900: #0e3b1a;
  --blue-800: #145220;
  --blue-700: #1a6b28;
  --blue-600: #2e9e2e;
  --blue-500: #38b838;
  --blue-400: #5cc85c;
  --blue-300: #8fda8f;
  --blue-100: #e8f7e8;
  --blue-50:  #f2fbf2;

  /* Steel / Neutral accents */
  --steel-700: #3a4a3a;
  --steel-500: #6b806b;
  --steel-300: #b0c8b0;
  --steel-100: #ecf4ec;

  /* Semantic */
  --color-bg:       #f5fbf5;
  --color-surface:  #ffffff;
  --color-border:   #d0e8d0;
  --color-text:     #1a2a1a;
  --color-muted:    #5a7a5a;
  --color-up:       #1a7a2e;
  --color-down:     #c0392b;

  /* Typography — giống maythichgi.com (Merriweather heading + Nunito body) */
  --font-sans:  'Nunito', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(46,158,46,.10), 0 1px 2px rgba(46,158,46,.06);
  --shadow-md: 0 4px 16px rgba(46,158,46,.12), 0 2px 6px rgba(46,158,46,.08);
  --shadow-lg: 0 10px 40px rgba(46,158,46,.15), 0 4px 12px rgba(46,158,46,.10);

  /* Transition */
  --transition: 220ms cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); }

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-800); }
a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 2px; }
button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--blue-600);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════════ */
#topbar {
  background: var(--blue-900);
  color: rgba(255,255,255,.82);
  font-size: .8125rem;
  padding-block: .35rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.topbar-item svg { flex-shrink: 0; }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: #fff; }
.topbar-hotline {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
}
.topbar-hotline a { color: #fff; font-weight: 700; letter-spacing: .02em; }
.topbar-hotline a:hover { color: var(--blue-300); }
.dot {
  width: 7px; height: 7px;
  background: #34d399;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  50%       { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

/* ═══════════════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--blue-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 16px rgba(12,45,69,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--blue-300); }
.site-logo img { height: 44px; width: auto; }
.logo-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo div { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo span:first-child { font-size: 1.1rem; color: #fff; }
.site-logo .sub { font-size: .72rem; color: var(--blue-300); font-weight: 500; }

/* Primary Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
}
.primary-nav a {
  display: block;
  padding: .45rem .85rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,.18); }
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO — Breadcrumb + H1
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
  padding-block: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-top: .5rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.page-hero .subtitle {
  color: var(--blue-300);
  font-size: .95rem;
  margin-top: .4rem;
  font-weight: 500;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.4); }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,.9); }

/* ═══════════════════════════════════════════════════════════
   PRICE HERO — Giá mua / bán
═══════════════════════════════════════════════════════════ */
.price-hero-section {
  background: var(--color-surface);
  padding-block: 2rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.price-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.price-card {
  background: var(--blue-50);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-card.buy::before  { background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); }
.price-card.sell::before { background: linear-gradient(90deg, var(--steel-700), var(--steel-500)); }

.price-card .label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.price-card .value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--blue-800);
  line-height: 1;
  margin-bottom: .3rem;
}
.price-card .unit {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: .6rem;
}
.change-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.change-badge.up   { background: #d1fae5; color: var(--color-up); }
.change-badge.down { background: #fee2e2; color: var(--color-down); }

/* Unit Switcher */
.unit-switcher {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.unit-btn {
  padding: .4rem 1rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: .8125rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.unit-btn:hover  { border-color: var(--blue-400); color: var(--blue-600); background: var(--blue-50); }
.unit-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   TRUST BADGES
═══════════════════════════════════════════════════════════ */
.trust-section {
  background: var(--blue-900);
  padding-block: 1.5rem;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: rgba(255,255,255,.9);
}
.trust-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.trust-item span {
  font-size: .77rem;
  color: var(--blue-300);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   BẢNG GIÁ INOX
═══════════════════════════════════════════════════════════ */
.table-section {
  padding-block: 2.5rem;
  background: var(--color-bg);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
  position: relative;
  padding-left: 1rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: .2em;
  width: 4px;
  height: calc(100% - .4em);
  background: var(--blue-600);
  border-radius: 2px;
}
.update-time {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--color-muted);
  background: var(--color-surface);
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}
.update-dot {
  width: 6px; height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Table */
.price-table-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.price-table thead {
  background: var(--blue-800);
  color: #fff;
}
.price-table thead th {
  padding: .85rem 1.1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.price-table thead th:not(:first-child) { text-align: right; }

.price-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: var(--blue-50); }
.price-table tbody td {
  padding: .85rem 1.1rem;
  vertical-align: middle;
}
.price-table tbody td:not(:first-child) { text-align: right; }

.group-head td {
  background: var(--steel-100);
  color: var(--steel-700);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .5rem 1.1rem !important;
}
.product-name { font-weight: 600; color: var(--color-text); }
.spec-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .7rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: var(--radius-sm);
  margin-left: .35rem;
}
.unit-label { color: var(--color-muted); font-size: .82rem; }
.buy-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-700);
}
.sell-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--steel-700);
}

/* ═══════════════════════════════════════════════════════════
   CHART
═══════════════════════════════════════════════════════════ */
.chart-section {
  padding-block: 2.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.chart-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
  padding-left: 1rem;
  position: relative;
}
.chart-title::before {
  content: '';
  position: absolute;
  left: 0; top: .2em;
  width: 4px;
  height: calc(100% - .4em);
  background: var(--blue-500);
  border-radius: 2px;
}
.chart-range-btns {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.range-btn {
  padding: .3rem .75rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.range-btn:hover  { border-color: var(--blue-400); color: var(--blue-600); }
.range-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chart-wrapper {
  height: 320px;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   THÔNG TIN INOX 304 — Info cards
═══════════════════════════════════════════════════════════ */
.info-section {
  padding-block: 2.5rem;
  background: var(--color-bg);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-card-icon {
  width: 48px; height: 48px;
  background: var(--blue-100);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .5rem;
}
.info-card p {
  font-size: .875rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.spec-list {
  list-style: none;
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.spec-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--color-muted);
}
.spec-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   BANNER
═══════════════════════════════════════════════════════════ */
.banner-section {
  padding-block: 1.5rem;
  background: var(--color-bg);
}
.banner-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.banner-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.banner-link img { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════
   CONTENT ARTICLE
═══════════════════════════════════════════════════════════ */
.content-section {
  padding-block: 2.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.content-section .entry-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--blue-900);
}
.content-section .entry-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: var(--blue-800);
}
.content-section .entry-content p { margin-bottom: 1rem; }
.content-section .entry-content ul,
.content-section .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-section .entry-content li { margin-bottom: .35rem; }
.content-section .entry-content strong { color: var(--blue-800); }
.content-section .entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.content-section .entry-content th,
.content-section .entry-content td {
  padding: .6rem .9rem;
  border: 1px solid var(--color-border);
}
.content-section .entry-content th { background: var(--blue-50); font-weight: 700; }

/* Default content (fallback) */
.default-content {
  text-align: center;
  padding-block: 2rem;
  color: var(--color-muted);
  font-style: italic;
  font-size: .9rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#site-footer { background: var(--blue-900); color: rgba(255,255,255,.8); }
.footer-main { padding-block: 3rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}
.footer-logo-text img { max-height: 40px; margin-bottom: .5rem; }
.footer-desc {
  font-size: .855rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .45rem;
  font-size: .875rem;
}
.footer-contact-item svg { fill: var(--blue-300); flex-shrink: 0; width: 16px; height: 16px; }
.footer-contact-item a { color: rgba(255,255,255,.8); transition: color var(--transition); }
.footer-contact-item a:hover { color: #fff; }
.footer-heading {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a::before {
  content: '›';
  font-size: 1rem;
  color: var(--blue-400);
  line-height: 1;
}
.footer-links a:hover { color: #fff; padding-left: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom-inner a { color: rgba(255,255,255,.65); }
.footer-bottom-inner a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-800);
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms ease, opacity 280ms ease;
    opacity: 0;
    z-index: 400;
    box-shadow: 0 8px 24px rgba(12,45,69,.3);
  }
  .primary-nav.open { max-height: 480px; opacity: 1; }
  #site-header { position: sticky; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: .5rem; }
  .primary-nav a { padding: .65rem 1rem; border-radius: var(--radius-sm); }

  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .price-hero-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .chart-wrapper { height: 240px; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .table-section { overflow-x: auto; }
  .price-table { font-size: .8rem; }
  .price-table thead th,
  .price-table tbody td { padding: .65rem .75rem; }
}

/* ═══════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════ */
@media print {
  #topbar, #site-header, .banner-section,
  .menu-toggle, .unit-switcher, .chart-section { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .price-card { border: 1px solid #ccc; box-shadow: none; }
  .price-table-wrap { box-shadow: none; border: 1px solid #ccc; }
}

/* ── WordPress Core ────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-muted); text-align: center; margin-top: .35rem; }
