/* ===================================================
   AB TECH — Modern Sci-Fi Electronics Website
   Style: Dark · Circuit-Board · Engineering Precision
   =================================================== */

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

:root {
  --c-bg:         #050811;
  --c-bg2:        #080d1a;
  --c-bg3:        #0d1526;
  --c-surface:    #111827;
  --c-surface2:   #1a2440;
  --c-border:     rgba(0,212,255,0.12);
  --c-border2:    rgba(124,58,237,0.15);

  --c-cyan:       #00d4ff;
  --c-cyan2:      #00a3c4;
  --c-purple:     #7c3aed;
  --c-purple2:    #a855f7;
  --c-green:      #10b981;
  --c-amber:      #f59e0b;
  --c-red:        #ef4444;

  --c-text:       #e2e8f0;
  --c-text2:      #94a3b8;
  --c-text3:      #64748b;

  --font-sans:    'Inter', 'Sarabun', sans-serif;
  --font-thai:    'Sarabun', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-cyan:  0 0 30px rgba(0,212,255,0.15);
  --shadow-glow:  0 0 60px rgba(0,212,255,0.08);

  --nav-h:        72px;
  --transition:   cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-thai);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-cyan2); border-radius: 3px; }

/* ── UTILITY ───────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0.08em; color: var(--c-cyan); }

/* ── BACKGROUND CANVAS ─────────────────────────────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  z-index: 2;
}
@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 60px, 60px 0; }
}
.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.04) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanMove 8s linear infinite;
  opacity: 0.3;
  z-index: 3;
}
@keyframes scanMove {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

/* ── NAVBAR ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s var(--transition), backdrop-filter 0.3s, border-bottom 0.3s;
}
.navbar.scrolled {
  background: rgba(5,8,17,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 32px rgba(0,212,255,0.06);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  animation: logoPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.5));
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0,212,255,0.5)); }
  50%       { filter: drop-shadow(0 0 16px rgba(0,212,255,0.8)); }
}
.logo-text { display: flex; flex-direction: column; }
.logo-brand { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 900; color: var(--c-cyan); letter-spacing: 0.05em; line-height: 1; }
.logo-tech  { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 300; color: var(--c-text); letter-spacing: 0.15em; line-height: 1; margin-top: -2px; }
.logo-tag   { font-family: var(--font-mono); font-size: 0.6rem; color: var(--c-text3); letter-spacing: 0.1em; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--c-text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--c-cyan);
  border-radius: 1px;
  transition: left 0.3s var(--transition), right 0.3s var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--c-text); }
.nav-link:hover::after, .nav-link.active::after { left: 16px; right: 16px; }

.btn-shopee {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #ee4d2d, #ff6542);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--transition);
  box-shadow: 0 4px 16px rgba(238,77,45,0.3);
  white-space: nowrap;
}
.btn-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238,77,45,0.45);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-text2);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  max-width: 100% !important; /* Allow background to span full width */
  margin: 0 auto;
  gap: 60px;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 10s ease-out;
  transform: scale(1.1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(5, 8, 17, 0.7) 0%, rgba(5, 8, 17, 0.9) 100%);
  z-index: -1;
}

.hero-content { 
  flex: 1; 
  max-width: 620px; 
  position: relative; 
  z-index: 10;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--c-cyan);
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s var(--transition) 0.1s both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--c-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.8s var(--transition) 0.2s both;
}
.title-line { display: block; }
.title-line.accent {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}

.hero-subtitle {
  color: var(--c-text2);
  font-size: 1.05rem;
  margin-bottom: 36px;
  animation: fadeSlideDown 0.8s var(--transition) 0.3s both;
}
.hero-subtitle .mono { display: block; margin-top: 6px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeSlideDown 0.8s var(--transition) 0.4s both;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-pct { font-family: var(--font-sans); font-size: 1rem; font-weight: 800; color: var(--c-cyan); }
.stat-label { font-size: 0.72rem; color: var(--c-text3); font-family: var(--font-mono); letter-spacing: 0.05em; margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 40px; background: var(--c-border); }

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s var(--transition) 0.5s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-cyan2));
  color: #000;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,255,0.3), 0 0 0 0 rgba(0,212,255,0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,212,255,0.45), 0 0 0 4px rgba(0,212,255,0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--c-border);
  transition: all 0.3s var(--transition);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(0,212,255,0.06);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

