/* ============================================================
   Eliteverse Hub — Futuristic High-End Theme
   Dark backgrounds · Teal / Amber / Electric Blue accents
   Glassmorphism · Modern sans · Subtle motion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Core palette */
  --ev-bg: #070b14;
  --ev-bg-elevated: #0d1320;
  --ev-bg-card: rgba(17, 24, 39, 0.65);
  --ev-bg-glass: rgba(15, 23, 42, 0.55);
  --ev-surface: #111827;
  --ev-border: rgba(148, 163, 184, 0.12);
  --ev-border-strong: rgba(20, 184, 166, 0.35);

  /* Accents */
  --ev-teal: #14b8a6;
  --ev-teal-bright: #2dd4bf;
  --ev-teal-glow: rgba(20, 184, 166, 0.35);
  --ev-amber: #f59e0b;
  --ev-amber-bright: #fbbf24;
  --ev-blue: #3b82f6;
  --ev-cyan: #22d3ee;
  --ev-purple: #8b5cf6;

  /* Text */
  --ev-text: #e2e8f0;
  --ev-text-muted: #94a3b8;
  --ev-text-dim: #64748b;

  /* Gradients */
  --ev-gradient-primary: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #3b82f6 100%);
  --ev-gradient-hero: linear-gradient(160deg, #070b14 0%, #0f172a 40%, #0d1f2d 100%);
  --ev-gradient-card: linear-gradient(145deg, rgba(20, 184, 166, 0.08), rgba(59, 130, 246, 0.05));
  --ev-gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.15), transparent 60%);

  /* Effects */
  --ev-radius: 16px;
  --ev-radius-sm: 10px;
  --ev-radius-lg: 24px;
  --ev-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --ev-shadow-glow: 0 0 40px rgba(20, 184, 166, 0.15);
  --ev-blur: blur(16px);

  /* Typography */
  --ev-font: 'Outfit', 'Inter', system-ui, sans-serif;
  --ev-font-body: 'Inter', system-ui, sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ev-font-body);
  background: var(--ev-bg);
  color: var(--ev-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--ev-gradient-glow);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .nav-link, .btn, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--ev-font);
}

a { color: var(--ev-teal-bright); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ev-amber); }

img { max-width: 100%; height: auto; }

/* ---------- Utility ---------- */
.ev-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.ev-section {
  padding: 4.5rem 0;
  position: relative;
}

.ev-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--ev-text), var(--ev-teal-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-section-sub {
  color: var(--ev-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* Glass card */
.ev-glass {
  background: var(--ev-bg-glass);
  backdrop-filter: var(--ev-blur);
  -webkit-backdrop-filter: var(--ev-blur);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow);
}

.ev-glass-strong {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ev-border-strong);
}

/* Buttons */
.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ev-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.ev-btn-primary {
  background: var(--ev-gradient-primary);
  color: #041016;
  box-shadow: 0 4px 20px var(--ev-teal-glow);
}

.ev-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--ev-teal-glow);
  color: #041016;
}

.ev-btn-outline {
  background: transparent;
  color: var(--ev-teal-bright);
  border: 1.5px solid var(--ev-teal);
}

.ev-btn-outline:hover {
  background: rgba(20, 184, 166, 0.12);
  color: var(--ev-teal-bright);
  border-color: var(--ev-teal-bright);
  transform: translateY(-2px);
}

.ev-btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1205;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.ev-btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
  color: #1a1205;
}

.ev-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.ev-btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  color: var(--ev-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ev-btn-icon:hover {
  border-color: var(--ev-teal);
  color: var(--ev-teal-bright);
  background: rgba(20, 184, 166, 0.1);
}

/* ---------- Top bar ---------- */
.ev-topbar {
  background: rgba(7, 11, 20, 0.9);
  border-bottom: 1px solid var(--ev-border);
  font-size: 0.8rem;
  color: var(--ev-text-muted);
  padding: 0.4rem 0;
}

.ev-topbar a { color: var(--ev-text-muted); }
.ev-topbar a:hover { color: var(--ev-teal-bright); }

/* ---------- Navbar ---------- */
.ev-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ev-border);
  transition: box-shadow 0.3s ease;
}

