/* ============================================
   SHOP PAGE CSS (Cyberpunk Neon Pro)
   ============================================ */
.shop-page { padding-top: 100px; min-height: 100vh; position: relative; z-index: 1; }
.shop-hero {
  background: #060913;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 28px;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(236, 72, 153, 0.04) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(236, 72, 153, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
}
.shop-hero-content { position: relative; z-index: 1; }
.shop-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.shop-breadcrumb a { color: #a78bfa; text-decoration: none; }
.shop-breadcrumb a:hover { text-decoration: underline; }

.shop-hero-header-wrap {
  display: flex;
  flex-direction: column;
}
.shop-hero-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ff007f;
}
.title-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff007f;
  filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.6));
}
.neon-title-text {
  background: linear-gradient(135deg, #ff007f 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.35);
}
.shop-title-underline {
  width: 90px;
  height: 3.5px;
  background: linear-gradient(90deg, #ff007f, #ec4899);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.7);
  margin: 6px 0 10px 0;
}
.shop-hero-subtitle {
  color: #94a3b8;
  font-size: 15px;
  margin: 0;
}
.highlight-count {
  color: #ff007f;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0 80px; }

/* Filters Sidebar */
.shop-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-panel {
  background: #0d1222;
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.filter-title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-header-title {
  color: #f8fafc;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.search-box-wrapper {
  position: relative;
  width: 100%;
}
.search-box-wrapper .filter-search {
  width: 100%;
  background: #0c101c !important;
  border: 1px solid rgba(30, 41, 59, 0.8) !important;
  border-radius: 12px !important;
  padding: 13px 16px 13px 44px !important;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.search-box-wrapper .filter-search::placeholder {
  color: #64748b;
  font-size: 14px;
}
.search-box-wrapper .filter-search:focus {
  border-color: #00f0ff !important;
  background: #0e1424 !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) !important;
}
.search-box-wrapper .search-icon-svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}
.search-box-wrapper:focus-within .search-icon-svg {
  color: #00f0ff;
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid transparent;
  user-select: none;
  min-width: 0;
}
.filter-item > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.filter-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}
.filter-item.active {
  background: rgba(236, 72, 153, 0.16) !important;
  color: #ff007f !important;
  font-weight: 700;
  border-color: rgba(236, 72, 153, 0.3) !important;
}
.filter-item.active .filter-count {
  color: #ff007f !important;
  font-weight: 700;
}
.filter-count {
  margin-left: auto;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

/* Sắp xếp active item */
#sortFilterList .filter-item {
  border-left: none !important;
  padding-left: 14px !important;
  border-radius: 10px !important;
}
#sortFilterList .filter-item.active {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  font-weight: 700;
}



/* Shop Main */
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.shop-results { color: var(--text-muted); font-size: 14px; flex: 1; }
.shop-sort {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  font-family: 'Inter',sans-serif;
  transition: var(--transition);
}
.shop-sort:focus { border-color: var(--purple); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}
.view-btn.active, .view-btn:hover { border-color: var(--purple); color: var(--purple-light); background: rgba(139,92,246,0.1); }

.shop-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-tag-filter {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.shop-tag-filter .remove { opacity: 0.7; }
.shop-tag-filter:hover .remove { opacity: 1; color: var(--pink); }

.shop-grid.list-view { display: flex; flex-direction: column; gap: 16px; }
.shop-grid.list-view .product-card { display: grid; grid-template-columns: 200px 1fr auto; }
.shop-grid.list-view .product-img-wrap { height: auto; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.shop-grid.list-view .product-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 20px; border-left: 1px solid var(--border); border-top: none; width: 180px; }
.shop-grid.list-view .btn-add-cart { width: 100%; justify-content: center; }

.shop-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active { border-color: var(--purple); color: var(--purple-light); background: rgba(139,92,246,0.1); }
.page-btn.active { background: var(--purple); color: white; border-color: var(--purple); }

/* Game Filter Tabs */
.game-filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.game-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.game-tab:hover { color: var(--text-primary); border-color: rgba(139,92,246,0.4); }
.game-tab.active { background: rgba(139,92,246,0.15); border-color: var(--purple); color: var(--purple-light); }

/* ============================================
   3D WIREFRAME CUBE LOADING OVERLAY (CHUẨN ẢNH 1)
   ============================================ */
.shop-loading-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.shop-loading-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.shop-loading-overlay.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
}
.cube-container {
  width: 80px;
  height: 80px;
  perspective: 1000px;
  margin-bottom: 24px;
}
.cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube 3s infinite linear;
}
.cube-side {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 15px;
  left: 15px;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-sizing: border-box;
}
.cube-side::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0.5px dashed rgba(255, 255, 255, 0.25) !important;
}
.side-front  { transform: rotateY(  0deg) translateZ(25px); }
.side-back   { transform: rotateY(180deg) translateZ(25px); }
.side-right  { transform: rotateY( 90deg) translateZ(25px); }
.side-left   { transform: rotateY(-90deg) translateZ(25px); }
.side-top    { transform: rotateX( 90deg) translateZ(25px); }
.side-bottom { transform: rotateX(-90deg) translateZ(25px); }

@keyframes spinCube {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.loading-label {
  color: #e4e4e7 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  animation: pulseLabel 1.5s infinite ease-in-out;
}

@keyframes pulseLabel {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE DESIGN FOR SHOP PAGE
   ============================================ */
@media (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 130px;
  }
  .shop-sidebar {
    position: static;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .shop-page {
    padding-top: 80px;
    padding-bottom: 130px;
  }
  .shop-hero {
    padding: 32px 0;
  }
  .shop-hero h1 {
    font-size: 28px;
  }
  .shop-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }
  .shop-grid.list-view .product-img-wrap {
    height: 180px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .shop-grid.list-view .product-footer {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES FOR SHOP PAGE (FULL TRẮNG SÁNG CAO CẤP)
   ══════════════════════════════════════════════════════════════════ */
[data-theme="light"] .shop-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .shop-hero::before {
  background-image: 
    linear-gradient(rgba(236, 72, 153, 0.08) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(236, 72, 153, 0.08) 1px, transparent 1px) !important;
}
[data-theme="light"] .shop-breadcrumb {
  color: #64748b !important;
}
[data-theme="light"] .shop-hero-subtitle {
  color: #64748b !important;
}
[data-theme="light"] .filter-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .filter-header-title {
  color: #0f172a !important;
}
[data-theme="light"] .search-box-wrapper .filter-search {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
[data-theme="light"] .search-box-wrapper .filter-search::placeholder {
  color: #94a3b8 !important;
}
[data-theme="light"] .search-box-wrapper .filter-search:focus {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
[data-theme="light"] .filter-item {
  color: #475569 !important;
}
[data-theme="light"] .filter-item:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
[data-theme="light"] .filter-item.active {
  background: rgba(236, 72, 153, 0.08) !important;
  color: #db2777 !important;
  border-color: rgba(236, 72, 153, 0.3) !important;
}
[data-theme="light"] .filter-count {
  background: #f1f5f9 !important;
  color: #64748b !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}
[data-theme="light"] #sortFilterList .filter-item.active {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}
[data-theme="light"] .product-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .product-card:hover {
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.1) !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .product-title {
  color: #0f172a !important;
}
[data-theme="light"] .product-desc {
  color: #64748b !important;
}
