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

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

:root {
  --pink: #ff006e;
  --orange: #fb5607;
  --yellow: #ffbe0b;
  --green: #06d6a0;
  --blue: #118ab2;
  --purple: #8338ec;
  --dark: #0f0a1a;
  --dark2: #1a1028;
  --dark3: #241835;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Fredoka', sans-serif;
  background: var(--dark);
  color: #f0e6ff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glitter canvas */
#glitter-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(240, 230, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.cart-button {
  background: rgba(255, 0, 110, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 0, 110, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.cart-button:hover {
  background: rgba(255, 0, 110, 0.35);
  transform: scale(1.05);
}

.cart-count {
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-count:empty { display: none; }

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 0, 110, 0.15);
  border: 1px solid rgba(255, 0, 110, 0.3);
  color: var(--pink);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #ff006e 50%, #ffbe0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(240, 230, 255, 0.65);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 110, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 0, 110, 0.5);
}

.btn-ghost {
  background: transparent;
  color: rgba(240, 230, 255, 0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(240, 230, 255, 0.5);
}

/* Floating emojis */
.hero-visual {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.hero-emoji-float {
  position: absolute;
  font-size: 3.5rem;
  animation: emoji-float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,0,110,0.3));
}

.hero-emoji-float:nth-child(1) { top: 10%; left: 50%; }
.hero-emoji-float:nth-child(2) { top: 45%; left: 15%; animation-delay: -0.8s; }
.hero-emoji-float:nth-child(3) { top: 30%; right: 5%; animation-delay: -1.6s; }
.hero-emoji-float:nth-child(4) { bottom: 15%; left: 35%; animation-delay: -2.4s; }
.hero-emoji-float:nth-child(5) { bottom: 30%; right: 15%; animation-delay: -3.2s; }

@keyframes emoji-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(5deg); }
  66% { transform: translateY(8px) rotate(-3deg); }
}

/* ========== SECTIONS ========== */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: rgba(240, 230, 255, 0.5);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  background: var(--dark2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, border-color 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 110, 0.3);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: rgba(240, 230, 255, 0.55);
}

/* ========== PRODUCTS ========== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
}

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

.product-card {
  background: rgba(255,255,255,0.05);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 0, 110, 0.15);
  border-color: rgba(255, 0, 110, 0.2);
}

/* Product visual (emoji illustration) */
.product-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-visual-main {
  font-size: 5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: product-bounce 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes product-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.product-visual-icon {
  opacity: 0.5;
  z-index: 1;
  animation: icon-drift 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

@keyframes icon-drift {
  0% { transform: translateY(0) rotate(-5deg); opacity: 0.4; }
  100% { transform: translateY(-10px) rotate(5deg); opacity: 0.7; }
}

.product-tag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.15);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  color: #fff;
  margin-bottom: 0.4rem;
}

.product-info .description {
  font-size: 0.88rem;
  color: rgba(240, 230, 255, 0.5);
  margin-bottom: 1.2rem;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
}

.product-emoji {
  font-size: 1.8rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 110, 0.25);
}

.add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 0, 110, 0.4);
}

.add-to-cart:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.add-to-cart:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

/* ========== REVIEWS ========== */
.reviews-section {
  background: var(--dark2);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 1.8rem;
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-stars {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.review-card p {
  font-size: 1rem;
  color: rgba(240, 230, 255, 0.8);
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  color: rgba(240, 230, 255, 0.4);
  font-weight: 500;
}

/* ========== FAQ ========== */
.faq-section {
  max-width: 700px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(255, 0, 110, 0.3);
}

.faq-item summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--pink);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.2rem;
  color: rgba(240, 230, 255, 0.6);
  font-size: 0.95rem;
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(240, 230, 255, 0.4);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(240, 230, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: rgba(240, 230, 255, 0.25);
  font-size: 0.85rem;
}

/* ========== CART ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 26, 0.75);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(6px);
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: var(--dark2);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.cart-overlay.open + .cart-panel,
.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.cart-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.cart-close {
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-close:hover {
  background: rgba(255,255,255,0.35);
  transform: rotate(90deg);
}

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

.cart-empty {
  text-align: center;
  color: rgba(240, 230, 255, 0.35);
  padding: 3rem 0;
  font-size: 1rem;
}

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

.cart-item img,
.cart-item-emoji {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

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

.cart-item-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.cart-item-info .cart-item-price {
  font-size: 0.85rem;
  color: rgba(240, 230, 255, 0.45);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 110, 0.3);
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--pink);
  font-weight: 700;
}

.cart-item-controls button:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.cart-item-controls span {
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: #fff;
}

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

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.checkout-button {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--yellow), var(--pink), var(--purple));
  background-size: 200% auto;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(255, 0, 110, 0.35);
}

.checkout-button:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 0, 110, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
    gap: 2rem;
  }

  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 200px; height: 200px; }
  .hero-emoji-float { font-size: 2.5rem; }
  .nav-links { display: none; }

  section h2 { font-size: 1.8rem; }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