/* ── HERO VISUAL ───────────────────────────────────── */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s var(--transition) 0.3s both;
}
.circuit-card {
  position: relative;
  width: 420px; height: 420px;
}
.circuit-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringRotate 20s linear infinite;
}
.ring-1 {
  width: 380px; height: 380px;
  border-color: rgba(0,212,255,0.15);
  animation-duration: 25s;
}
.ring-2 {
  width: 300px; height: 300px;
  border-color: rgba(124,58,237,0.2);
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 18s;
}
.ring-3 {
  width: 220px; height: 220px;
  border-color: rgba(0,212,255,0.1);
  animation-duration: 30s;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.circuit-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0,212,255,0.3);
  animation: heroFloat 4s ease-in-out infinite;
}
.circuit-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 70%);
  pointer-events: none;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.2) brightness(1.1);
}
@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%       { transform: translate(-50%, -50%) translateY(-12px); }
}

.circuit-nodes {
  position: absolute;
  inset: 0;
  animation: ringRotate 30s linear infinite reverse;
}
.node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--c-cyan);
  background: rgba(5,8,17,0.9);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  animation: ringRotate 30s linear infinite;
  letter-spacing: 0.08em;
}
.node-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.node-2 { right: 10px; top: 50%; transform: translateY(-50%); }
.node-3 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.node-4 { left: 10px; top: 50%; transform: translateY(-50%); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeSlideDown 1s var(--transition) 1s both;
}
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--c-text3);
  letter-spacing: 0.2em;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}

/* ── FEATURES STRIP ────────────────────────────────── */
.features-strip {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}
.features-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: 1px solid var(--c-border);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-right: 1px solid var(--c-border);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-item:last-child { border-right: none; }
.feature-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(to right, var(--c-cyan), var(--c-purple));
  transition: width 0.4s var(--transition);
}
.feature-item:hover::before { width: 100%; }
.feature-item:hover { background: rgba(0,212,255,0.03); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan);
  flex-shrink: 0;
  transition: all 0.3s;
}
.feature-item:hover .feature-icon {
  background: rgba(0,212,255,0.15);
  box-shadow: var(--shadow-cyan);
  transform: scale(1.1);
}
.feature-text h3 { font-size: 0.9rem; font-weight: 700; color: var(--c-text); margin-bottom: 2px; font-family: var(--font-sans); }
.feature-text p  { font-size: 0.78rem; color: var(--c-text3); line-height: 1.4; }

/* ── SECTION COMMONS ───────────────────────────────── */
.section-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-badge {
  display: inline-block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--c-text), var(--c-text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--c-text2); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── FILTER BAR ────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.filter-btn {
  padding: 8px 18px;
  background: transparent;
  color: var(--c-text2);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.3s var(--transition);
  letter-spacing: 0.04em;
}
.filter-btn:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(0,212,255,0.05);
}
.filter-btn.active {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}

/* ── SHOPEE REVIEWS ────────────────────────────────── */
.shopee-reviews {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.review-display-wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}

.review-card-container {
  position: relative;
  width: 100%;
}

.review-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0; left: 0; width: 100%;
  pointer-events: none;
}

.review-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: all;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), var(--shadow-cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

.review-card.exit {
  opacity: 0;
  transform: translateX(-30px);
}

.review-image-side {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
}

.review-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.review-content-side {
  display: flex;
  flex-direction: column;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 40px; height: 40px;
  background: var(--c-surface2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--c-cyan);
  border: 1px solid var(--c-border);
  font-weight: 700;
}

.author-info h4 {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.review-rating {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 20px;
}

.review-text {
  font-size: 1.1rem;
  color: var(--c-text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.review-text::before {
  content: '"';
  position: absolute;
  top: -20px; left: -20px;
  font-size: 4rem;
  color: rgba(0, 212, 255, 0.1);
  font-family: serif;
}

.review-date {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--c-text3);
}

.review-navigation {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.review-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px; height: 8px;
  background: var(--c-surface2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 24px;
  background: var(--c-cyan);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--c-cyan);
}

.shopee-trust-badge {
  margin-top: 60px;
  text-align: center;
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(238, 77, 45, 0.05);
  border: 1px solid rgba(238, 77, 45, 0.2);
  border-radius: 100px;
  color: #ee4d2d;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.trust-link:hover {
  background: rgba(238, 77, 45, 0.1);
  border-color: #ee4d2d;
  transform: translateY(-2px);
}

.shopee-logo-small {
  height: 20px;
}

.review-card-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--c-text3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.1);
  border-top-color: var(--c-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .review-card {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 24px;
  }
  .review-display-wrap {
    min-height: 550px;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARD ──────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition), border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.6s var(--transition) forwards;
}
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-cyan);
}
.product-card.hidden { display: none; }

