/* ============================================================
   Blended With Love — Global Styles
   ============================================================ */
:root {
  --rose: #e11d48;
  --rose-light: #fda4af;
  --rose-dark: #9f1239;
  --violet: #7c3aed;
  --violet-light: #c4b5fd;
  --amber: #f59e0b;
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-elevated: #22222e;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: #2e2e3e;
  --gradient-love: linear-gradient(135deg, var(--rose), var(--violet));
  --gradient-warm: linear-gradient(135deg, var(--rose), var(--amber));
  --shadow-glow: 0 0 40px rgba(225, 29, 72, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
.gradient-text {
  background: var(--gradient-love);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.15); } 50% { transform: scale(1); } 75% { transform: scale(1.1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes confetti-fall { 0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
@keyframes blob { 0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 20px rgba(225,29,72,0.3); } 50% { box-shadow: 0 0 40px rgba(225,29,72,0.6); } }

.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Particles / Confetti Canvas
   ============================================================ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   Splash Screen
   ============================================================ */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#splash-screen.hide {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}
.splash-content {
  text-align: center;
  animation: fadeInScale 1s ease forwards;
}
.splash-heart {
  font-size: 80px;
  animation: heartbeat 1.5s ease infinite;
  margin-bottom: 20px;
}
.splash-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.splash-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
  animation: fadeInUp 1s 0.5s ease both;
}
.splash-loader {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  justify-content: center;
  animation: fadeIn 1s 0.8s ease both;
}
.splash-loader span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse 1.2s ease infinite;
}
.splash-loader span:nth-child(2) { animation-delay: 0.2s; }
.splash-loader span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,15,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.nav.hidden { transform: translateY(-100%); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}
.nav-logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  background: none;
  border: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-elevated);
}
.nav-country-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-country-pair:hover {
  border-color: var(--rose);
  box-shadow: var(--shadow-glow);
}
.nav-cart {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  transition: var(--transition);
}
.nav-cart:hover { border-color: var(--rose); }
.nav-cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-cart-count:empty { display: none; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  padding: 8px;
}
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; text-align: center; }
}

/* ============================================================
   Page Wrapper
   ============================================================ */
#app {
  min-height: 100vh;
  padding-top: 70px;
}
.page { display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }

/* ============================================================
   Country Picker
   ============================================================ */
.picker-section {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.picker-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(225,29,72,0.15), transparent 70%);
  border-radius: 50%;
  top: 10%; left: -10%;
  animation: blob 8s ease-in-out infinite;
}
.picker-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  border-radius: 50%;
  bottom: 10%; right: -5%;
  animation: blob 10s ease-in-out infinite reverse;
}
.picker-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  width: 100%;
}
.picker-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease both;
}
.picker-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 48px;
  animation: fadeInDown 0.8s 0.2s ease both;
}
.picker-flags-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  min-height: 120px;
}
.picker-flag-big {
  font-size: 5rem;
  transition: all 0.5s var(--bounce);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}
.picker-flag-big.empty {
  font-size: 3rem;
  opacity: 0.3;
  filter: grayscale(1);
}
.picker-heart-merge {
  font-size: 2.5rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s var(--bounce);
}
.picker-heart-merge.show {
  opacity: 1;
  transform: scale(1);
  animation: heartbeat 1.5s ease infinite;
}
.picker-selectors {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.3s ease both;
}
@media (max-width: 500px) {
  .picker-selectors { flex-direction: column; gap: 12px; }
}
.picker-select-wrap {
  flex: 1;
  position: relative;
}
.picker-select-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.picker-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.picker-select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.2);
}
.picker-select:hover { border-color: var(--rose-light); }

.picker-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-love);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.picker-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: glow-pulse 2s ease infinite;
}
.picker-cta:hover { transform: translateY(-2px) scale(1.03); }

/* ============================================================
   Quiz
   ============================================================ */
.quiz-section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.quiz-container {
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  justify-content: center;
}
.quiz-progress-dot {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  transition: var(--transition);
}
.quiz-progress-dot.active { background: var(--rose); }
.quiz-progress-dot.done { background: var(--violet); }

