/* ============================================================
   BlackWolf Store — Storefront Styles
   ============================================================ */

body { background-color: #000000 !important; }
/* ── Particles Canvas ────────────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}


/* ── Global Scrollbar ───────────────────────────────────────── */
html::-webkit-scrollbar, ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track, ::-webkit-scrollbar-track {
  background: #000000;
}
html::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 0px;
}
html::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}

/* ── Header ──────────────────────────────────────────── */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: var(--z-overlay);
  transition: all var(--transition-slow);
}
#main-header .header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}
#main-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  transition: all var(--transition-base);
}
.header-logo:hover img {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary-glow);
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-bright);
  
  line-height: 1.1;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-primary);
  
  
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  justify-content: center;
}
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  gap: var(--space-2);
  max-width: 300px;
  width: 100%;
  transition: all var(--transition-base);
}
.header-search:focus-within {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  width: 100%;
}
.header-search input::placeholder { color: var(--color-text-faint); }
.header-search svg { color: var(--color-text-muted); flex-shrink: 0; }

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.header-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-bold);
  
  
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.header-btn:hover {
  color: var(--color-primary);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* Cart Button (Floating) */
#cart-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #111111;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 990;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
}
#cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  background: #222222;
  border-color: #ffffff;
}
[dir="rtl"] #cart-btn {
  left: auto;
  right: 30px;
}
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: var(--weight-bold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 2s ease-in-out infinite;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

/* Language / Currency Dropdowns */
.dropdown-wrap {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-bg-card-2);
  border: var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: var(--space-2);
  min-width: 160px;
  z-index: var(--z-overlay);
  display: none;
  animation: fadeIn 0.2s ease;
}
.dropdown-wrap:hover .dropdown-menu,
.dropdown-wrap.open .dropdown-menu { display: block; }
[dir="rtl"] .dropdown-menu { right: auto; left: 0; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--color-primary-dim); color: var(--color-primary); }
.dropdown-item.active { color: var(--color-primary); }

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-6);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255, 255, 255, 0.04), transparent 70%);
  opacity: 0.8;
  z-index: 0;
}

/* Hide grid and scanline for clean look */
.hero-grid, .hero-scanline {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  
  
  color: #ffffff;
  margin-bottom: var(--space-6);
}
.hero-badge::before {
  display: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: 1;
  margin-bottom: var(--space-4);
  color: #ffffff;
}
.hero-title .line1, .hero-title .line2 {
  display: block;
}
.hero-title .line2 {
  background: none;
  -webkit-text-fill-color: #ffffff;
  animation: none; /* removed glitch */
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: var(--space-10);
  max-width: 650px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {  
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #ffffff;
  display: block;
  text-shadow: none;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  
  
  margin-top: var(--space-1);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ── Main Content ─────────────────────────────────────── */
#main-content {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

/* ── Categories ──────────────────────────────────────── */
#categories-section {
  padding: var(--space-8) 0 var(--space-6);
  position: sticky;
  top: var(--header-height);
  z-index: calc(var(--z-overlay) - 1);
  background: #000000;
}
.categories-scroll {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-2) 0;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 0;
  margin: 0 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--weight-bold);
  
  
  transition: all var(--transition-base);
  white-space: nowrap;
}
.cat-btn:hover {
  color: #ffffff;
}
.cat-btn.active {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}
.cat-icon { font-size: 1em; }

/* ── Products Section ────────────────────────────────── */
#products-section {
  padding: var(--space-12) 0;
  margin-bottom: var(--space-12);
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  
  
  color: #ffffff;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: 300;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-12) var(--space-8);
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  animation: fadeIn 0.5s ease both;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Card Media */
.card-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #111111;
}
.card-media img, .card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .card-media img { transform: scale(1.02); }

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: #111111;
  color: var(--color-text-faint);
}
.card-media-placeholder .placeholder-icon {
  font-size: 2.5rem;
}
.card-media-placeholder .placeholder-label {
  font-size: var(--text-xs);
  
  
}

.card-featured-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 4px 12px;
  background: #ffffff;
  border-radius: 2px;
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: #000000;
  
  
}

