/* ========================================
   SYNTHWAVE AESTHETIC CSS
   Cyberpunk 80s retro-futuristic theme
   ======================================== */

:root {
  --neon-pink: #FF00FF;
  --neon-blue: #00FFFF;
  --neon-purple: #9D00FF;
  --neon-green: #39FF14;
  --dark-bg: #0a0e27;
  --dark-card: #1a1f3a;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: 'Courier New', monospace;
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 0, 255, 0.03) 2px,
      rgba(255, 0, 255, 0.03) 4px
    );
  min-height: 100vh;
  line-height: 1.6;
}

/* CRT Scanlines Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0.15) 2px
  );
  z-index: 9999;
}

/* PHASE 2: Optimize CRT effect on mobile */
@media (max-width: 640px) {
  body::before {
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    );
  }
}

/* Animated Grid Background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 0, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

/* PHASE 2: Optimize grid on mobile */
@media (max-width: 640px) {
  .grid-bg {
    background-size: 100px 100px;
    opacity: 0.5;
  }
}

/* ========================================
   TYPOGRAPHY & TEXT EFFECTS
   ======================================== */

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--neon-pink);
  text-shadow:
    0 0 10px var(--neon-pink),
    0 0 20px var(--neon-blue),
    0 0 30px var(--neon-purple);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  animation: glitch-animation 0.3s infinite;
  color: var(--neon-blue);
  z-index: -1;
  text-shadow: -2px 0 var(--neon-blue);
}

.glitch::after {
  animation: glitch-animation 0.3s infinite reverse;
  color: var(--neon-pink);
  z-index: -2;
  text-shadow: 2px 0 var(--neon-pink);
}

@keyframes glitch-animation {
  0% {
    clip-path: rect(0, 900px, 0, 0);
  }
  5% {
    clip-path: rect(10px, 9999px, 20px, 0);
  }
  10% {
    clip-path: rect(5px, 9999px, 10px, 0);
  }
  15% {
    clip-path: rect(0, 9999px, 0, 0);
  }
  100% {
    clip-path: rect(0, 9999px, 0, 0);
  }
}

/* PHASE 2: Disable glitch on mobile */
@media (max-width: 640px) {
  .glitch::before,
  .glitch::after {
    animation: none;
    content: none;
  }

  .glitch {
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
  }
}

/* Terminal-like text */
.terminal-text {
  font-family: 'Courier New', monospace;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
  letter-spacing: 1px;
}

/* ========================================
   BUTTONS
   ======================================== */

.neon-btn {
  position: relative;
  background: var(--dark-card);
  color: var(--neon-pink);
  border: 2px solid var(--neon-pink);
  padding: 12px 24px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3), inset 0 0 10px rgba(255, 0, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  min-height: 44px;
  min-width: 44px;
}

.neon-btn:hover {
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), inset 0 0 20px rgba(255, 0, 255, 0.2);
  transform: scale(1.05);
}

.neon-btn:active {
  transform: scale(0.95);
}

.neon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* PHASE 1 & 4: Mobile button sizes and focus indicators */
@media (max-width: 640px) {
  .neon-btn {
    padding: 10px 16px;
    min-height: 48px;
    min-width: 48px;
    font-size: 13px;
    letter-spacing: 1px;
  }
}

/* PHASE 4: Keyboard focus indicators */
.neon-btn:focus-visible {
  outline: 3px solid var(--neon-green);
  outline-offset: 2px;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), inset 0 0 20px rgba(255, 0, 255, 0.2);
}

/* ========================================
   FORMS
   ======================================== */

.neon-input {
  background: var(--dark-card);
  border: 2px solid var(--neon-blue);
  color: #fff;
  padding: 12px 15px;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
  font-size: 14px;
  width: 100%;
  margin-bottom: 15px;
  min-height: 44px;
}

.neon-input:focus {
  outline: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.neon-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--neon-green);
  font-weight: bold;
}

/* ========================================
   CARDS
   ======================================== */

.neon-card {
  background: var(--dark-card);
  border: 1px solid var(--neon-blue);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(0, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.neon-card:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.1);
  border-color: var(--neon-pink);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.relative {
  position: relative;
  z-index: 10;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.min-h-screen {
  min-height: 100vh;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

/* ========================================
   GRID LAYOUT
   ======================================== */

.grid {
  display: grid;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  border-bottom: 1px solid var(--neon-blue);
  background: var(--dark-card);
  background-color: rgba(26, 31, 58, 0.8);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

header h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-card);
  background-color: rgba(26, 31, 58, 0.95);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--neon-blue);
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  height: 70px;
}

.bottom-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(0, 255, 255, 0.1);
  position: relative;
}

