@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-darker: #02050e;
  --bg-dark: #050a18;
  --bg-card: rgba(8, 16, 36, 0.6);
  --neon-blue: #0066ff;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff007f;
  --neon-green: #39ff14;
  --neon-glow-blue: 0 0 10px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 102, 255, 0.2);
  --neon-glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
  --neon-glow-magenta: 0 0 10px rgba(255, 0, 127, 0.5), 0 0 20px rgba(255, 0, 127, 0.2);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-glass: rgba(0, 240, 255, 0.12);
  --border-glass-hover: rgba(0, 240, 255, 0.3);
  --glass-bg: rgba(5, 10, 24, 0.65);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 80px;
}

/* --- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Scanline Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.15;
}

/* Grid overlay background */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neon-text-blue {
  color: var(--neon-cyan);
  text-shadow: var(--neon-glow-cyan);
}

/* --- GLASS CONTAINER & BUTTONS --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.05);
}

.btn-neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  transition: 0.5s;
}

.btn-neon:hover::before {
  left: 100%;
}

.btn-neon:hover {
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
  box-shadow: var(--neon-glow-cyan);
  border-color: #fff;
}

.btn-neon-blue {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.15);
}

.btn-neon-blue:hover {
  background: rgba(0, 102, 255, 0.1);
  box-shadow: var(--neon-glow-blue);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(2, 5, 14, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(2, 5, 14, 0.85);
  border-bottom-color: rgba(0, 240, 255, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.logo span {
  color: var(--neon-cyan);
  text-shadow: var(--neon-glow-cyan);
  animation: neonPulse 2s infinite alternate;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  position: relative;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Nav Link Underline Slider */
.nav-indicator {
  position: absolute;
  bottom: -6px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.1);
  background: rgba(8, 16, 36, 0.4);
  transition: var(--transition-smooth);
}

.cart-icon-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--neon-blue);
  box-shadow: var(--neon-glow-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.pop {
  transform: scale(1.3);
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-height) 5% 5% 5%;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  z-index: 10;
}

.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.05);
}

.hero-content h1 {
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-visual {
  flex: 1;
  height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  max-width: 550px;
  max-height: 550px;
  cursor: grab;
}

#hero-canvas:active {
  cursor: grabbing;
}

.hero-badge {
  position: absolute;
  bottom: 15%;
  right: 10%;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--neon-glow-cyan);
}

.hero-badge-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* --- SECTION GENERAL STYLES --- */
section {
  padding: 100px 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --- CATALOG / GALLERY SECTION --- */
.catalog-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Sidebar Filters */
.filters-sidebar {
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-btn:hover {
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
  padding-left: 18px;
}

.category-btn.active {
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
  border-left: 2px solid var(--neon-cyan);
  padding-left: 16px;
}

.category-count {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text-muted);
}

/* Price Range Slider Custom styling */
.price-range-wrapper {
  padding-top: 10px;
}

.range-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

input[type="range"]::-webkit-scrollbar-thumb {
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Main Catalog Area */
.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-wrapper label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sort-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: #fff;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sort-select:focus {
  border-color: var(--neon-cyan);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 20px;
}

.product-image-container {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.1) translateY(-5px);
}

.card-overlay-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(50px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-card:hover .card-overlay-actions {
  transform: translateX(0);
  opacity: 1;
}

.card-action-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-action-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 2;
}

.badge-neon-blue {
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid var(--neon-blue);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.3);
}

