/*
Theme Name: CTMRI Parts
Theme URI: https://ctmri-parts.com
Author: CTMRI Parts
Author URI: https://ctmri-parts.com
Description: Custom WordPress theme for CTMRI Parts - Refurbished CT & MRI Parts supplier. Features configurable product catalog, news system, contact forms, and SEO optimization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ctmri-parts
Tags: b2b, medical, parts, catalog, seo, responsive
*/

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --brand: #051936;
  --brand-dark: #031028;
  --brand-light: #1A3A5C;
  --brand-soft: #EDF1F7;
  --brand-soft-strong: #D6DEEB;
  --accent: #C2151E;
  --accent-dark: #A01118;
  --accent-soft: #FDEEF0;
  --accent-text: #8B0F15;
  --success: #1DC981;
  --warning: #EFAA17;
  --danger: #E8463A;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FFFFFF;
  --bg-muted: #F7F8FA;
  --bg-dark: #051936;
  --border: #E5E7EB;
  --radius: 8px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: hidden;
}

body {
  font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

a {
  text-decoration: none; color: inherit;
}

img {
  max-width: 100%; display: block;
}

.container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--brand-dark); color: rgba(255,255,255,0.7);
  font-size: 13px; padding: 8px 0;
}

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}

.topbar-left {
  display: flex; gap: 24px; align-items: center;
}

.topbar-left a {
  display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); transition: color 0.2s;
}

.topbar-left a:hover {
  color: #fff;
}

.topbar-left svg {
  width: 14px; height: 14px; flex-shrink: 0;
}

.topbar-right {
  display: flex; align-items: center;
}

.topbar-search {
  display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); cursor: pointer; transition: color 0.2s; background: none; border: none; font-size: 13px; font-family: var(--font);
}

.topbar-search:hover {
  color: #fff;
}

.topbar-search svg {
  width: 14px; height: 14px; flex-shrink: 0;
}

/* ===== NAV ===== */
.nav {
  position: relative; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.is-sticky {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.98);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {
  height: 52px; width: auto;
  max-height: 52px;
  display: block;
  object-fit: contain;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex; gap: 32px; align-items: center;
}

.nav-links a {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  transition: color 0.2s; position: relative; padding: 4px 0;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a.active {
  color: var(--accent); font-weight: 600;
}

.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-cta {
  background: var(--accent); color: #fff; padding: 10px 24px;
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-dark); transform: translateY(-1px);
}

/* ===== HERO (Homepage - full viewport with gradient) ===== */
body.home .hero,
body.page-template-front-page .hero {
  background: linear-gradient(135deg, #031028 0%, #051936 40%, #0A2A4F 100%);
  color: #fff; padding: 60px 0 60px; position: relative; overflow: hidden; min-height: calc(100vh - 97px); display: flex; align-items: center;
}

body.home .hero::before,
body.page-template-front-page .hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('images/hero-banner.jpg') right center / contain no-repeat;
  opacity: 0.9;
}

body.home .hero::after,
body.page-template-front-page .hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,16,40,0.97) 0%, rgba(5,25,54,0.85) 40%, rgba(5,25,54,0.3) 60%, transparent 80%);
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}

.hero-content {
  position: relative; z-index: 2; max-width: 560px; text-align: left;
}

.hero-visual {
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; background: rgba(255,255,255,0.12); padding: 6px 16px;
  border-radius: var(--radius-full); margin-bottom: 20px; color: #7BAEDB;
}

.hero h1 {
  font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -1px;
}

.hero-tags {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 18px; color: #fff; font-weight: 600;
}

.hero-tags .dot {
  color: #F5A623; font-size: 22px; line-height: 1;
}

.hero-sub {
  font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.8); margin-bottom: 28px;
}

.hero-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px;
}

.hero-feature {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500;
}

.hero-feature-check {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(123,174,219,0.25);
  border: 1px solid rgba(123,174,219,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.hero-feature-check svg {
  width: 12px; height: 12px; color: #7BAEDB;
}

.hero-ctas {
  display: flex; gap: 16px;
}

.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 32px;
  border-radius: var(--radius-full); font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; box-shadow: 0 4px 16px rgba(194,21,30,0.4);
}

.btn-primary:hover {
  background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(194,21,30,0.5);
}

.btn-outline {
  background: transparent; color: #fff; padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.3); border-radius: var(--radius-full);
  font-size: 16px; font-weight: 600; transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,0.08);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-muted);
}

.section-head {
  text-align: center; margin-bottom: 40px;
}

.section-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 8px;
}

.section-title {
  font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.5px;
}

.section-sub {
  font-size: 16px; color: var(--text-muted); margin-top: 8px; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ===== BROWSE BY MODALITY ===== */
.modality-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.modality-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all 0.3s; cursor: pointer;
}

.modality-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--brand-light);
}

.modality-img {
  height: 200px; background-size: cover; background-position: center; position: relative;
}

.modality-img::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}

.modality-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: rgba(255,255,255,0.95); color: var(--brand); padding: 6px 14px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}

.modality-body {
  padding: 24px;
}

.modality-body h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
}

.modality-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}

.pill {
  font-size: 13px; color: var(--text-muted); background: var(--bg-muted);
  padding: 6px 14px; border-radius: var(--radius-full); font-weight: 500;
  transition: all 0.2s;
}

.pill:hover {
  background: var(--accent-soft); color: var(--accent);
}

.modality-link {
  color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}

.modality-link:hover {
  gap: 10px; transition: gap 0.2s;
}

/* ===== CONDITION GRADING ===== */
.grade-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}

.grade-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 2px solid var(--border); transition: all 0.3s; position: relative;
}

.grade-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}

.grade-card.featured {
  border-color: var(--brand); box-shadow: 0 8px 32px rgba(5,25,54,0.15);
}

.grade-card.featured::before {
  content: 'POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 16px; border-radius: var(--radius-full);
}

.grade-badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 6px 16px;
  border-radius: var(--radius-full); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}

.grade-badge.a {
  background: var(--brand-soft-strong); color: var(--brand);
}

.grade-badge.b {
  background: #CCFBF1; color: #0D9488;
}

.grade-badge.c {
  background: #F3F4F6; color: var(--text-muted);
}

.grade-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}

.grade-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; min-height: 67px;
}

.grade-price {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--success); display: flex; align-items: center; gap: 8px;
}

.grade-price-label {
  font-size: 12px; color: var(--text-muted); font-weight: 500; font-family: var(--font);
}

/* ===== STOCK TABLE ===== */
.stock-head {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px;
}

.stock-head-left .section-eyebrow {
  margin-bottom: 4px;
}

.stock-head-left .section-title {
  font-size: 28px;
}

.stock-view-all {
  color: var(--accent); font-size: 14px; font-weight: 600;
}

.stock-view-all:hover {
  text-decoration: underline;
}

.stock-table-wrap {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-sm);
}

.stock-table {
  width: 100%; border-collapse: collapse;
}

.stock-table th {
  background: var(--bg-muted); font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}

.stock-table th.center {
  text-align: center;
}

.stock-table th.right {
  text-align: right;
}

.stock-table td {
  padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle;
}

.stock-table tbody tr:hover {
  background: var(--bg-muted);
}

.stock-table tbody tr:last-child td {
  border-bottom: none;
}

.stock-table td.center {
  text-align: center;
}

.stock-table td.right {
  text-align: right;
}

.stock-name {
  font-weight: 600; color: var(--text);
}

.stock-pn {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-light); margin-top: 2px;
}

.stock-brand {
  font-weight: 600;
}

.stock-brand-model {
  font-size: 12px; color: var(--text-light); margin-top: 2px;
}

.stock-cond {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius);
}

.stock-cond.a {
  background: var(--brand-soft-strong); color: var(--brand);
}

.stock-cond.b {
  background: #CCFBF1; color: #0D9488;
}

.stock-cond.c {
  background: #F3F4F6; color: var(--text-muted);
}

.stock-price {
  font-family: var(--font-mono); font-weight: 700; font-size: 16px; color: var(--text);
}

