/* NI Computers — Warm Premium Design System */

/* ========== DESIGN TOKENS ========== */
:root {
  /* Colours */
  --bg: #1a1a2e;
  --bg-card: #242442;
  --bg-alt: #16162b;
  --text: #e8e6e3;
  --text-muted: #9a9a9a;
  --primary: #d4a853;
  --primary-hover: #c49643;
  --accent: #e8c875;
  --border: #2e2e4a;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --white: #ffffff;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* S6: Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* S7: Text selection colour */
::selection { background: rgba(212, 168, 83, 0.3); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--primary);
  color: var(--bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; color: var(--bg); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ========== NAVIGATION ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-md);
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md);
  gap: var(--space-xs);
}
.nav-links.is-open { display: flex; }
.nav-links a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-links a:hover { background: var(--bg-card); color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); font-weight: 700; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-phone {
  display: none;
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}
.nav-phone:hover { color: var(--primary); text-decoration: none; }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text);
  transition: color var(--transition-fast);
}
.nav-cart:hover { color: var(--primary); }
.nav-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
.nav-overlay.is-open { display: block; }

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  background: var(--bg-alt);
  padding: var(--space-sm) 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
  display: flex;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
  flex-wrap: wrap;
}
.breadcrumbs li + li::before {
  content: "\203A";
  margin-right: var(--space-sm);
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-hover); color: var(--bg); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--bg); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-white:hover { background: var(--white); color: var(--bg); border-color: var(--white); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-cart { width: 100%; justify-content: center; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: min(80vh, 650px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
  max-width: 680px;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  color: rgba(232, 230, 227, 0.9);
}
.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Trust badges */
.trust-badges {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(212, 168, 83, 0.1);
}

/* ========== SECTIONS ========== */
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header .section-lead { margin-inline: auto; }

/* ========== CATEGORY CARDS (Homepage) ========== */
.category-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.4) 50%, transparent 100%);
}
.category-card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  width: 100%;
}
.category-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}
.category-card p {
  color: rgba(232, 230, 227, 0.8);
  font-size: 0.875rem;
  margin: 0;
}
.category-card-link { text-decoration: none; display: block; }
.category-card-link:hover { text-decoration: none; }

/* ========== PRODUCT CARDS ========== */
.product-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.product-card-image {
  background: var(--bg-alt);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.product-card-image img {
  max-height: 200px;
  object-fit: contain;
}
.product-card-body { padding: var(--space-lg); }

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

/* Grade badges */
.grade-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.grade-a { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.grade-b { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.grade-vg { background: rgba(154, 154, 154, 0.15); color: var(--text-muted); }

/* Star rating */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--primary);
  font-size: 0.8125rem;
}
.stars .count { color: var(--text-muted); margin-left: var(--space-xs); font-size: 0.75rem; }

.product-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text);
}
.product-card-title a { color: var(--text); text-decoration: none; }
.product-card-title a:hover { color: var(--primary); }
.product-card-image a { display: block; }
.product-card-specs {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.product-card-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-sale {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.product-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
}
.stock-in { color: var(--success); font-weight: 600; }
.stock-low { color: var(--warning); font-weight: 600; }
.free-delivery { color: var(--accent); font-weight: 500; }

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}
.filter-bar label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.filter-bar select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  color: var(--text);
  font-size: 0.875rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { border-color: var(--primary); color: var(--primary); background: rgba(212, 168, 83, 0.1); }

/* ========== SERVICE HERO (Category pages) ========== */
.service-hero {
  position: relative;
  min-height: min(40vh, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.service-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%);
}
.service-hero .hero-content { max-width: 600px; padding: var(--space-2xl) var(--space-md); }
.service-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: var(--space-sm); }
.service-hero p { color: rgba(232, 230, 227, 0.85); margin: 0; }

/* ========== FAQ ACCORDION ========== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  display: block;
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--primary); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform var(--transition);
}
details[open] .faq-question::after { content: '\2212'; }
.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
  line-height: 1.6;
  overflow: hidden;
  animation: faq-open 250ms ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--bg);
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}
.cta-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--bg); }
.cta-section p { max-width: 560px; margin-inline: auto; margin-bottom: var(--space-xl); opacity: 0.85; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-2xl);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.footer-col-title {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-col li { margin-bottom: var(--space-xs); }
.footer-col p { line-height: 1.7; }
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p { color: var(--text-muted); margin-top: var(--space-sm); }

/* ========== FORMS ========== */
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.required-star { color: var(--danger); }

/* ========== ABOUT PAGE ========== */
.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}
.inspection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.inspection-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}
.inspection-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 83, 0.15);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inspection-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-xs); }
.inspection-step p { color: var(--text-muted); font-size: 0.9375rem; }

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.contact-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-item h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: 0.875rem; }
.contact-item a { color: var(--primary); }

.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

