/* CSS Variables for Playful Cosmic Theme */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Quicksand:wght@300..700&display=swap');

:root {
  --bg-deep: #0b071e;
  --bg-card: rgba(22, 17, 47, 0.7);
  --bg-card-hover: rgba(35, 27, 73, 0.85);
  
  --primary-pink: #ff7ebb;
  --primary-cyan: #00f0ff;
  --primary-yellow: #ffdf00;
  --accent-purple: #9b5de5;
  --text-light: #f3f0ff;
  --text-muted: #bdaeff;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --font-heading: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  
  --shadow-glow-cyan: 0 0 15px rgba(0, 240, 255, 0.4);
  --shadow-glow-pink: 0 0 15px rgba(255, 126, 187, 0.4);
  --shadow-glow-yellow: 0 0 15px rgba(255, 223, 0, 0.4);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body.has-overlay-open {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(155, 93, 229, 0.3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 93, 229, 0.6);
}

/* Typography styling */
h1, h2, h3, h4, .brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

/* Background floating decorations */
.background-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.decor-star {
  position: absolute;
  background: radial-gradient(circle, #fff 10%, transparent 80%);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-star 3s infinite alternate;
}

.decor-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 240, 255, 0.05) 50%, rgba(255, 126, 187, 0.05) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
  animation: float-bubble 12s infinite linear;
}

/* Navigation bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 7, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 2rem;
  animation: spin-slow 15s linear infinite;
  display: inline-block;
}

.brand-logo {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan), var(--primary-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 126, 187, 0.2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Button styles */
.btn-nav-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 50px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
}

.btn-nav-cart:hover {
  background: rgba(255, 126, 187, 0.15);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px);
}

.cart-badge {
  background: var(--primary-pink);
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-pink));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.4);
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 126, 187, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow-cyan);
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 126, 187, 0.3);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

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

.hero-graphic::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.15) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  animation: pulse-slow 8s infinite alternate;
}

.hero-card {
  width: 420px;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 10px;
  transform: rotate(2deg);
  transition: var(--transition-smooth);
  animation: float-slow 6s ease-in-out infinite;
  position: relative; /* needed for the color-sweep overlay */
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.03);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink), var(--shadow-card);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  /* filter & transition set by paintbrush JS at runtime */
}


/* Features Grid */
.features-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--primary-pink);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-card);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background: rgba(255, 126, 187, 0.08);
  border-color: rgba(255, 126, 187, 0.2);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
  background: rgba(255, 223, 0, 0.08);
  border-color: rgba(255, 223, 0, 0.2);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
}

/* Interactive Playground Section */
.playground-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #110930 50%, var(--bg-deep) 100%);
  position: relative;
}

.playground-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.playground-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 7, 30, 0.5);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.playground-title-box h3 {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playground-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 50px;
  gap: 5px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.5);
}

/* Playgrounds panels */
.playground-content {
  padding: 2.5rem;
  min-height: 520px;
}

.playground-panel {
  display: none;
  animation: fade-in 0.4s ease forwards;
}

.playground-panel.active {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* Playground Coloring Book */
.coloring-workspace {
  display: flex;
  flex: 1.5;
  background: #fff;
  border-radius: 16px;
  border: 4px solid var(--accent-purple);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.coloring-workspace canvas {
  background: white;
  cursor: crosshair;
  display: block;
}

.coloring-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
}

/* Playground Handprint Crafts */
.handprint-workspace {
  flex: 1.5;
  background: var(--dark-bg);
  border-radius: 16px;
  border: 4px solid var(--accent-orange);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
  padding: 20px;
}

.handprint-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
}

.control-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-cyan);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  transition: var(--transition-smooth);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tool-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-cyan);
}

.tool-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.canvas-outline-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outline-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.outline-thumb {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

.outline-thumb.active {
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
}

.outline-thumb svg {
  max-width: 100%;
  max-height: 100%;
}

/* Storybook Workspace */
.storybook-viewer {
  flex: 1.5;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.book-container {
  width: 540px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
}

.book-page {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-style: preserve-3d;
  transform-origin: left center;
}

.book-page-left {
  left: 0;
  background: #fbf9f4;
  color: #3c2a21;
  border-radius: 12px 0 0 12px;
  box-shadow: -10px 10px 20px rgba(0,0,0,0.3);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}

.book-page-right {
  left: 50%;
  background: #f1ebd9;
  color: #3c2a21;
  border-radius: 0 12px 12px 0;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 4;
}

.book-page-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.story-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-purple);
  text-align: center;
}