.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card-badge.available {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--c-green);
}
.card-badge.out-of-stock {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--c-amber);
}
.card-featured {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--c-bg3);
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition), filter 0.3s;
}
.product-card:hover .card-img {
  transform: scale(1.06);
  filter: brightness(0.7);
}
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(to top, rgba(5,8,17,0.8), transparent);
}
.product-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
  padding: 10px 24px;
  background: var(--c-cyan);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transform: translateY(10px);
  transition: transform 0.3s var(--transition);
  white-space: nowrap;
}
.product-card:hover .overlay-btn { transform: translateY(0); }

.card-circuit-deco {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--c-cyan), var(--c-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .card-circuit-deco { opacity: 1; }

.card-body {
  padding: 20px 20px 24px;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tag-power  { background: rgba(245,158,11,0.1);  color: var(--c-amber);   border: 1px solid rgba(245,158,11,0.25); }
.tag-audio  { background: rgba(168,85,247,0.1);  color: var(--c-purple2); border: 1px solid rgba(168,85,247,0.25); }
.tag-auto   { background: rgba(0,212,255,0.08);  color: var(--c-cyan);    border: 1px solid rgba(0,212,255,0.2); }
.tag-dsp    { background: rgba(16,185,129,0.08); color: var(--c-green);   border: 1px solid rgba(16,185,129,0.2); }
.tag-solar  { background: rgba(251,191,36,0.1);  color: #fbbf24;          border: 1px solid rgba(251,191,36,0.25); }
.tag-ai     { background: rgba(59,130,246,0.1);  color: #60a5fa;          border: 1px solid rgba(59,130,246,0.25); }
.tag-smart  { background: rgba(236,72,153,0.08); color: #f472b6;          border: 1px solid rgba(236,72,153,0.2); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  line-height: 1.35;
  font-family: var(--font-thai);
}
.card-desc {
  font-size: 0.82rem;
  color: var(--c-text2);
  line-height: 1.55;
  margin-bottom: 14px;
}
.card-specs {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.spec { display: flex; flex-direction: column; }
.spec-label { font-size: 0.62rem; font-family: var(--font-mono); color: var(--c-text3); letter-spacing: 0.06em; }
.spec-val   { font-size: 0.78rem; font-weight: 700; color: var(--c-cyan); font-family: var(--font-mono); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price { display: flex; flex-direction: column; }
.price-label { font-size: 0.62rem; font-family: var(--font-mono); color: var(--c-text3); letter-spacing: 0.06em; }
.price-val   { font-size: 1.3rem; font-weight: 800; color: var(--c-text); font-family: var(--font-sans); letter-spacing: -0.02em; }

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--c-text3);
  font-family: var(--font-mono);
}
.stars { color: #fbbf24; font-size: 0.8rem; }
.rating-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  animation: blink 2s ease-in-out infinite;
}

/* ── CTA CARD ──────────────────────────────────────── */
.product-cta-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(124,58,237,0.06));
  border: 1px solid rgba(0,212,255,0.15) !important;
  display: flex; align-items: center; justify-content: center;
  min-height: 350px;
}
.cta-card-inner {
  text-align: center;
  padding: 40px 24px;
}
.cta-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan);
  animation: heroFloat 3s ease-in-out infinite;
}
.cta-card-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-text);
}
.cta-card-inner p {
  font-size: 0.82rem;
  color: var(--c-text2);
  margin-bottom: 24px;
  line-height: 1.55;
}
.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: all 0.3s var(--transition);
  background: transparent;
}
.btn-outline-glow:hover {
  background: var(--c-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

/* ── ABOUT SECTION ─────────────────────────────────── */
.about {
  position: relative;
  z-index: 1;
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-visual { position: relative; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.9);
  transition: transform 0.5s;
}
.about-img-wrap:hover .about-img { transform: scale(1.03); }
.about-img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), transparent 50%, rgba(124,58,237,0.06));
  pointer-events: none;
}

