/* =============================================
   CGMA-DESING — Premium Store Stylesheet
   Dark Mode • Glassmorphism • Premium Design
   ============================================= */

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

/* ---- CSS VARIABLES ---- */
:root {
  --bg-primary:     #0a0a0f;
  --bg-secondary:   #0f0f1a;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --bg-glass:       rgba(15,15,26,0.85);
  --accent-purple:  #7c3aed;
  --accent-purple2: #a78bfa;
  --accent-cyan:    #06b6d4;
  --accent-cyan2:   #22d3ee;
  --accent-pink:    #ec4899;
  --accent-amber:   #f59e0b;
  --text-primary:   #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted:     #94a3b8;
  --text-faint:     #475569;
  --border-glass:   rgba(255,255,255,0.08);
  --border-hover:   rgba(124,58,237,0.4);
  --shadow-glow:    0 0 40px rgba(124,58,237,0.15);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --font-heading:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-cgma { color: var(--accent-purple2); }
.logo-desing { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* LANGUAGE SWITCHER */
.lang-switch-wrap {
  position: relative;
}
.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(18, 18, 31, 0.8);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}
.lang-switch-btn:hover {
  border-color: var(--accent-purple2);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 140px;
  background: rgba(18, 18, 31, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}
.lang-opt:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
}
.lang-opt.active {
  background: rgba(124, 58, 237, 0.25);
  color: var(--accent-cyan2);
  font-weight: 700;
}

.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--accent-purple); color: var(--accent-purple2); background: rgba(124,58,237,0.1); }

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--accent-purple);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  border: 2px solid var(--bg-primary);
  transition: var(--transition);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,58,237,0.3);
  color: var(--text-primary);
}
.btn-secondary {
  background: rgba(124,58,237,0.15);
  color: var(--accent-purple2);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}
.btn-secondary:hover { background: rgba(124,58,237,0.25); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float-orb 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.15), transparent 70%);
  bottom: -50px; right: 10%;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(236,72,153,0.1), transparent 70%);
  top: 50%; right: 30%;
  animation-delay: -2s;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
  animation: fade-up 0.8s ease both;
}
.hero-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--accent-purple2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent-purple2);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple2) 0%, var(--accent-cyan2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple2), var(--accent-cyan2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-faint); }
.stat-divider { width: 1px; height: 40px; background: var(--border-glass); }

/* Hero Mockup */
.hero-mockup {
  position: relative;
  width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.mockup-tshirt svg { width: 240px; height: auto; filter: drop-shadow(0 20px 40px rgba(124,58,237,0.4)); animation: float-shirt 4s ease-in-out infinite; }
@keyframes float-shirt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Hero floating cards */
.hero-card-float {
  position: absolute;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  animation: float-card 6s ease-in-out infinite;
}
.card-1 { top: 20px; right: -30px; animation-delay: 0s; }
.card-2 { bottom: 30px; left: -40px; animation-delay: -3s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.float-card-inner { display: flex; align-items: center; gap: 0.75rem; }
.float-icon { font-size: 1.5rem; }
.float-title { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; }
.float-sub { font-size: 0.75rem; color: var(--text-muted); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  z-index: 1;
  animation: fade-up 1s 1s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
  animation: scroll-line 2s ease infinite;
}
@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--accent-purple2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 8rem 2rem;
  position: relative;
}
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.step-card {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  animation: fade-up 0.6s var(--delay, 0s) both;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}
.step-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.step-card:hover::before { opacity: 1; }

.step-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-purple2);
  margin-bottom: 0.75rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(124,58,237,0.5), rgba(6,182,212,0.5));
  flex-shrink: 0;
  position: relative;
}
.step-connector::after {
  content: '▶';
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  font-size: 0.6rem;
}

/* ============================================
   CATALOG
   ============================================ */