/* Keep brand left + toggler right on mobile */
.ev-navbar > .ev-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ev-navbar .navbar-toggler {
  margin-left: auto;
  padding: 0.35rem 0.5rem;
  order: 2;
}

.ev-navbar .navbar-brand {
  order: 1;
}

.ev-navbar .offcanvas {
  order: 3;
}

.ev-navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.ev-navbar .navbar-brand img {
  height: 62px;
  width: auto;
  filter: brightness(1.1);
}

/* Mobile offcanvas visibility fixes */
@media (max-width: 991.98px) {
  .ev-navbar .offcanvas {
    background: #0b1118 !important;
    color: #f4f7fb !important;
  }
  .ev-navbar .offcanvas .nav-link {
    color: #c5d0dc !important;
    padding: 0.75rem 0 !important;
    font-size: 1.05rem;
  }
  .ev-navbar .offcanvas .nav-link:hover,
  .ev-navbar .offcanvas .nav-link.active {
    color: #18e0c2 !important;
  }
  .ev-navbar .offcanvas .ev-search-form {
    max-width: 100%;
    margin: 1rem 0;
  }
  .ev-navbar .offcanvas .ev-btn-icon {
    color: #f4f7fb;
  }
}

.ev-navbar .nav-link {
  color: var(--ev-text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ev-navbar .nav-link:hover,
.ev-navbar .nav-link.active {
  color: var(--ev-teal-bright) !important;
  background: rgba(20, 184, 166, 0.08);
}

.ev-search-form {
  position: relative;
  max-width: 320px;
}

.ev-search-form input {
  background: var(--ev-bg-elevated);
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  color: var(--ev-text);
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  width: 100%;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ev-search-form input:focus {
  outline: none;
  border-color: var(--ev-teal);
  box-shadow: 0 0 0 3px var(--ev-teal-glow);
}

.ev-search-form .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ev-text-dim);
  pointer-events: none;
}

.ev-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ev-teal);
  color: #041016;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Hero ---------- */
.ev-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--ev-gradient-hero);
}

.ev-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ev-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ev-hero-content {
  position: relative;
  z-index: 2;
}

.ev-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--ev-teal-bright);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.ev-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--ev-text);
}

.ev-hero h1 span {
  background: var(--ev-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-hero p.lead {
  font-size: 1.15rem;
  color: var(--ev-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.ev-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.ev-hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ev-stat {
  text-align: left;
}

.ev-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ev-teal-bright);
  line-height: 1.2;
}

.ev-stat-label {
  font-size: 0.8rem;
  color: var(--ev-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-hero-visual {
  position: relative;
  z-index: 2;
}

.ev-hero-card {
  background: var(--ev-bg-glass);
  backdrop-filter: var(--ev-blur);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ev-shadow), var(--ev-shadow-glow);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.ev-hero-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* ---------- Category pills ---------- */
.ev-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ev-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  color: var(--ev-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.ev-cat-pill:hover {
  border-color: var(--ev-teal);
  color: var(--ev-teal-bright);
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.15);
}

/* ---------- Product cards ---------- */
.ev-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ev-product-card {
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.ev-product-card:hover {
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(20, 184, 166, 0.1);
}

.ev-product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ev-bg-elevated);
}

.ev-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ev-product-card:hover .ev-product-img-wrap img {
  transform: scale(1.06);
}

.ev-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ev-amber);
  color: #1a1205;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  z-index: 2;
}

.ev-product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s ease;
  z-index: 2;
}

.ev-product-card:hover .ev-product-actions {
  opacity: 1;
  transform: translateX(0);
}

.ev-product-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ev-product-cat {
  font-size: 0.75rem;
  color: var(--ev-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ev-product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ev-text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-product-title a {
  color: inherit;
}

.ev-product-title a:hover {
  color: var(--ev-teal-bright);
}

.ev-product-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.ev-price-current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ev-teal-bright);
}