.card-type-badge {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  padding: 4px 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  font-size: 10px;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* Card Body */
.card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category {
  font-size: 10px;
  color: var(--color-text-faint);
  font-weight: var(--weight-bold);
  
  
  margin-bottom: var(--space-3);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-bright);
  margin-bottom: var(--space-3);
  line-height: 1.2;
  
  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: var(--space-6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.card-price {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: #ffffff;
  
}
.card-add-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--weight-bold);
  
  
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-base);
}
.card-add-btn:hover {
  background: #ffffff;
  color: #000000;
}
.card-add-btn.in-cart {
  text-transform: none;
  background: #00cc00;
  color: #000000;
  border-color: #00cc00;
}

/* ── Modal Overlay (shared by product + checkout) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 1002;
}
.modal-box {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}
@keyframes modalSlideIn {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── Processing Overlay ──────────────────────────── */
#processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: calc(var(--z-modal) + 10);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
#processing-overlay.active { display: flex; }
.processing-spinner {
  width: 56px; height: 56px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-text {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  
}

/* ── Checkout Success ────────────────────────────── */
.checkout-success {
  padding: var(--space-10) var(--space-6);
  text-align: center;
}
.success-icon { font-size: 3.5rem; margin-bottom: var(--space-4); }
.success-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.success-message {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}

/* ── Gateway Options ─────────────────────────────── */
.gateway-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-bottom: var(--space-3);
  transition: all var(--transition-base);
  background: rgba(255,255,255,0.02);
}
.gateway-option:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}
.gateway-option.selected {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.gateway-icon { font-size: 1.6rem; flex-shrink: 0; }
.gateway-info { flex: 1; }
.gateway-info strong { display: block; color: var(--color-text-bright); font-size: var(--text-sm); }
.gateway-info small  { color: var(--color-text-muted); font-size: var(--text-xs); }
.gateway-check {
  color: var(--color-primary);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.gateway-option.selected .gateway-check { opacity: 1; }
.checkout-pay-btn { width: 100%; justify-content: center; margin-top: var(--space-4); }

/* ── Product Modal ────────────────────────────────────── */
#product-modal .modal-box {
  max-width: 780px;
}
.modal-header {
  padding: var(--space-6);
  border-bottom: var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  gap: var(--space-4);
}
.modal-header-info { flex: 1; }
.modal-product-category {
  font-size: var(--text-xs);
  color: #ffffff;
  font-weight: var(--weight-semi);
  
  
  margin-bottom: var(--space-2);
}
.modal-product-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-bright);
  line-height: 1.2;
}
.modal-close-btn {
  background: rgba(255,255,255,0.06);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.modal-close-btn:hover { background: rgba(255,59,107,0.1); color: var(--color-danger); border-color: rgba(255,59,107,0.3); }

/* Modal Media Gallery */
.modal-gallery {
  position: relative;
  height: auto;
  background: #000000;
}
.modal-gallery img, .modal-gallery video {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.05));
  font-size: 4rem;
  color: var(--color-text-faint);
}

/* Modal Body */
.modal-body {
  padding: var(--space-6);
}
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-subtle);
}
.modal-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: #ffffff;
  text-shadow: 0 0 15px var(--color-primary-glow);
}
.modal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-secondary-dim);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: var(--weight-medium);
}
.modal-description {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  word-break: break-word;
  font-size: 0.95rem;
}
.modal-description strong, .modal-description b {
  color: #fff;
  font-weight: 700;
}
.modal-description em, .modal-description i {
  font-style: italic;
  color: var(--color-secondary, #fbbf24);
}
.modal-description .modal-desc-para {
  margin: 0 0 0.85rem 0;
  line-height: 1.8;
}
.modal-description .modal-desc-para:last-child {
  margin-bottom: 0;
}
.modal-description .modal-desc-h1, .modal-description h1 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem 0;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.35rem;
}
.modal-description .modal-desc-h2, .modal-description h2 {
  color: var(--color-primary, #00f5ff);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.1rem 0 0.4rem 0;
  line-height: 1.4;
}
.modal-description .modal-desc-h3, .modal-description h3,
.modal-description .modal-desc-h4, .modal-description h4 {
  color: var(--color-secondary, #fbbf24);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.95rem 0 0.35rem 0;
  line-height: 1.4;
}
.modal-description .modal-desc-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.35rem 0;
  line-height: 1.6;
}
.modal-description .modal-desc-bullet {
  color: var(--color-primary, #00f5ff);
  font-size: 1rem;
  line-height: 1;
}

/* Complementary Items */
.modal-addons {
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.modal-addons-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  
  
}
.addon-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-2);
}
.addon-item:last-child { margin-bottom: 0; }
.addon-item.selected { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.25); }
.addon-checkbox { display: flex; }
.addon-checkbox input { accent-color: var(--color-accent); width: 16px; height: 16px; cursor: pointer; }
.addon-name { flex: 1; font-size: var(--text-sm); color: var(--color-text); }
.addon-price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-accent);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: var(--border-subtle);
}
.modal-actions .btn { flex: 1; justify-content: center; }

