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

/* CSS Variables for Dark Tech Theme */
:root {
  --bg-dark: #070b13;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-glass: rgba(10, 17, 34, 0.65);
  
  --primary: #00f0ff;      /* Electric Cyan */
  --primary-rgb: 0, 240, 255;
  --secondary: #d946ef;    /* Neon Purple/Magenta */
  --secondary-rgb: 217, 70, 239;
  --accent: #22c55e;       /* Emerald Green (success/stock) */
  --warning: #f59e0b;      /* Amber Alert (pending) */
  --danger: #ef4444;       /* Ruby Red */
  
  --text-main: #f8fafc;    /* Clean White/Slate */
  --text-muted: #94a3b8;   /* Cool Gray */
  --text-dim: #475569;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.15);
  
  --font-main: 'Outfit', sans-serif;
  --font-tech: 'Orbitron', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.25);
  --shadow-neon-hover: 0 0 35px rgba(0, 240, 255, 0.45);
}

/* Base Styles & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.45); }
}

@keyframes text-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(5, 8, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  color: var(--primary);
  -webkit-text-fill-color: initial;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Floating Cart Toggle Button */
.cart-trigger {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-trigger:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.cart-trigger.shake {
  animation: shake 0.4s ease;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--secondary);
}

.btn-admin-link {
  text-decoration: none;
  font-family: var(--font-tech);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

.btn-admin-link:hover {
  border-color: var(--secondary);
  background: rgba(217, 70, 239, 0.15);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#particles-bg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.hero-tagline {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-title {
  font-family: var(--font-tech);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.4s;
}

.hero-title span {
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 4s linear infinite;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.8s;
}

/* Tech Buttons */
.btn-neon {
  font-family: var(--font-tech);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 35px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.btn-neon-primary {
  background: var(--primary);
  color: #000;
  box-shadow: var(--shadow-neon);
}

.btn-neon-primary:hover {
  background: #fff;
  box-shadow: var(--shadow-neon-hover);
  transform: translateY(-2px);
}

.btn-neon-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-neon-secondary:hover {
  border-color: var(--secondary);
  background: rgba(217, 70, 239, 0.05);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
  transform: translateY(-2px);
}

/* Category Filters section */
.storefront-section {
  padding: 100px 0;
  position: relative;
}

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

.section-title {
  font-family: var(--font-tech);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.filter-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 50px;
}

.category-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: 12px;
  gap: 5px;
}

.category-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

.category-tab:hover {
  color: var(--text-main);
}

.category-tab.active {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

/* Search and Sorting Row */
.search-sort-bar {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 700px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 12px 20px 12px 45px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.search-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.sort-select-wrapper select {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
}

.sort-select-wrapper select option {
  background: #0f172a;
  color: #e2e8f0;
}

.sort-select-wrapper select:focus {
  border-color: var(--primary);
}

/* New toolbar sort select (inside .toolbar-sort) */
.sort-select {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
}
.sort-select option {
  background: #0f172a;
  color: #e2e8f0;
}
.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}
body.light-theme .sort-select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}
body.light-theme .sort-select option {
  background: #ffffff;
  color: #0f172a;
}


/* Product Catalog Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  opacity: 0;
  animation: fadeIn 0.8s forwards 0.3s;
  align-items: stretch;
}

/* Product Card - Glassmorphism & Cyber Design */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 240, 255, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--border-glow);
}

.product-img-container {
  height: 220px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img-container img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-img-container img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.product-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-title:hover {
  color: var(--primary);
}

.product-meta-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.stars {
  color: #fbbf24;
}

.reviews-count {
  color: var(--text-muted);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-main);
}

.btn-add-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Sliding Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.cart-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

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

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 50px;
}

.cart-empty-message i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--text-dim);
}

/* Cart Item Row */
.cart-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: 12px;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.cart-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

.cart-item-price {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.qty-num {
  font-size: 0.9rem;
  font-weight: 600;
}

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

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

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(5, 8, 16, 0.5);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

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

.totals-row.grand-total {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: bold;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  font-family: var(--font-tech);
  font-weight: bold;
  letter-spacing: 1px;
  padding: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.25);
}

.btn-checkout:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 25px rgba(217, 70, 239, 0.45);
  transform: translateY(-2px);
}

/* Modals Overlay Base */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

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

.modal-close:hover {
  color: #fff;
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  transform: rotate(90deg);
}

/* Product Detail Modal specific */
.product-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px;
}

@media (min-width: 650px) {
  .product-modal-content {
    grid-template-columns: 1fr 1.2fr;
  }
}

