/**
 * RC CYBER SHOP - V6.1 FINAL STABLE
 * This version restores the Quick View Modal functionality to the V6.0 stylesheet.
 * This is the complete and final version.
 */

/* ===== 1. ROOT VARIABLES & GLOBAL STYLES ===== */
:root {
  --color-dark-bg: #0a0a14;
  --font-primary: 'Saira', sans-serif;
  --font-display: 'Oswald', sans-serif;
  --theme-red: #ff0033;
  --theme-blue: #00aaff;
  --theme-green: #00ff88;
  --primary-accent: var(--theme-red);
  --glass-panel-bg: rgba(15, 17, 32, 0.7);
  --glass-panel-border: rgba(255, 255, 255, 0.1);
  --glass-panel-blur: 25px;
}

body {
  background-color: var(--color-dark-bg);
  color: #e0e0e0;
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}

/* ===== 2. BACKGROUND & LAYOUT ===== */
.cyber-shop-wrapper {
  background: var(--color-dark-bg);
  min-height: 100vh;
  position: relative;
  padding: 15px;
}

.cyber-bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.glow-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 0, 51, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 170, 255, 0.08) 0%, transparent 50%);
}

/* ===== 3. MOBILE-FIRST LAYOUT ===== */
.cyber-shop-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-accent), transparent);
  border: 1px solid var(--glass-panel-border);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  width: 100%;
  justify-content: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
  background: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 0, 51, 0.4);
}

/* Mobile Sidebar */
.cyber-shop-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--color-dark-bg);
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255,255,255,0.15);
}

.cyber-shop-sidebar.active {
  left: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
  display: block;
}

/* ===== 4. HERO SECTION (SLEEK UPGRADE) ===== */
.cyber-shop-hero-compact {
  text-align: center;
  padding: 30px 15px 20px;
  margin-bottom: 20px;
  position: relative;
}

.compact-main-title {
  text-align: center;
  margin: 15px 0;
}

.title-triple-tone {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    0 0 5px rgba(255,255,255,0.2),
    0 0 10px var(--primary-accent),
    0 0 15px var(--primary-accent);
}

.cyber-divider-compact {
    position: relative;
    width: 150px;
    height: 2px;
    margin: 15px auto 20px;
    background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
}

.holographic-tagline-compact {
  position: relative;
  margin-top: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-panel-border);
  border-radius: 20px;
  display: inline-block;
  overflow: hidden;
}

.tagline-text {
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}


/* ===== 5. SIDEBAR & FILTERS (SLEEK UPGRADE) ===== */
.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-panel-border);
  margin-bottom: 20px;
}
.mobile-sidebar-header h4 {
  margin: 0; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 1.2rem; display: flex;
  align-items: center; gap: 10px; color: #fff;
}
.mobile-filter-close-btn {
  background: transparent; border: 1px solid var(--glass-panel-border);
  color: #fff; width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; font-size: 1.1rem;
}
.mobile-filter-close-btn:hover {
  background: var(--theme-red); border-color: var(--theme-red);
  transform: rotate(90deg); box-shadow: 0 0 15px var(--theme-red);
}
.cyber-shop-sidebar .cyber-panel {
  background: transparent; backdrop-filter: none;
  border: none; border-radius: 0; padding: 0;
}
.cyber-panel .panel-header { display: none; }
.filter-section {
  margin-bottom: 25px; padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-title {
  font-family: var(--font-display); font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin: 0 0 20px 0; display: flex;
  align-items: center; gap: 10px; opacity: 0.9;
}
.filter-title i {
  color: var(--primary-accent); font-size: 1.2rem; opacity: 0.8;
}
.cyber-categories {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.cyber-category-btn {
  background: transparent; border: 1px solid var(--glass-panel-border);
  border-radius: 6px; padding: 12px 10px;
  color: rgba(255, 255, 255, 0.6); cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: 'Saira', sans-serif; font-size: 0.9rem;
  font-weight: 500; text-align: center; backdrop-filter: blur(5px);
}
.cyber-category-btn:hover {
  border-color: var(--primary-accent); color: #fff;
  background: rgba(255, 0, 51, 0.1);
}
.cyber-category-btn.active {
  background: rgba(255, 0, 51, 0.1);
  border-color: var(--primary-accent); color: #fff; font-weight: 600;
  box-shadow: 0 0 15px -2px var(--primary-accent), inset 0 0 15px -10px var(--primary-accent);
}
.cyber-categories .cyber-category-btn[data-filter-value="all"] { grid-column: 1 / -1; }
.cyber-price-filter { margin-top: 10px; }
.cyber-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1);
  outline: none; border-radius: 2px; cursor: pointer;
}
.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; background: #fff;
  border: 3px solid var(--primary-accent); border-radius: 50%;
  cursor: pointer; transition: box-shadow 0.2s ease;
}
.cyber-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 15px var(--primary-accent); }
.cyber-slider::-moz-range-thumb {
  width: 20px; height: 20px; background: #fff;
  border: 3px solid var(--primary-accent); border-radius: 50%;
  cursor: pointer; transition: box-shadow 0.2s ease;
}
.cyber-slider::-moz-range-thumb:hover { box-shadow: 0 0 15px var(--primary-accent); }
.price-display {
  margin-top: 15px; font-size: 1rem;
  font-weight: 600; color: #fff; text-align: center;
}
.filter-reset { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--glass-panel-border); }

