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

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #060709;
  --bg-secondary: #0d0e12;
  --bg-tertiary: #161820;
  --bg-card: rgba(22, 24, 32, 0.7);
  --bg-glass: rgba(13, 14, 18, 0.75);
  
  --primary: #ccff00;
  --primary-hover: #b8e600;
  --primary-rgb: 204, 255, 0;
  
  --secondary: #00f0ff;
  --secondary-hover: #00d5e3;
  --secondary-rgb: 0, 240, 255;
  
  --accent: #ff007a;
  
  --text-main: #ffffff;
  --text-muted: #8e9cae;
  --text-dark: #060709;
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-primary: rgba(204, 255, 0, 0.3);
  --border-secondary: rgba(0, 240, 255, 0.3);
  
  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows & Glows */
  --shadow-neon: 0 0 25px rgba(204, 255, 0, 0.2);
  --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Header Height */
  --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

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

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

li {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #222530;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   UTILITY CLASSES & GRID SYSTEM
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-lime {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.text-cyan {
  color: var(--secondary);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card), var(--shadow-inner);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-dark);
  box-shadow: var(--shadow-neon);
}

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

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(204, 255, 0, 0.08);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

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

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: rgba(204, 255, 0, 0.1);
  color: var(--primary);
  border: 1px solid var(--border-primary);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--secondary);
  border: 1px solid var(--border-secondary);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

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

