/* ============================================================
   TechCore Swiss — Dark Tech Design System
   ============================================================ */
:root {
  --bg: #0A0F1E;
  --bg-card: #111827;
  --bg-card2: #1B2A4A;
  --accent: #00D4FF;
  --accent2: #0099CC;
  --cta: #FF6B35;
  --cta-hover: #E55A24;
  --text: #F0F4FF;
  --text-muted: #8B9CC8;
  --text-dim: #4A5A7A;
  --border: rgba(0,212,255,0.15);
  --border-solid: #1E2D4A;
  --green: #00E676;
  --yellow: #FFD600;
  --red: #FF4444;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(0,212,255,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 16px rgba(0,212,255,0.3);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-solid);
}

.header-top {
  border-bottom: 1px solid var(--border-solid);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-right { display: flex; gap: 20px; }
.header-top-right a:hover { color: var(--accent); }

.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-country {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.search-bar {
  flex: 1;
  position: relative;
  max-width: 560px;
}
.search-bar input {
  width: 100%;
  padding: 10px 48px 10px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.2s;
}
.search-btn:hover { color: var(--accent); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.suggestion-item:hover { background: rgba(0,212,255,0.08); color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  transition: all 0.2s;
}
.action-btn:hover { color: var(--accent); background: rgba(0,212,255,0.07); }
.cart-btn { color: var(--text); }
.badge {
  position: absolute;
  top: 4px; right: 6px;
  background: var(--cta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.main-nav {
  border-top: 1px solid var(--border-solid);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.nav-list li a {
  display: block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  position: relative;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  transition: all 0.2s;
}
.nav-list li a:hover { color: var(--text); }
.nav-list li a:hover::after { left: 0; right: 0; }
.nav-highlight { color: var(--cta) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(0,212,255,0.08) 0%, transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-accent { color: var(--accent); }
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 12px; color: var(--text-muted); }

/* CPU Chip visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-chip {
  position: relative;
  width: 260px;
  height: 260px;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0,212,255,0.15), inset 0 0 40px rgba(0,0,0,0.4);
  animation: chipFloat 4s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.chip-core {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1B2A4A, #0A1628);
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
}
.chip-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(4,20px);
  gap: 6px;
}
.chip-cell {
  width: 20px; height: 20px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 3px;
}
.chip-cell.active {
  background: rgba(0,212,255,0.25);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
  animation: cellPulse 2s ease-in-out infinite;
}
@keyframes cellPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.chip-pins { position: absolute; inset: 0; }
.pin-row, .pin-col {
  position: absolute;
  display: flex;
}
.pin-row { flex-direction: row; gap: 10px; left: 50%; transform: translateX(-50%); }
.pin-row span, .pin-col span {
  display: block;
  background: var(--text-muted);
  border-radius: 1px;
}
.pin-row span { width: 3px; height: 14px; }
.pin-col span { width: 14px; height: 3px; }
.pin-row.top { top: -16px; }
.pin-row.bottom { bottom: -16px; }
.pin-col { flex-direction: column; gap: 10px; top: 50%; transform: translateY(-50%); }
.pin-col.left { left: -16px; }
.pin-col.right { right: -16px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; }
.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.section-header .section-title { margin-bottom: 0; }
.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.see-all:hover { color: var(--accent2); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-section { background: rgba(17,24,39,0.5); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.cat-icon { font-size: 22px; flex-shrink: 0; }
.cat-info h3 { font-size: 13px; font-weight: 600; line-height: 1.2; }
.cat-info p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cat-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 16px;
  transition: all 0.2s;
}
.cat-card:hover .cat-arrow { color: var(--accent); transform: translateX(4px); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new { background: var(--accent); color: #000; }
.badge-hot { background: var(--cta); color: #fff; }
.badge-sale { background: var(--green); color: #000; }
.product-img {
  height: 200px;
  background: linear-gradient(135deg, #0f1f3d, #1B2A4A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(10,15,30,0.7);
  border: 1px solid var(--border-solid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
}
.wishlist-btn:hover, .wishlist-btn.active {
  background: rgba(255,68,68,0.2);
  border-color: #ff4444;
  color: #ff4444;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}
.product-name a:hover { color: var(--accent); }
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.product-price-old {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 4px;
}
.add-cart-btn {
  padding: 8px 16px;
  background: var(--cta);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.add-cart-btn:hover {
  background: var(--cta-hover);
  transform: scale(1.04);
}
.stock-indicator {
  font-size: 11px;
  margin-top: 8px;
}
.in-stock { color: var(--green); }
.low-stock { color: var(--yellow); }
.out-of-stock { color: var(--red); }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(135deg, #0d1f42, #1B2A4A);
  border-top: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,212,255,0.1) 0%, transparent 60%);
}
.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.promo-text h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.promo-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.promo-chip-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-chip {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, var(--bg-card2), #0A1628);
  border: 2px solid var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(0,212,255,0.3);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { background: rgba(17,24,39,0.4); }
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.rating-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stars-display {
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.rating-details p { color: var(--text-muted); font-size: 14px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}
.review-card:hover { border-color: rgba(0,212,255,0.3); }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.reviewer-info { display: flex; gap: 12px; align-items: center; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card2), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.review-stars { font-size: 16px; color: var(--yellow); letter-spacing: 1px; }
.review-product-name {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}
.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TRUST
   ============================================================ */
.trust-section {
  padding: 52px 0;
  border-top: 1px solid var(--border-solid);
  background: var(--bg-card);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  text-align: center;
  padding: 24px;
}
.trust-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.trust-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.trust-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #070B17;
  border-top: 1px solid var(--border-solid);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-brand address {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.footer-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.footer-phone:hover { color: var(--text); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-solid);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
}
.payment-icons { display: flex; gap: 8px; }
.pay-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.page-hero {
  padding: 40px 0;
  background: rgba(17,24,39,0.5);
  border-bottom: 1px solid var(--border-solid);
}
.page-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 36px 0;
}

/* Sidebar filters */
.sidebar { position: sticky; top: 140px; align-self: start; }
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.filter-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-solid);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-panel-body { padding: 16px 20px; }
.price-range-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.price-range-inputs input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
}
.price-range-inputs input:focus { border-color: var(--accent); }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.filter-checkbox:hover { color: var(--text); }
.filter-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.filter-label-count { margin-left: auto; font-size: 12px; color: var(--text-dim); }

/* Catalog main */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-solid);
}
.results-count { font-size: 14px; color: var(--text-muted); }
.sort-select {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--accent); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active { border-color: var(--accent); color: var(--accent); }

.catalog-grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.catalog-grid-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card-list {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  padding: 16px;
  transition: all 0.25s;
}
.product-card-list:hover { border-color: var(--accent); }
.product-card-list .product-img {
  width: 140px;
  height: 120px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.product-card-list .product-body { padding: 0; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding: 40px 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.product-gallery { position: sticky; top: 140px; align-self: start; }
.gallery-main {
  height: 400px;
  background: linear-gradient(135deg, #0f1f3d, #1B2A4A);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  margin-bottom: 14px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
}
.gallery-thumb {
  width: 70px; height: 70px;
  background: var(--bg-card);
  border: 2px solid var(--border-solid);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }

.product-info { padding-top: 8px; }
.product-info .product-brand { font-size: 13px; margin-bottom: 8px; }
.product-info h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.product-rating-row .stars { color: var(--yellow); font-size: 16px; }
.product-rating-row .review-count {
  font-size: 13px;
  color: var(--text-muted);
}
.product-rating-row a:hover { color: var(--accent); }
.detail-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.detail-price-old {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-bottom: 20px;
}
.detail-stock {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px; height: 44px;
  background: var(--bg-card);
  font-size: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.qty-btn:hover { background: rgba(0,212,255,0.1); color: var(--accent); }
.qty-input {
  width: 60px;
  background: var(--bg);
  border: none;
  border-left: 1px solid var(--border-solid);
  border-right: 1px solid var(--border-solid);
  color: var(--text);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  height: 44px;
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.detail-actions .btn { flex: 1; justify-content: center; }
.detail-specs-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 20px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-solid);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .spec-key { color: var(--text-muted); }
.spec-row .spec-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-align: right;
}

.tabs {
  border-bottom: 1px solid var(--border-solid);
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:hover { color: var(--text); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 40px 0;
}
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  align-items: center;
}
.cart-item-img {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #0f1f3d, #1B2A4A);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-sku { font-size: 12px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.cart-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.remove-btn {
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 6px;
}
.remove-btn:hover { color: var(--red); }

.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 140px;
}
.order-summary h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-solid);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding-top: 14px;
  border-top: 1px solid var(--border-solid);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.coupon-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.coupon-row input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.coupon-row input:focus { border-color: var(--accent); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  padding: 40px 0;
}
.checkout-step {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-header h3 { font-size: 16px; font-weight: 700; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-dim); }

.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 2px solid var(--border-solid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.payment-option:hover { border-color: rgba(0,212,255,0.3); }
.payment-option.selected { border-color: var(--accent); background: rgba(0,212,255,0.05); }
.payment-option input[type="radio"] { accent-color: var(--accent); }
.payment-icon { font-size: 22px; }
.payment-label { font-size: 14px; font-weight: 500; }
.payment-desc { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   ACCOUNT / AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 40px;
}
.auth-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 22px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border-solid);
}
.auth-divider span { background: var(--bg-card); padding: 0 14px; position: relative; }
.social-btn {
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s;
  margin-bottom: 10px;
  font-family: inherit;
}
.social-btn:hover { border-color: var(--accent); }
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; }