/* ===== 6. PRODUCTS GRID & TOOLBAR ===== */
.cyber-shop-toolbar {
  display: flex; flex-direction: column;
  gap: 15px; margin-bottom: 20px; padding: 15px;
  background: var(--glass-panel-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-panel-border); border-radius: 12px;
}
.results-count {
  color: white; font-family: var(--font-display);
  font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 1px; text-align: center;
}
.sort-options { width: 100%; }

/* ===== SORTING & PAGINATION ===== */
.sort-container { width: 100%; max-width: 200px; margin: 0 auto 30px auto; position: relative; }
.sort-label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; text-align: center; color: #e0e0e0; } /* Added color matching body */
.sort-options { width: 100%; }

.cyber-select {
    width: 100%;
    /* Use CSS variables for consistency */
    background: var(--glass-panel-bg); /* Use the glass panel background */
    backdrop-filter: blur(var(--glass-panel-blur)); /* Add the blur effect */
    border: 1px solid var(--glass-panel-border); /* Use the glass panel border */
    border-radius: 8px;
    color: #e0e0e0; /* Use the body text color */
    padding: 10px 40px 10px 15px; /* Add more padding on the right for the arrow */
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Hides default dropdown arrow */
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;

    /* Add a subtle glow on focus/hover, matching the theme */
    box-shadow: inset 0 0 0 1px transparent; /* Initial state */
}

.cyber-select:hover {
    border-color: var(--primary-accent); /* Red border on hover */
    box-shadow: inset 0 0 0 1px var(--primary-accent), 0 0 10px rgba(255, 0, 51, 0.2); /* Inner red border + subtle outer glow */
    background: rgba(30, 32, 50, 0.7); /* Slightly lighter on hover */
}

.cyber-select:focus {
    outline: none; /* Remove default focus outline */
    border-color: var(--primary-accent); /* Red border on focus */
    box-shadow: inset 0 0 0 1px var(--primary-accent), 0 0 15px rgba(255, 0, 51, 0.4); /* Stronger glow on focus */
}

/* Add a custom arrow using a data URI SVG pointing down, matching the theme color */
.cyber-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(255, 0, 51, 0.8)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center; /* Position the arrow */
    background-size: 14px; /* Size the arrow */
}

/* Optional: Style the dropdown options themselves (support varies) */
/* This might not work in all browsers, but worth trying */
.cyber-select option {
    background-color: var(--color-dark-bg); /* Match the main background */
    color: #e0e0e0; /* Match the text color */
    /* Add padding if supported */
    padding: 8px 12px;
}


/* SLEEKER PRODUCT GRID */
.cyber-products-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 column */
  gap: 25px;
  width: 100%;
}

