/*
Theme Name:  GiaThepHop
Theme URI:   https://giathephop.vn
Description: WordPress theme chuyên trang giá thép hộp Việt Nam — chuẩn SEO, hiệu năng cao, thiết kế chuyên nghiệp.
Author:      Anvinasoft
Author URI:  https://anvinasoft.com
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: giathephop
Tags:        one-column, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* ══════════════════════════════════════════════════════════════
   0. CUSTOM PROPERTIES
══════════════════════════════════════════════════════════════ */
:root {
  /* Brand — Steel Blue */
  --blue-900:   #1e3a5f;
  --blue-800:   #1e40af;
  --blue-700:   #1d4ed8;
  --blue-600:   #1a56db;
  --blue-500:   #2563eb;
  --blue-400:   #3b82f6;
  --blue-100:   #dbeafe;
  --blue-50:    #eff6ff;

  /* Accent — Steel Orange */
  --orange-500: #f97316;
  --orange-400: #fb923c;

  /* Neutral */
  --gray-950:  #0a0f1e;
  --gray-900:  #111827;
  --gray-800:  #1f2937;
  --gray-700:  #374151;
  --gray-600:  #4b5563;
  --gray-400:  #9ca3af;
  --gray-200:  #e5e7eb;
  --gray-100:  #f3f4f6;
  --gray-50:   #f9fafb;
  --white:     #ffffff;

  /* Semantic */
  --color-primary:   var(--blue-600);
  --color-primary-dark: var(--blue-800);
  --color-accent:    var(--orange-500);
  --color-text:      var(--gray-900);
  --color-text-mute: var(--gray-600);
  --color-border:    var(--gray-200);
  --color-surface:   var(--white);
  --color-bg:        var(--gray-50);

  /* Status */
  --color-up:   #16a34a;
  --color-down: #dc2626;

  /* Typography */
  --font-sans:  'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Cascadia Code', monospace;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --shadow-card:0 2px 8px rgba(26,86,219,.10), 0 0 0 1px rgba(26,86,219,.06);

  /* Transition */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  180ms;
}

/* ══════════════════════════════════════════════════════════════
   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);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

/* ── Accessibility ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--color-primary); color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999; font-size: .9rem;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; overflow: hidden;
  padding: 0; position: absolute;
  white-space: nowrap;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ══════════════════════════════════════════════════════════════
   2. TOPBAR
══════════════════════════════════════════════════════════════ */
#topbar {
  background: var(--blue-900);
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.topbar-item a,
.topbar-hotline a {
  color: rgba(255,255,255,.85);
  transition: color var(--dur);
}
.topbar-item a:hover,
.topbar-hotline a:hover { color: var(--white); text-decoration: none; }

.topbar-hotline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--white);
}
.topbar-hotline .dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ══════════════════════════════════════════════════════════════
   3. SITE HEADER
══════════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--blue-600);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--blue-600);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.site-logo div { line-height: 1.2; }
.site-logo span       { display: block; font-size: 1.05rem; font-weight: 800; color: var(--gray-900); }
.site-logo span.sub   { font-size: .7rem; font-weight: 500; color: var(--color-text-mute); }

/* Nav */
.primary-nav { margin-inline-start: auto; }
.primary-nav ul, .primary-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.primary-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color var(--dur), background var(--dur);
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--blue-600);
  background: var(--blue-50);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-inline-start: auto;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--dur), opacity var(--dur);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   4. HERO
══════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
  padding-block: var(--space-10) var(--space-8);
  color: var(--white);
  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.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-block: var(--space-3);
}
.page-hero .subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); text-decoration: none; }
.breadcrumb .sep { color: rgba(255,255,255,.4); }

/* ══════════════════════════════════════════════════════════════
   5. PRICE HERO — Giá mua / bán
══════════════════════════════════════════════════════════════ */
.price-hero-section {
  background: var(--white);
  padding-block: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.price-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.price-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.price-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: .06;
  background: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 1px, transparent 8px);
}