.ev-price-old {
  font-size: 0.9rem;
  color: var(--ev-text-dim);
  text-decoration: line-through;
}

.ev-add-cart {
  margin-top: 0.9rem;
  width: 100%;
}

/* ---------- Features strip ---------- */
.ev-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.ev-feature {
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.ev-feature:hover {
  border-color: var(--ev-teal);
  background: rgba(20, 184, 166, 0.06);
}

.ev-feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ev-teal-bright);
  font-size: 1.4rem;
}

.ev-feature h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ev-text);
}

.ev-feature p {
  font-size: 0.875rem;
  color: var(--ev-text-muted);
  margin: 0;
}

/* ---------- CTA banner ---------- */
.ev-cta {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--ev-border-strong);
  border-radius: var(--ev-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ev-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.2), transparent 50%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.ev-footer {
  background: var(--ev-bg-elevated);
  border-top: 1px solid var(--ev-border);
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.ev-footer h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ev-text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.ev-footer a {
  color: var(--ev-text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.ev-footer a:hover {
  color: var(--ev-teal-bright);
}

.ev-footer-bottom {
  border-top: 1px solid var(--ev-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ev-text-dim);
}

/* ---------- Forms (checkout, login etc.) ---------- */
.ev-input {
  background: var(--ev-bg-elevated) !important;
  border: 1px solid var(--ev-border) !important;
  border-radius: var(--ev-radius-sm) !important;
  color: var(--ev-text) !important;
  padding: 0.7rem 1rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.ev-input:focus {
  border-color: var(--ev-teal) !important;
  box-shadow: 0 0 0 3px var(--ev-teal-glow) !important;
  outline: none !important;
}

.ev-input::placeholder {
  color: var(--ev-text-dim) !important;
}

.ev-label {
  color: var(--ev-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* ---------- Shop specific overrides ---------- */
.ev-shop-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--ev-border);
  margin-bottom: 2rem;
}

.ev-filter-sidebar {
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.ev-filter-sidebar h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ev-text);
}

.ev-filter-list a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ev-text-muted);
  font-size: 0.9rem;
}

.ev-filter-list a:hover,
.ev-filter-list a.active {
  color: var(--ev-teal-bright);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.ev-animate {
  animation: fadeUp 0.6s ease forwards;
}

.ev-delay-1 { animation-delay: 0.1s; opacity: 0; }
.ev-delay-2 { animation-delay: 0.2s; opacity: 0; }
.ev-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ev-hero { padding: 3.5rem 0 3rem; }
  .ev-product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
  .ev-navbar .nav-link { padding: 0.75rem 1rem !important; }
}

@media (max-width: 575.98px) {
  .ev-hero h1 { font-size: 2rem; }
  .ev-section { padding: 3rem 0; }
  .ev-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .ev-product-body { padding: 0.9rem; }
  .ev-price-current { font-size: 1.05rem; }
}

/* Override legacy Bootstrap light theme remnants */
.bg-light, .bg-white, .bg-body { background-color: transparent !important; }
.border-bottom { border-color: var(--ev-border) !important; }
.text-muted { color: var(--ev-text-muted) !important; }
.text-dark, .text-body { color: var(--ev-text) !important; }
.navbar-light .navbar-nav .nav-link { color: var(--ev-text-muted); }
.card { background: var(--ev-bg-card); border-color: var(--ev-border); color: var(--ev-text); }
.dropdown-menu {
  background: var(--ev-bg-elevated);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  box-shadow: var(--ev-shadow);
}
.dropdown-item { color: var(--ev-text-muted); }
.dropdown-item:hover { background: rgba(20, 184, 166, 0.1); color: var(--ev-teal-bright); }
.offcanvas {
  background: var(--ev-bg-elevated) !important;
  color: var(--ev-text);
}
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Slick / slider compatibility */
.slick-dots li button:before { color: var(--ev-teal) !important; }
.slick-prev:before, .slick-next:before { color: var(--ev-teal-bright) !important; }