@media (min-width: 768px) {
  .cyber-products-grid {
    grid-template-columns: repeat(2, 1fr); /* ✨ ALWAYS 2 COLUMNS */
  }
}
.cyber-product-card {
  background: var(--glass-panel-bg);
  backdrop-filter: var(--glass-panel-blur);
  border: 1px solid var(--glass-panel-border);
  border-radius: 12px; transition: all 0.4s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.cyber-product-card:hover {
  transform: translateY(-8px);
  border-color: var(--badge-glow, var(--primary-accent));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.cyber-product-card .product-badge {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px;
  border-radius: 15px; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px);
  box-shadow: 0 0 12px var(--badge-glow, rgba(255, 0, 51, 0.6));
  z-index: 5; font-family: var(--font-display);
}
.cyber-product-card .product-image {
  padding: 15px; text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--glass-panel-border);
  position: relative;
}
.cyber-product-card .product-image img {
  width: 100%; max-width: 180px; height: 130px;
  object-fit: contain; transition: transform 0.3s ease;
}
.cyber-product-card .product-info {
  padding: 15px; flex-grow: 1;
  display: flex; flex-direction: column;
}
.product-title a {
  color: #fff; font-size: 1rem;
  text-decoration: none; transition: color 0.3s ease;
  font-family: var(--font-primary); font-weight: 500;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 45px;
}
.product-title a:hover { color: var(--badge-glow, var(--primary-accent)); }
.product-specs {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;
}
.spec-item {
    background: rgba(255,255,255,0.05); padding: 3px 7px;
    border-radius: 4px; font-size: 0.7rem;
    font-weight: 600; color: rgba(255,255,255,0.7);
}
.product-price {
  color: var(--badge-glow, var(--primary-accent));
  font-weight: 700; font-size: 1.2rem; margin: 10px 0;
  font-family: var(--font-display);
}
.cyber-add-to-cart {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; background: transparent;
  border: 1.5px solid var(--badge-glow, var(--primary-accent));
  color: white; padding: 10px 15px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
  text-transform: uppercase; transition: all 0.3s ease;
  margin-top: auto; font-family: var(--font-display);
  letter-spacing: 0.5px; font-size: 0.8rem;
}
.cyber-add-to-cart:hover {
  background: var(--badge-glow, var(--primary-accent));
  color: var(--color-dark-bg);
  box-shadow: 0 5px 15px var(--badge-glow, rgba(255, 0, 51, 0.3));
  transform: translateY(-2px);
}
.quick-view-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 35px; height: 35px; border-radius: 50%;
  background: rgba(20, 20, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7); cursor: pointer;
  transition: all 0.3s ease; display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(10px); opacity: 0;
  transform: scale(0.8);
}
.cyber-product-card:hover .quick-view-btn { opacity: 1; transform: scale(1); }
.quick-view-btn:hover { background: var(--primary-accent); color: white; box-shadow: 0 0 15px var(--primary-accent); }

/* ===== 7. RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 768px) {
  .cyber-shop-wrapper { padding: 20px; }
  .cyber-shop-container { flex-direction: row; gap: 30px; }
  .cyber-shop-sidebar {
    position: sticky; top: 100px; left: 0;
    width: 280px; height: auto; max-width: none;
    background: var(--glass-panel-bg);
    backdrop-filter: var(--glass-panel-blur);
    border-radius: 16px; padding: 25px;
    overflow: visible; z-index: 1;
    border: 1px solid var(--glass-panel-border);
  }
  .mobile-filter-toggle, .mobile-sidebar-header { display: none; }
  .sidebar-overlay { display: none !important; }

  /* UPGRADED Filter Header */
  .cyber-panel .panel-header {
      display: flex; align-items: center; gap: 15px;
      margin-bottom: 25px; padding-bottom: 20px;
      border-bottom: 1px solid var(--glass-panel-border);
  }
  .panel-header .panel-icon {
      width: 40px; height: 40px;
      color: var(--primary-accent);
      display: flex; align-items: center; justify-content: center;
      transition: all 0.3s ease;
  }
  .panel-header .panel-icon svg {
      width: 24px; height: 24px;
  }
  .panel-header h3 {
      margin: 0; font-family: var(--font-display);
      text-transform: uppercase; letter-spacing: 1.5px;
      font-size: 1.3rem;
  }
  .cyber-shop-sidebar .cyber-panel { padding: 0; }
  .cyber-shop-toolbar {
    flex-direction: row; justify-content: space-between; align-items: center;
  }
  .results-count { text-align: left; }
  .sort-options { width: auto; min-width: 200px; }
}