.catalog-section {
  padding: 4rem 2rem 8rem;
}
.catalog-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.catalog-header-flex .section-header {
  margin-bottom: 0;
  text-align: left;
}
.sync-control-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.btn-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-sync:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124,58,237,0.25);
}
.btn-sync:active {
  transform: translateY(0);
}
.sync-icon {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-purple2);
}
.sync-icon.spinning {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.sync-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.sync-status::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Skeleton */
.product-skeleton {
  height: 420px;
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  animation: fade-up 0.5s ease both;
}
.product-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.1);
}
.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}
.product-customize-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent-cyan2);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}
.product-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f2e, #1a0f3c);
}
.product-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.08); }

.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.875rem;
}
.product-img-placeholder span:first-child { font-size: 3rem; }

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.product-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple2), var(--accent-cyan2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-variants {
  display: flex;
  gap: 0.25rem;
}
.variant-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}
.product-card-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-card-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
  color: white;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-card-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-card-design {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--accent-cyan2);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
}
.btn-card-design:hover { background: rgba(6,182,212,0.2); }

/* ============================================
   MODALS (general)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-container {
  background: #12121f;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), var(--shadow-glow);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
}
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: #f87171; }

/* Product Detail Modal */
.modal-body { padding: 2rem; clear: both; }
.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.modal-img-column {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.modal-img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  max-height: 50vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-img-tint-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.4s ease;
  z-index: 2;
}

.color-preview-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(18, 18, 31, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.color-badge-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.thumb-btn {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: #ffffff;
  padding: 0.25rem;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.thumb-btn:hover, .thumb-btn.active {
  border-color: var(--accent-purple2);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

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

.modal-img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  padding: 0.5rem;
  transition: filter 0.4s ease, opacity 0.3s ease;
}
.modal-product-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.modal-product-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-purple2), var(--accent-cyan2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.modal-product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Product Description & Size Chart Enhancements */
.product-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.feature-tag:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.08);
  color: #ffffff;
}

.size-guide-accordion {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.size-guide-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.size-guide-toggle:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-purple2);
}
.size-guide-toggle .chevron {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.size-guide-toggle.open .chevron {
  transform: rotate(180deg);
}
.size-guide-content {
  padding: 0.85rem;
  overflow-x: auto;
}
.size-guide-content.hidden {
  display: none;
}

.size-chart-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.styled-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-secondary);
}
.styled-size-table th {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.2));
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-glass);
}
.styled-size-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.styled-size-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.styled-size-table tr:hover td {
  background: rgba(124, 58, 237, 0.08);
  color: #ffffff;
}
.modal-variants-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.variant-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}
.variant-btn:hover, .variant-btn.active {
  border-color: var(--accent-purple);
  background: rgba(124,58,237,0.1);
  color: var(--accent-purple2);
}

/* Multi-Option Variant Selector Styles */
.option-group-box {
  margin-bottom: 1.25rem;
}
.option-group-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.opt-selected-val {
  color: var(--accent-purple2);
  font-weight: 700;
  text-transform: none;
}

/* Color Swatches Grid */
.opt-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.opt-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}
.opt-color-btn:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: #ffffff;
}
.opt-color-btn.active {
  border-color: var(--accent-purple2);
  background: rgba(124, 58, 237, 0.15);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.35);
}
.opt-color-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Size & Type Pills */
.opt-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.opt-pill-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.opt-pill-btn:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: #ffffff;
}
.opt-pill-btn.active {
  border-color: var(--accent-cyan2);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan2);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.opt-pill-btn:disabled,
.opt-color-btn:disabled,
.opt-pill-btn.out-of-stock,
.opt-color-btn.out-of-stock {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none !important;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: line-through;
  color: var(--text-faint);
  box-shadow: none !important;
}
.modal-qty-row {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.qty-label { font-size: 0.875rem; color: var(--text-muted); }
.qty-control {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 36px; height: 36px;
  font-size: 1.25rem;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.qty-btn:hover { background: rgba(124,58,237,0.15); color: var(--accent-purple2); }
.qty-value {
  min-width: 40px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}
.modal-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Custom Design Section in Modal */
.custom-design-section {
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(124,58,237,0.06));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.25rem;
}
.custom-design-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.custom-design-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1rem; }
.custom-design-options { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-design-opt {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-design-create {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--accent-cyan2);
}
.btn-design-create:hover { background: rgba(6,182,212,0.22); }
.btn-design-suggest {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--accent-amber);
}
.btn-design-suggest:hover { background: rgba(245,158,11,0.2); }