.about-stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.mini-stat {
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.mini-stat:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--shadow-cyan);
}
.mini-num { display: block; font-size: 1.4rem; font-weight: 800; color: var(--c-cyan); font-family: var(--font-sans); }
.mini-label { display: block; font-size: 0.65rem; font-family: var(--font-mono); color: var(--c-text3); margin-top: 4px; letter-spacing: 0.04em; }
.mini-bar { height: 3px; background: var(--c-surface2); border-radius: 2px; margin-top: 8px; }
.mini-fill { height: 100%; background: linear-gradient(to right, var(--c-cyan), var(--c-purple)); border-radius: 2px; transition: width 1.5s var(--transition); }

.about-content { }
.about-lead {
  font-size: 1.05rem;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-body { color: var(--c-text2); margin-bottom: 36px; line-height: 1.7; }

.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.pillar {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.pillar:hover {
  border-color: rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.03);
  transform: translateX(4px);
}
.pillar-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0,212,255,0.2);
  line-height: 1;
  flex-shrink: 0;
}
.pillar-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--c-text); margin-bottom: 4px; font-family: var(--font-sans); }
.pillar-text p  { font-size: 0.8rem; color: var(--c-text2); line-height: 1.5; }

/* ── TECH MARQUEE ──────────────────────────────────── */
.tech-showcase {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 20px 0;
  background: rgba(0,212,255,0.03);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-track .sep { color: var(--c-cyan); font-size: 0.6rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CONTACT SECTION ───────────────────────────────── */
.contact {
  position: relative;
  z-index: 1;
  background: var(--c-bg);
}
.contact-inner { text-align: center; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.3s var(--transition);
  text-align: center;
}
.contact-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-6px);
  background: rgba(0,212,255,0.03);
}
.contact-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan);
  transition: all 0.3s;
}
.contact-card:hover .contact-icon {
  background: rgba(0,212,255,0.15);
  transform: scale(1.1);
  box-shadow: var(--shadow-cyan);
}
.shopee-icon { color: #ee4d2d; background: rgba(238,77,45,0.08); border-color: rgba(238,77,45,0.2); }
.contact-card:first-child:hover .contact-icon { background: rgba(238,77,45,0.15); box-shadow: 0 0 20px rgba(238,77,45,0.2); }
.contact-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contact-info p  { font-size: 0.82rem; color: var(--c-text2); margin-bottom: 8px; }
.contact-action  { font-size: 0.75rem; font-family: var(--font-mono); color: var(--c-cyan); letter-spacing: 0.04em; }

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
}
.footer-container { max-width: 1280px; margin: 0 auto; padding: 64px 24px 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.85rem; color: var(--c-text3); margin-top: 16px; line-height: 1.7; }
.footer-links h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--c-text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--c-text2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-cyan); }
.footer-tech h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--c-text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  padding: 4px 10px;
  background: rgba(0,212,255,0.06);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--c-cyan);
  letter-spacing: 0.04em;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.footer-bottom p { font-size: 0.75rem; color: var(--c-text3); font-family: var(--font-mono); }
.footer-shopee-link a { color: var(--c-cyan); text-decoration: none; font-family: var(--font-mono); font-size: 0.75rem; }
.footer-shopee-link a:hover { text-decoration: underline; }

/* ── FLOATING CHAT BUTTON ──────────────────────────── */
.float-chat {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1000;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #1877f2, #00d4ff);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3), 0 0 0 0 rgba(0,212,255,0.4);
  transition: all 0.3s var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.float-chat:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,212,255,0.5), 0 0 0 4px rgba(0,212,255,0.15);
  color: #fff;
}
.chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.4), transparent 70%);
  z-index: -1;
  animation: chatPulse 2.5s infinite;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.chat-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(11,21,41,0.95);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-thai);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--transition);
  box-shadow: var(--shadow);
}
.float-chat:hover .chat-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  border-color: var(--c-cyan);
}