/* ── Cart Sidebar ─────────────────────────────────────── */
#cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(440px, 100vw);
  height: 100vh;
  background: #000000;
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -20px 0 50px rgba(0,0,0,0.8);
  z-index: calc(var(--z-modal) + 1);
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
}
[dir="rtl"] #cart-sidebar { right: auto; left: -100%; transition: left var(--transition-slow); }
#cart-sidebar.open { right: 0; }
[dir="rtl"] #cart-sidebar.open { left: 0; right: auto; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}
.cart-overlay.visible { opacity: 1; visibility: visible; }

.cart-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.cart-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-bright);
}
.cart-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  transition: color var(--transition-fast);
  line-height: 1;
}
.cart-close:hover { color: var(--color-primary); }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-4);
  color: var(--color-text-muted);
  text-align: center;
}
.cart-empty-icon { font-size: 3rem; opacity: 0.5; }

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: var(--border-subtle);
  animation: fadeIn 0.3s ease;
}
.cart-item-icon {
  width: 44px; height: 44px;
  background: var(--color-primary-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-weight: var(--weight-medium);
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}
.cart-item-price {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-primary);
  font-weight: var(--weight-semi);
}
.cart-item-addons {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-faint);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px;
  transition: color var(--transition-fast);
  line-height: 1;
}
.cart-item-remove:hover { color: var(--color-danger); }

.cart-footer {
  padding: var(--space-5) var(--space-6);
  border-top: var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cart-subtotal-label { color: var(--color-text-muted); font-size: var(--text-base); }
.cart-subtotal-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}
.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-4);
  font-size: var(--text-md);
  
}

/* ── Checkout Modal ───────────────────────────────────── */
#checkout-modal .modal-box { max-width: 520px; }
.checkout-header {
  padding: var(--space-6);
  border-bottom: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.checkout-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-bright);
}
.checkout-body { padding: var(--space-6); }
.checkout-order-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}
.checkout-summary-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  
  
  margin-bottom: var(--space-3);
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: var(--space-3);
  border-top: var(--border-subtle);
  margin-top: var(--space-3);
}
.checkout-total-label { font-weight: var(--weight-semi); color: var(--color-text); }
.checkout-total-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}
.checkout-email-hint {
  font-size: var(--text-xs);
  color: var(--color-primary);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.gateways-section { margin-bottom: var(--space-5); }
.gateways-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text-muted);
  
  
  margin-bottom: var(--space-3);
}
.gateway-option {
  display: block;
  cursor: pointer;
  margin-bottom: var(--space-2);
}
.gateway-option input { display: none; }
.gateway-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.gateway-option.selected .gateway-card {
  background: var(--color-primary-dim);
  border-color: rgba(255,255,255,0.4);
}
.gateway-icon { font-size: 1.4rem; }
.gateway-info { flex: 1; }
.gateway-info strong { display: block; font-size: var(--text-base); color: var(--color-text); }
.gateway-info small { font-size: var(--text-xs); color: var(--color-text-muted); }
.gateway-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all var(--transition-base);
}
.gateway-option.selected .gateway-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}
#paypal-button-container { margin: var(--space-3) 0; }