/* ========== PRODUCT COUNT (S2) ========== */
.product-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* ========== FORM NOTE (S4) ========== */
.form-note {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========== UTILITY CLASSES ========== */
.container-narrow { max-width: 760px; margin-inline: auto; }
.body-lg { font-size: 1.125rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.btn-outline-dark { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn-outline-dark:hover { background: var(--bg); color: var(--primary); }

/* ========== CART DRAWER ========== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: auto;
  max-height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { right: 0; }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { font-size: 1.125rem; font-weight: 700; }
.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm);
  font-size: 1.5rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-close:hover { color: var(--text); }
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}
.cart-drawer-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-2xl) 0;
}
.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.875rem; margin-bottom: 2px; }
.cart-item-price { color: var(--primary); font-weight: 700; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
.cart-item-qty button {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.cart-item-qty button:hover { border-color: var(--primary); color: var(--primary); }
.cart-item-qty span { font-size: 0.875rem; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 0;
}
.cart-item-remove:hover { text-decoration: underline; }
.cart-drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}
.cart-totals { margin-bottom: var(--space-md); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.9375rem;
}
.cart-total-row.total {
  font-weight: 700;
  font-size: 1.125rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}
.cart-total-row .free { color: var(--success); }
.cart-checkout-btn {
  width: 100%;
  justify-content: center;
}

/* ========== PROSE / POLICY CONTENT ========== */
.prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text);
}
.prose p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--text-muted);
}
.prose ul,
.prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  color: var(--text-muted);
}
.prose li strong { color: var(--text); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }
.prose > * + h2 { padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.prose > *:first-child { border-top: none; padding-top: 0; }
.prose .last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.prose .back-to-top {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.prose .callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.product-detail-image {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.product-detail-image img#mainImage {
  max-height: 400px;
  object-fit: contain;
}
.product-gallery {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  justify-content: center;
}
.gallery-thumb {
  width: 80px; height: 80px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  padding: 6px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.gallery-thumb:hover { border-color: var(--text-muted); background: var(--bg-alt); }
.gallery-thumb.active { border-color: var(--primary); background: var(--bg-alt); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.product-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.product-detail-specs {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}
.product-detail-sku {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: var(--space-lg);
}
.product-detail-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.product-detail-pricing .price-sale { font-size: 2rem; }
.product-detail-pricing .price-original { font-size: 1.125rem; }
.savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}
.product-detail-status {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}
.product-detail-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* Product Tabs */
.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}
.product-tab {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.product-tab:hover { color: var(--text); }
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.tab-inner { max-width: 760px; }

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.specs-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 35%;
}
.specs-table td:last-child { color: var(--text-muted); }

/* Related Products */
.related-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.related-product-link { text-decoration: none; display: block; }
.related-product-link:hover { text-decoration: none; }
.related-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-product-link:hover .related-product-card {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-product-image {
  background: var(--bg-alt);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.related-product-image img { max-height: 140px; object-fit: contain; }
.related-product-body { padding: var(--space-md); }
.related-product-body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.related-product-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}
.related-product-pricing .price-sale { font-size: 1.125rem; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: var(--space-md); z-index: 180;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
  animation: slideUp 300ms ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.875rem; color: var(--text-muted); margin: 0; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: var(--space-sm); }

/* ========== FOOTER NEWSLETTER ========== */
.footer-newsletter {
  margin-top: var(--space-xl); padding-top: var(--space-xl);
  border-top: 1px solid var(--border); text-align: center;
}
.footer-newsletter .footer-col-title { margin-bottom: var(--space-sm); }
.footer-newsletter p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: var(--space-md); }
.newsletter-form {
  display: flex; gap: var(--space-sm); justify-content: center;
  max-width: 400px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 0.5rem var(--space-md); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg); color: var(--text);
  font-size: 0.875rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-card-body { padding: var(--space-lg); }
.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.blog-card-link { font-weight: 600; font-size: 0.875rem; }

/* Article page */
.article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(212, 168, 83, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .container { padding-inline: var(--space-xl); }
  .container-narrow { max-width: 680px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-content { padding: var(--space-3xl) var(--space-xl); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .inspection-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2rem; }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .product-detail-image img { max-height: 500px; }
  .product-detail-title { font-size: 1.75rem; }
  .related-products-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - var(--space-xl) / 2); justify-self: center; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    border-bottom: none;
    padding: 0;
    background: transparent;
    gap: 0;
  }
  .nav-links a { padding: var(--space-xs) var(--space-sm); font-size: 0.875rem; }
  .nav-phone { display: block; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 3.25rem; }
  .section-title { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ========== SEARCH ========== */
.nav-search-btn {
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: var(--space-xs); display: flex; align-items: center;
  min-width: 44px; min-height: 44px; justify-content: center;
}
.nav-search-btn:hover { color: var(--primary); }

.search-overlay {
  display: none; position: absolute; top: var(--nav-height);
  left: 0; right: 0; background: var(--bg-card);
  border-bottom: 1px solid var(--border); padding: var(--space-md);
  z-index: 150; box-shadow: var(--shadow-lg);
}
.search-overlay.is-open { display: block; }
.search-input {
  width: 100%; max-width: 600px; margin: 0 auto; display: block;
  padding: 0.75rem var(--space-md); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 1rem; color: var(--text);
  background: var(--bg); font-family: var(--font);
}
.search-input:focus { outline: none; border-color: var(--primary); }
.search-results {
  max-width: 600px; margin: var(--space-sm) auto 0; max-height: 400px;
  overflow-y: auto;
}
.search-result {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md);
  text-decoration: none; color: var(--text); transition: background var(--transition-fast);
}
.search-result:hover { background: var(--bg-alt); text-decoration: none; }
.search-result-image { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: contain; background: var(--bg-alt); flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { color: var(--primary); font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.search-result-specs { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-no-results { text-align: center; color: var(--text-muted); padding: var(--space-lg); }

/* PA-5: Filter empty state */
.filter-empty-state {
  text-align: center; color: var(--text-muted); padding: var(--space-2xl);
  grid-column: 1 / -1;
}
.filter-empty-state button {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font-weight: 600; text-decoration: underline; font-size: inherit;
}