.stock-oem {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-light); text-decoration: line-through;
}

.stock-save {
  font-size: 13px; font-weight: 600; color: var(--success);
}

.stock-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--success); font-weight: 500;
}

.stock-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(29,201,129,0.2);
}

.stock-inquire {
  display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius); transition: all 0.2s; white-space: nowrap;
}

.stock-inquire:hover {
  background: var(--accent-dark); transform: scale(1.05);
}

/* ===== TRUST STRIP ===== */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.trust-item {
  text-align: center; padding: 32px 16px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
}

.trust-num {
  font-size: 36px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 8px;
}

.trust-label {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}

.process-step {
  text-align: center; position: relative;
}

.process-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -12px; top: 28px; font-size: 20px; color: var(--border); z-index: 1;
}

.process-num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--brand-soft-strong);
}

.process-step h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}

.process-step p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

/* ===== COMPANY ===== */
.company-section {
  background: var(--bg-muted); padding: 64px 0;
}

.company-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

.company-text h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px;
}

.company-text p {
  font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px;
}

.company-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.company-feature {
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500;
}

.company-feature-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

.company-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 360px;
}

.company-img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: var(--radius-lg); padding: 48px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}

.cta-banner h2 {
  font-size: 28px; font-weight: 800; margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 24px;
}

.cta-banner .btn-white {
  background: var(--accent); color: #fff; padding: 14px 36px;
  border-radius: var(--radius-full); font-size: 16px; font-weight: 700; display: inline-block;
  transition: all 0.2s;
}

.cta-banner .btn-white:hover {
  background: var(--accent-dark); transform: scale(1.05);
}

/* ===== ABOUT/CONTACT CTA BANNER (section element) ===== */
section.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

section.cta-banner::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194,21,30,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

section.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

section.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brand-dark); color: rgba(255,255,255,0.7); padding: 64px 0 0;
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: inline-block; margin-bottom: 16px;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 0.85; }
.footer-logo img {
  height: 44px; width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px; line-height: 1.7; margin-bottom: 20px; max-width: 360px;
}

.footer-contact {
  display: flex; flex-direction: column; gap: 10px;
}

.footer-contact span {
  font-size: 14px; color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px;
}

.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 12px; transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; padding: 24px 0;
}

.footer-copy {
  font-size: 13px; color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex; gap: 12px;
}

.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 100px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,90,180,0.3);
}
.back-to-top:hover {
  background: #005ab4; transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,90,180,0.4);
}
.back-to-top.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .back-to-top {
    width: 42px; height: 42px; right: 16px; bottom: 80px;
  }
  .back-to-top svg { width: 18px; height: 18px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-cta {
    padding: 10px 20px;
    font-size: 14px;
  }

  body.home .hero,
  body.page-template-front-page .hero {
    min-height: calc(100vh - 100px); padding: 60px 0 80px;
  }

  /* Hero section: single column on tablet/mobile */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-content { max-width: 100%; }
  
  .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
  
  .hero-tags {
    font-size: 15px;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .hero-tags .dot { font-size: 16px; }
  
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  
  .hero-features {
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .hero-feature { font-size: 13px; }
  
  .hero-feature-check {
    width: 20px;
    height: 20px;
  }
  
  .hero-feature-check svg {
    width: 11px;
    height: 11px;
  }
  
  .hero-ctas { gap: 12px; }
  
  .btn-primary, .btn-outline {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* Homepage hero background: adjust for mobile */
  body.home .hero::before,
  body.page-template-front-page .hero::before {
    background-position: center bottom;
    background-size: 70%;
    opacity: 0.4;
  }
  
  body.home .hero::after,
  body.page-template-front-page .hero::after {
    background: linear-gradient(180deg, rgba(3,16,40,0.97) 0%, rgba(5,25,54,0.85) 50%, rgba(5,25,54,0.4) 100%);
  }

  .modality-grid, .grade-grid, .company-inner, .story {
    grid-template-columns: 1fr;
  }

  /* Hide In Stock Now table on mobile */
  #stock.section { display: none; }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  /* About page: story text sizing */
  .story-text h2 { font-size: 28px; }
  .story-image { min-height: 320px; }
  .badge-overlay { bottom: 16px; left: 16px; padding: 12px 16px; }
  .badge-overlay strong { font-size: 16px; }

  /* Section headers smaller on tablet */
  .section-header h2 { font-size: 26px; }
  .section-header { margin-bottom: 36px; }

  /* Stat number smaller on tablet */
  .stat-number { font-size: 36px; }
  .stat-label { font-size: 13px; }

  /* Process steps adjust */
  .process-step { padding: 24px 20px; }
  .process-number { font-size: 36px; }
  .process-step h3 { font-size: 16px; }
  .process-step p { font-size: 13px; }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stock-table th, .stock-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer {
    padding: 48px 0 0;
  }
}

/* ===== TOP-LEVEL RESET (applies to all screen sizes) ===== */
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== WORDPRESS NAV MENU FIX ===== */
.nav-links li {
  list-style: none;
}
.nav-links li a {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  transition: color 0.2s; position: relative; padding: 4px 0;
  text-decoration: none;
}
.nav-links li a:hover { color: var(--brand); }
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a {
  color: var(--accent); font-weight: 600;
}
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 2px;
}

/* ==================== Design System ==================== */
    :root {
  --brand: #051936;
      --brand-dark: #031028;
      --brand-light: #1A3A5C;
      --brand-soft: #EDF1F7;
      --brand-soft-strong: #D6DEEB;
      --accent: #C2151E;
      --accent-dark: #A01118;
      --accent-soft: #FDEEF0;
      --accent-text: #8B0F15;
      --success: #1DC981;
      --warning: #EFAA17;
      --danger: #E8463A;
      --text: #1A1A2E;
      --text-muted: #6B7280;
      --text-light: #9CA3AF;
      --bg: #FFFFFF;
      --bg-muted: #F7F8FA;
      --bg-dark: #051936;
      --border: #E5E7EB;
      --radius: 8px;
      --radius-card: 12px;
      --radius-lg: 16px;
      --radius-full: 999px;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
      --shadow: 0 4px 12px rgba(0,0,0,0.08);
      --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
      --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* ==================== Reset ==================== */
    *, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

button {
  cursor: pointer; font-family: inherit; border: none; background: none;
}

ul {
  list-style: none;
}

input, select {
  font-family: inherit;
}

/* ===== TOP BAR ===== */
    .topbar {
  background: var(--brand-dark); color: rgba(255,255,255,0.7);
      font-size: 13px; padding: 8px 0;
}

/* ==================== Navigation ==================== */
    .nav {
  position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
}

.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--brand);
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== Page Hero ==================== */
    .page-hero {
  background: url('images/products-hero.jpg') center center / cover no-repeat;
      color: #fff;
      padding: 80px 0 100px;
      text-align: center;
      position: relative;
      overflow: hidden;
      min-height: 520px;
      display: flex;
      align-items: center;
}

.page-hero::before {
  content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(3,16,40,0.92) 0%, rgba(5,25,54,0.85) 50%, rgba(26,58,92,0.8) 100%);
      z-index: 0;
}

.page-hero::after {
  content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(194,21,30,0.12) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
}

.page-hero .container {
  position: relative;
      z-index: 1;
      width: 100%;
}

.hero-badge {
  display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.9);
      padding: 7px 16px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px;
      height: 8px;
      background: var(--success);
      border-radius: 50%;
      animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================== Catalog Breadcrumb ==================== */
    .catalog-breadcrumb {
  padding: 16px 0 0;
      background: var(--bg-muted);
}

.breadcrumb {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.breadcrumb-list {
  display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--text-muted);
      flex-wrap: wrap;
}

/* ==================== Catalog Stats Bar ==================== */
    .catalog-stats {
  background: var(--bg);
      border-bottom: 1px solid var(--border);
      padding: 20px 0;
}

.catalog-stats-inner {
  display: flex;
      gap: 36px;
      flex-wrap: wrap;
      justify-content: center;
}

.catalog-stat {
  display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: center;
}

.catalog-stat .num {
  font-size: 24px;
      font-weight: 800;
      color: var(--brand);
}

.catalog-stat .label {
  font-size: 12px;
      color: var(--text-muted);
}

/* ==================== Catalog Layout ==================== */
    .catalog-section {
  padding: 40px 0 64px;
      background: var(--bg-muted);
}

.catalog-layout {
  display: grid;
      grid-template-columns: 270px 1fr;
      gap: 32px;
      align-items: start;
}

/* ==================== Filter Sidebar ==================== */
    .filter-sidebar {
  position: sticky;
      top: 88px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
      overflow: hidden;
}

.filter-header {
  display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      background: var(--bg-muted);
}

.filter-header h3 {
  font-size: 15px;
      font-weight: 700;
      color: var(--brand);
}

.filter-clear {
  font-size: 12px;
      color: var(--accent);
      font-weight: 500;
      transition: opacity 0.2s;
}

.filter-clear:hover {
  opacity: 0.7;
}

.filter-group {
  padding: 20px;
      border-bottom: 1px solid var(--border);
}

.filter-group:last-of-type {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 13px;
      font-weight: 700;
      color: var(--text);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 14px;
}

.filter-option {
  display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 0;
      cursor: pointer;
      font-size: 14px;
      color: var(--text);
      transition: color 0.15s;
}

.filter-option:hover {
  color: var(--accent);
}

.filter-option input[type="radio"],
    .filter-option input[type="checkbox"] {
  width: 16px;
      height: 16px;
      accent-color: var(--accent);
      cursor: pointer;
      flex-shrink: 0;
}

.filter-option .count {
  margin-left: auto;
      font-size: 12px;
      color: var(--text-light);
      font-weight: 500;
}

.filter-option .swatch {
  display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 3px;
      margin-right: 2px;
}

/* Price range */
    .price-range-wrap {
  display: flex;
      flex-direction: column;
      gap: 12px;
}

.price-inputs {
  display: flex;
      align-items: center;
      gap: 8px;
}

.price-inputs input {
  width: 100%;
      padding: 8px 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 13px;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
}

.price-inputs input:focus {
  border-color: var(--brand-light);
}

.price-inputs span {
  font-size: 13px;
      color: var(--text-light);
      flex-shrink: 0;
}

.price-slider {
  width: 100%;
      accent-color: var(--accent);
      cursor: pointer;
}

.price-display {
  font-size: 13px;
      color: var(--text-muted);
      text-align: center;
}

.price-display strong {
  color: var(--brand);
}

.filter-apply {
  display: block;
      width: 100%;
      padding: 12px;
      background: var(--accent);
      color: #fff;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 600;
      transition: background 0.2s;
      margin-top: 4px;
}

.filter-apply:hover {
  background: var(--accent-dark);
}

/* ==================== Catalog Main ==================== */
    .catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 12px;
}