.quiz-question {
  animation: fadeInUp 0.5s ease both;
}
.quiz-question-text {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz-question-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 500px) {
  .quiz-options { grid-template-columns: 1fr; }
}
.quiz-option {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.quiz-option:hover {
  border-color: var(--rose);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.quiz-option.selected {
  border-color: var(--rose);
  background: rgba(225,29,72,0.15);
  box-shadow: 0 0 20px rgba(225,29,72,0.2);
}
.quiz-option-emoji { font-size: 1.3rem; }

/* Quiz Reveal */
.quiz-reveal {
  text-align: center;
  animation: fadeInScale 0.8s ease both;
}
.quiz-reveal-spinner {
  width: 60px; height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
.quiz-reveal-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.quiz-reveal-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   Quiz Photo Upload Step
   ============================================================ */
.quiz-photo-step {
  animation: fadeInUp 0.5s ease both;
  text-align: center;
}
.quiz-photo-step-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz-photo-step-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.quiz-photo-optional-badge {
  display: inline-block;
  background: rgba(225,29,72,0.12);
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(225,29,72,0.25);
}
.quiz-photo-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 440px) {
  .quiz-photo-slots { grid-template-columns: 1fr; }
}
.quiz-photo-slot {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.quiz-photo-slot:hover {
  border-color: var(--rose-light);
  background: var(--bg-elevated);
}
.quiz-photo-slot.has-photo {
  border-style: solid;
  border-color: var(--rose);
  padding: 0;
}
.quiz-photo-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.quiz-photo-slot-icon {
  font-size: 2rem;
  line-height: 1;
}
.quiz-photo-slot-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.quiz-photo-slot-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.quiz-photo-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  display: none;
}
.quiz-photo-preview.visible {
  display: block;
}
.quiz-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  display: none;
}
.quiz-photo-slot.has-photo .quiz-photo-remove { display: flex; }
.quiz-photo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.quiz-photo-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.quiz-photo-skip:hover { color: var(--text); }

/* ============================================================
   Homepage
   ============================================================ */
.home-hero {
  position: relative;
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(225,29,72,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.home-hero-pair {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: fadeInDown 0.6s ease both;
}
.home-hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.home-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.home-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient-love);
  color: white;
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--rose-light); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Section */
.section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}
.section-link {
  color: var(--rose);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-link:hover { gap: 8px; }

/* Categories strip */
.categories-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-strip::-webkit-scrollbar { display: none; }
.category-chip {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
  white-space: nowrap;
}
.category-chip:hover, .category-chip.active {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}

/* ============================================================
   Product Grid
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  box-shadow: 0 8px 40px rgba(225,29,72,0.15);
}
.product-card-image {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.product-card-image .placeholder-design {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}
.product-card-image .placeholder-design .design-icon {
  font-size: 3rem;
  opacity: 0.6;
}
.product-card-image .placeholder-design .design-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.product-card-body {
  padding: 16px;
}
.product-card-type {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.product-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose);
}
.product-card-price .compare {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 6px;
  font-weight: 500;
}

/* ============================================================
   Product Detail
   ============================================================ */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
.product-detail-gallery {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
  position: relative;
}
.product-detail-info { display: flex; flex-direction: column; gap: 20px; }
.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.product-detail-breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.product-detail-breadcrumb a:hover { color: var(--rose); }
.product-detail-name {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
}
.product-detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rose);
}
.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Options */
.option-group { margin-bottom: 4px; }
.option-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-pill {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.option-pill:hover { border-color: var(--rose-light); }
.option-pill.selected {
  border-color: var(--rose);
  background: rgba(225,29,72,0.15);
  color: white;
}
.color-pill {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.color-pill:hover { border-color: var(--text-muted); }
.color-pill.selected { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose); }

.add-to-cart-btn {
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-love);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 8px;
}
.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.add-to-cart-btn:active { transform: translateY(0); }

/* ============================================================
   Catalog Page
   ============================================================ */
