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

:root {
  --pink: #ff4ecd;
  --purple: #8b5cf6;
  --violet: #6d28d9;
  --blue: #22d3ee;
  --mint: #2dd4bf;
  --yellow: #facc15;
  --bg: #0c0118;
  --bg-soft: #150828;
  --text: #f5f0ff;
  --text-muted: rgba(245, 240, 255, 0.72);
  --card: rgba(255, 255, 255, 0.06);
  --card-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --glow: 0 0 40px rgba(139, 92, 246, 0.35);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139, 92, 246, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 78, 205, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(34, 211, 238, 0.15), transparent),
    linear-gradient(180deg, #0c0118 0%, #150828 50%, #1a0a2e 100%);
  pointer-events: none;
}

.glitter-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.45rem 1rem;
  background: rgba(12, 1, 24, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.demo-banner-sep {
  opacity: 0.4;
}

/* Sky background */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
  overflow: hidden;
}

.mesh-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -5%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent 70%);
}

.orb-2 {
  width: 360px;
  height: 360px;
  top: 30%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 78, 205, 0.45), transparent 70%);
  animation-delay: -6s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: 30%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  animation-delay: -12s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  filter: blur(2px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 120px;
  height: 40px;
  top: 12%;
  left: 8%;
  animation: drift 28s linear infinite;
}

.cloud-1::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 15px;
}

.cloud-1::after {
  width: 70px;
  height: 55px;
  top: -30px;
  left: 45px;
}

.cloud-2 {
  width: 100px;
  height: 35px;
  top: 22%;
  right: 12%;
  animation: drift 35s linear infinite reverse;
}

.cloud-2::before {
  width: 45px;
  height: 45px;
  top: -22px;
  left: 10px;
}

.cloud-2::after {
  width: 55px;
  height: 45px;
  top: -20px;
  left: 35px;
}

.cloud-3 {
  width: 90px;
  height: 30px;
  top: 55%;
  left: 20%;
  animation: drift 40s linear infinite;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 30% 60%, rgba(250, 204, 21, 0.8), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 85% 45%, rgba(255, 78, 205, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(34, 211, 238, 0.6), transparent),
    radial-gradient(1px 1px at 15% 75%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 92% 88%, rgba(250, 204, 21, 0.6), transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}

.floating-unicorns {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-unicorn {
  position: absolute;
  font-size: 2rem;
  opacity: 0.5;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  animation: float-up 12s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(60vw); }
}

@keyframes twinkle {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes head-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-36px) rotate(-2deg); }
  65% { transform: translateY(10px) rotate(2deg); }
}

@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes border-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.glass-panel {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Header */
.header {
  position: sticky;
  top: 2rem;
  z-index: 100;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 999px;
  box-shadow: var(--shadow), var(--glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.logo-text small {
  font-size: 0.65rem;
  opacity: 0.55;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--pink);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5), 0 0 30px rgba(255, 78, 205, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cart-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6), 0 0 40px rgba(255, 78, 205, 0.35);
}

.cart-icon {
  font-size: 1.25rem;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), #fbbf24);
  color: #1a0a2e;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  box-shadow: var(--glow);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.rainbow-text {
  background: linear-gradient(90deg, var(--pink), #c084fc, var(--blue), var(--mint), var(--yellow), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-shift 3s linear infinite;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 520px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: white;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45), 0 0 40px rgba(255, 78, 205, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.55), 0 0 50px rgba(255, 78, 205, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-ghost::after {
  display: none;
}

.btn-full {
  width: 100%;
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stats li {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: none;
  letter-spacing: -0.02em;
}

.hero-unicorn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.big-unicorn {
  font-size: clamp(9rem, 32vw, 15rem);
  line-height: 1;
  transform-origin: center 85%;
  animation: head-bob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 80px rgba(255, 78, 205, 0.3));
}

.sparkles {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  animation: twinkle 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.8));
}

/* Sections */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.categories {
  padding: 2rem 0;
}

.categories h2,
.shop-header h2,
.magie h2,
.related-products h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.categories h2::after,
.shop-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
  font-family: inherit;
  color: inherit;
}

.category-card span {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.category-card strong {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--card-hover);
  box-shadow: var(--shadow), 0 0 30px rgba(139, 92, 246, 0.25);
}

.shop {
  padding: 3rem 0;
}

.shop-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 78, 205, 0.4), rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow), 0 0 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(255, 255, 255, 0.18);
}

.product-card:hover::before {
  opacity: 1;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
}

.product-link:hover h3 {
  color: var(--pink);
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.detail-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-link:hover {
  text-decoration: underline;
}

.add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.product-emoji {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.4));
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f0abfc, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.add-btn {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(34, 211, 238, 0.25));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

/* Magie section */
.magie {
  padding: 3rem 0 5rem;
}

.magie-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.magie-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.magie-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.magie-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(255, 78, 205, 0.1));
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}

.magie-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 78, 205, 0.15), transparent, rgba(34, 211, 238, 0.15), transparent);
  animation: spin-slow 8s linear infinite;
}

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

.magie-card > * {
  position: relative;
  z-index: 1;
}

.magie-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(255, 78, 205, 0.5));
}

.magie-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.magie-card code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  font-weight: 700;
  color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.2);
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-small {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Cart panel */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}

.cart-panel.open {
  pointer-events: auto;
  visibility: visible;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-panel.open .cart-overlay {
  opacity: 1;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: rgba(21, 8, 40, 0.95);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.cart-panel.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  opacity: 0.6;
}

.cart-empty span {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-emoji {
  font-size: 2rem;
}

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

.cart-item-info strong {
  display: block;
  font-size: 0.9rem;
}

.cart-item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.qty-btn:hover {
  background: rgba(139, 92, 246, 0.3);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cart-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 400;
  padding: 0.85rem 1.5rem;
  background: rgba(21, 8, 40, 0.9);
  backdrop-filter: blur(16px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow), var(--glow);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Product detail page */
.product-page {
  padding: 1rem 0 4rem;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  display: grid;
  gap: 2rem;
  background: var(--card);
  backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), var(--glow);
  margin-bottom: 3rem;
}

.product-detail-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(255, 78, 205, 0.1));
  border-radius: var(--radius);
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.product-detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  animation: border-glow 3s ease-in-out infinite;
}

.product-detail-emoji {
  font-size: clamp(5rem, 18vw, 8rem);
  line-height: 1;
  animation: bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 60px rgba(255, 78, 205, 0.3));
  position: relative;
  z-index: 1;
}

.product-detail-sparkles {
  margin-top: 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.4rem;
  animation: twinkle 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.7));
  position: relative;
  z-index: 1;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-rating {
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
  letter-spacing: 0.1rem;
  font-size: 1.1rem;
}

.product-stock {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.product-stock.in-stock {
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #5eead4;
}

.product-stock.out-of-stock {
  background: rgba(255, 78, 205, 0.12);
  border: 1px solid rgba(255, 78, 205, 0.25);
  color: #f9a8d4;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f0abfc, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.product-detail-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.product-features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-features li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.product-features li::before {
  content: "✨";
  position: absolute;
  left: 0;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.qty-picker {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem;
}

.qty-picker input {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  -moz-appearance: textfield;
}

.qty-picker input::-webkit-outer-spin-button,
.qty-picker input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-demo-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.related-products {
  margin-bottom: 2rem;
}

.back-link-wrap {
  text-align: center;
}

.back-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.not-found-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.not-found-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.not-found-card h1 {
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.not-found-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
  .nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .magie-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 480px) {
  .header {
    top: 2.5rem;
  }

  .logo-text small {
    display: none;
  }
}