.result-count {
  font-size: 14px;
      color: var(--text-muted);
}

.result-count strong {
  color: var(--brand);
      font-weight: 700;
}

.toolbar-right {
  display: flex;
      align-items: center;
      gap: 12px;
}

.sort-wrap {
  display: flex;
      align-items: center;
      gap: 8px;
}

.sort-wrap label {
  font-size: 14px;
      color: var(--text-muted);
      white-space: nowrap;
}

.sort-select {
  padding: 9px 36px 9px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 14px;
      color: var(--text);
      background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      cursor: pointer;
      outline: none;
      transition: border-color 0.2s;
}

.sort-select:hover {
  border-color: var(--brand-light);
}

.mobile-filter-btn {
  display: none;
      padding: 9px 16px;
      background: var(--brand);
      color: #fff;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 500;
      gap: 8px;
      align-items: center;
}

/* ==================== Product Grid ==================== */
    .product-grid {
  display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
}

.product-card {
  background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
      display: flex;
      flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--brand-soft-strong);
}

.product-image {
  height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
}

.product-image.ct-img {
  background: linear-gradient(135deg, #1A3A5C 0%, #051936 100%);
}

.product-image.mri-img {
  background: linear-gradient(135deg, #1A3A5C 0%, #0A2540 60%, #1A2B4C 100%);
}

.product-image svg {
  width: 72px;
      height: 72px;
      opacity: 0.85;
}

.product-image .img-glow {
  position: absolute;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
      border-radius: 50%;
}

.product-modality-tag {
  position: absolute;
      top: 12px;
      left: 12px;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
}

.product-modality-tag.ct {
  background: rgba(29,201,129,0.2);
      color: #6BE8B0;
      border: 1px solid rgba(29,201,129,0.3);
}

.product-modality-tag.mri {
  background: rgba(79,172,254,0.2);
      color: #93C5FD;
      border: 1px solid rgba(79,172,254,0.3);
}

.stock-indicator {
  position: absolute;
      top: 12px;
      right: 12px;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 600;
}

.stock-indicator.in-stock {
  background: rgba(29,201,129,0.15);
      color: var(--success);
}

.stock-indicator.out-stock {
  background: rgba(232,70,58,0.12);
      color: var(--danger);
}

.stock-indicator .dot {
  width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
}

.product-body {
  padding: 18px 18px 20px;
      display: flex;
      flex-direction: column;
      flex: 1;
}

.product-top-row {
  display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
}

.condition-badge {
  display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.3px;
}

.condition-badge::before {
  content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
}

.condition-badge.grade-a {
  background: rgba(29,201,129,0.12);
      color: #0E9C5E;
}

.condition-badge.grade-b {
  background: rgba(239,170,23,0.12);
      color: #B07300;
}

.condition-badge.grade-c {
  background: rgba(156,163,175,0.15);
      color: #6B7280;
}

.product-brand-tag {
  font-size: 12px;
      font-weight: 600;
      color: var(--brand-light);
      text-transform: uppercase;
      letter-spacing: 0.5px;
}

.product-name {
  font-size: 16px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
      line-height: 1.35;
}

.product-meta {
  display: flex;
      flex-direction: column;
      gap: 3px;
      margin-bottom: 14px;
}

.product-part-num {
  font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-muted);
}

.product-model {
  font-size: 12px;
      color: var(--text-light);
}

.product-pricing {
  display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 14px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin-bottom: 16px;
}

.price-block {
  display: flex;
      flex-direction: column;
      gap: 2px;
}

.price-our {
  font-size: 22px;
      font-weight: 800;
      color: var(--accent);
      letter-spacing: -0.5px;
}

.price-oem {
  font-size: 12px;
      color: var(--text-light);
      text-decoration: line-through;
}

.price-save {
  font-size: 12px;
      font-weight: 700;
      color: var(--success);
      background: rgba(29,201,129,0.1);
      padding: 4px 8px;
      border-radius: var(--radius-full);
}

.product-actions {
  display: flex;
      gap: 8px;
      margin-top: auto;
}

.btn-view {
  flex: 1;
      text-align: center;
      padding: 10px 14px;
      background: var(--brand);
      color: #fff;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 600;
      transition: background 0.2s;
}

.btn-view:hover {
  background: var(--brand-light);
}

.btn-inquire {
  flex: 1;
      text-align: center;
      padding: 10px 14px;
      background: var(--accent-soft);
      color: var(--accent-text);
      border: 1px solid rgba(194,21,30,0.2);
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 600;
      transition: background 0.2s, border-color 0.2s;
}

.btn-inquire:hover {
  background: var(--accent);
      color: #fff;
      border-color: var(--accent);
}

.no-results {
  grid-column: 1 / -1;
      text-align: center;
      padding: 64px 20px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
}

.no-results svg {
  width: 56px;
      height: 56px;
      margin: 0 auto 16px;
      opacity: 0.3;
}

.no-results h3 {
  font-size: 18px;
      color: var(--text);
      margin-bottom: 8px;
}

.no-results p {
  color: var(--text-muted);
      font-size: 14px;
}

/* ==================== Pagination ==================== */
    .pagination {
  display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 40px;
}

.pagination button {
  min-width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 500;
      color: var(--text);
      background: var(--bg);
      transition: all 0.15s;
      padding: 0 12px;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--brand-light);
      color: var(--brand);
}

