/* ==========================================================================
   NICKS PANEL STORE - BUYER WEB NEON GAMER REDESIGN
   Exact match for user reference (Dark Cyberpunk / Anime Esports UI)
   ========================================================================== */

:root {
  --bg-store: #07080d;
  --bg-card: #0d1019;
  --bg-card-hover: #121624;
  --neon-red: #ef4444;
  --neon-red-glow: rgba(239, 68, 68, 0.45);
  --neon-blue: #3b82f6;
  --neon-blue-glow: rgba(59, 130, 246, 0.45);
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.45);
  --neon-pink: #ec4899;
  --neon-pink-glow: rgba(236, 72, 153, 0.45);
  --green-stock: #10b981;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --border-dark: rgba(255, 255, 255, 0.08);
}

body.buyer-neon-theme {
  background-color: var(--bg-store) !important;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 90px !important; /* space for bottom navigation bar */
  overflow-x: hidden;
}

/* ---------------- Top Header Bar ---------------- */
.buyer-header-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 8, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
}

.buyer-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buyer-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.buyer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  object-fit: cover;
}

.buyer-logo-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.buyer-logo-title .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.buyer-logo-title .brand-accent {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--neon-red);
  letter-spacing: 0.8px;
}

/* Header Search Bar */
.buyer-search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
  margin: 0 8px;
}

.buyer-search-bar input {
  width: 100%;
  background: #131722;
  border: 1px solid #23293a;
  color: #fff;
  padding: 8px 16px 8px 38px;
  border-radius: 24px;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.buyer-search-bar input:focus {
  border-color: var(--neon-red);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
  background: #171c2b;
}

.buyer-search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.85rem;
  pointer-events: none;
}

/* Header Right Actions */
.buyer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.buyer-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #151824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  text-decoration: none;
}

.buyer-btn-icon:hover {
  background: #1e2436;
  border-color: rgba(255, 255, 255, 0.2);
}

.buyer-btn-icon .noti-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--neon-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-red);
}

.buyer-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  border: 2px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  cursor: pointer;
  text-decoration: none;
}

/* ---------------- Hero Banner Section ---------------- */
.buyer-hero-container {
  max-width: 1200px;
  margin: 18px auto 14px auto;
  padding: 0 14px;
}

.buyer-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0608 url('/images/hero_banner.jpg') no-repeat right center;
  background-size: cover;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.22);
  min-height: 240px;
  display: flex;
  align-items: center;
}

/* Background layered effects */
.buyer-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 13, 0.94) 0%, rgba(7, 8, 13, 0.82) 48%, rgba(7, 8, 13, 0.2) 75%, transparent 100%);
  z-index: 1;
}

.buyer-hero-character {
  display: none; /* Character is seamlessly integrated into hero_banner.jpg */
}

.buyer-hero-content {
  position: relative;
  z-index: 3;
  padding: 28px 24px;
  max-width: 560px;
}

.buyer-hero-title-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}

.buyer-hero-title-main {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--neon-red);
  letter-spacing: 1px;
  margin: 2px 0 8px 0;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  line-height: 1.15;
}

.buyer-hero-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.4;
}

.buyer-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.buyer-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.7);
}

.buyer-hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.buyer-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.buyer-slider-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
}