.product-modal-img {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
}

@media (min-width: 650px) {
  .product-modal-img {
    height: 100%;
    min-height: 300px;
  }
}

.product-modal-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-modal-info {
  display: flex;
  flex-direction: column;
}

.product-modal-title {
  font-family: var(--font-tech);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.product-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.product-modal-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  color: var(--text-main);
  font-family: var(--font-main, 'Inter', sans-serif);
}

/* Checkout Form styling */
.checkout-modal-container {
  max-width: 550px;
}

.checkout-header {
  padding: 30px 30px 10px 30px;
}

.checkout-header h2 {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: var(--text-main);
}

.checkout-form {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  transition: var(--transition-fast);
  outline: none;
}

.form-group select option {
  background: #0f172a;
  color: #e2e8f0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.03);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Success Animation Panel */
.success-panel {
  text-align: center;
  padding: 50px 30px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
  animation: float 3s ease-in-out infinite;
}

.success-title {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.success-order-id {
  font-family: var(--font-tech);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.success-desc {
  color: var(--text-muted);
  max-width: 350px;
  margin: 0 auto 30px auto;
  font-size: 0.95rem;
}

/* Footer Section */
footer {
  background: rgba(4, 7, 13, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Animations declarations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Smooth transitions for theme switching */
body {
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Light Theme Variables Override */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(241, 245, 249, 0.85);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(0, 168, 204, 0.15);
  
  --shadow-neon: 0 0 15px rgba(0, 168, 204, 0.12);
  --shadow-neon-hover: 0 0 25px rgba(0, 168, 204, 0.22);
}

/* Make sure elements in light theme look crisp and clear */
body.light-theme .logo span {
  background: linear-gradient(90deg, #0284c7, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .hero::after {
  background: linear-gradient(to top, var(--bg-dark), transparent);
}
body.light-theme .product-img-container,
body.light-theme .cart-item-img,
body.light-theme .product-modal-img {
  background: rgba(15, 23, 42, 0.04);
}
body.light-theme .category-tabs {
  background: rgba(15, 23, 42, 0.02);
}
body.light-theme .search-input-wrapper input,
body.light-theme .sort-select-wrapper select,
body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-theme select option {
  background: #ffffff;
  color: #0f172a;
}

/* Global dark-mode option fallback (for any select not caught by specific rules) */
select option {
  background: #0f172a;
  color: #e2e8f0;
}
body.light-theme .search-input-wrapper input:focus,
body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus,
body.light-theme .form-group select:focus {
  border-color: #0284c7;
  background: #fff;
}
body.light-theme .cart-footer {
  background: rgba(241, 245, 249, 0.9);
}

/* Futuristic Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
  transform: rotate(30deg);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Image Gallery Carousel for Product Details Modal */
.modal-image-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.gallery-main-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-fast);
}

body.light-theme .gallery-main-container {
  background: rgba(15, 23, 42, 0.04);
}

@media (min-width: 650px) {
  .gallery-main-container {
    height: 300px;
  }
}

.gallery-main-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-main-container img:hover {
  transform: scale(1.06);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow-x: auto;
  padding: 5px 0;
}

.gallery-thumb {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  border: 1.5px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.light-theme .gallery-thumb {
  background: rgba(15, 23, 42, 0.03);
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.gallery-thumb:hover img,
.gallery-thumb.active img {
  opacity: 1;
}

.gallery-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.05);
}

body.light-theme .gallery-thumb.active {
  border-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
  background: rgba(2, 132, 199, 0.05);
}

/* ========================================================
   NEW STOREFRONT LAYOUT STYLES (TECH THEME)
   ======================================================== */

.announcement-banner {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(217, 70, 239, 0.1));
  color: var(--primary);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-family: var(--font-tech);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-glow);
  text-transform: uppercase;
}
.announcement-banner a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 10px;
}
.announcement-banner a:hover {
  text-decoration: underline;
}

body.light-theme .announcement-banner {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.1), rgba(192, 38, 211, 0.1));
  color: #0284c7;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
  position: relative;
}
.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.7;
}
.header-search input {
  width: 100%;
  padding: 10px 15px 10px 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-fast);
}
.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
}