.pagination button.active {
  background: var(--brand);
      color: #fff;
      border-color: var(--brand);
}

.pagination button:disabled {
  opacity: 0.4;
      cursor: not-allowed;
}

.pagination .ellipsis {
  padding: 0 4px;
      color: var(--text-light);
}

/* ==================== Condition Grading ==================== */
    .grading-section {
  padding: 72px 0;
      background: var(--bg);
}

.section-header {
  text-align: center;
      max-width: 640px;
      margin: 0 auto 48px;
}

.section-header .eyebrow {
  display: inline-block;
      padding: 5px 14px;
      background: var(--brand-soft);
      color: var(--brand-light);
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-bottom: 14px;
}

.section-header h2 {
  font-size: 32px;
      font-weight: 800;
      color: var(--brand);
      letter-spacing: -0.5px;
      margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
      color: var(--text-muted);
      line-height: 1.7;
}

.grading-grid {
  display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
}

.grade-card-header {
  padding: 24px 24px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      border-bottom: 1px solid var(--border);
}

.grade-icon {
  width: 52px;
      height: 52px;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 800;
      flex-shrink: 0;
}

.grade-card[data-grade="A"] .grade-icon {
  background: rgba(29,201,129,0.12);
      color: var(--success);
}

.grade-card[data-grade="B"] .grade-icon {
  background: rgba(239,170,23,0.12);
      color: #C88200;
}

.grade-card[data-grade="C"] .grade-icon {
  background: rgba(156,163,175,0.15);
      color: var(--text-muted);
}

.grade-card-header h3 {
  font-size: 17px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 2px;
}

.grade-card-header .grade-label {
  font-size: 13px;
      color: var(--text-muted);
}

.grade-card-body {
  padding: 20px 24px 24px;
}

.grade-card-body p {
  font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 16px;
}

.grade-features {
  display: flex;
      flex-direction: column;
      gap: 10px;
}

.grade-features li {
  display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: var(--text);
}

.grade-features li svg {
  width: 16px;
      height: 16px;
      flex-shrink: 0;
}

.grade-card[data-grade="A"] .grade-features li svg {
  color: var(--success);
}

.grade-card[data-grade="B"] .grade-features li svg {
  color: var(--warning);
}

.grade-card[data-grade="C"] .grade-features li svg {
  color: var(--text-muted);
}

.grade-warranty {
  margin-top: 16px;
      padding: 10px 14px;
      background: var(--bg-muted);
      border-radius: var(--radius);
      font-size: 13px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 8px;
}

.grade-warranty svg {
  width: 16px;
      height: 16px;
      color: var(--brand-light);
      flex-shrink: 0;
}

/* ==================== Product CTA Banner ==================== */
    .product-cta {
  padding: 56px 0;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      position: relative;
      overflow: hidden;
}

.product-cta::before {
  content: '';
      position: absolute;
      top: -60px;
      right: -40px;
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
      border-radius: 50%;
}

.cta-inner {
  position: relative;
      z-index: 1;
      text-align: center;
      max-width: 640px;
      margin: 0 auto;
}

.cta-inner h2 {
  font-size: 30px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.5px;
      margin-bottom: 12px;
}

.cta-inner p {
  font-size: 16px;
      color: rgba(255,255,255,0.82);
      line-height: 1.7;
      margin-bottom: 28px;
}

.cta-btn {
  display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 32px;
      background: #fff;
      color: var(--accent);
      border-radius: var(--radius-full);
      font-size: 15px;
      font-weight: 700;
      transition: transform 0.15s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-btn svg {
  width: 18px;
      height: 18px;
}

/* ==================== Footer ==================== */
    .footer {
  background: var(--brand-dark);
      color: rgba(255,255,255,0.7);
      padding: 64px 0 0;
}

/* ==================== Mobile Filter Overlay ==================== */
    .filter-overlay {
  display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 200;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s, visibility 0.25s;
}

.filter-overlay.active {
  opacity: 1;
      visibility: visible;
}

.filter-overlay .filter-sidebar {
  position: fixed;
      top: 0;
      left: 0;
      width: 300px;
      max-width: 85vw;
      height: 100vh;
      border-radius: 0;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
}

.filter-overlay.active .filter-sidebar {
  transform: translateX(0);
}

.filter-close {
  display: none;
      font-size: 22px;
      color: var(--text-muted);
      padding: 4px;
}

.filter-overlay .filter-close {
  display: block;
}

/* ==================== Responsive ==================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .filter-sidebar.desktop-sidebar { display: none; }
  .filter-overlay { display: block; }
  .mobile-filter-btn { display: inline-flex; }
  
  /* Catalog layout: single column when sidebar is hidden */
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Catalog: stats adjust for tablet */
  .catalog-stats-inner { gap: 20px; }
  .catalog-stat .num { font-size: 20px; }
  
  /* Grading grid: 1 column on tablet */
  .grading-grid { grid-template-columns: 1fr; }
  
  /* Product CTA: adjust padding on tablet */
  .product-cta { padding: 48px 0; }
  .cta-inner h2 { font-size: 26px; }
}

@media (max-width: 640px) {
  .page-hero { min-height: 440px; }
  .product-grid { grid-template-columns: 1fr; }
  
  /* Catalog stats: 2 columns on mobile */
  .catalog-stats-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .catalog-stat .num { font-size: 22px; }
  .catalog-stat .label { font-size: 11px; }
  
  /* Product CTA: smaller on mobile */
  .product-cta { padding: 40px 0; }
  .cta-inner h2 { font-size: 22px; }
  .cta-inner p { font-size: 14px; margin-bottom: 20px; }
  .cta-btn { padding: 12px 28px; font-size: 14px; }
  
  /* Catalog toolbar: stack on mobile */
  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===================== NAV ===================== */
    .nav {
  position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
}

/* ===================== BREADCRUMB ===================== */
    .breadcrumb {
  background: var(--bg-muted);
      border-bottom: 1px solid var(--border);
      padding: 16px 0;
}

.breadcrumb-list {
  display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--text-muted);
      flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--text-muted);
      transition: color 0.2s;
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text);
      font-weight: 600;
}

/* ===================== PRODUCT MAIN ===================== */
    .product-main {
  padding: 48px 0 64px;
}

/* Gallery */
.gallery-main {
  width: 100%;
      aspect-ratio: 1 / 1;
      background: linear-gradient(135deg, #e9edf3 0%, #dde3ec 100%);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      position: relative;
      overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main .ph-icon {
  width: 72px;
      height: 72px;
      border-radius: 50%;
      background: rgba(5,25,54,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      color: var(--brand-light);
}

.gallery-main .ph-label {
  font-size: 17px;
      font-weight: 600;
      color: var(--text-muted);
}

.gallery-main .ph-sub {
  font-size: 13px;
      color: var(--text-light);
}

.gallery-main .badge-corner {
  position: absolute;
      top: 16px;
      left: 16px;
      background: var(--brand);
      color: #fff;
      padding: 6px 14px;
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.3px;
      z-index: 2;
}

/* Image zoom / magnifier */
.zoom-lens {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 4px 24px rgba(0,0,0,0.2);
  pointer-events: none;
  display: none;
  z-index: 5;
  cursor: zoom-in;
}

.gallery-main:hover img {
  cursor: zoom-in;
}

.gallery-thumbs {
  display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-top: 14px;
}

.thumb {
  aspect-ratio: 1 / 1;
      background: linear-gradient(135deg, #e9edf3 0%, #dde3ec 100%);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--text-light);
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.2s, transform 0.2s;
      overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  border-color: var(--brand-light);
      transform: translateY(-2px);
}

.thumb.active {
  border-color: var(--accent);
      border-width: 2px;
}

/* Product info */
    .product-info {
  padding-top: 4px;
}

.p-category {
  font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 10px;
}

.p-name {
  font-size: 32px;
      font-weight: 800;
      color: var(--brand);
      line-height: 1.2;
      margin-bottom: 14px;
      letter-spacing: -0.5px;
}

.p-meta {
  display: flex;
      flex-wrap: wrap;
      gap: 8px 20px;
      align-items: center;
      margin-bottom: 20px;
      font-size: 15px;
}

.p-meta-item {
  display: flex;
      align-items: center;
      gap: 6px;
}

.p-meta-label {
  color: var(--text-muted);
      font-weight: 500;
}

.p-meta-val {
  color: var(--text);
      font-weight: 600;
}

.p-meta-sep {
  width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--border);
}

.badge {
  display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.3px;
}

.badge-grade-a {
  background: var(--brand-soft);
      color: var(--brand);
      border: 1px solid var(--brand-soft-strong);
}

.badge-grade-a::before {
  content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--brand);
}

.badge-grade-b {
  background: rgba(239,170,23,0.12);
  color: #B8860B;
  border: 1px solid rgba(239,170,23,0.3);
}

.badge-grade-b::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B8860B;
}

.badge-grade-c {
  background: rgba(232,70,58,0.1);
  color: var(--danger);
  border: 1px solid rgba(232,70,58,0.25);
}

.badge-grade-c::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}