/* ============================================
   DESIGN EDITOR
   ============================================ */
.modal-editor { max-width: 1000px; }
.editor-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: 100%;
  clear: both;
}
.editor-sidebar {
  padding: 2rem;
  border-right: 1px solid var(--border-glass);
  overflow-y: auto;
}
.editor-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.editor-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.editor-section { margin-bottom: 1.25rem; }
.editor-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.editor-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  outline: none;
}
.editor-input:focus { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.05); }
.editor-textarea { resize: vertical; min-height: 80px; }
select.editor-input option { background: #1a1a2e; }

.color-swatches, .garment-colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.color-swatch, .garment-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
}
.color-swatch.active, .garment-swatch.active {
  border-color: white;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.4);
}
.color-swatch:hover, .garment-swatch:hover { transform: scale(1.1); }

.upload-zone {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.05);
}
.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.upload-icon { font-size: 2rem; }
.upload-placeholder span { font-size: 0.8rem; color: var(--text-muted); }
.upload-hint { font-size: 0.7rem !important; color: var(--text-faint) !important; }
.uploaded-preview { width: 100%; border-radius: var(--radius-sm); object-fit: contain; max-height: 120px; }
.hidden { display: none !important; }

.editor-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

.editor-canvas-area {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}
.canvas-product-preview {
  position: relative;
  text-align: center;
  width: 100%;
}
.preview-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.75rem;
}
.preview-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.editing-product-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-cyan2);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-mockup-wrap {
  position: relative;
  width: 100%;
  height: 350px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.editor-product-photo {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 1rem;
}

.editor-overlay-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 60%;
  max-height: 60%;
  pointer-events: none;
}

.editor-overlay-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6);
  word-break: break-word;
  line-height: 1.2;
}