.story-paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
}

.storybook-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-input, .form-select {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.theme-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-cyan);
}

.theme-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Invitation Workspace */
.invitation-preview-container {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.invite-card {
  width: 320px;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  position: relative;
  background-size: cover;
  background-position: center;
}

.invite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  color: #3b281f;
  text-align: center;
  box-sizing: border-box;
}

.invite-overlay-space {
  color: #f7f3ff !important;
}

.invite-tag {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.invite-headline {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  line-height: 1.15;
}

.invite-party-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-child-info {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.invite-datetime {
  font-weight: 700;
  font-size: 0.95rem;
}

.invite-loc-rsvp {
  font-size: 0.85rem;
  font-weight: 600;
}

.invitation-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 250px;
}

/* Product Catalog Section */
.catalog-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.catalog-header .section-title-wrap {
  text-align: left;
  margin-bottom: 0;
}

.filter-pills {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: var(--primary-pink);
  color: #fff;
  box-shadow: var(--shadow-glow-pink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.catalog-state {
  grid-column: 1 / -1;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.catalog-state h3 {
  margin-bottom: 0.65rem;
  color: var(--text-light);
}

.catalog-state p,
.catalog-product-status {
  color: var(--text-muted);
}

.catalog-product-status {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  line-height: 1.5;
}

.catalog-order-control[hidden],
.catalog-product-status[hidden] {
  display: none;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink), var(--shadow-card);
}

.product-img-box {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #110a26;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

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

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-yellow);
}

.btn-add-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  min-width: 86px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-add-cart:hover {
  background: var(--primary-cyan);
  color: var(--bg-deep);
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.1);
}

/* Services section */
.services-section {
  padding: 6rem 2rem;
  background: rgba(11, 7, 30, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink), var(--shadow-card);
}

.service-badge {
  color: var(--primary-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✦';
  color: var(--primary-cyan);
  text-shadow: var(--shadow-glow-cyan);
}

.btn-book {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-pink));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-pink);
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: #0f0a28;
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 200;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s linear 0.4s;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cart-header {
  padding: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-cart:hover {
  color: #fff;
  transform: scale(1.1);
}

.btn-nav-cart:focus-visible,
.btn-close-cart:focus-visible,
.btn-checkout:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 3px;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 5rem;
  font-size: 1.1rem;
}

.cart-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-price {
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qty-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--primary-cyan);
  color: var(--bg-deep);
}

.qty-val {
  font-weight: 700;
  color: var(--text-light);
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--primary-pink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
}