.catalog-section {
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.catalog-header {
  margin-bottom: 32px;
}
.catalog-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.catalog-count {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.catalog-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-select {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.filter-select:focus { outline: none; border-color: var(--rose); }

/* ============================================================
   Cart Drawer
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-overlay.open + .cart-drawer,
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.2rem; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  padding: 4px;
  cursor: pointer;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-image {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-detail { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-weight: 700; color: var(--rose); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
}
.cart-item-remove:hover { color: var(--rose); }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--gradient-love);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-checkout-btn:hover { box-shadow: var(--shadow-glow); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--rose); }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease both;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast.success { border-color: #22c55e; }
.toast.success::before { content: '\2714'; color: #22c55e; }
.toast-out { animation: fadeIn 0.3s ease reverse both; }

/* ============================================================
   Loading States
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { aspect-ratio: 1; }
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }

/* ============================================================
   Responsive Utilities
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 40px 16px; }
  .product-grid { gap: 12px; }
  .product-card-body { padding: 12px; }
  .product-card-name { font-size: 0.85rem; }
  .home-hero { padding: 40px 16px 60px; }
}

/* Product card with real images */
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}
.product-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--rose);
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Admin Dashboard
   ============================================================ */
.admin-page {
  padding: 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.admin-header {
  margin-bottom: 40px;
}
.admin-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.admin-header p {
  color: var(--text-muted);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.admin-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.admin-card-value {
  font-size: 2rem;
  font-weight: 800;
}
.admin-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.admin-section {
  margin-bottom: 40px;
}
.admin-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-btn-primary {
  background: var(--gradient-love);
  color: white;
}
.admin-btn-primary:hover { box-shadow: var(--shadow-glow); }
.admin-btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.admin-btn-secondary:hover { border-color: var(--rose-light); }
.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}
.admin-status.connected { background: rgba(34,197,94,0.15); color: #22c55e; }
.admin-status.disconnected { background: rgba(239,68,68,0.15); color: #ef4444; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.admin-table tr:hover td { background: var(--bg-elevated); }
.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-badge.submitted { background: rgba(59,130,246,0.15); color: #3b82f6; }
.admin-badge.in_production { background: rgba(245,158,11,0.15); color: #f59e0b; }
.admin-badge.shipped { background: rgba(124,58,237,0.15); color: #7c3aed; }
.admin-badge.delivered { background: rgba(34,197,94,0.15); color: #22c55e; }
.admin-badge.unfulfilled { background: rgba(100,116,139,0.15); color: #64748b; }
.admin-badge.failed { background: rgba(239,68,68,0.15); color: #ef4444; }
.admin-log {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-back-link:hover { color: var(--rose); }

/* ============================================================
   Quantity Controls (Cart Drawer + Cart Page)
   ============================================================ */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  line-height: 1;
}
.qty-btn:hover {
  border-color: var(--rose);
  background: rgba(225,29,72,0.1);
}
.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   Cart Page (Full Page View)
   ============================================================ */
.cart-page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.cart-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.cart-page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
}
.cart-page-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-page-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.cart-page-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cart-page-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .cart-page-grid {
    grid-template-columns: 1fr;
  }
}
.cart-page-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-page-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-page-item:first-child {
  border-top: 1px solid var(--border);
}
.cart-page-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.cart-page-item-info {
  flex: 1;
  min-width: 0;
}
.cart-page-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.cart-page-item-name:hover {
  color: var(--rose);
}
.cart-page-item-variant {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.cart-page-item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.cart-page-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-page-item-qty .qty-btn {
  width: 32px;
  height: 32px;
}
.cart-page-item-qty .qty-value {
  min-width: 32px;
  font-size: 1rem;
}
.cart-page-item-total {
  font-weight: 700;
  font-size: 1rem;
  min-width: 80px;
  text-align: right;
  color: var(--text);
}
.cart-page-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}
.cart-page-item-remove:hover {
  color: var(--rose);
  background: rgba(225,29,72,0.1);
}
.cart-page-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.cart-page-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Shared summary lines */
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.summary-line.summary-total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   Checkout Page
   ============================================================ */
.checkout-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.checkout-header {
  margin-bottom: 32px;
}
.checkout-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 4px;
}
.checkout-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary-col {
    order: -1;
  }
}
.checkout-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-form-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--rose);
}
.form-group label .optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.15);
}
.form-group input::placeholder {
  color: var(--text-dim);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.checkout-pay-btn {
  width: 100%;
  padding: 18px 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-love);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-pay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.checkout-pay-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.checkout-secure-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 12px;
}

/* Checkout summary sidebar */
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.checkout-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkout-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.checkout-item-info {
  flex: 1;
  min-width: 0;
}
.checkout-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-item-variant {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.checkout-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}
.checkout-summary-totals {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ============================================================
   Order Confirmation Page
   ============================================================ */
.confirmation-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}
.confirmation-loading {
  text-align: center;
  padding: 80px 20px;
}
.confirmation-loading p {
  color: var(--text-muted);
  margin-top: 16px;
}
.confirmation-error {
  text-align: center;
  padding: 60px 20px;
}
.confirmation-error h2 {
  margin-bottom: 12px;
}
.confirmation-error p {
  color: var(--text-muted);
  margin-bottom: 8px;
}
.confirmation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.confirmation-header {
  text-align: center;
  padding: 40px 24px 32px;
  background: linear-gradient(180deg, rgba(225,29,72,0.08), transparent);
}
.confirmation-check {
  font-size: 3rem;
  margin-bottom: 16px;
}
.confirmation-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.confirmation-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}
.confirmation-order-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.confirmation-order-number .label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.confirmation-order-number .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose);
  font-family: monospace;
  letter-spacing: 0.05em;
}
.confirmation-details {
  padding: 24px;
}
.confirmation-section {
  margin-bottom: 24px;
}
.confirmation-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.confirmation-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.confirmation-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirmation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}
.confirmation-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.confirmation-item-info {
  flex: 1;
}
.confirmation-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.confirmation-item-variant {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.confirmation-item-price {
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 500px) {
  .confirmation-grid {
    grid-template-columns: 1fr;
  }
}
.confirmation-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.confirmation-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   CUSTOMER ACCOUNT SYSTEM
   ============================================================ */

/* Nav Account Button */
.nav-account {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  color: var(--text);
}
.nav-account:hover {
  border-color: var(--rose);
  background: rgba(225, 29, 72, 0.08);
}
.nav-account-avatar {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gradient-love);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* Auth Modal */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  z-index: 1101;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(460px, calc(100vw - 32px));
  padding: 36px 32px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--bounce);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}
