/* TCS Shop — Brand Stylesheet */
/* Built by Ori, February 2026 */

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

:root {
  --navy: #0A2540;
  --navy-light: #0d2d4a;
  --cyan: #00d4ff;
  --neon: #39FF14;
  --orange: #ff6b35;
  --purple: #a855f7;
  --white: #f0f4f8;
  --gray: #8899aa;
  --dark-bg: #050d1a;
  --card-bg: #0d1b2e;
  --border: #1a3a5c;
}

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

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--dark-bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.header {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 1px;
}
.logo span { color: var(--neon); }
.nav a {
  color: var(--gray);
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--cyan); }

.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--dark-bg) 100%);
}
.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .number {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 5px;
}

.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.products-section h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 40px;
  text-align: center;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}
.product-card .image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--navy);
}
.product-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .image-wrap img { transform: scale(1.05); }
.product-card .badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  color: var(--navy);
}
.product-card .card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
  line-height: 1.4;
}
.product-card .short-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 20px;
  flex: 1;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
}
.product-card .price {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon);
}
.product-card .compare-price {
  font-size: 0.95rem;
  color: var(--gray);
  text-decoration: line-through;
}
.product-card .features {
  list-style: none;
  margin-bottom: 20px;
}
.product-card .features li {
  font-size: 0.8rem;
  color: var(--gray);
  padding: 3px 0;
}
.product-card .features li::before {
  content: '\2713  ';
  color: var(--neon);
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}
.btn-neon {
  background: linear-gradient(135deg, var(--neon), #2bce0e);
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}
.btn-neon:hover {
  box-shadow: 0 6px 25px rgba(57, 255, 20, 0.5);
  transform: translateY(-2px);
}

.product-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.product-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.product-image img {
  width: 100%;
  height: auto;
  display: block;
}
.product-info h1 {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.3;
}
.product-info .price-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.product-info .price-display .price {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon);
}
.product-info .price-display .compare {
  font-size: 1.1rem;
  color: var(--gray);
  text-decoration: line-through;
}
.variant-selector { margin-bottom: 20px; }
.variant-selector label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}
.variant-selector select {
  width: 100%;
  padding: 12px 15px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}