.price-card.buy  { background: linear-gradient(135deg, #0f2d6b, #1a56db); color: var(--white); }
.price-card.sell { background: linear-gradient(135deg, #7c2d12, #ea580c); color: var(--white); }

.price-card .label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: var(--space-2);
}
.price-card .value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: var(--space-2);
}
.price-card .unit {
  font-size: .8rem;
  opacity: .75;
  margin-bottom: var(--space-3);
}

/* Trạng thái đang cập nhật */
.updating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: var(--space-1) var(--space-3);
  font-size: .75rem;
  font-weight: 600;
}
.updating-badge .spin {
  width: 10px; height: 10px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Change badge (dùng khi có dữ liệu thực) */
.change-badge {
  display: inline-block;
  border-radius: 100px;
  padding: var(--space-1) var(--space-3);
  font-size: .75rem;
  font-weight: 700;
}
.change-badge.up   { background: rgba(22,163,74,.2); color: #4ade80; }
.change-badge.down { background: rgba(220,38,38,.2); color: #fca5a5; }

/* Unit Switcher */
.unit-switcher {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
.unit-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 2px solid transparent;
  transition: all var(--dur);
}
.unit-btn:hover { background: var(--blue-50); color: var(--blue-600); }
.unit-btn.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

/* ══════════════════════════════════════════════════════════════
   6. TRUST SECTION
══════════════════════════════════════════════════════════════ */
.trust-section {
  background: var(--blue-900);
  padding-block: var(--space-6);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
}
.trust-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trust-item strong { display: block; font-size: .88rem; font-weight: 700; }
.trust-item span   { display: block; font-size: .75rem; opacity: .7; }

/* ══════════════════════════════════════════════════════════════
   7. BẢNG GIÁ THÉP HỘP
══════════════════════════════════════════════════════════════ */
.table-section {
  padding-block: var(--space-12);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--gray-900);
  position: relative;
  padding-left: var(--space-4);
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 10%;
  width: 4px; height: 80%;
  background: var(--blue-600);
  border-radius: 4px;
}
.update-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .8rem;
  color: var(--color-text-mute);
}
.update-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Price table */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.price-table {
  min-width: 600px;
  background: var(--white);
}
.price-table thead tr {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
}
.price-table thead th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}
.price-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.price-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.price-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--dur);
}
.price-table tbody tr:hover { background: var(--blue-50); }
.price-table tbody tr:last-child { border-bottom: none; }

.price-table tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: .9rem;
  vertical-align: middle;
}

/* Group heading */
.price-table tr.group-head td {
  background: var(--gray-100);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--gray-200);
}

.product-name { font-weight: 600; color: var(--gray-800); }
.spec-label   { font-size: .78rem; color: var(--color-text-mute); display: block; }
.unit-label   { font-size: .82rem; color: var(--color-text-mute); }

/* Giá đang cập nhật */
.price-updating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .82rem;
  color: var(--blue-600);
  font-weight: 600;
}
.price-updating .spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--blue-200, #bfdbfe);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   8. BIỂU ĐỒ GIÁ
══════════════════════════════════════════════════════════════ */
.chart-section {
  background: var(--white);
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.chart-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  position: relative;
  padding-left: var(--space-4);
}
.chart-title::before {
  content: '';
  position: absolute; left: 0; top: 10%;
  width: 4px; height: 80%;
  background: var(--blue-600);
  border-radius: 4px;
}
.chart-range-btns {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.range-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid transparent;
  transition: all var(--dur);
}
.range-btn:hover { color: var(--blue-600); background: var(--blue-50); }
.range-btn.active {
  background: var(--blue-600);
  color: var(--white);
}
.chart-wrapper {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: var(--space-4);
}
.chart-wrapper canvas { max-height: 290px !important; }