.bottom-nav-link:last-child {
  border-right: none;
}

.bottom-nav-link:hover {
  background: rgba(255, 0, 255, 0.1);
  color: var(--neon-pink);
}

.bottom-nav-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Neon SVG Icons */
.neon-icon {
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 6px currentColor);
  transition: all 0.3s ease;
}

.bottom-nav-link:hover .neon-icon {
  filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 10px currentColor) drop-shadow(0 0 15px currentColor);
  transform: scale(1.1);
}

.bottom-nav-label {
  font-size: 0.75rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-badge {
  display: inline-block;
  background: var(--neon-pink);
  color: var(--dark-bg);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
  font-weight: bold;
  line-height: 16px;
  text-align: center;
  margin-left: 2px;
}

/* Add padding to body to account for bottom nav */
body {
  padding-bottom: 70px;
}

main {
  padding-bottom: 0;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  border-top: 1px solid var(--neon-pink);
  background: var(--dark-card);
  background-color: rgba(26, 31, 58, 0.3);
  padding: 2rem 0;
  margin-top: 5rem;
}

footer .container {
  text-align: center;
}

footer p {
  font-size: 0.875rem;
}

/* ========================================
   PRODUCTS
   ======================================== */

.product-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.product-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--neon-green);
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--neon-pink);
}

.product-description {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--neon-blue);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-weight: bold;
  color: var(--neon-green);
  font-size: 1rem;
}

/* ========================================
   CART
   ======================================== */

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--neon-blue);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: bold;
  color: var(--neon-pink);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--neon-green);
  font-size: 0.875rem;
}

.cart-item-quantity {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.cart-item-quantity input {
  width: 100%;
  padding: 12px 8px;
  text-align: center;
  min-height: 44px;
}

.cart-item-quantity form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-quantity button {
  min-height: 44px;
  padding: 12px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero and Product Actions */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Color & Size Selectors */
.color-selector,
.size-selector {
  padding: 12px 24px !important;
  border: 2px solid rgba(0, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background: rgba(10, 14, 39, 0.8) !important;
  color: var(--neon-blue) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.2),
    0 0 16px rgba(0, 255, 255, 0.1),
    inset 0 0 8px rgba(0, 255, 255, 0.05);
  position: relative;
}

.color-selector::before,
.size-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  pointer-events: none;
}

input[type="radio"][name="color"]:checked + .color-selector {
  border-color: var(--neon-pink) !important;
  border-width: 3px !important;
  background: rgba(255, 0, 255, 0.25) !important;
  color: var(--neon-pink) !important;
  transform: scale(1.1);
  box-shadow:
    0 0 20px rgba(255, 0, 255, 0.6),
    0 0 40px rgba(255, 0, 255, 0.3),
    0 0 60px rgba(255, 0, 255, 0.15),
    inset 0 0 15px rgba(255, 0, 255, 0.2),
    inset 0 0 30px rgba(255, 0, 255, 0.1);
}

input[type="radio"][name="size"]:checked + .size-selector {
  border-color: var(--neon-green) !important;
  border-width: 3px !important;
  background: rgba(57, 255, 20, 0.25) !important;
  color: var(--neon-green) !important;
  transform: scale(1.1);
  box-shadow:
    0 0 20px rgba(57, 255, 20, 0.6),
    0 0 40px rgba(57, 255, 20, 0.3),
    0 0 60px rgba(57, 255, 20, 0.15),
    inset 0 0 15px rgba(57, 255, 20, 0.2),
    inset 0 0 30px rgba(57, 255, 20, 0.1);
}

.color-selector:hover,
.size-selector:hover {
  transform: scale(1.08);
  border-color: var(--neon-blue) !important;
  border-width: 2px !important;
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.4),
    0 0 30px rgba(0, 255, 255, 0.2),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
}

input[type="radio"][name="color"]:checked + .color-selector:hover,
input[type="radio"][name="size"]:checked + .size-selector:hover {
  transform: scale(1.15);
}

/* Quantity Input */
input[type="number"] {
  max-width: 100px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"][type=number] {
  -moz-appearance: textfield;
}

.product-actions {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.cart-summary {
  background: var(--dark-card);
  border: 1px solid var(--neon-green);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--neon-green);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neon-blue);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Fun wiggle animation for sweatlana.del.rey */
@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-2deg) scale(1.05);
  }
  50% {
    transform: rotate(2deg) scale(1.05);
  }
  75% {
    transform: rotate(-1deg) scale(1.05);
  }
}