.price-box {
  background: var(--bg-muted);
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
      padding: 22px 24px;
      margin-bottom: 24px;
}

.price-row {
  display: flex;
      align-items: flex-end;
      gap: 16px;
      flex-wrap: wrap;
}

.price-our-label {
  font-size: 12px;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
}

/* Product detail page price styles (override product list styles) */
body.product-detail-page .price-our {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}

body.product-detail-page .price-oem {
  font-size: 17px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

body.product-detail-page .price-save {
  background: var(--success);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  align-self: flex-end;
  margin-bottom: 2px;
}

body.product-detail-page .stock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

body.product-detail-page .stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(29,201,129,0.18);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(29,201,129,0.18); }
  50% { box-shadow: 0 0 0 7px rgba(29,201,129,0.08); }
}

.p-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.p-features {
  list-style: none;
  margin-bottom: 28px;
}

.p-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--text);
}

.p-features li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.p-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-family: var(--font);
}

/* Product detail page: 2-column grid (override 3-col list grid) */
body.product-detail-page .product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Product detail page: button styles (override hero pill button) */
body.product-detail-page .btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: none;
}

body.product-detail-page .btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194,21,30,0.3);
  border-radius: var(--radius);
}

/* ===================== SECTION TITLES ===================== */
    .section {
  padding: 64px 0;
      border-top: 1px solid var(--border);
}

/* Product detail page: left-aligned section headers */
body.product-detail-page .section-header {
  text-align: left !important;
  margin: 0 0 40px 0 !important;
  max-width: none !important;
}

body.product-detail-page .section-header .section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
  padding: 0;
  background: none;
  border-radius: 0;
}

body.product-detail-page .section-header .section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

body.product-detail-page .section-header .section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 620px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ===================== SPECS TABLE ===================== */
    .specs-table {
  width: 100%;
      border-collapse: collapse;
      border-radius: var(--radius-card);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border);
}

.specs-table tr:nth-child(even) {
  background: var(--bg-muted);
}

.specs-table td {
  padding: 16px 24px;
      font-size: 15px;
      vertical-align: middle;
}

.specs-table td:first-child {
  width: 42%;
      color: var(--text-muted);
      font-weight: 600;
      border-right: 1px solid var(--border);
}

.specs-table td:last-child {
  color: var(--text);
      font-weight: 500;
}

.specs-table td .mono {
  font-family: var(--font-mono);
      font-size: 14px;
      background: var(--brand-soft);
      padding: 2px 8px;
      border-radius: 4px;
      color: var(--brand);
}

/* ===================== CONDITION & QUALITY ===================== */
    .condition-grid {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
}

.quality-card {
  background: var(--brand);
      border-radius: var(--radius-lg);
      padding: 36px;
      color: #fff;
      position: relative;
      overflow: hidden;
}

.quality-card::before {
  content: "";
      position: absolute;
      top: -40px;
      right: -40px;
      width: 160px;
      height: 160px;
      border-radius: 50%;
      background: rgba(194,21,30,0.15);
}

.quality-card::after {
  content: "";
      position: absolute;
      bottom: -60px;
      left: -30px;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: rgba(26,58,92,0.6);
}

.quality-card .qc-inner {
  position: relative; z-index: 1;
}

.qc-grade {
  display: inline-block;
      background: var(--accent);
      color: #fff;
      padding: 6px 16px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.5px;
      margin-bottom: 16px;
}

.qc-title {
  font-size: 24px;
      font-weight: 700;
      margin-bottom: 12px;
      letter-spacing: -0.3px;
}

.qc-text {
  font-size: 14px;
      color: rgba(255,255,255,0.75);
      line-height: 1.7;
}

.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 0;
      border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist .cl-icon {
  flex-shrink: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--success);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 700;
}

.checklist .cl-content {
  flex: 1;
}

.checklist .cl-title {
  font-size: 16px;
      font-weight: 600;
      color: var(--text);
}

.checklist .cl-desc {
  font-size: 13px;
      color: var(--text-muted);
      margin-top: 2px;
}

.checklist .cl-step {
  font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-light);
      font-weight: 600;
}

/* ===================== INQUIRY FORM ===================== */
    .inquiry-section {
  background: var(--bg-muted);
}

.inquiry-wrap {
  display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 48px;
      align-items: start;
}

.inquiry-info h3 {
  font-size: 26px;
      font-weight: 800;
      color: var(--brand);
      margin-bottom: 14px;
      letter-spacing: -0.3px;
}

.inquiry-info p {
  font-size: 15px;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 24px;
}

.inquiry-contact-item {
  display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 0;
      font-size: 14px;
      color: var(--text);
}

.inquiry-contact-item .ic-icon {
  width: 40px;
      height: 40px;
      border-radius: var(--radius);
      background: var(--brand-soft);
      color: var(--brand);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
}

.inquiry-contact-item .ic-label {
  font-size: 12px;
      color: var(--text-light);
      font-weight: 500;
}

.inquiry-contact-item .ic-val {
  font-weight: 600;
}

.inquiry-form {
  background: #fff;
      border-radius: var(--radius-lg);
      padding: 36px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
}

.form-row {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 7px;
}

.form-group label .req {
  color: var(--accent);
}

.form-control {
  width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 14px;
      font-family: var(--font);
      color: var(--text);
      background: #fff;
      transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
      border-color: var(--brand-light);
      box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
      min-height: 110px;
}

select.form-control {
  cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 36px;
}

.form-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-note {
  font-size: 12px;
      color: var(--text-light);
      text-align: center;
      margin-top: 14px;
}

/* ===================== RELATED PARTS ===================== */
    .related-grid {
  display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
}

.card-img {
  aspect-ratio: 16 / 10;
      background: linear-gradient(135deg, #e9edf3 0%, #dde3ec 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border-bottom: 1px solid var(--border);
}

.card-img .ci-label {
  font-size: 13px;
      color: var(--text-light);
      font-weight: 500;
}

.card-img .card-badge {
  position: absolute;
      top: 12px;
      left: 12px;
}

.card-body {
  padding: 20px;
      display: flex;
      flex-direction: column;
      flex: 1;
}

.card-brand {
  font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
}

.card-name {
  font-size: 17px;
      font-weight: 700;
      color: var(--brand);
      margin-bottom: 8px;
      line-height: 1.35;
}

.card-pn {
  font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-light);
      margin-bottom: 14px;
}

.card-footer {
  margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 14px;
      border-top: 1px solid var(--border);
}

.card-price {
  font-size: 20px;
      font-weight: 800;
      color: var(--accent);
}

.card-link {
  font-size: 14px;
      font-weight: 600;
      color: var(--brand);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: gap 0.2s, color 0.2s;
}

.card-link:hover {
  color: var(--accent);
      gap: 9px;
}