.discount-input {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.discount-input input {
  flex: 1;
  padding: 12px 15px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}
.discount-input input::placeholder { color: var(--gray); }
.discount-input button {
  padding: 12px 20px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.discount-input button:hover { background: var(--border); }
.discount-msg { font-size: 0.85rem; margin-bottom: 15px; }
.discount-msg.success { color: var(--neon); }
.discount-msg.error { color: #ff4444; }
.product-description {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.product-description h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 15px;
  margin-top: 25px;
}
.product-description p { color: var(--gray); margin-bottom: 12px; }
.product-description ul { margin: 10px 0 15px 20px; }
.product-description li { color: var(--gray); margin-bottom: 6px; }
.product-description strong { color: var(--white); }
.product-description em { color: var(--cyan); font-style: italic; }

.success-page {
  text-align: center;
  padding: 100px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.success-page .checkmark { font-size: 5rem; margin-bottom: 20px; }
.success-page h1 {
  font-family: 'Orbitron', monospace;
  color: var(--neon);
  font-size: 2rem;
  margin-bottom: 15px;
}
.success-page p { color: var(--gray); font-size: 1.05rem; margin-bottom: 10px; }

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item { text-align: center; font-size: 0.85rem; color: var(--gray); }
.trust-item .icon { font-size: 1.5rem; margin-bottom: 5px; }

.story-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.story-section h2 {
  font-family: 'Orbitron', monospace;
  color: var(--cyan);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.story-section p { color: var(--gray); font-size: 1rem; line-height: 1.8; margin-bottom: 15px; }
.story-section .signature { font-style: italic; color: var(--cyan); margin-top: 30px; }

.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
}
.footer p { color: var(--gray); font-size: 0.85rem; margin-bottom: 8px; }
.footer a { color: var(--cyan); text-decoration: none; }
.footer .tagline {
  font-family: 'Orbitron', monospace;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-top: 15px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 30px; }
  .header-inner { height: 60px; }
  .logo { font-size: 1.1rem; }
  .nav a { margin-left: 15px; font-size: 0.8rem; }
  .trust-bar { gap: 20px; }
  .products-grid { grid-template-columns: 1fr; }
}
/* ===== CART SIDEBAR ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  backdrop-filter: blur(4px);
}
.cart-overlay.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--navy);
  border-left: 1px solid var(--border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.cart-sidebar.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: 'Orbitron', monospace;
  color: var(--cyan);
  font-size: 1.1rem;
  margin: 0;
}
.cart-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cart-close:hover { color: var(--white); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.cart-item-price {
  font-family: 'Orbitron', monospace;
  color: var(--neon);
  font-size: 0.95rem;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 5px;
}
.cart-item-remove:hover { color: #ff4444; }

.cart-footer {
  padding: 20px 25px;
  border-top: 1px solid var(--border);
  background: var(--dark-bg);
}

.cart-discount {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.cart-discount input {
  flex: 1;
  padding: 10px 12px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}
.cart-discount input::placeholder { color: var(--gray); }
.cart-discount button {
  padding: 10px 16px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
.cart-discount button:hover { background: var(--border); }

#cartDiscountMsg {
  font-size: 0.8rem;
  margin-bottom: 10px;
  min-height: 20px;
}

.cart-totals {
  margin: 15px 0;
}
.cart-subtotal, .cart-discount-row, .cart-total {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--gray);
  font-size: 0.9rem;
}
.cart-discount-row { color: var(--neon); }
.cart-total {
  font-family: 'Orbitron', monospace;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 5px;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 10px;
}

.cart-secure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 10px;
}

/* ===== FLOATING CART BUTTON ===== */
.cart-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  border: none;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  z-index: 997;
  display: none; /* shown by JS when cart has items */
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.cart-fab:hover { transform: scale(1.1); }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--neon);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== PRODUCT PAGE IMPROVEMENTS ===== */
.product-actions {
  display: flex;
  gap: 12px;
  margin: 25px 0 15px;
}
.product-actions .btn {
  flex: 1;
  padding: 16px 20px;
}
.buy-now-btn { font-size: 1rem; }
.add-to-cart-btn { font-size: 1rem; }

.payment-icons {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  padding: 10px 0;
}

.product-subtitle {
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 10px;
  font-weight: 500;
}

.breadcrumb {
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

.product-features {
  margin: 20px 0;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.product-features li {
  padding: 6px 0;
  font-size: 0.9rem;
}

.product-description h2 {
  font-family: 'Orbitron', monospace;
  color: var(--cyan);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.related-products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-products h2 {
  font-family: 'Orbitron', monospace;
  color: var(--cyan);
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-align: center;
}

/* ===== PRODUCT CARDS — CLICKABLE ===== */
a.product-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* ===== NAV CART LINK ===== */
.nav-cart {
  color: var(--cyan) !important;
  font-weight: 600 !important;
}

/* ===== V2 FIXES ===== */

/* Product cards — prevent text selection on click */
a.product-card {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
a.product-card * {
  -webkit-user-select: none;
  user-select: none;
}
a.product-card img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Button added state */
.btn-added {
  background: var(--neon) !important;
  color: var(--navy) !important;
}

/* Cart sidebar — smoother transitions */
.cart-sidebar {
  transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-overlay {
  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero — toned down */
.hero {
  padding: 50px 20px 40px;
}
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

/* Fix nav cart spacing */
.nav-cart {
  position: relative;
}

/* Product page buttons — instant feel */
.product-actions .btn {
  transition: none;
  cursor: pointer;
}
.product-actions .btn:active {
  transform: scale(0.97);
}

/* ===== CRITICAL UX FIXES ===== */

/* Kill ALL link styling on product cards */
a.product-card,
a.product-card:link,
a.product-card:visited,
a.product-card:hover,
a.product-card:active,
a.product-card:focus {
  text-decoration: none !important;
  color: inherit !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

a.product-card h3,
a.product-card p,
a.product-card span,
a.product-card li,
a.product-card div {
  text-decoration: none !important;
  color: inherit !important;
}

/* Ensure price colors override */
a.product-card .price { color: var(--neon) !important; }
a.product-card .compare-price { color: var(--gray) !important; text-decoration: line-through !important; }
a.product-card .short-desc { color: var(--gray) !important; }
a.product-card .product-subtitle { color: var(--cyan) !important; }
a.product-card .features li { color: var(--gray) !important; }
a.product-card .badge { color: var(--navy) !important; }

/* Cart sidebar — ensure display works */
.cart-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -420px !important;
  width: 400px !important;
  max-width: 90vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #0A2540 !important;
  border-left: 1px solid #1a3a5c !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: right 0.3s ease !important;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5) !important;
  overflow: hidden !important;
}
.cart-sidebar.active {
  right: 0 !important;
}

.cart-overlay {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.6) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
  backdrop-filter: blur(4px) !important;
}
.cart-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.cart-fab {
  z-index: 9997 !important;
}