.auth-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}
.auth-modal-close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-modal-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
}
.auth-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-form-group input {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.auth-form-group input:focus {
  outline: none;
  border-color: var(--rose);
}
.auth-error {
  color: #fb7185;
  font-size: 0.875rem;
  min-height: 1.2em;
  text-align: center;
}
.auth-submit-btn {
  background: var(--gradient-love);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.auth-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-modal-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-toggle-btn {
  background: transparent;
  border: none;
  color: var(--rose);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Account Page */
.account-section {
  min-height: 80vh;
  padding: 40px 24px;
  max-width: 860px;
  margin: 0 auto;
}
.account-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  font-size: 1rem;
}
.account-not-logged-in {
  text-align: center;
  padding: 80px 24px;
}
.account-nl-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.account-not-logged-in h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.account-not-logged-in p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.account-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.account-avatar-big {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-love);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.account-header-info {
  flex: 1;
}
.account-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.account-email {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.account-logout-btn {
  margin-left: auto;
  flex-shrink: 0;
}
.account-pair-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-pair-flag {
  font-size: 2rem;
}
.account-pair-heart {
  font-size: 1.3rem;
}
.account-pair-cta {
  flex: 1;
  margin-left: 8px;
}
.account-pair-cta strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.account-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.account-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.account-section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}
.account-order-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.account-section-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.account-upload-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}
.account-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.account-photos-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}
.account-photos-empty span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}
.account-photo-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.account-photo-item:hover {
  border-color: var(--rose-light);
}
.account-photo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-photo-info {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.account-photo-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.account-photo-delete {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  padding: 2px;
}
.account-photo-delete:hover {
  opacity: 1;
}
.account-photos-cta {
  margin-top: 20px;
  text-align: center;
}
.account-orders-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}
.account-orders-empty p {
  margin-bottom: 16px;
}
.account-order-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.account-order-item:first-child { padding-top: 8px; }
.account-order-item:last-child { border-bottom: none; padding-bottom: 4px; }
.account-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.account-order-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-order-number {
  font-weight: 700;
  font-size: 0.9rem;
}
.account-order-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.account-order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.account-order-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.status-delivered { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-shipped { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-processing { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-pending { background: rgba(148, 163, 184, 0.12); color: var(--text-muted); }
.account-order-total {
  font-size: 0.95rem;
  font-weight: 700;
}
.account-order-items {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.account-order-item-name { }
.account-order-more {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.account-order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.account-quiz-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.quiz-answer-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.quiz-answer-chip strong {
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--rose);
}

@media (max-width: 600px) {
  .account-section {
    padding: 24px 16px;
  }
  .account-header {
    flex-wrap: wrap;
  }
  .account-logout-btn {
    margin-left: 0;
    width: 100%;
  }
  .account-pair-banner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .auth-modal {
    padding: 28px 20px;
  }
  .account-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  .account-order-header {
    flex-direction: column;
    gap: 8px;
  }
  .account-order-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
  }
}