/* ===================== FOOTER ===================== */
    .footer {
  background: var(--bg-dark);
      color: rgba(255,255,255,0.7);
      padding: 64px 0 0;
      margin-top: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .condition-grid { grid-template-columns: 1fr; gap: 28px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product detail: stack layout */
  body.product-detail-page .product-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-name { font-size: 26px; }
  .price-row .price { font-size: 30px; }

  /* Specs table: horizontal scroll on mobile */
  .specs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .specs-table { min-width: 400px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.nav-open { transform: translateY(0); }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .p-actions .btn { flex: 1; }
  .section { padding: 48px 0; }
  .product-main { padding: 32px 0 48px; }
  .related-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-hero .hero-subtitle { font-size: 16px; }
}

/* ===== NAV ===== */
    .nav {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}

/* ===== HERO ===== */
    .hero {
  background: var(--brand-dark);
      color: #fff;
      padding: 80px 0 100px;
      text-align: center;
      position: relative;
      overflow: hidden;
      min-height: 520px;
      display: flex;
      align-items: center;
}

.hero .container {
  width: 100%; position: relative; z-index: 1;
}

/* Subpage hero base layout (about, contact, etc.) */
body:not(.home):not(.page-template-front-page) .hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Subpage hero pseudo-elements (dark overlay + radial gradient) */
/* Only apply to non-homepage heroes - homepage uses body.home .hero::before */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,16,40,0.92) 0%, rgba(5,25,54,0.85) 50%, rgba(26,58,92,0.8) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194,21,30,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Homepage hero overrides (more specific selectors win) */
body.home .hero::before,
body.page-template-front-page .hero::before {
  background: url('images/hero-banner.jpg') right center / contain no-repeat;
  opacity: 0.9;
}

body.home .hero::after,
body.page-template-front-page .hero::after {
  background: linear-gradient(90deg, rgba(3,16,40,0.97) 0%, rgba(5,25,54,0.85) 40%, rgba(5,25,54,0.3) 60%, transparent 80%);
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Subpage hero heading - override homepage .hero h1 (line 202) */
body:not(.home):not(.page-template-front-page) .hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* ===== CATEGORY FILTER ===== */
    .filter-section {
  background: var(--bg);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 64px;
      z-index: 50;
}

.filter-bar {
  display: flex;
      gap: 10px;
      padding: 18px 0;
      flex-wrap: wrap;
      align-items: center;
}

.filter-pill {
  display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 18px;
      border-radius: var(--radius-full);
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--bg-muted);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.2s;
      font-family: var(--font);
}

.filter-pill:hover {
  border-color: var(--brand-soft-strong);
      color: var(--brand);
}

.filter-pill.active {
  background: var(--brand);
      color: #fff;
      border-color: var(--brand);
}

.filter-pill .count {
  font-size: 11px;
      background: rgba(0,0,0,0.08);
      padding: 1px 7px;
      border-radius: var(--radius-full);
      font-weight: 700;
}

.filter-pill.active .count {
  background: rgba(255,255,255,0.2);
}

/* ===== FEATURED ARTICLE ===== */
    .news-wrap {
  padding: 56px 0 24px;
}

.section-label {
  display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 700;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 18px;
}

.section-label::before {
  content: '';
      width: 24px;
      height: 2px;
      background: var(--accent);
      border-radius: 2px;
}

.featured-card {
  display: grid;
      grid-template-columns: 1.05fr 1fr;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: box-shadow 0.3s, transform 0.3s;
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
      transform: translateY(-2px);
}

.featured-img {
  background: linear-gradient(135deg, #D1D5DB 0%, #9CA3AF 100%);
      min-height: 340px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
}

.featured-img svg {
  width: 72px;
      height: 72px;
      color: rgba(255,255,255,0.6);
}

.featured-img .img-tag {
  position: absolute;
      top: 16px;
      left: 16px;
      background: rgba(5,25,54,0.85);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: var(--radius-full);
      text-transform: uppercase;
      letter-spacing: 0.5px;
}

.featured-body {
  padding: 36px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
}

.featured-meta {
  display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
      flex-wrap: wrap;
}

.featured-meta .date {
  font-size: 13px;
      color: var(--text-light);
      display: flex;
      align-items: center;
      gap: 5px;
}

.featured-meta .read-time {
  font-size: 13px;
      color: var(--text-light);
      display: flex;
      align-items: center;
      gap: 5px;
}

.featured-body h2 {
  font-size: 26px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--brand);
      margin-bottom: 14px;
      letter-spacing: -0.3px;
}

.featured-body p {
  font-size: 15px;
      color: var(--text-muted);
      line-height: 1.65;
      margin-bottom: 22px;
}

.read-more {
  display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--accent);
      font-size: 14px;
      font-weight: 600;
      transition: gap 0.2s;
      align-self: flex-start;
}

.read-more:hover {
  gap: 10px; color: var(--accent-dark);
}

/* ===== CATEGORY TAGS ===== */
    .cat-tag {
  display: inline-flex;
      align-items: center;
      font-size: 12px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: var(--radius-full);
      letter-spacing: 0.2px;
}

.cat-industry {
  background: #D6DEEB; color: #051936;
}

.cat-technical {
  background: #CCFBF1; color: #0D9488;
}

.cat-company {
  background: #FDEEF0; color: #C2151E;
}

.cat-maintenance {
  background: #FEF3C7; color: #92400E;
}

/* ===== NEWS GRID ===== */
    .news-grid-head {
  display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 64px 0 24px;
}

.news-grid-head h3 {
  font-size: 22px;
      font-weight: 700;
      color: var(--brand);
      letter-spacing: -0.3px;
}

.news-grid-head .result-count {
  font-size: 13px;
      color: var(--text-muted);
}

.news-grid {
  display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
}

.news-card {
  background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
      transform: translateY(-4px);
      border-color: var(--brand-soft-strong);
}

.news-card-img {
  height: 180px;
      background: linear-gradient(135deg, #D1D5DB 0%, #9CA3AF 100%);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
}

.news-card-img svg {
  width: 44px;
      height: 44px;
      color: rgba(255,255,255,0.55);
}

.news-card-img .img-overlay {
  position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 50%;
      background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}

.news-card-body {
  padding: 20px 22px 22px;
      display: flex;
      flex-direction: column;
      flex: 1;
}

.news-card-meta {
  display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      gap: 8px;
}

.news-card-date {
  font-size: 12.5px;
      color: var(--text-light);
      display: flex;
      align-items: center;
      gap: 4px;
}

.news-card-body h4 {
  font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      color: var(--brand);
      margin-bottom: 10px;
      letter-spacing: -0.1px;
}

.news-card-body .excerpt {
  font-size: 13.5px;
      color: var(--text-muted);
      line-height: 1.55;
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
}

.news-card-body .read-more {
  margin-top: auto;
      font-size: 13.5px;
}

/* ===== PAGINATION ===== */
    .pagination {
  display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      margin: 52px 0 0;
}

.page-btn {
  display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      padding: 0 12px;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--bg);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.2s;
      font-family: var(--font);
}

.page-btn:hover {
  border-color: var(--brand-soft-strong);
      color: var(--brand);
      background: var(--brand-soft);
}

.page-btn.active {
  background: var(--brand);
      color: #fff;
      border-color: var(--brand);
}

.page-btn.prev, .page-btn.next {
  gap: 5px;
}

.page-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}

.page-dots {
  color: var(--text-light); padding: 0 4px;
}

/* ===== NEWSLETTER ===== */
    .newsletter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
      border-radius: var(--radius-lg);
      padding: 56px 48px;
      margin: 72px 0 0;
      position: relative;
      overflow: hidden;
}

.newsletter::before {
  content: '';
      position: absolute;
      top: -60px;
      right: -40px;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(194,21,30,0.15) 0%, transparent 70%);
      border-radius: 50%;
}

.newsletter-inner {
  position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
}

.newsletter-text h3 {
  font-size: 28px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 10px;
      letter-spacing: -0.3px;
}

.newsletter-text p {
  font-size: 15px;
      color: rgba(255,255,255,0.7);
      line-height: 1.6;
}