.animate-wiggle {
  animation: wiggle 0.6s ease-in-out infinite;
  transform-origin: center;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-pink);
  border-radius: 6px;
  box-shadow: 0 0 10px var(--neon-pink);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

::selection {
  background: var(--neon-pink);
  color: var(--dark-bg);
}

/* ========================================
   TEXT UTILITIES
   ======================================== */

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-neon-pink {
  color: var(--neon-pink);
}

.text-neon-blue {
  color: var(--neon-blue);
}

.text-neon-green {
  color: var(--neon-green);
}

.bg-dark-bg {
  background-color: var(--dark-bg);
}

.bg-dark-card {
  background-color: var(--dark-card);
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

/* Extra small: 320px - Small phones */
@media (max-width: 374px) {
  .container {
    padding: 0 0.75rem;
  }

  header h1 {
    font-size: 1rem;
  }

  .py-20 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .text-5xl {
    font-size: 2rem;
  }

  .text-4xl {
    font-size: 1.5rem;
  }

  .text-3xl {
    font-size: 1.25rem;
  }

  nav a {
    font-size: 0.875rem;
  }
}

/* Small: 375px - 424px - Standard phones */
@media (max-width: 424px) {

  .gap-4 {
    gap: 0.5rem;
  }

  .py-20 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .mb-12 {
    margin-bottom: 1rem;
  }

  .text-5xl {
    font-size: 2rem;
  }

  .text-4xl {
    font-size: 1.5rem;
  }

  .text-3xl {
    font-size: 1.25rem;
  }

  .text-2xl {
    font-size: 1.25rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .neon-btn {
    width: 100%;
    font-size: 12px;
  }

  .product-actions {
    flex-direction: column;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .neon-btn {
    width: 100%;
  }
}

/* Medium: 425px - 767px - Large phones & tablets */
@media (min-width: 425px) and (max-width: 767px) {
  header h1 {
    font-size: 1.25rem;
  }

  .py-20 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .mb-12 {
    margin-bottom: 1.5rem;
  }

  .text-5xl {
    font-size: 2.5rem;
  }

  .text-4xl {
    font-size: 1.875rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Large: 768px + - Tablets & desktops */
@media (min-width: 768px) {

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .cart-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cart-item-quantity {
    flex-direction: row;
    margin: 0 1rem;
    align-items: center;
  }

  .cart-item-quantity input {
    width: 60px;
    margin-bottom: 0;
  }

  .cart-item-quantity form {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }

  .cart-item-quantity button {
    min-height: auto;
    padding: 0;
    font-size: 0.875rem;
    flex-grow: 0;
  }
}

/* ========================================
   PHASE 1 & 4: Mobile Input Styling & Accessibility
   ======================================== */

/* Enhanced focus indicators for all form inputs */
.neon-input:focus-visible {
  outline: 3px solid var(--neon-green);
  outline-offset: 2px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Mobile input improvements */
@media (max-width: 640px) {
  .neon-input {
    padding: 12px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }

  input[type="number"] {
    font-size: 16px;
  }

  /* Mobile text sizing for better readability */
  .text-5xl {
    font-size: 1.75rem;
  }

  .text-4xl {
    font-size: 1.5rem;
  }

  .text-3xl {
    font-size: 1.25rem;
  }

  .text-2xl {
    font-size: 1.125rem;
  }

  .text-xl {
    font-size: 1rem;
  }

  .text-lg {
    font-size: 0.95rem;
  }

  /* Mobile product actions */
  .product-actions {
    flex-direction: column;
  }

  .product-actions input[type="number"] {
    width: 100%;
  }
}

/* ========================================
   PHASE 1: Mobile Color/Size Selector Improvements
   ======================================== */

@media (max-width: 640px) {
  .color-selector,
  .size-selector {
    padding: 8px 12px !important;
    min-height: 44px;
    min-width: 44px;
    font-size: 0.875rem !important;
  }

  .size-selector {
    min-height: 44px;
    min-width: 44px;
  }

  /* Focus state for accessibility */
  input[type="radio"]:focus-visible + .color-selector,
  input[type="radio"]:focus-visible + .size-selector {
    outline: 3px solid var(--neon-green);
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8),
                0 0 30px rgba(255, 0, 255, 0.6),
                inset 0 0 15px rgba(0, 255, 255, 0.2);
  }
}

/* ========================================
   PHASE 3: Header Mobile Responsiveness
   ======================================== */

@media (max-width: 640px) {
  header {
    padding: 0.75rem 0;
  }

  header h1 {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
  }

  header .container {
    padding: 0 1rem;
  }
}

@media (max-width: 375px) {
  header h1 {
    font-size: 1rem;
  }
}

/* ========================================
   PHASE 3: Product Detail Responsive
   ======================================== */

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .product-image {
    max-height: 400px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  .product-image {
    max-height: 350px;
  }

  .text-4xl {
    letter-spacing: 0px;
  }

  /* Stack product actions vertically on mobile */
  .product-actions {
    flex-direction: column;
  }

  .product-actions > * {
    width: 100%;
  }
}

/* ========================================
   PHASE 4: Prefers Reduced Motion Support
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable CRT scanlines effect */
  body::before {
    animation: none;
    background: none;
  }

  /* Disable grid animation */
  .grid-bg {
    animation: none;
  }

  /* Disable button animations */
  .neon-btn {
    transition: none;
  }

  .neon-btn:hover {
    transform: none;
  }

  .neon-btn:active {
    transform: none;
  }

  /* Disable card animations */
  .neon-card {
    transition: none;
  }

  .neon-card:hover {
    transition: none;
  }

  /* Disable input animations */
  .neon-input {
    transition: none;
  }

  .neon-input:focus {
    transition: none;
  }

  /* Disable wiggle animation */
  .animate-wiggle {
    animation: none;
  }

  /* Keep focus visible without motion */
  .neon-btn:focus-visible {
    outline: 3px solid var(--neon-green);
    outline-offset: 2px;
  }
}

/* ========================================
   PHASE 4: Additional Accessibility
   ======================================== */

/* Clear focus indicator improvements */
a:focus-visible {
  outline: 3px solid var(--neon-green);
  outline-offset: 2px;
}

.neon-btn:focus-visible {
  outline: 3px solid var(--neon-green);
  outline-offset: 2px;
}

/* Improve mobile radio/checkbox accessibility */
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--neon-pink);
}

/* Mobile label improvements */
@media (max-width: 640px) {
  label {
    cursor: pointer;
    user-select: none;
  }

  .checkout-field {
    font-size: 16px; /* Prevents iOS zoom */
  }
}

/* ========================================
   PHASE 2: Lazy Loading Support
   ======================================== */

/* Images with loading="lazy" attribute will be deferred */
img[loading="lazy"] {
  background-color: rgba(0, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

img[loading="lazy"][src] {
  background-color: transparent;
}

/* ========================================
   NOT FOR SALE ANIMATIONS
   ======================================== */

@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink),
                 0 0 30px var(--neon-pink),
                 0 0 40px var(--neon-pink);
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-pink),
                 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink);
    opacity: 0.8;
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px);
    opacity: 0.7;
  }
}