.badge-neon-magenta {
  background: rgba(255, 0, 127, 0.2);
  border: 1px solid var(--neon-magenta);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-card-title:hover {
  color: var(--neon-cyan);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 0.8rem;
  color: #fbbf24;
}

.product-card-rating span {
  color: var(--text-muted);
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.product-card-price::before {
  content: "$";
  font-size: 0.9rem;
  color: var(--neon-cyan);
  margin-right: 2px;
}

/* --- PRODUCT DETAIL MODAL --- */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(2, 5, 14, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.detail-modal.active {
  opacity: 1;
  pointer-events: all;
}

.detail-container {
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  position: relative;
  transform: translateY(50px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal.active .detail-container {
  transform: translateY(0) scale(1);
}

.detail-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.detail-close-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transform: rotate(90deg);
}

/* Left panel: 3D showcase */
.detail-visual {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.detail-viewer-3d {
  width: 100%;
  height: 100%;
  max-height: 450px;
  cursor: grab;
}

.detail-viewer-3d:active {
  cursor: grabbing;
}

.viewer-hint {
  position: absolute;
  bottom: 25px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

/* Right panel: Product Configurator */
.detail-info {
  padding: 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-category {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.detail-price-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.detail-price::before {
  content: "$";
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin-right: 4px;
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Specifications list */
.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-name {
  color: var(--text-muted);
}

.spec-val {
  color: var(--text-primary);
  font-weight: 500;
}

/* Customizable Selector option */
.detail-option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.color-options {
  display: flex;
  gap: 15px;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
}

.color-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-dot.active {
  border-color: #fff;
  transform: scale(1.1);
}

.color-dot.active::after {
  transform: translate(-50%, -50%) scale(1);
}

.color-dot.blue { background-color: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.color-dot.cyan { background-color: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.color-dot.magenta { background-color: var(--neon-magenta); box-shadow: 0 0 10px var(--neon-magenta); }
.color-dot.green { background-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }

/* Control buttons footer */
.detail-controls {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  color: var(--neon-cyan);
}

.qty-val {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-family: var(--font-display);
}

.detail-controls .btn-neon {
  flex-grow: 1;
  justify-content: center;
  height: 46px;
}

/* --- SHOPPING CART DRAWER --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 5, 14, 0.6);
  backdrop-filter: blur(8px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  z-index: 950;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  border-left: 1px solid var(--border-glass);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--neon-cyan);
  transform: scale(1.1);
}

.cart-items-list {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Empty Cart State */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  gap: 15px;
}

.cart-empty-icon {
  font-size: 3rem;
  color: rgba(0, 240, 255, 0.15);
}

/* Cart Item Card */
.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  position: relative;
  transition: var(--transition-smooth);
}

.cart-item:hover {
  border-color: var(--border-glass);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  padding: 5px;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

.cart-item-price::before {
  content: "$";
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.cart-item-qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.cart-item-qty-btn:hover {
  color: var(--neon-cyan);
}

.cart-item-qty-val {
  width: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--neon-magenta);
}

/* Cart Footer breakdown */
.cart-footer {
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-total-row.grand-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.cart-total-price {
  font-family: var(--font-display);
}

.cart-total-price::before {
  content: "$";
  color: var(--neon-cyan);
  margin-right: 2px;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  height: 48px;
}

/* --- CHECKOUT MODAL FLOW --- */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  background: rgba(2, 5, 14, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.checkout-modal.active {
  opacity: 1;
  pointer-events: all;
}

.checkout-container {
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: translateY(40px);
  transition: transform 0.4s ease;
}

.checkout-modal.active .checkout-container {
  transform: translateY(0);
}

.checkout-header {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

/* Checkout Progress Indicators */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
}

.step-indicator::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.4s ease;
}

.step-indicator.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.step-indicator.active::after {
  width: 100%;
}

.step-indicator.completed {
  color: var(--neon-cyan);
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.checkout-body {
  padding: 30px;
  overflow-y: auto;
  max-height: calc(90vh - 210px);
}

.checkout-step-panel {
  display: none;
}

.checkout-step-panel.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease forwards;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
  outline: none;
}

.form-input.error {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.15);
}

.form-input.success {
  border-color: var(--neon-green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.15);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--neon-magenta);
  display: none;
}

.form-input.error + .form-error-msg {
  display: block;
}

/* Payment Icons */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.payment-card {
  padding: 15px;
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.payment-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.payment-card.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.payment-radio {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  outline: none;
  position: relative;
  cursor: pointer;
}

.payment-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  transition: transform 0.2s ease;
}

.payment-radio:checked {
  border-color: var(--neon-cyan);
}

.payment-radio:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Order summary in checkout */
.order-summary-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkout-summary-item.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

/* Success Confirmation panel */
.checkout-success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px 0;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
  animation: scalePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.checkout-success-panel h3 {
  font-size: 1.6rem;
  color: #fff;
}

.checkout-success-panel p {
  color: var(--text-secondary);
  max-width: 400px;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  margin-top: 20px;
}

.checkout-actions .btn-neon {
  padding: 10px 24px;
}

/* --- ABOUT SECTION --- */
.about {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-feature-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.about-feature-card h3 {
  font-size: 1.1rem;
  color: #fff;
}

.about-feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- CONTACT SECTION --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

.contact-info-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.05);
  flex-shrink: 0;
}

.contact-info-text h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-info-text p {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* High-tech Contact Form Terminal */
.contact-form-panel {
  padding: 40px;
  position: relative;
}

.contact-form-panel::before {
  content: "RAFFI_SECURE_MAIL_GATEWAY v1.02";
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.terminal-dots {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-dot.red { background-color: var(--neon-magenta); }
.terminal-dot.yellow { background-color: #fbbf24; }
.terminal-dot.green { background-color: var(--neon-green); }

.contact-form {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

/* --- FOOTER --- */
footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 240, 255, 0.05);
  padding: 60px 5% 30px 5%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links-col h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #fff;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--neon-cyan);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form .form-input {
  flex-grow: 1;
}

.newsletter-form .btn-neon {
  padding: 0 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--neon-cyan);
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes neonPulse {
  0% {
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.4);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scalePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }
  
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    padding-top: 120px;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 400px;
    width: 100%;
  }
  
  .hero-badge {
    bottom: 5%;
    right: 5%;
  }
  
  .catalog-container {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  header {
    padding: 0 20px;
  }
  
  .menu-btn {
    display: block;
    z-index: 110;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 105;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-indicator {
    display: none; /* Hide slider on mobile vertical menu */
  }
  
  .detail-container {
    grid-template-columns: 1fr;
    height: 90vh;
  }
  
  .detail-visual {
    height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  
  .detail-info {
    padding: 30px;
  }
  
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn-neon {
    width: 100%;
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .payment-methods {
    grid-template-columns: 1fr;
  }
}