/* ── BACK TO TOP ───────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 96px; right: 32px;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-cyan);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s var(--transition);
  box-shadow: var(--shadow);
}
.back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--c-cyan);
  color: #000;
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── INTERSECTION OBSERVER REVEALS ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ────────────────────────────────────── */
/* ── VOUCHERS SECTION ──────────────────────────────── */
.vouchers-section {
  background: var(--c-bg);
  padding: 80px 24px;
  position: relative;
  z-index: 5;
}

.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.voucher-card {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
}

.voucher-card:hover {
  border-color: var(--c-cyan);
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
}

.voucher-card::before, .voucher-card::after {
  content: '';
  position: absolute;
  left: 65%;
  width: 20px; height: 20px;
  background: var(--c-bg);
  border-radius: 50%;
  z-index: 2;
}
.voucher-card::before { top: -10px; border-bottom: 1px dashed var(--c-border); }
.voucher-card::after { bottom: -10px; border-top: 1px dashed var(--c-border); }

.voucher-main {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px dashed var(--c-border);
}

.voucher-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.voucher-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.voucher-main p {
  color: var(--c-text3);
  font-size: 0.85rem;
  margin-top: 5px;
}

.voucher-side {
  width: 35%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.02);
}

.fake-barcode {
  font-family: 'Sarabun', sans-serif;
  font-size: 1.5rem;
  letter-spacing: -2px;
  color: var(--c-text3);
  opacity: 0.5;
  user-select: none;
}

.barcode-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--c-cyan);
  margin-top: 2px;
  margin-bottom: 15px;
}

.btn-claim {
  padding: 8px 16px;
  background: var(--c-cyan);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-claim:hover {
  background: #fff;
  box-shadow: 0 0 15px #fff;
}

@media (max-width: 600px) {
  .voucher-card { flex-direction: column; }
  .voucher-main { border-right: none; border-bottom: 1px dashed var(--c-border); }
  .voucher-side { width: 100%; }
  .voucher-card::before, .voucher-card::after { display: none; }
}

@media (max-width: 1100px) {
  .features-container { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-top: 1px solid var(--c-border); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,8,17,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    padding: 24px;
    gap: 4px;
  }
  .nav-hamburger { display: flex; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: calc(var(--nav-h) + 20px) 16px 40px;
    gap: 30px;
    min-height: auto;
  }
  .hero-content { width: 100%; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats {
    padding: 16px;
    gap: 12px;
    justify-content: center;
  }
  .stat-divider { display: none; }
  .hero-cta { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; justify-content: center; }
  
  .hero-visual { width: 100%; margin-top: 20px; }
  .circuit-card { width: 260px; height: 260px; margin: 0 auto; }
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 190px; height: 190px; }
  .ring-3 { width: 130px; height: 130px; }
  .circuit-core { width: 120px; height: 120px; }
  .circuit-nodes { display: none; } /* Hide nodes on small mobile to save space */

  .features-container { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(2) { border-right: 1px solid var(--c-border); }
  .feature-item:nth-child(3) { border-top: 1px solid var(--c-border); border-right: none; }
  .feature-item:nth-child(4) { border-top: 1px solid var(--c-border); }

  .products-grid { grid-template-columns: 1fr; }
  .about-stats-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .features-container { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; border-top: 1px solid var(--c-border); }
  .feature-item:first-child { border-top: none; }
  .section-container { padding: 64px 16px; }
}

/* ── PRODUCT DETAILS MODAL ─────────────────────────── */
.product-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-modal.active {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(11, 21, 41, 0.98);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-cyan);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--c-cyan) var(--c-surface);
}
.product-modal.active .modal-content {
  transform: scale(1) translateY(0);
  border-color: var(--c-cyan);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-text);
  font-size: 1.5rem;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--transition);
  z-index: 10;
}
.modal-close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 10px;
}
.modal-image-wrap {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-surface);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-info {
  display: flex;
  flex-direction: column;
}
.modal-title {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--c-text2);
  margin-bottom: 24px;
}

/* Specs styling inside modal */
.modal-specs {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 0;
  margin-bottom: 24px;
}
.modal-specs .spec {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}
.modal-specs .spec-label {
  color: var(--c-text2);
  font-family: var(--font-mono);
}
.modal-specs .spec-val {
  color: var(--c-cyan);
  font-weight: 500;
}