/* Overlay đang cập nhật (lên trên canvas) */
.chart-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: rgba(249,250,251,.85);
  border-radius: var(--radius-lg);
  font-size: .9rem;
  color: var(--gray-600);
  font-weight: 600;
}
.chart-overlay .big-spin {
  width: 36px; height: 36px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   9. BANNER
══════════════════════════════════════════════════════════════ */
.banner-section { padding-block: var(--space-8); }
.banner-link { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.banner-link img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* ══════════════════════════════════════════════════════════════
   10. CONTENT / ARTICLE
══════════════════════════════════════════════════════════════ */
.content-section { padding-block: var(--space-12); }
.content-section .container > article,
.content-section .container > .entry-content {
  max-width: 820px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.entry-content h2,
.entry-content h3 {
  font-weight: 800;
  margin-block: var(--space-6) var(--space-3);
  color: var(--gray-900);
}
.entry-content h2 { font-size: 1.35rem; }
.entry-content h3 { font-size: 1.1rem; }
.entry-content p  { margin-bottom: var(--space-4); }
.entry-content ul, .entry-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  list-style: disc;
}
.entry-content a { color: var(--blue-600); }
.entry-content a:hover { text-decoration: underline; }

/* Default content placeholder */
.default-content {
  padding: var(--space-8);
  text-align: center;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--blue-100);
  color: var(--color-text-mute);
}

/* ══════════════════════════════════════════════════════════════
   11. FOOTER
══════════════════════════════════════════════════════════════ */
#site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.footer-main {
  background: var(--gray-900);
  padding-block: var(--space-12) var(--space-8);
  color: rgba(255,255,255,.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
}
.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer-desc {
  font-size: .85rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .85rem;
  margin-bottom: var(--space-3);
}
.footer-contact-item svg { flex-shrink: 0; fill: var(--blue-400); width: 16px; height: 16px; }
.footer-contact-item a { color: rgba(255,255,255,.8); }
.footer-contact-item a:hover { color: var(--white); }

.footer-heading {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links li a {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  transition: color var(--dur);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-links li a::before {
  content: '›';
  color: var(--blue-400);
  font-weight: 700;
}
.footer-links li a:hover { color: var(--white); }

.footer-bottom {
  background: var(--gray-950);
  padding-block: var(--space-4);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-inner a { color: rgba(255,255,255,.6); }
.footer-bottom-inner a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   12. SINGULAR / 404 / INDEX
══════════════════════════════════════════════════════════════ */
.singular-content,
.archive-content,
.not-found-content {
  padding-block: var(--space-12);
}
.not-found-content {
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.not-found-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
}
.not-found-content p { color: var(--color-text-mute); max-width: 400px; }
.btn-primary {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background var(--dur);
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-700); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   13. WIDGET
══════════════════════════════════════════════════════════════ */
.widget { margin-bottom: var(--space-6); }
.widget-title {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-3);
  color: var(--gray-700);
  border-bottom: 2px solid var(--blue-600);
  padding-bottom: var(--space-2);
}

/* ══════════════════════════════════════════════════════════════
   14. RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle   { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
    z-index: 50;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul, .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: var(--space-3); border-radius: var(--radius-sm); }

  .price-hero-grid { grid-template-columns: 1fr; }
  .trust-grid      { grid-template-columns: 1fr 1fr; }
  .footer-inner    { grid-template-columns: 1fr; gap: var(--space-8); }
  .chart-header    { flex-direction: column; align-items: flex-start; }
  .table-header    { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .trust-grid { grid-template-columns: 1fr; }
  .price-card { padding: var(--space-5); }
  .topbar-left { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   15. PRINT
══════════════════════════════════════════════════════════════ */
@media print {
  #topbar, #site-header .menu-toggle,
  .unit-switcher, .chart-section,
  .banner-section, #site-footer { display: none !important; }
  .price-card { box-shadow: none; border: 1px solid #ccc; }
}