.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.logo-text {
  background: linear-gradient(135deg, #fff 50%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hamburger lines styling */
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle.open .hamburger {
  background-color: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.05) 0%, rgba(0, 240, 255, 0.03) 50%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-jersey-preview {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-jersey-svg {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

.jersey-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(30px);
  z-index: 0;
}

.hero-visual-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  margin-top: 16px;
}

.visual-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
}

.visual-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ==========================================================================
   MOCK CUSTOMIZER INTERACTIVE PREVIEW (HOMEPAGE SECTION)
   ========================================================================== */
.customizer-preview-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.preview-canvas-card {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
}

.preview-canvas-card svg {
  max-width: 80%;
  max-height: 80%;
}

.preview-controls {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-dots {
  display: flex;
  gap: 12px;
}

.color-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  position: relative;
}

.color-dot.active {
  border-color: var(--text-main);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.color-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.color-lime { background-color: var(--primary); }
.color-cyan { background-color: var(--secondary); }
.color-pink { background-color: var(--accent); }
.color-white { background-color: #ffffff; }
.color-orange { background-color: #ff7700; }
.color-navy { background-color: #1a2f64; }

.pattern-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pattern-btn {
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.pattern-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(204, 255, 0, 0.05);
}

.text-input-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.text-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

/* ==========================================================================
   SPORT CATEGORIES
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-title {
  margin-bottom: 16px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.category-card {
  aspect-ratio: 4/5;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-image-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: var(--transition-slow);
}

.category-card:hover .category-img {
  transform: scale(1.1);
  opacity: 0.6;
}

.category-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,7,9,0.95) 15%, rgba(6,7,9,0.4) 60%, rgba(6,7,9,0.1) 100%);
  z-index: 2;
  transition: var(--transition-normal);
}

.category-card:hover .category-gradient {
  background: linear-gradient(to top, rgba(6,7,9,1) 20%, rgba(6,7,9,0.5) 65%, rgba(6,7,9,0.2) 100%);
}

.category-content {
  position: relative;
  z-index: 3;
}

.category-title {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  transition: var(--transition-normal);
}

.category-card:hover .category-title {
  color: var(--primary);
  transform: translateY(-4px);
}

.category-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.category-card:hover .category-link {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
}

/* ==========================================================================
   HOW IT WORKS (TIMELINE)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.step-number {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  top: 24px;
  right: 24px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(204, 255, 0, 0.05);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
}

/* ==========================================================================
   FEATURES / FABRICS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(204,255,0,0.08), rgba(0,240,255,0.08));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card:hover .feature-icon-wrapper {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.feature-title {
  font-size: 1.25rem;
}

/* ==========================================================================
   CATALOG PAGE (PRODUCTS.HTML)
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Sidebar Filters */
.catalog-sidebar {
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.filter-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.filter-section:last-child {
  border: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-title {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .checkbox-custom {
  background-color: var(--primary);
  border-color: var(--primary);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

/* Product Grid */
.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-wrapper {
  aspect-ratio: 1/1;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.product-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
  transition: var(--transition-normal);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-action-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 7, 9, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.product-card:hover .product-action-overlay {
  opacity: 1;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
}

.product-name {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 12px;
}

.product-price {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
}

/* ==========================================================================
   3D CUSTOMIZER DASHBOARD (CUSTOMIZER.HTML)
   ========================================================================== */
.customizer-dashboard {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

/* Common Panel Layouts */
.customizer-panel {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.customizer-panel.right-side {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.panel-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Customizer Canvas (Center) */
.customizer-canvas-wrapper {
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.customizer-toolbar {
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: rgba(13,14,18,0.5);
  backdrop-filter: blur(10px);
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.toolbar-btn:hover {
  background-color: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
}

.canvas-viewport {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
}

.canvas-viewport svg {
  max-width: 80%;
  max-height: 80%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.customizer-loading-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* Control Panel details */
.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 16px 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.collar-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.collar-option {
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.collar-option:hover {
  border-color: var(--border-hover);
}

.collar-option.active {
  border-color: var(--primary);
  color: var(--primary);
}

/* Config/Checkout Side panel (Right) */
.size-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.size-name {
  font-weight: 700;
  font-family: var(--font-headings);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 100px;
  margin-left: auto;
}

.qty-btn {
  width: 30px;
  height: 30px;
  background-color: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-input {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-row.total {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  color: var(--text-main);
}

/* ==========================================================================
   TESTIMONIALS & FOOTER
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-headings);
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer styling */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-description {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-primary);
}

.newsletter-input {
  padding: 14px 18px;
  font-size: 0.9rem;
  flex-grow: 1;
}

.newsletter-btn {
  padding: 0 24px;
  background-color: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .customizer-dashboard {
    grid-template-columns: 280px 1fr;
    height: auto;
    overflow: visible;
  }
  .customizer-panel.right-side {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border-color);
    height: auto;
  }
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-visual-card {
    margin: 0 auto;
  }
  .customizer-preview-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
    width: 100%;
  }
  .testimonials-grid, .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none; /* Hide standard nav on mobile */
  }
  
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 999;
    justify-content: center;
    align-items: center;
    gap: 40px;
    animation: fadeIn 0.3s ease forwards;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .customizer-dashboard {
    grid-template-columns: 1fr;
  }
  
  .customizer-panel {
    grid-column: 1 / -1;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .testimonials-grid, .features-grid, .steps-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   THEME: CLEAN MINIMAL LIGHT MODE
   ========================================================================== */
.theme-light-minimal {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(248, 250, 252, 0.9);
  
  --primary: #ff007a;
  --primary-hover: #e0006c;
  --primary-rgb: 255, 0, 122;
  
  --secondary: #00d5e3;
  --secondary-hover: #00b9c6;
  --secondary-rgb: 0, 213, 227;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #ffffff;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --border-primary: rgba(255, 0, 122, 0.3);
  --border-secondary: rgba(0, 213, 227, 0.3);
  
  --shadow-neon: 0 4px 20px rgba(255, 0, 122, 0.15);
  --shadow-cyan: 0 4px 20px rgba(0, 213, 227, 0.12);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.theme-light-minimal .btn-primary {
  color: #ffffff;
}

.theme-light-minimal .hamburger,
.theme-light-minimal .hamburger::before,
.theme-light-minimal .hamburger::after {
  background-color: #0f172a;
}

.theme-light-minimal .nav-toggle.open .hamburger {
  background-color: transparent;
}

.theme-light-minimal ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.theme-light-minimal .logo-text {
  background: linear-gradient(135deg, #0f172a 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   THEME: RETRO VARSITY CLASSIC MODE
   ========================================================================== */
.theme-retro-varsity {
  --bg-primary: #F4F3EF;
  --bg-secondary: #EFECE6;
  --bg-tertiary: #E6E2D8;
  --bg-card: #EFECE6;
  --bg-glass: rgba(244, 243, 239, 0.95);
  
  --primary: #1A3E2F;
  --primary-hover: #112a1f;
  --primary-rgb: 26, 62, 47;
  
  --secondary: #E5A93B;
  --secondary-hover: #cc942f;
  --secondary-rgb: 229, 169, 59;
  
  --text-main: #1C2421;
  --text-muted: #5E6864;
  --text-dark: #ffffff;
  
  --border-color: rgba(26, 62, 47, 0.12);
  --border-hover: rgba(26, 62, 47, 0.25);
  --border-primary: rgba(26, 62, 47, 0.4);
  --border-secondary: rgba(229, 169, 59, 0.4);
  
  --shadow-neon: 0 4px 15px rgba(26, 62, 47, 0.08);
  --shadow-cyan: 0 4px 15px rgba(229, 169, 59, 0.08);
  --shadow-card: 0 12px 28px -8px rgba(26, 62, 47, 0.08);
  --shadow-inner: none;
  
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  
  --font-headings: 'Playfair Display', 'Georgia', serif;
}

.theme-retro-varsity .btn-primary {
  color: #ffffff;
}

.theme-retro-varsity .hamburger,
.theme-retro-varsity .hamburger::before,
.theme-retro-varsity .hamburger::after {
  background-color: #1A3E2F;
}

.theme-retro-varsity .nav-toggle.open .hamburger {
  background-color: transparent;
}

.theme-retro-varsity ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.theme-retro-varsity .logo-text {
  background: linear-gradient(135deg, #1A3E2F 50%, #5E6864 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3D CARD HOVER TILT & SPECULAR GLOW EFFECTS
   ========================================================================== */
.card-3d-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale3d(var(--scale, 1), var(--scale, 1), var(--scale, 1));
}

.card-3d:hover {
  --scale: 1.02;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), var(--shadow-neon);
  border-color: var(--primary);
  z-index: 10;
}

/* Specular reflection glow overlay that follows the mouse */
.card-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle 120px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 5;
}

.card-3d:hover::after {
  opacity: 1;
}

/* Ensure inner elements can have parallax depth */
.card-3d-child {
  transform: translateZ(30px);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-3d:hover .card-3d-child {
  transform: translateZ(50px) scale(1.05);
}

/* ==========================================================================
   3D FRONT-BACK JERSEY FLIPPER
   ========================================================================== */
.jersey-3d-container {
  width: 100%;
  max-width: 450px;
  height: 450px;
  perspective: 1200px;
  margin: 0 auto;
  position: relative;
}

.jersey-3d-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jersey-3d-card.is-flipped {
  transform: rotateY(180deg);
}

.jersey-3d-card.is-randomizing {
  animation: spinRandomize 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes spinRandomize {
  0% { transform: scale(1) rotateY(0deg) rotateX(0deg); }
  50% { transform: scale(0.9) rotateY(180deg) rotateX(15deg); }
  100% { transform: scale(1) rotateY(360deg) rotateX(0deg); }
}

.jersey-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jersey-face.front-side {
  z-index: 2;
  transform: rotateY(0deg);
}

.jersey-face.back-side {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Rotation indicator / overlay control quick buttons */
.rotation-badge-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rotation-badge-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-neon);
}

/* ==========================================================================
   FLOATING 3D DECORATIONS
   ========================================================================== */
.floating-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-mesh {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  animation: floatMesh3D 25s infinite linear;
  color: var(--primary);
}

.theme-light-minimal .floating-mesh {
  opacity: 0.06;
}

.floating-mesh--1 {
  top: 15%;
  left: 5%;
  width: 120px;
  height: 120px;
  animation-duration: 35s;
}

.floating-mesh--2 {
  bottom: 20%;
  right: 8%;
  width: 180px;
  height: 180px;
  animation-duration: 45s;
  animation-direction: reverse;
}

.floating-mesh--3 {
  top: 55%;
  left: 85%;
  width: 100px;
  height: 100px;
  animation-duration: 28s;
}

@keyframes floatMesh3D {
  0% {
    transform: translateY(0px) rotate(0deg) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg) rotateX(20deg) rotateY(15deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg) rotateX(0deg) rotateY(0deg);
  }
}
