/* Qoraix™ High-Performance Store Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-dark: #07090f;
  --bg-surface: #0e1424;
  --bg-card: #121a2f;
  --bg-card-hover: #16223d;
  --qrx-blue: #0070f3;
  --qrx-cyan: #00d2ff;
  --qrx-glow: rgba(0, 210, 255, 0.35);
  --qrx-border: rgba(56, 189, 248, 0.18);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 112, 243, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.07) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Containers */
.qrx-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qrx-border);
}

.brand-logo-img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
  border: 1px solid rgba(0, 210, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.7);
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-subtext {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--qrx-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

/* Nav Links */
.nav-link {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-featured-card {
  background: linear-gradient(135deg, rgba(18, 26, 47, 0.95), rgba(11, 16, 29, 0.95));
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 112, 243, 0.2);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.hero-featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.6);
}

.hero-product-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-featured-card:hover .hero-product-img {
  transform: scale(1.03);
}

.authentic-hardware-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #00d2ff;
  color: #00d2ff;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* Category Filter Pills */
.cat-pill {
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: rgba(18, 26, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-pill:hover {
  color: #ffffff;
  background: rgba(22, 34, 61, 0.9);
  border-color: rgba(56, 189, 248, 0.3);
}

.cat-pill.active {
  background: linear-gradient(135deg, #0070f3, #00d2ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 112, 243, 0.4);
}

/* Product Cards Grid */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--qrx-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 112, 243, 0.18);
}

.product-badge-bar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-flagship {
  background: #00d2ff;
  color: #07090f;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

.badge-primary {
  background: rgba(0, 112, 243, 0.25);
  border: 1px solid #3b82f6;
  color: #93c5fd;
}

.badge-bundle {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
}

.spec-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.product-image-wrap {
  position: relative;
  height: 230px;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  cursor: pointer;
  overflow: hidden;
}

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

.product-img.authentic-img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.quick-view-overlay span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.category-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--qrx-cyan);
}

.product-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-count {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  cursor: pointer;
  line-height: 1.35;
  transition: color 0.2s;
}

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

.product-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Variant chips */
.variant-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.variant-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-chip:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.variant-chip.active {
  background: rgba(0, 112, 243, 0.2);
  border-color: #00d2ff;
  color: #00d2ff;
}

/* Footer & Actions */
.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
}

.original-price {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.add-cart-btn {
  background: linear-gradient(135deg, #0070f3, #0284c7);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.35);
}

.add-cart-btn:hover {
  background: linear-gradient(135deg, #0080ff, #00d2ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.45);
}

/* Cart Drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #0b101c;
  border-left: 1px solid var(--qrx-border);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

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

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #111728;
  border-radius: 10px;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  transition: color 0.2s;
}

.cart-remove-btn:hover {
  color: #ef4444;
}

.cart-item-variant {
  font-size: 0.72rem;
  color: var(--qrx-cyan);
  margin-top: 2px;
  margin-bottom: 6px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: #162036;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-val {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 6px;
  font-family: var(--font-mono);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  background: #090e18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modals */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-wrapper.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #0d1222;
  border: 1px solid var(--qrx-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 112, 243, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-wrapper.open .modal-card {
  transform: scale(1);
}

.modal-close-trigger {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-trigger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.media-container {
  background: #070a12;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.modal-product-img {
  max-height: 260px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.authentic-badge {
  position: absolute;
  bottom: 1rem;
  background: rgba(0, 112, 243, 0.25);
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.specs-table-card {
  background: #070a12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem;
}

.spec-row {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.spec-label {
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 700;
}

.spec-val {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
}

.modal-variant-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: #111728;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.modal-variant-btn:hover {
  border-color: rgba(0, 210, 255, 0.4);
}

.modal-variant-btn.active {
  background: rgba(0, 112, 243, 0.18);
  border-color: #00d2ff;
}

.modal-qty-stepper {
  display: flex;
  align-items: center;
  background: #111728;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.25rem;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  min-width: 280px;
  max-width: 380px;
  transition: all 0.3s ease;
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #064e3b, #0f172a);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #7f1d1d, #0f172a);
}

.toast-info {
  border-color: rgba(0, 210, 255, 0.4);
  background: linear-gradient(135deg, #0c4a6e, #0f172a);
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* Empty states */
.empty-cart-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Interactive Calculator Cards */
.interactive-calc-card {
  background: linear-gradient(135deg, #0e1424, #080c16);
  border: 1px solid var(--qrx-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Custom range slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: #1e293b;
  height: 8px;
  border-radius: 4px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00d2ff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
  border: 2px solid #ffffff;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); }
  50% { box-shadow: 0 0 28px rgba(0, 210, 255, 0.85); }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}