body.light-theme .header-search input {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-theme .header-search input:focus {
  border-color: #0284c7;
  background: #fff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.1);
}
body.light-theme .header-search i {
  color: #0284c7;
}

.store-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* Sidebar Styles */
.sidebar {
  padding-right: 20px;
  border-right: 1px solid var(--border-glass);
}
body.light-theme .sidebar {
  border-right-color: rgba(15, 23, 42, 0.1);
}

.sidebar-widget {
  margin-bottom: 40px;
}
.widget-title {
  font-family: var(--font-tech);
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}
body.light-theme .widget-title {
  color: #0284c7;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.category-list {
  list-style: none;
}
.category-list li {
  margin-bottom: 12px;
}
.category-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-list a::before {
  content: '>';
  color: var(--primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
  font-family: var(--font-tech);
}
.category-list a:hover {
  color: var(--text-main);
}
.category-list a:hover::before,
.category-list a.active::before {
  opacity: 1;
  transform: translateX(0);
}
.category-list a.active {
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

body.light-theme .category-list a { color: #475569; }
body.light-theme .category-list a:hover { color: #0f172a; }
body.light-theme .category-list a::before { color: #0284c7; }
body.light-theme .category-list a.active {
  color: #0284c7;
  text-shadow: none;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.checkbox-label:hover { color: var(--text-main); }
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}
.checkbox-label input:checked ~ .checkbox-custom {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

body.light-theme .checkbox-label { color: #475569; }
body.light-theme .checkbox-label:hover { color: #0f172a; }
body.light-theme .checkbox-custom {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.8);
}
body.light-theme .checkbox-label input:checked ~ .checkbox-custom {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: none;
}
body.light-theme .checkbox-label input:checked ~ .checkbox-custom::after {
  border-color: #0284c7;
}

/* Main Content Adjustments */
.collection-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.collection-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.collection-title {
  font-family: var(--font-tech);
  color: var(--text-main);
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.collection-desc {
  color: var(--text-muted);
}

body.light-theme .collection-banner {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .collection-title { color: #0f172a; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-glass);
}
.toolbar-results {
  color: var(--text-muted);
  font-size: 0.9rem;
}
body.light-theme .toolbar { border-bottom-color: rgba(15, 23, 42, 0.1); }
body.light-theme .toolbar-results { color: #64748b; }

/* Mobile Drawer Link Styling */
.mobile-drawer-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.mobile-drawer-link i {
  font-size: 1.1rem;
}
.mobile-drawer-link.active {
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}
.mobile-drawer-link:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

body.light-theme .mobile-drawer-link {
  color: #475569;
}
body.light-theme .mobile-drawer-link.active {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  text-shadow: none;
}
body.light-theme .mobile-drawer-link:hover:not(.active) {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.03);
}

/* ========================================================
   RESPONSIVE DESIGN (STOREFRONT)
   ======================================================== */
@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
  }
  .sidebar {
    display: none;
  }
  .header-search {
    margin: 0 15px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  .nav-container {
    gap: 10px;
  }
  .logo {
    font-size: 1.25rem;
  }
  .logo span {
    display: inline;
    font-size: 0.95rem;
  }
  .logo i {
    font-size: 1.5rem;
  }
  .header-search {
    max-width: 100%;
    margin: 0 10px;
  }
  .header-search input {
    padding: 8px 12px 8px 32px;
    font-size: 0.85rem;
  }
  .header-search i {
    left: 12px;
    font-size: 0.85rem;
  }
  
  .nav-actions {
    gap: 10px;
  }
  
  .collection-banner {
    padding: 24px 16px;
    margin-bottom: 20px;
  }
  .collection-title {
    font-size: 1.5rem;
  }
  .collection-desc {
    font-size: 0.85rem;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }
  .toolbar-sort {
    width: 100%;
  }
  .sort-select {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .product-details {
    padding: 16px;
  }
  .product-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }
  .product-price {
    font-size: 1.2rem;
  }
  .product-img-container {
    height: 180px;
  }
  
  #mobile-nav-drawer {
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .announcement-banner {
    font-size: 0.72rem;
    padding: 6px 12px;
  }
  
  .nav-actions {
    gap: 8px;
  }
  .cart-trigger {
    padding: 8px;
  }
  
  .modal-container {
    width: 95%;
    padding: 20px;
  }
}

/* ========================================================
   EXTRACTED INLINE STYLES
   ======================================================== */
#mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  z-index: 250;
  background: rgba(10, 15, 30, 0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  padding: 0;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#mobile-nav-drawer.open {
  left: 0;
}

#mobile-cat-links {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 80px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
#mobile-cat-links::-webkit-scrollbar {
  width: 5px;
}
#mobile-cat-links::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

#mobile-nav-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
#mobile-nav-close-btn:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.footer-links {
  display: flex;
  gap: 20px;
  margin: 6px 0;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-links a:nth-child(2):hover {
  color: var(--secondary);
}