.cart-footer {
  padding: 1.8rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.cart-total-box {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cart-total-val {
  color: var(--primary-yellow);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-checkout:hover {
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px);
}

/* Cart Overlay backdrop */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  display: none;
}

.cart-overlay.open {
  display: block;
}

/* Toast Notifications */
.toaster {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(22, 17, 47, 0.95);
  border: 1px solid var(--primary-cyan);
  box-shadow: var(--shadow-glow-cyan);
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: slide-in-toast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-success {
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 250;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-body {
  background: #120a2e;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 10;
  padding: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.open .modal-body {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Success screen visual */
.success-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 126, 187, 0.1);
  border: 2px solid var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: pop-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Footer Section */
footer {
  background: #09051b;
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.footer-info {
  max-width: 320px;
}

.footer-desc {
  color: var(--text-muted);
  margin-top: 1.2rem;
}

.footer-links-box {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-column ul a:hover {
  color: var(--primary-cyan);
}

.footer-newsletter {
  max-width: 320px;
}

.footer-newsletter p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 50px;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
}

.newsletter-form input:focus {
  border-color: var(--primary-cyan);
}

.btn-send {
  background: var(--primary-cyan);
  color: var(--bg-deep);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow-cyan);
  transition: var(--transition-smooth);
}

.btn-send:hover {
  transform: scale(1.08);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float-slow {
  0% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
  100% { transform: translateY(0) rotate(2deg); }
}

@keyframes float-bubble {
  0% { transform: translateY(105vh) translateX(0) scale(0.8); }
  50% { transform: translateY(50vh) translateX(30px) scale(1.1); }
  100% { transform: translateY(-10vh) translateX(-20px) scale(0.9); opacity: 0; }
}

@keyframes pulse-slow {
  0% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

@keyframes pulse-star {
  0% { opacity: 0.1; }
  100% { opacity: 0.6; }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-toast {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pop-bounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  75% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 2rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-graphic {
    width: 100%;
  }
  .hero-card {
    width: 320px;
    height: 320px;
  }
  
  .playground-panel.active {
    flex-direction: column;
    gap: 2rem;
  }
  .coloring-workspace, .storybook-viewer, .invitation-preview-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    gap: 0.75rem;
    padding: 1rem;
  }

  .nav-links {
    display: none; /* simple responsive hide */
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    font-size: 1.65rem;
  }

  .brand-logo {
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .nav-actions {
    flex: 0 0 auto;
  }

  .nav-actions .btn-cta {
    display: none;
  }

  .btn-nav-cart {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .playground-header,
  .playground-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .playground-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-radius: 18px;
    scrollbar-width: thin;
  }

  .tab-btn {
    flex: 0 0 auto;
    padding: 9px 14px;
  }

  .playground-panel.active,
  .coloring-workspace,
  .storybook-viewer,
  .invitation-preview-container {
    min-width: 0;
    width: 100%;
  }

  #coloring-canvas {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .catalog-header {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-header > * {
    min-width: 0;
    max-width: 100%;
  }

  .filter-pills {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .cart-drawer {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hero,
  .features-section,
  .playground-section,
  .how-section,
  .catalog-section,
  .social-proof-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.7rem);
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Page Navigation Arrow Buttons (Storybook) */
.storybook-book-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.book-nav-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-light);
  box-shadow: var(--shadow-glow-cyan);
}

.nav-arrow-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.nav-arrow-btn:hover {
  background: var(--primary-cyan);
  color: var(--bg-deep);
  transform: scale(1.1);
}

/* How It Works Timeline */
.how-it-works-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  position: relative;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-step:hover {
  transform: translateY(-5px);
  border-color: var(--primary-yellow);
  box-shadow: var(--shadow-glow-yellow), var(--shadow-card);
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--primary-yellow);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -55px auto 1.5rem auto;
  box-shadow: var(--shadow-glow-yellow);
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials Slider */
.testimonials-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #130a38 50%, var(--bg-deep) 100%);
}

.testimonials-slider-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.slider-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: var(--primary-pink);
  color: #fff;
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-glow-pink);
  transform: scale(1.08);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  text-align: center;
  flex-grow: 1;
  box-shadow: var(--shadow-card);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.testimonial-rating {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.testimonial-author {
  font-size: 1.25rem;
  color: var(--primary-cyan);
}

.testimonial-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Rocket Launch Loader Modal */
.rocket-loader-icon {
  font-size: 4.5rem;
  animation: rocket-rumble 0.15s infinite alternate, rocket-launch-fly 3.5s infinite ease-in-out;
  display: inline-block;
  transform-origin: bottom center;
}

.rocket-sparks-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.spark {
  width: 8px;
  height: 15px;
  background: linear-gradient(to bottom, var(--primary-pink), var(--primary-yellow));
  border-radius: 50%;
  animation: spark-fade 0.5s infinite alternate;
}

.spark:nth-child(2) {
  animation-delay: 0.15s;
  height: 25px;
  width: 10px;
}

.spark:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rocket-rumble {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes rocket-launch-fly {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-15px); }
  85% { transform: scale(0.6) translateY(-120px); opacity: 0.2; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes spark-fade {
  0% { opacity: 0.3; transform: scaleY(0.7); }
  100% { opacity: 1; transform: scaleY(1.3); }
}



/* Private post-checkout order status */
.order-status-page {
  min-height: calc(100vh - 92px);
  padding: clamp(40px, 7vw, 90px) 20px;
  position: relative;
  z-index: 2;
}

.order-status-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  background: rgba(16, 8, 42, 0.92);
  box-shadow: var(--shadow-strong), 0 0 45px rgba(177, 90, 255, 0.16);
}

.order-status-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.order-status-summary,
.order-status-privacy {
  color: var(--text-muted);
  line-height: 1.7;
}

.order-status-meta {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  gap: 8px;
}

.order-status-item {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.order-status-item h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.order-status-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.order-download-button {
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-download-button:focus-visible,
.order-status-actions a:focus-visible,
.order-status-actions button:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 3px;
}

.order-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

body.order-status-view > section,
body.order-status-view > footer,
body.order-status-view > .cart-overlay,
body.order-status-view > .cart-drawer,
body.order-status-view > .modal,
body.order-status-view header nav,
body.order-status-view header .nav-actions {
  display: none !important;
}

body.order-status-view #order-status-page {
  display: block;
}

@media (max-width: 600px) {
  .order-status-actions > * {
    width: 100%;
    text-align: center;
  }
}
