/* style.css - Flame Gaming Design System & Theme CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&family=Oswald:wght@500;700&display=swap');

:root {
  --bg-primary: #0B0B0C;
  --bg-secondary: #121214;
  --bg-card: #18181C;
  --bg-input: #202025;
  --primary-accent: #FF1E27;
  --primary-accent-hover: #E50914;
  --primary-accent-glow: rgba(255, 30, 39, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A5;
  --border-color: #26262B;
  --border-hover: #404048;
  --success: #00E676;
  --warning: #FFD600;
  --font-heading: 'Montserrat', sans-serif;
  --font-accent: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #303038;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

p {
  color: var(--text-secondary);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Neon Glow Effect */
.glow-accent {
  box-shadow: 0 0 15px var(--primary-accent-glow);
}

.text-glow {
  text-shadow: 0 0 8px var(--primary-accent-glow);
}

/* Live Alert Banner */
.live-banner {
  background: #000000;
  border-bottom: 2px solid var(--primary-accent);
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 100;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 30, 39, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(255, 30, 39, 0); }
  100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 30, 39, 0); }
}

.live-btn {
  background: var(--primary-accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Header & Nav */
.header {
  background-color: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 99;
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.logo-link span {
  color: var(--primary-accent);
  animation: flame-flicker-text 1.5s infinite alternate;
}

@keyframes flame-flicker-text {
  0%, 100% {
    text-shadow: 0 0 4px #FF1E27, 0 0 10px #FF5722, 0 0 15px #FF1E27;
  }
  50% {
    text-shadow: 0 0 8px #FF1E27, 0 0 20px #FF9800, 0 0 30px #FFC107, 0 0 35px #FF1E27;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.cart-icon-btn:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: 0 0 10px rgba(255, 30, 39, 0.2);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary-accent);
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-secondary);
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--primary-accent);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 30, 39, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-accent-hover);
  box-shadow: 0 0 15px rgba(255, 30, 39, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

/* Card General */
.game-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-accent);
  box-shadow: 0 0 20px var(--primary-accent-glow);
}

/* Hero Section */
.hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: var(--transition-smooth);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 11, 12, 1) 25%, rgba(11, 11, 12, 0.8) 50%, rgba(11, 11, 12, 0) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-subtitle {
  color: var(--primary-accent);
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  border-left: 3px solid var(--primary-accent);
  padding-left: 8px;
}