@media (min-width: 1024px) {
  .cyber-shop-wrapper { padding: 30px; }
  .title-triple-tone { font-size: 2.8rem; }
  .cyber-shop-sidebar { width: 300px; }
}

/* ===== 8. PAGINATION & RESET ===== */
.cyber-pagination-wrapper { margin-top: 40px; margin-bottom: 20px; }
.cyber-pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 8px; flex-wrap: wrap;
}
.cyber-pagination .page-number, .cyber-pagination .dots {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  background: rgba(30, 30, 45, 0.7);
  border: 1px solid var(--glass-panel-border);
  border-radius: 8px; color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display); font-weight: 600;
}
.cyber-pagination .page-number { cursor: pointer; transition: all 0.3s ease; }
.cyber-pagination .page-number:hover {
  border-color: var(--primary-accent); color: white;
}
.cyber-pagination .page-number.current {
  background: var(--primary-accent); border-color: var(--primary-accent);
  color: white; box-shadow: 0 0 15px var(--primary-accent);
}
.cyber-pagination .dots {
  background: transparent; border: none; letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
}
.cyber-reset-btn {
  display: none; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px;
  background: rgba(255, 0, 51, 0.1);
  border: 1.5px solid var(--theme-red); border-radius: 8px;
  color: var(--theme-red); font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease;
  width: 100%;
}
.cyber-reset-btn:hover:not(:disabled) {
  background: var(--theme-red); color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 0, 51, 0.4);
}
.cyber-reset-btn.pulse { animation: resetPulse 2s ease-in-out infinite; }
@keyframes resetPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 0, 51, 0); }
}

/* ===== 9. QUICK VIEW MODAL (RESTORED & FIXED) ===== */
.cyber-quick-modal {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  z-index: 10000; /* ✨ INCREASED from 10000 to 10050 */
  display: none; 
  align-items: center;
  justify-content: center; 
  padding: 20px; 
  box-sizing: border-box;
}
.cyber-quick-modal.active { 
  display: flex; 
}

.cyber-quick-modal .modal-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: radial-gradient(circle, rgba(10, 10, 20, 0.5), rgba(10, 10, 20, 0.85));
  backdrop-filter: blur(8px);
  z-index: 10051; /* ✨ ADDED - Higher than modal container */
}

.quick-view-content-v3 {
  width: 100%; 
  max-width: 900px;
  display: grid; 
  grid-template-columns: 1fr;
  gap: 25px; 
  position: relative; 
  z-index: 10052; /* ✨ INCREASED - Highest of all */
}

.quick-view-image-panel, .quick-view-info-panel {
  background: rgba(20, 25, 40, 0.7);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 25px; 
  position: relative;
}

.modal-close-v3 {
  position: absolute; 
  top: 15px; 
  right: 15px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; 
  width: 35px; 
  height: 35px; 
  border-radius: 50%;
  cursor: pointer; 
  transition: all 0.3s ease;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 10053; /* ✨ ADDED - Even higher for close button */
}

/* ✨ NEW: Add top margin/padding to account for header */
@media (max-width: 768px) {
  .quick-view-content-v3 {
      margin-top: 60px; /* Space for mobile header */
      max-height: calc(100vh - 120px);
      overflow-y: auto;
  }
}

@media (min-width: 769px) {
  .quick-view-content-v3 {
      margin-top: 80px; /* Space for desktop header */
      max-height: calc(100vh - 160px);
  }
}