@keyframes glitch {
  0%, 100% {
    text-shadow: 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink),
                 -2px 0 var(--neon-blue),
                 2px 0 var(--neon-green);
  }
  25% {
    text-shadow: 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink),
                 2px 0 var(--neon-blue),
                 -2px 0 var(--neon-green);
  }
  50% {
    text-shadow: 0 0 20px var(--neon-pink),
                 0 0 30px var(--neon-pink),
                 -2px 0 var(--neon-green),
                 2px 0 var(--neon-blue);
  }
  75% {
    text-shadow: 0 0 10px var(--neon-pink),
                 0 0 20px var(--neon-pink),
                 2px 0 var(--neon-green),
                 -2px 0 var(--neon-blue);
  }
}

.not-for-sale-badge {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: var(--neon-pink);
  text-transform: uppercase;
  animation: glitch 0.8s infinite;
  position: relative;
}

.not-for-sale-badge::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--neon-pink);
  border-radius: 8px;
  animation: neon-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 640px) {
  .not-for-sale-badge {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ========================================
   INTERACTIVE IMAGE ANIMATIONS
   ======================================== */

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2), 0 0 40px rgba(255, 0, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 0 60px rgba(255, 0, 255, 0.2);
  }
}

@keyframes subtle-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.interactive-image {
  animation: pulse-glow 2.5s ease-in-out infinite, subtle-bounce 3s ease-in-out infinite;
  cursor: pointer !important;
  transition: all 0.3s ease;
}

.interactive-image:hover {
  animation: pulse-glow 1.5s ease-in-out infinite, subtle-bounce 2s ease-in-out infinite;
  filter: brightness(1.1);
}

.click-hint {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid var(--neon-pink);
  border-radius: 6px;
  color: var(--neon-pink);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: neon-pulse 2s ease-in-out infinite;
}

@media (max-width: 640px) {
  .click-hint {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}