.checkout-pay-btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-4);
  font-size: var(--text-md);
  
  margin-top: var(--space-5);
}
.checkout-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success screen */
.checkout-success {
  text-align: center;
  padding: var(--space-8);
}
.success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  animation: float 2s ease-in-out infinite;
}
.success-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-success);
  margin-bottom: var(--space-3);
  text-shadow: 0 0 15px rgba(0,255,163,0.4);
}
.success-message { color: var(--color-text-muted); line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────── */
#main-footer {
  position: relative;
  z-index: 1;
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr) 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand .logo-text { font-size: var(--text-lg); }
.footer-desc {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  line-height: 1.6;
  margin-top: var(--space-4);
}
.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #ffffff;
  
  
  margin-bottom: var(--space-5);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright { color: var(--color-text-faint); font-size: var(--text-xs); }

/* No results */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16);
  color: var(--color-text-muted);
}
.no-products-icon { font-size: 3rem; margin-bottom: var(--space-4); opacity: 0.5; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Header */
  .header-inner { padding: 0 var(--space-3); gap: var(--space-2); }
  .header-nav { display: none; }
  .header-controls { gap: var(--space-2); flex-shrink: 0; }
  .header-btn { font-size: var(--text-xs); padding: 5px 7px; white-space: nowrap; }
  .logo-text { font-size: var(--text-md); }
  .header-logo { gap: var(--space-2); min-width: 0; flex-shrink: 1; overflow: hidden; }
  .header-logo img { width: 36px; height: 36px; flex-shrink: 0; }
  .header-logo > div { min-width: 0; overflow: hidden; }

  /* Dropdown menus */
  .dropdown-menu { right: 0; left: auto; min-width: 120px; }

  /* Hero */
  .hero-stats { gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .product-card { min-height: auto; }
  .card-media { height: 160px; }
  .category-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .category-tab { white-space: nowrap; }

  /* Cart floating button */
  #cart-btn { left: 16px; bottom: 16px; padding: 10px 16px; font-size: 0.95rem; }

  /* Cart sidebar */
  #cart-sidebar { width: 100%; max-width: 100%; border-radius: 0; }

  /* Product modal */
  .store-modal-box {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }
  .modal-gallery { max-height: none; }
  .modal-product-title { font-size: var(--text-xl); }
  .modal-body { flex-direction: column; }
  .modal-main { padding: var(--space-4); }
  .modal-actions { padding: var(--space-3) var(--space-4); position: sticky; bottom: 0; background: var(--color-bg-card); }
  .modal-qty-row { flex-wrap: wrap; gap: var(--space-2); }
  .modal-addons-list { gap: var(--space-2); }

  /* Checkout */
  .checkout-inner { flex-direction: column; }
  .checkout-summary { width: 100%; }

  /* Footer */
  .footer-inner { gap: var(--space-6); }
  .footer-heading { font-size: var(--text-sm); }
}

/* Extra small phones — prevent any overflow */
@media (max-width: 390px) {
  .logo-text { font-size: var(--text-sm); }
  .logo-sub { font-size: 8px;  }
  .header-btn { padding: 4px 6px; font-size: 11px; }
  /* Show only symbol in currency button, hide code text */
  #curr-btn .curr-text { display: none; }
}


/* ── Skeleton Loading ───────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-card.skeleton-card {
  box-shadow: none;
  cursor: default;
}
.skeleton-card .card-media {
  background: rgba(255,255,255,0.05);
  display: block;
}
.skeleton-card .card-body {
  gap: 12px;
}
.skeleton-text {
  height: 14px;
  width: 100%;
  border-radius: 4px;
}
.skeleton-text.title { height: 20px; width: 80%; margin-bottom: 4px; }
.skeleton-text.desc { height: 12px; width: 90%; }
.skeleton-text.price { height: 24px; width: 40%; }
.skeleton-text.btn { height: 36px; width: 100px; border-radius: var(--radius-md); }
.skeleton-card .card-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Category Skeleton */
.cat-btn.skeleton {
  min-width: 100px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
}


/* FORCE NO LETTER SPACING */
* { letter-spacing: normal !important; }


/* FIX: Prevent layout shift on typing effect */
.hero-title .line2 { min-height: 1.2em; }