.editor-overlay-img {
  max-width: 130px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.preview-tshirt svg { width: 280px; height: auto; }
.canvas-colors { text-align: center; }
.canvas-colors-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 960;
  width: min(420px, 100vw);
  background: #12121f;
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}
.cart-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.cart-close-btn:hover { color: #f87171; border-color: rgba(239,68,68,0.4); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  min-height: 200px;
  color: var(--text-faint);
}
.empty-icon { font-size: 3rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}
.cart-item:hover { border-color: rgba(124,58,237,0.2); }
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: linear-gradient(135deg, #0f0f2e, #1a0f3c);
  flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0f0f2e, #1a0f3c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.cart-item-variant { font-size: 0.75rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.cart-item-custom { font-size: 0.72rem; color: var(--accent-cyan2); margin-bottom: 0.5rem; background: rgba(6,182,212,0.08); padding: 0.2rem 0.5rem; border-radius: 4px; display: inline-block; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; color: var(--accent-purple2); }
.cart-item-remove { font-size: 0.75rem; color: var(--text-faint); transition: var(--transition-fast); }
.cart-item-remove:hover { color: #f87171; }

.cart-footer {
  border-top: 1px solid var(--border-glass);
  padding: 1.25rem;
  flex-shrink: 0;
  background: #0f0f1a;
}
.cart-shipping-calc { margin-bottom: 1.25rem; }
.cart-shipping-calc h4 { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.shipping-input-row { display: flex; gap: 0.5rem; }
.shipping-input-row .editor-input { flex: 1; min-width: 0; }
.shipping-options { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.shipping-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.shipping-opt.selected { border-color: var(--accent-purple); background: rgba(124,58,237,0.08); }
.shipping-opt-name { font-size: 0.8125rem; font-weight: 600; }
.shipping-opt-price { font-size: 0.8125rem; color: var(--accent-cyan2); font-weight: 700; }

.cart-summary { margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.875rem; color: var(--text-muted); }
.total-row { border-top: 1px solid var(--border-glass); margin-top: 0.5rem; padding-top: 0.75rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }

.checkout-btn { margin-top: 0.25rem; }

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.modal-checkout { max-width: 900px; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  clear: both;
}
.checkout-left { padding: 2rem; }
.checkout-right {
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid var(--border-glass);
}
.checkout-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.checkout-step { display: none; }
.checkout-step.active { display: block; }
.checkout-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-group-full { grid-column: 1 / -1; }

.payment-methods { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.payment-option { cursor: pointer; }
.payment-option input { display: none; }
.payment-card {
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition-fast);
}
.payment-option input:checked + .payment-card {
  border-color: var(--accent-purple);
  background: rgba(124,58,237,0.1);
}
.payment-icon { font-size: 1.75rem; }
.payment-name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; }
.payment-desc { font-size: 0.8rem; color: var(--text-muted); }

.payment-info-box {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.payment-email { color: var(--accent-cyan2); }

.shipping-selection { display: flex; flex-direction: column; gap: 0.5rem; }
.shipping-selection h4 { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-muted); }
.shipping-option-select { cursor: pointer; }
.shipping-option-select input { display: none; }
.shipping-opt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}
.shipping-option-select input:checked + .shipping-opt-card {
  border-color: var(--accent-cyan);
  background: rgba(6,182,212,0.08);
  color: var(--accent-cyan2);
}
.shipping-opt-card span:last-child { color: var(--text-muted); font-size: 0.8rem; }

.checkout-nav-btns { display: flex; gap: 0.75rem; margin-top: 1.5rem; justify-content: flex-end; }

.order-summary-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}
.checkout-item-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.checkout-item-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: linear-gradient(135deg, #0f0f2e, #1a0f3c);
}
.checkout-item-name { font-size: 0.8125rem; font-weight: 600; flex: 1; }
.checkout-item-price { font-size: 0.8125rem; color: var(--accent-purple2); font-weight: 700; }
.checkout-totals { margin-top: 1rem; margin-bottom: 1.5rem; }

.secure-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.secure-badge {
  padding: 0.3rem 0.75rem;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 600;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.modal-success { max-width: 500px; }
.success-content {
  padding: 3rem 2rem;
  text-align: center;
  clear: both;
}
.success-icon-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.success-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(74,222,128,0.1);
  border: 2px solid rgba(74,222,128,0.3);
  display: flex; align-items: center; justify-content: center;
  animation: success-pop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
@keyframes success-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.success-subtitle { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; }
.success-order-num {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-purple2);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.success-steps { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; text-align: left; }
.success-step { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.ss-icon { font-size: 1.25rem; }

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.toast {
  background: #1a1a2e;
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  max-width: 320px;
  animation: toast-in 0.3s ease both;
}
.toast.success { border-left-color: #4ade80; }
.toast.error { border-left-color: #f87171; }
.toast.info { border-left-color: var(--accent-cyan); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section { padding: 6rem 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.contact-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.contact-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 4rem;
  background: var(--bg-secondary);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { border-color: var(--accent-purple); color: var(--accent-purple2); background: rgba(124,58,237,0.1); }
.footer-links h4 { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { max-width: 100%; }
  .hero-cta-group, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .steps-grid { gap: 1rem; }
  .step-connector { display: none; }
  .steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .modal-product-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-right { border-left: none; border-top: 1px solid var(--border-glass); }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { border-right: none; border-bottom: 1px solid var(--border-glass); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,10,15,0.98); border-bottom: 1px solid var(--border-glass); padding: 1rem; z-index: 899; }
  .nav-links.mobile-open { display: flex; animation: fade-up 0.2s ease; }
  .mobile-menu-btn { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-editor { max-width: 100%; }
  .shipping-input-row { flex-wrap: wrap; }
  .hero-scroll-hint { display: none; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
  .stat-divider { width: 80px; height: 1px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .modal-container { border-radius: var(--radius-lg); }
}