.newsletter-form {
  display: flex;
      gap: 10px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: var(--radius);
      padding: 6px;
}

.newsletter-form input {
  flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: #fff;
      font-size: 14px;
      padding: 12px 14px;
      font-family: var(--font);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  background: var(--accent);
      color: #fff;
      border: none;
      padding: 12px 26px;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      font-family: var(--font);
      white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-dark);
}

.newsletter-note {
  font-size: 12px;
      color: rgba(255,255,255,0.5);
      margin-top: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
}

/* ===== News CTA Banner ===== */
.news-cta {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.news-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-text {
  position: relative;
  z-index: 1;
}

.cta-banner-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.cta-banner-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.cta-banner-btn {
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.cta-banner-btn:hover {
  background: var(--accent-dark); transform: translateY(-2px);
}

/* ===== FOOTER ===== */
    .footer {
  background: var(--brand-dark);
      color: rgba(255,255,255,0.7);
      padding: 64px 0 0;
}

.footer .nav-logo {
  color: #fff; margin-bottom: 16px;
}

.footer .nav-logo span {
  color: #7BAEDB;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-left { gap: 14px; }
  .filter-section { position: relative; top: 0; }
  .newsletter { padding: 40px 28px; }
  .news-cta { flex-direction: column; text-align: center; padding: 36px 24px; }

  /* Featured article: stack layout on mobile */
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-img {
    min-height: 240px;
  }
  .featured-body {
    padding: 28px;
  }
  .featured-body h2 {
    font-size: 22px;
  }

  /* Newsletter: stack on mobile */
  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--bg-muted); border-bottom: 1px solid var(--border); padding: 16px 0;
}

/* ===== ARTICLE LAYOUT ===== */
.article-wrap {
  padding: 56px 0 80px;
}

.article-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
}

.article-main {
  min-width: 0;
}

/* Article header */
.article-header {
  margin-bottom: 40px;
}

.article-cat-tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
  letter-spacing: 0.2px; margin-bottom: 20px;
}

.article-title {
  font-size: 36px; font-weight: 800; color: var(--brand);
  line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px;
}

.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted);
}

.article-meta span {
  display: flex; align-items: center; gap: 6px;
}

.article-meta svg {
  width: 15px; height: 15px;
}

/* Article hero image */
.article-hero-img {
  width: 100%; aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #D1D5DB 0%, #9CA3AF 100%);
  border-radius: var(--radius-lg); margin-bottom: 40px;
  display: flex; align-items: center; justify-content: center;
}

.article-hero-img svg {
  width: 80px; height: 80px; color: rgba(255,255,255,0.5);
}

/* Article body */
.article-body {
  font-size: 17px; line-height: 1.8; color: var(--text);
}

.article-body h2 {
  font-size: 24px; font-weight: 700; color: var(--brand);
  margin: 40px 0 16px; letter-spacing: -0.3px;
}

.article-body h3 {
  font-size: 19px; font-weight: 700; color: var(--brand);
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--brand); font-weight: 700;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px; margin: 24px 0;
  background: var(--bg-muted); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; color: var(--text-muted); font-style: italic;
}

.article-body code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--brand-soft); padding: 2px 8px; border-radius: 4px;
  color: var(--brand);
}

/* Article tags */
.article-tags-wrap {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}

.article-tags-label {
  font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}

.article-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
}

.article-tag {
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 6px 14px;
  border-radius: var(--radius-full); transition: background 0.2s, color 0.2s;
}

.article-tag:hover {
  background: var(--brand-soft-strong);
}

/* Article nav (prev/next) */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
}

.article-nav-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 24px; border: 1px solid var(--border);
  border-radius: var(--radius-card); transition: border-color 0.2s, box-shadow 0.2s;
}

.article-nav-link:hover {
  border-color: var(--brand-soft-strong); box-shadow: var(--shadow);
}

.article-nav-link.next {
  text-align: right;
}

.article-nav-link .nav-label {
  font-size: 12px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px;
}

.article-nav-link .nav-title {
  font-size: 15px; font-weight: 600; color: var(--brand); line-height: 1.4;
}

.article-nav-link.disabled {
  opacity: 0.4; pointer-events: none;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px;
}

.sidebar-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px;
}

.sidebar-card h3 {
  font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

.sidebar-related-item {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--border); transition: opacity 0.2s;
}

.sidebar-related-item:last-child {
  border-bottom: none;
}

.sidebar-related-item:hover {
  opacity: 0.7;
}

.sidebar-related-item .rel-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}

.sidebar-related-item .rel-title {
  font-size: 14px; font-weight: 600; color: var(--brand); line-height: 1.4;
}

.sidebar-cta {
  background: var(--brand); color: #fff; padding: 28px; border-radius: var(--radius-card); text-align: center;
}

.sidebar-cta h3 {
  color: #fff; border: none; padding: 0; margin-bottom: 8px; font-size: 18px;
}

.sidebar-cta p {
  font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px;
}

.sidebar-cta-btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; transition: background 0.2s;
}

.sidebar-cta-btn:hover {
  background: var(--accent-dark);
}

.footer-brand h3 {
  color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 12px;
}

/* ===== 404 STATE ===== */
.article-not-found {
  text-align: center; padding: 80px 0;
}

.article-not-found svg {
  width: 64px; height: 64px; color: var(--text-light); margin-bottom: 24px;
}

.article-not-found h2 {
  font-size: 28px; font-weight: 700; color: var(--brand); margin-bottom: 12px;
}

.article-not-found p {
  font-size: 16px; color: var(--text-muted); margin-bottom: 24px;
}

.article-not-found a {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .article-body { font-size: 16px; }
  .article-nav { grid-template-columns: 1fr; }

  /* Article layout: single column on mobile */
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    flex-direction: column;
  }
  .article-title {
    font-size: 28px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== CONTACT SECTION (2-COLUMN) ===== */
#rfq {
  scroll-margin-top: 72px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* ===== RFQ FORM ===== */
.rfq-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  height: 100%;
}

.form-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group label .required {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
  position: relative;
}

.form-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(194,21,30,0.35);
}

/* ===== CONTACT SIDEBAR ===== */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

/* Make sidebar-card stretch to fill available height (equal columns) */
.contact-sidebar .sidebar-card {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.contact-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-icon.email {
  background: var(--accent-soft); color: var(--accent);
}

.contact-item-icon.phone {
  background: var(--brand-soft); color: var(--brand);
}

.contact-item-icon.whatsapp {
  background: rgba(29,201,129,0.12); color: var(--success);
}

.contact-item-icon.address {
  background: var(--brand-soft); color: var(--brand);
}

.contact-item-icon.hours {
  background: rgba(239,170,23,0.12); color: var(--warning);
}

.contact-item-icon.response {
  background: var(--accent-soft); color: var(--accent);
}

.contact-item-info {
  flex: 1;
}

.contact-item-info .label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-info .value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.contact-item-info .value a {
  color: var(--brand);
}

.contact-item-info .value a:hover {
  color: var(--accent);
}

/* ===== MAP ===== */
.map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 220px;
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--bg-muted);
}

.faq-item summary .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
  line-height: 1;
}