/* Rest of your existing modal styles remain the same... */
.product-title-v3 {
  font-family: var(--font-display); 
  font-size: 1.8rem;
  margin-top: 20px; 
  margin-bottom: 15px; 
  line-height: 1.2; 
  color: white;
}
.product-price-v3 {
  font-size: 2rem; 
  font-weight: 700; 
  margin-bottom: 25px;
  color: var(--primary-accent);
}
.quick-view-actions-v3 {
  margin-top: 25px; 
  border-top: 1px solid rgba(255, 255, 255, 0.1); 
  padding-top: 25px;
}
.action-btn-v3.primary {
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 10px; 
  padding: 14px;
  border: 1.5px solid var(--theme-primary, var(--primary-accent));
  border-radius: 8px; 
  text-transform: uppercase;
  font-family: var(--font-display); 
  font-weight: 600; 
  letter-spacing: 1.5px;
  cursor: pointer; 
  transition: all 0.3s ease; 
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, var(--primary-accent)) 20%, transparent), transparent);
  box-shadow: 0 0 20px -5px var(--theme-glow, rgba(255, 0, 51, 0.4));
}
.action-btn-v3.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px var(--theme-glow, rgba(255, 0, 51, 0.4)), 0 5px 20px rgba(0,0,0,0.3);
  background-color: var(--theme-primary, var(--primary-accent));
  letter-spacing: 2px;
}

@media (min-width: 900px) {
  .quick-view-content-v3 { 
      grid-template-columns: 400px 1fr; 
  }
}

body.modal-open { 
  overflow: hidden; 
}

/* ===== UPDATED MODAL BADGE STYLES - BLACK BG + NEON GLOW ===== */
.gallery-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: black;
  border: 1.5px solid;
  background: rgba(10, 10, 20, 0.9); /* Black background */
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px currentColor; /* Neon glow effect */
}

.gallery-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 25px currentColor, 0 5px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  background: rgba(10, 10, 20, 0.95); /* Slightly darker on hover */
}

/* ===================================================================
 * 3. ELEGANT CYBER LUXE TITLE (Copied from Homepage)
 * =================================================================== */
 .section-header-cyber .cyber-glitch-text {
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  color: var(--text-color);
  display: inline-block;
  padding: 20px 38px;
  border-radius: 16px;
  background: var(--panel-bg);
  backdrop-filter: blur(25px) contrast(1.2);
  -webkit-backdrop-filter: blur(25px) contrast(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.12),
              inset 0 -1px 0 rgba(0, 0, 0, 0.15),
              0 0 22px var(--inner-glow);
  text-shadow: 0 0 10px var(--glow-soft),
               0 0 22px var(--glow-intense);
  animation: luxe-pulse 6s ease-in-out infinite alternate;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header-cyber .cyber-glitch-text:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.18),
              inset 0 -1px 0 rgba(0, 0, 0, 0.2),
              0 0 36px rgba(255, 0, 51, 0.35);
  text-shadow: 0 0 14px rgba(255, 0, 51, 0.8),
               0 0 32px rgba(255, 0, 51, 0.6);
}

.section-header-cyber .cyber-underline {
  display: block;
  width: 56%;
  max-width: 400px;
  height: 2.5px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.6), transparent);
  border-radius: 2px;
  filter: drop-shadow(0 0 3px rgba(255, 0, 51, 0.4));
  position: relative;
  overflow: hidden;
}

.section-header-cyber .cyber-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.5;
  transform: translateX(-100%);
  animation: scanline 3.5s ease-out infinite;
}

.section-header-cyber .section-subtitle {
  margin-top: 16px;
  font-size: 0.95rem;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-weight: 400;
  font-family: 'Saira', 'Rajdhani', sans-serif;
  opacity: 0.9;
}

/* ===================================================================
* 7. ANIMATIONS (Copied from Homepage)
* =================================================================== */
@keyframes luxe-pulse {
  0% {
      text-shadow: 0 0 8px var(--glow-soft), 0 0 18px var(--glow-intense);
      box-shadow: 0 10px 36px rgba(0,0,0,0.6), 
                  inset 0 1px 0 rgba(255,255,255,0.12), 
                  0 0 20px var(--inner-glow);
  }
  100% {
      text-shadow: 0 0 12px var(--glow-soft), 0 0 26px var(--glow-intense);
      box-shadow: 0 10px 36px rgba(0,0,0,0.6), 
                  inset 0 1px 0 rgba(255,255,255,0.16), 
                  0 0 28px rgba(255,0,51,0.25);
  }
}

@keyframes scanline {
  0% {
      transform: translateX(-100%);
      opacity: 0;
  }
  50% {
      opacity: 1;
  }
  100% {
      transform: translateX(100%);
      opacity: 0;
  }
}