/* Price & Qty styling */
.modal-order-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price-row .price-label {
  font-size: 0.85rem;
  color: var(--c-text2);
}
.price-row .price-val {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qty-label {
  font-size: 0.9rem;
  color: var(--c-text2);
  font-family: var(--font-mono);
}
.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-surface);
}
.qty-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--c-text);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: var(--c-surface2);
  color: var(--c-cyan);
}
#qtyInput {
  width: 50px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
}
/* Disable number arrows */
#qtyInput::-webkit-outer-spin-button,
#qtyInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#modalChatBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  text-decoration: none;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
    max-height: 90vh;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-close {
    top: 12px; right: 12px;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .price-row .price-val {
    font-size: 1.6rem;
  }
}

/* ── DEDICATED PRODUCT PAGE ────────────────────────── */
.product-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
  position: relative;
  z-index: 2;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.breadcrumb a {
  color: var(--c-text2);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--c-cyan);
}
.breadcrumb .sep {
  color: var(--c-text3);
}
.breadcrumb .current {
  color: var(--c-cyan);
}

/* Product Detail Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
}
.details-image-panel {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.details-image-wrap {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-surface);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-cyan), 0 10px 35px rgba(0, 0, 0, 0.4);
}
.details-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.3;
}
.details-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}
.details-image-wrap:hover .details-img {
  transform: scale(1.03);
}
.details-info-panel {
  display: flex;
  flex-direction: column;
}

.details-title-row {
  margin-bottom: 24px;
}
.details-title {
  font-size: 2.5rem;
  margin: 10px 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}
.details-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.details-desc {
  font-size: 1.05rem;
  color: var(--c-text2);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Specifications Table */
.details-specs-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 8px;
}
.details-specs {
  margin-bottom: 32px;
}
.details-specs .spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.1);
  font-size: 0.95rem;
}
.details-specs .spec-label {
  color: var(--c-text2);
  font-family: var(--font-mono);
}
.details-specs .spec-val {
  color: var(--c-cyan);
  font-weight: 600;
}

/* Price & Ordering Panel */
.details-order-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 30px;
  margin-top: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.details-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.details-price-row .price-label {
  font-size: 0.9rem;
  color: var(--c-text2);
  font-family: var(--font-mono);
}
.details-price-row .price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.details-action-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
}
.details-action-row #modalChatBtn {
  width: auto;
}

/* Related Products Section */
.related-section {
  border-top: 1px solid var(--c-border);
  padding-top: 60px;
  margin-bottom: 40px;
}
.related-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}
.related-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; width: 60px; height: 2px;
  background: var(--c-cyan);
  box-shadow: var(--shadow-cyan);
}

/* Product Not Found Screen */
.not-found-wrap {
  text-align: center;
  padding: 120px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.not-found-icon {
  color: #ef4444;
  margin-bottom: 24px;
}
.not-found-wrap h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 16px;
}
.not-found-wrap p {
  color: var(--c-text2);
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .details-image-panel {
    position: static;
  }
}
@media (max-width: 480px) {
  .details-title {
    font-size: 2rem;
  }
  .details-action-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ── CATALOG PRODUCTS PAGE ────────────────────────── */
.search-section {
  margin-bottom: 40px;
}
.search-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.search-form {
  position: relative;
  width: 100%;
}
.search-input-group {
  display: flex;
  background: rgba(10, 15, 30, 0.7);
  border: 1.5px solid var(--c-border);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}
.search-input-group:focus-within {
  border-color: var(--c-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 25px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}
.search-input::placeholder {
  color: var(--c-text3);
}
.search-btn {
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-purple) 100%);
  border: none;
  color: #fff;
  padding: 0 30px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-btn:hover {
  opacity: 0.9;
}

/* Category Navigation Tabs */
.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.category-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border);
  color: var(--c-text2);
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
}
.category-tab:hover, .category-tab.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Best Sellers Section */
.best-sellers-section {
  margin-bottom: 60px;
  background: rgba(124, 58, 237, 0.02);
  border: 1.5px dashed rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 30px 25px;
  position: relative;
  overflow: hidden;
}
.best-sellers-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(to bottom, #f59e0b, #d97706);
}
.best-sellers-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.best-sellers-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.best-sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.best-seller-card {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(10, 15, 30, 0.6);
}
.best-seller-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.best-seller-badge {
  position: absolute;
  top: 15px; left: 15px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  color: var(--c-text2);
}
.empty-state h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.empty-state p {
  margin-bottom: 20px;
}