.faq-item[open] summary .faq-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--text);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,21,30,0.4);
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta-contacts a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.cta-contacts a:hover {
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .rfq-form { padding: 28px 24px; }
  section.cta-banner { padding: 56px 0; }
  section.cta-banner h2 { font-size: 26px; }
  section.cta-banner p { font-size: 16px; }
  .cta-contacts { gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== STORY SECTION ===== */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-text .section-eyebrow {
  margin-bottom: 12px;
}

.story-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.story-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.story-text .highlight {
  color: var(--text);
  font-weight: 600;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--brand-soft-strong);
}

.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.story-image .placeholder-content {
  text-align: center;
  color: rgba(255,255,255,0.9);
}

.story-image .placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.story-image .placeholder-text {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.7;
}

.story-image .badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  padding: 14px 20px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-image .badge-overlay .icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.story-image .badge-overlay .text {
  font-size: 13px;
}

.story-image .badge-overlay .text strong {
  display: block;
  color: var(--brand);
  font-size: 15px;
}

.story-image .badge-overlay .text span {
  color: var(--text-muted);
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--brand);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.stat-number .plus {
  color: var(--accent);
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  font-weight: 500;
}

/* ===== VALUES CARDS ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.value-icon.blue {
  background: var(--brand-soft); color: var(--brand);
}

.value-icon.red {
  background: var(--accent-soft); color: var(--accent);
}

.value-icon.green {
  background: rgba(29,201,129,0.12); color: var(--success);
}

.value-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== PROCESS SECTION ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--brand-soft-strong);
  z-index: 0;
}

/* About page process-step override (needs z-index for ::before line) */
body.page-template-page-about .process-step {
  z-index: 1;
}

body.page-template-page-about .process-step::after {
  display: none;
}

body.page-template-page-about .process-step p {
  font-size: 14px;
  line-height: 1.6;
}

.process-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand-soft-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  transition: all 0.3s;
}

.process-step:hover .process-number {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
}

.cert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--brand-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--brand-soft-strong);
}

.cert-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.cert-card .cert-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SHIPPING & RETURNS ===== */
.shipping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
}

.info-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.info-block-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.info-block-icon.ship {
  background: var(--brand-soft); color: var(--brand);
}

.info-block-icon.return {
  background: var(--accent-soft); color: var(--accent);
}

.info-block-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.info-list li .warn {
  color: var(--warning);
  font-weight: 700;
  flex-shrink: 0;
}

.info-list li strong {
  color: var(--brand);
}

.returns-note {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

.returns-note strong {
  color: var(--accent-text);
}

/* ===== WARRANTY ===== */
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.warranty-card {
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.warranty-card:hover {
  transform: translateY(-4px);
}

.warranty-card.grade-a {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
}

.warranty-card.grade-b {
  background: linear-gradient(135deg, var(--brand-light) 0%, #2A5A8C 100%);
  color: #fff;
}

.warranty-card.grade-c {
  background: var(--bg-muted);
  border: 2px dashed var(--border);
  color: var(--text-muted);
}

.warranty-grade-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.warranty-grade-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.warranty-duration {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
}

.warranty-duration .unit {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
}

.warranty-card .desc {
  font-size: 14px;
  margin-top: 12px;
  opacity: 0.8;
}

.warranty-process {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.warranty-process h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 28px;
  text-align: center;
}

.claim-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.claim-step {
  text-align: center;
  position: relative;
}

.claim-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.claim-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.claim-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.stat-item:nth-child(2)::after {
  display: none;
}

/* ===== Responsive: 968px (About page & content sections) ===== */
@media (max-width: 968px) {
  /* Homepage hero: height + padding adjust */
  body.home .hero,
  body.page-template-front-page .hero {
    min-height: auto;
    padding: 80px 0 90px;
  }
  
  /* Homepage hero: single column + background adjust */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-eyebrow { margin: 0 auto 16px; }
  .hero h1 { 
    font-size: 34px; 
    letter-spacing: -0.5px; 
    margin-bottom: 14px;
  }
  .hero-tags {
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
  }
  .hero-tags .dot { font-size: 16px; }
  .hero-sub { 
    font-size: 15px; 
    margin-bottom: 24px; 
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-features {
    gap: 12px 16px;
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-feature { font-size: 13px; justify-content: center; }
  .hero-feature-check { width: 20px; height: 20px; }
  .hero-feature-check svg { width: 11px; height: 11px; }
  .hero-ctas { 
    gap: 12px; 
    justify-content: center;
  }
  .btn-primary, .btn-outline {
    padding: 12px 28px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* Homepage hero background: full bleed with dark overlay */
  body.home .hero::before,
  body.page-template-front-page .hero::before {
    background-position: center center;
    background-size: cover;
    opacity: 0.6;
  }
  body.home .hero::after,
  body.page-template-front-page .hero::after {
    background: linear-gradient(180deg, rgba(3,16,40,0.9) 0%, rgba(5,25,54,0.7) 40%, rgba(3,16,40,0.92) 100%);
  }
  
  /* Story section: single column */
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story-text h2 { font-size: 28px; }
  .story-image { min-height: 320px; }
  .badge-overlay { bottom: 16px; left: 16px; padding: 12px 16px; }
  .badge-overlay strong { font-size: 16px; }
  
  /* Stats strip: 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-number { font-size: 36px; }
  .stat-label { font-size: 13px; }
  
  /* Section headers */
  .section-header h2 { font-size: 26px; }
  .section-header { margin-bottom: 36px; }
  
  /* Process grid: 2 columns */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding: 24px 20px; }
  .process-number { font-size: 36px; }
  .process-step h3 { font-size: 16px; }
  .process-step p { font-size: 13px; }
  
  /* Values & Cert grids: 2 columns on tablet */
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .shipping-grid { grid-template-columns: 1fr; }
  .warranty-grid { grid-template-columns: 1fr; }
  
  /* About page process: hide timeline line on mobile */
  body.page-template-page-about .process-grid::before {
    display: none;
  }
  
  /* About page: mobile adjustments */
  .stats-strip { padding: 40px 0; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 12px; margin-top: 6px; }
  
  .story-text h2 { font-size: 24px; letter-spacing: -0.5px; }
  .story-text p { font-size: 14px; line-height: 1.7; }
  .story-image { min-height: 280px; }
  .brand-tags { gap: 8px; margin-top: 20px; }
  .brand-tag { padding: 6px 12px; font-size: 12px; }
  
  .section-header { margin-bottom: 28px; max-width: 100%; }
  .section-header h2 { font-size: 22px; letter-spacing: -0.3px; margin-bottom: 10px; }
  .section-header p { font-size: 14px; line-height: 1.6; }
  .section-header .eyebrow { font-size: 11px; padding: 4px 12px; margin-bottom: 10px; }
  
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 20px 18px; text-align: center; }
  .process-number { font-size: 32px; margin-bottom: 6px; }
  .process-step h3 { font-size: 15px; margin-bottom: 6px; }
  .process-step p { font-size: 13px; }
  
  .cert-card { padding: 24px 20px; }
  .cert-card h3 { font-size: 16px; }
  .cert-card p { font-size: 13px; }
  
  .value-card { padding: 24px 20px; }
  .value-card h3 { font-size: 16px; }
  .value-card p { font-size: 13px; }
  
  .info-block { padding: 24px 20px; }
  .info-block h3 { font-size: 16px; }
  .info-list li { font-size: 14px; }
  .returns-note { font-size: 13px; padding: 12px 14px; }
  
  /* CTA banner mobile */
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: 24px; margin-bottom: 10px; }
  .cta-banner p { font-size: 14px; margin-bottom: 24px; }
  .cta-banner .btn-white, .cta-banner .btn-outline {
    padding: 12px 24px; font-size: 14px;
  }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-item::after { display: none !important; }
}

/* ===== TOAST NOTIFICATION ===== */
.ctmri-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 360px;
  max-width: 560px;
  padding: 18px 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.ctmri-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ctmri-toast-success {
  background: #fff;
  border-left: 4px solid var(--success);
  color: var(--text);
}

.ctmri-toast-error {
  background: #fff;
  border-left: 4px solid var(--danger);
  color: var(--text);
}

.ctmri-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.ctmri-toast-success .ctmri-toast-icon {
  background: rgba(29,201,129,0.12);
  color: var(--success);
}

.ctmri-toast-error .ctmri-toast-icon {
  background: rgba(232,70,58,0.12);
  color: var(--danger);
}

.ctmri-toast-msg {
  flex: 1;
}

.ctmri-toast-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.ctmri-toast-close:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .ctmri-toast {
    min-width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    transform: translateY(-120%);
    padding: 16px 20px;
  }
  .ctmri-toast.show {
    transform: translateY(0);
  }
}

/* ===== BUTTON LOADING SPINNER ===== */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: btn-spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.form-submit.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

/* ===== END OF STYLESHEET ===== */