/* Account Dashboard */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 40px 0;
}
.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-solid);
  transition: all 0.2s;
  cursor: pointer;
}
.account-nav-item:hover, .account-nav-item.active {
  background: rgba(0,212,255,0.07);
  color: var(--accent);
}
.account-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 28px;
}
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 14px;
}
.order-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.status-delivered { background: rgba(0,230,118,0.15); color: var(--green); }
.status-shipped { background: rgba(0,212,255,0.15); color: var(--accent); }
.status-processing { background: rgba(255,214,0,0.15); color: var(--yellow); }

/* ============================================================
   STATIC PAGES (Terms, Privacy, etc.)
   ============================================================ */
.static-page { padding: 60px 0; }
.static-content { max-width: 860px; }
.static-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
}
.static-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--accent);
}
.static-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}
.static-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.static-content ul li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.static-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.static-content th {
  padding: 12px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border-solid);
  font-size: 13px;
  text-align: left;
  color: var(--accent);
}
.static-content td {
  padding: 11px 16px;
  border: 1px solid var(--border-solid);
  font-size: 14px;
  color: var(--text-muted);
}
.info-box {
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.contact-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--text-muted); margin: 0; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}
.success-box {
  max-width: 480px;
}
.success-icon {
  font-size: 72px;
  margin-bottom: 24px;
}
.success-box h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}
.success-box p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.order-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
}

/* ============================================================
   NOTIFICATIONS (toast)
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  min-width: 280px;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.empty-state p { margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .header-top { display: none; }
  .header-main .container { gap: 12px; }
  .search-bar { max-width: none; }
  .header-actions { display: none; }
  .burger { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list li a { padding: 12px 20px; border-bottom: 1px solid var(--border-solid); }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid-4 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .promo-content { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
}
.mobile-menu-overlay.active { display: block; }