.hero-title {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 15px;
  margin-bottom: 28px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Fire / Flame animation effects */
.fire-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.flame-particle {
  position: absolute;
  bottom: -40px;
  width: 25px;
  height: 25px;
  background-color: var(--primary-accent);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  filter: blur(5px);
  animation: rise 2.2s infinite ease-in;
  opacity: 0;
}

.flame-particle:nth-child(2n) {
  background-color: #FF5722; /* Orange */
}

.flame-particle:nth-child(3n) {
  background-color: #FFC107; /* Yellow */
  width: 15px;
  height: 15px;
  filter: blur(3px);
}

.flame-particle:nth-child(4n) {
  background-color: #FF9800; /* Darker Orange */
  width: 35px;
  height: 35px;
  filter: blur(6px);
}

@keyframes rise {
  0% {
    bottom: -40px;
    transform: rotate(-45deg) scale(1) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  50% {
    transform: rotate(-45deg) scale(0.6) translateX(-15px);
  }
  100% {
    bottom: 120px;
    transform: rotate(-45deg) scale(0) translateX(15px);
    opacity: 0;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-accent-bar {
  width: 4px;
  height: 28px;
  background-color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-accent);
}

.section-title {
  font-size: 24px;
}

/* Shorts Carousel / Showcase */
.shorts-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.shorts-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 10px;
}

.shorts-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.short-card {
  flex: 0 0 calc(20% - 16px);
  min-width: 200px;
  aspect-ratio: 9/16;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.short-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.short-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(11,11,12,0.95) 0%, rgba(11,11,12,0.3) 50%, rgba(11,11,12,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.short-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  opacity: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px var(--primary-accent);
}

.short-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
  box-shadow: 0 0 20px var(--primary-accent-glow);
}

.short-card:hover img {
  transform: scale(1.05);
}

.short-card:hover .short-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.short-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
}

.short-views {
  font-size: 11px;
  color: var(--primary-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Slider Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-accent-glow);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Gameplay Grid (16:9) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.video-card {
  cursor: pointer;
}

.video-thumb-container {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid transparent;
}

.video-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.video-info {
  padding: 16px;
}

.video-category {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.video-card-title {
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.video-metadata {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.video-card:hover .video-thumb-container img {
  transform: scale(1.05);
}

.video-card:hover .video-thumb-container {
  border-color: var(--primary-accent);
}

/* Merch Shop Grid & Card */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.merch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.merch-image-wrapper {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background-color: #0d0d10;
  cursor: pointer;
}

.merch-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  position: absolute;
  top: 0;
  left: 0;
}

.merch-img-alt {
  opacity: 0;
}

.merch-card:hover .merch-img-alt {
  opacity: 1;
}

.merch-card:hover .merch-img-primary {
  opacity: 0;
}

.merch-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary-accent);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 0 10px var(--primary-accent-glow);
}

.merch-info {
  padding: 20px;
}

.merch-cat {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.merch-title {
  font-size: 16px;
  margin-bottom: 8px;
  height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.merch-price {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.merch-price span {
  font-size: 12px;
  color: var(--primary-accent);
  margin-right: 2px;
}

.merch-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
  box-shadow: 0 0 25px var(--primary-accent-glow);
}

/* Sidebar Navigation (Filters) */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-top: 24px;
}

.sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 94px;
}

.sidebar-title {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 8px;
}

.filter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  cursor: pointer;
}

.filter-link:hover, .filter-link.active {
  color: var(--text-primary);
}

.filter-link.active .filter-indicator {
  background-color: var(--primary-accent);
  box-shadow: 0 0 8px var(--primary-accent);
}

.filter-indicator {
  width: 6px;
  height: 6px;
  background-color: transparent;
  border-radius: 50%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label:hover {
  color: var(--text-primary);
}

.checkbox-label input {
  accent-color: var(--primary-accent);
}

.range-slider {
  width: 100%;
  accent-color: var(--primary-accent);
  background-color: var(--bg-input);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 8px;
  color: var(--text-secondary);
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

/* Video Lightbox */
.lightbox-body {
  padding: 0;
  background-color: #000;
  aspect-ratio: 16/9;
}

.lightbox-shorts-body {
  width: 380px;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
}

.iframe-container {
  width: 100%;
  height: 100%;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Product Detail inside Modal */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-container {
  aspect-ratio: 1/1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #0d0d10;
  position: relative;
  cursor: zoom-in;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  background-color: #0d0d10;
  transition: var(--transition-fast);
}

.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--primary-accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-sku {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-accent);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-title-detail {
  font-size: 24px;
  margin-bottom: 12px;
}

.product-price-detail {
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-price-detail span {
  font-size: 14px;
  color: var(--primary-accent);
}

.product-desc-detail {
  font-size: 14px;
  margin-bottom: 24px;
}

.variant-selector-wrap {
  margin-bottom: 24px;
}

.selector-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.size-pill-container {
  display: flex;
  gap: 8px;
}

.size-pill {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--bg-secondary);
}

.size-pill:hover {
  border-color: var(--text-primary);
}

.size-pill.active {
  border-color: var(--primary-accent);
  color: white;
  background-color: var(--primary-accent);
  box-shadow: 0 0 10px var(--primary-accent-glow);
}

.stock-badge-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.stock-badge-green {
  background-color: rgba(0, 230, 118, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.stock-badge-red {
  background-color: rgba(255, 30, 39, 0.1);
  color: var(--primary-accent);
  border: 1px solid rgba(255, 30, 39, 0.2);
  animation: flicker 2s infinite alternate;
}

@keyframes flicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.qty-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.qty-btn {
  background: none;
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-val {
  width: 44px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

/* Shopping Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 18px;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-close-btn:hover {
  color: var(--text-primary);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty-message {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.cart-empty-icon {
  font-size: 48px;
  color: var(--border-hover);
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-image {
  aspect-ratio: 1/1;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: #0d0d10;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cart-item-variant {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-price {
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: bold;
}

.cart-item-price span {
  font-size: 10px;
  color: var(--primary-accent);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
}

.cart-item-remove:hover {
  color: var(--primary-accent);
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.cart-total-val {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: bold;
}

.cart-total-val span {
  font-size: 13px;
  color: var(--primary-accent);
}

/* Search bar & filter layouts */
.search-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-field {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px 12px 40px;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
}

.search-field:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px rgba(255, 30, 39, 0.15);
}

.search-icon-fixed {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.tabs-container {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white;
  box-shadow: 0 0 10px var(--primary-accent-glow);
}

/* Checkout Page */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  margin-top: 24px;
}

.checkout-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
}

.checkout-section-title {
  font-size: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 10px rgba(255, 30, 39, 0.15);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-radio-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--bg-secondary);
}

.payment-radio-label:hover {
  border-color: var(--border-hover);
}

.payment-radio-label.active {
  border-color: var(--primary-accent);
  background-color: rgba(255, 30, 39, 0.02);
}

.payment-radio-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-radio-label input {
  accent-color: var(--primary-accent);
}

.payment-name {
  font-weight: 600;
  font-size: 14px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 18px;
}

.summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 94px;
  height: fit-content;
}

.summary-title {
  font-size: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.summary-item-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.summary-mini-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.summary-row-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
  color: white;
}

.summary-total-val {
  font-family: var(--font-accent);
  color: white;
  font-size: 20px;
}

.summary-total-val span {
  font-size: 12px;
  color: var(--primary-accent);
}

/* PayHere Mock Gateway Screen */
.gateway-body {
  background-color: #F8F9FA;
  color: #333333;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gateway-box {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.gateway-header {
  background-color: #1A365D; /* PayHere Dark Blue branding */
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gateway-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.gateway-logo span {
  color: #FF5A5F;
}

.gateway-badge {
  background-color: #2F855A;
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

.gateway-content {
  padding: 24px;
}

.gateway-info-box {
  background-color: #EDF2F7;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
}

.gateway-merchant {
  font-size: 13px;
  font-weight: bold;
  color: #4A5568;
}

.gateway-amount {
  font-size: 32px;
  font-weight: 800;
  color: #1A202C;
  margin: 6px 0;
}

.gateway-amount span {
  font-size: 16px;
  font-weight: 600;
}

.gateway-ref {
  font-size: 12px;
  color: #718096;
}

.gateway-btn {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  margin-bottom: 12px;
}

.gateway-btn-primary {
  background-color: #3182CE;
  color: white;
}

.gateway-btn-primary:hover {
  background-color: #2B6CB0;
}

.gateway-btn-danger {
  background-color: #E53E3E;
  color: white;
}

.gateway-btn-danger:hover {
  background-color: #C53030;
}

.gateway-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: #A0AEC0;
  border-top: 1px solid #E2E8F0;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.admin-sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.admin-logo {
  padding: 0 24px 24px 24px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-accent);
  font-size: 20px;
  color: white;
}

.admin-logo span {
  color: var(--primary-accent);
}

.admin-nav {
  margin-top: 24px;
  list-style: none;
  flex: 1;
}

.admin-nav-item {
  margin-bottom: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.admin-nav-link:hover, .admin-nav-link.active {
  color: white;
  background-color: var(--bg-card);
  border-left: 3px solid var(--primary-accent);
}

.admin-content {
  padding: 40px;
  overflow-y: auto;
  max-height: 100vh;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.stat-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-family: var(--font-accent);
  font-weight: bold;
}

.stat-value span {
  font-size: 14px;
  color: var(--primary-accent);
  margin-right: 2px;
}

.stat-change {
  font-size: 11px;
  margin-top: 6px;
  color: var(--success);
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.chart-title {
  font-size: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Custom SVG Dashboard chart styles */
.svg-chart {
  width: 100%;
  height: 200px;
}

.admin-table-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background-color: var(--bg-secondary);
  padding: 16px 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
}

.badge-paid { background-color: rgba(0, 230, 118, 0.1); color: var(--success); }
.badge-pending { background-color: rgba(255, 214, 0, 0.1); color: var(--warning); }
.badge-failed { background-color: rgba(255, 30, 39, 0.1); color: var(--primary-accent); }
.badge-shipped { background-color: rgba(33, 150, 243, 0.1); color: #2196F3; }
.badge-completed { background-color: rgba(76, 175, 80, 0.1); color: #4CAF50; }

/* Admin Panels (forms & management dashboards) */
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.log-console {
  background-color: #050507;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  height: 320px;
  overflow-y: auto;
  color: #00FF66;
}

.log-entry {
  margin-bottom: 8px;
  line-height: 1.4;
}

.log-entry-warn { color: #FFCC00; }
.log-entry-error { color: #FF3333; }

/* Airway Bill / Shipping label view for printing */
.airway-bill {
  background: white;
  color: black;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  border: 2px dashed #000;
  margin: 0 auto;
}

.awb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid black;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.awb-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}

.awb-barcode {
  background-color: black;
  height: 50px;
  width: 100%;
  margin: 16px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  font-family: monospace;
  font-size: 10px;
  padding-bottom: 4px;
}

.awb-info-row {
  margin-bottom: 8px;
  font-size: 13px;
}

/* Footer Section */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-accent);
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--primary-accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  list-style: none;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Responsive Grid and Media Queries */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none; /* In production, we'd build a responsive mobile nav */
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* In a responsive site, we'd make a burger menu, which we will handle in JS */
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    height: auto;
    padding: 80px 0;
  }
  .hero-title {
    font-size: 32px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .merch-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}