/* ---------------- Trust Badges Row ---------------- */
.buyer-trust-row {
  max-width: 1200px;
  margin: 12px auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.buyer-trust-item {
  background: #0f121b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.buyer-trust-item .icon {
  font-size: 0.95rem;
}

/* ---------------- Section Header ---------------- */
.buyer-section-header {
  max-width: 1200px;
  margin: 22px auto 14px auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.buyer-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.buyer-section-title .section-icon {
  color: var(--neon-red);
  font-size: 1.3rem;
}

.buyer-btn-view-all {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.buyer-btn-view-all:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Category Filter Tabs */
.buyer-filter-tabs {
  max-width: 1200px;
  margin: 0 auto 16px auto;
  padding: 0 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.buyer-filter-tabs::-webkit-scrollbar {
  display: none;
}

.buyer-filter-tab {
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.buyer-filter-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.buyer-filter-tab.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--neon-red);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

/* ---------------- 2x2 & 4-Col Product Cards Grid ---------------- */
.buyer-products-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .buyer-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .buyer-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* Cyber Product Card */
.cyber-product-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  overflow: hidden;
}

/* Rotating/Alternating Neon Border Themes */
.cyber-product-card.glow-red {
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.16);
}
.cyber-product-card.glow-red:hover {
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
  border-color: #ef4444;
}

.cyber-product-card.glow-blue {
  border: 1px solid rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.16);
}
.cyber-product-card.glow-blue:hover {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}

.cyber-product-card.glow-purple {
  border: 1px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.16);
}
.cyber-product-card.glow-purple:hover {
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
  border-color: #a855f7;
}

.cyber-product-card.glow-pink {
  border: 1px solid rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.16);
}
.cyber-product-card.glow-pink:hover {
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.4);
  border-color: #ec4899;
}

/* Stock Badge */
.cyber-card-stock {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: var(--green-stock);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
  letter-spacing: 0.3px;
}

/* Artwork Box */
.cyber-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #08090f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cyber-product-card:hover .cyber-card-art img {
  transform: scale(1.04);
}

/* Product Info */
.cyber-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 8px 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.5em;
  letter-spacing: 0.2px;
}

/* Price & Buy Now Row */
.cyber-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.cyber-card-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.cyber-btn-buy {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cyber-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
  background: linear-gradient(135deg, #f87171, #dc2626);
}

/* ---------------- Why Choose Us Section ---------------- */
.buyer-why-container {
  max-width: 1200px;
  margin: 28px auto 14px auto;
  padding: 0 14px;
}

.buyer-why-card {
  background: #0c0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 14px;
}

.buyer-why-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.buyer-why-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.buyer-why-title .gem-icon {
  color: var(--neon-red);
  font-size: 1.15rem;
}

.buyer-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.buyer-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
}

.buyer-why-item .icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--neon-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---------------- Floating Bottom Navigation Dock ---------------- */
.buyer-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
}

.buyer-bottom-dock-inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.buyer-dock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}

.buyer-dock-tab .dock-icon {
  font-size: 1.15rem;
}

.buyer-dock-tab.active {
  background: rgba(239, 68, 68, 0.18);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.buyer-dock-tab.active .dock-icon {
  color: var(--neon-red);
}

.buyer-dock-tab.active svg.dock-icon[fill="currentColor"] {
  fill: var(--neon-red);
  filter: drop-shadow(0 0 6px var(--neon-red));
}

.buyer-dock-tab.active svg.dock-icon[stroke="currentColor"] {
  stroke: var(--neon-red);
  filter: drop-shadow(0 0 6px var(--neon-red));
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .buyer-header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .buyer-logo-group {
    order: 1;
  }
  .buyer-header-actions {
    order: 2;
  }
  .buyer-search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 6px 0 2px 0;
  }
  .buyer-search-bar input {
    font-size: 0.82rem;
    padding: 8px 14px 8px 36px;
  }

  .buyer-products-grid {
    gap: 10px;
    padding: 0 8px;
  }
  .cyber-product-card {
    padding: 8px;
    border-radius: 14px;
  }
  .cyber-card-name {
    font-size: 0.74rem;
  }
  .cyber-card-price {
    font-size: 0.95rem;
  }
  .cyber-btn-buy {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .buyer-trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .buyer-hero-card {
    min-height: 200px;
  }
  .buyer-hero-title-sub {
    font-size: 1.1rem;
  }
  .buyer-hero-title-main {
    font-size: 1.35rem;
  }
  .buyer-hero-desc {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  .buyer-hero-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .buyer-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
