/* ==========================================================================
   Live Life to the Fairiest — Fantasy Design System
   Theme: Flamboyant Enchanted Fairycore, Stardust & Iridescent Magic
   ========================================================================== */

:root {
  /* Magical Palette */
  --bg-dark: #0d0918;
  --bg-deep: #130c24;
  --bg-card: rgba(26, 17, 48, 0.72);
  --bg-card-hover: rgba(38, 26, 68, 0.88);
  --bg-card-border: rgba(255, 138, 235, 0.22);
  --bg-card-border-hover: rgba(255, 186, 245, 0.65);

  --fairy-pink: #ff7be5;
  --fairy-magenta: #e83f98;
  --fairy-purple: #ab68ff;
  --fairy-cyan: #4bf0d5;
  --fairy-gold: #ffd166;
  --fairy-starlight: #fff1c5;
  
  --text-main: #fcf9ff;
  --text-muted: #c9bede;
  --text-dim: #8b7ca8;

  --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --glow-fairy: 0 0 25px rgba(255, 123, 229, 0.35);
  --glow-cyan: 0 0 25px rgba(75, 240, 213, 0.3);
  --glow-gold: 0 0 25px rgba(255, 209, 102, 0.35);
  --glow-box: 0 8px 32px 0 rgba(171, 104, 255, 0.2);

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(232, 63, 152, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(171, 104, 255, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(75, 240, 213, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(255, 209, 102, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Interactive Fairy Dust Sparkle Canvas */
#sparkleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Typography & Display */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.brand-font {
  font-family: var(--font-display);
}

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 9, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 123, 229, 0.18);
  padding: 14px 0;
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 123, 229, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 10%, #ff9bf0 50%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 123, 229, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--fairy-pink), var(--fairy-cyan));
  border-radius: 2px;
  transition: var(--transition);
}

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

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #e83f98, #ab68ff 50%, #52f2d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(232, 63, 152, 0.45);
  background-size: 200% auto;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 6px 26px rgba(232, 63, 152, 0.65), 0 0 20px rgba(82, 242, 217, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 123, 229, 0.4);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 123, 229, 0.15);
  border-color: var(--fairy-pink);
  box-shadow: var(--glow-fairy);
  transform: translateY(-2px);
}

.btn-etsy {
  background: linear-gradient(135deg, #f1641e 0%, #ff8345 100%);
  color: #fff;
  font-size: 0.88rem;
  padding: 9px 18px;
  box-shadow: 0 4px 14px rgba(241, 100, 30, 0.35);
}

.btn-etsy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 100, 30, 0.55);
}

/* Hero Section */
.hero {
  padding: 85px 0 60px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 123, 229, 0.12);
  border: 1px solid rgba(255, 123, 229, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffb8f3;
  margin-bottom: 22px;
  box-shadow: 0 0 16px rgba(255, 123, 229, 0.25);
  animation: floatSoft 4s ease-in-out infinite alternate;
}

@keyframes floatSoft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: linear-gradient(135deg, #ff7be5 15%, #b872ff 50%, #4bf0d5 85%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 40px rgba(255, 123, 229, 0.4);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Trust / Feature Badges Ribbon */
.trust-ribbon {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg {
  color: var(--fairy-cyan);
}

/* Category Filter Section */
.filter-section {
  padding: 40px 0 20px;
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(13, 9, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 123, 229, 0.15);
}

.filters-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-btn:hover {
  background: rgba(255, 123, 229, 0.15);
  color: #fff;
  border-color: rgba(255, 123, 229, 0.4);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--fairy-magenta), var(--fairy-purple));
  color: #ffffff;
  border-color: var(--fairy-pink);
  box-shadow: 0 0 14px rgba(232, 63, 152, 0.5);
}

.product-count {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding: 40px 0 60px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glow-box);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 12px 36px 0 rgba(232, 63, 152, 0.25), 0 0 24px rgba(75, 240, 213, 0.15);
}

.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1b1233;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.badge-bestseller {
  background: linear-gradient(135deg, #ffd166, #ff9b26);
  color: #2b1704;
  box-shadow: 0 2px 10px rgba(255, 209, 102, 0.4);
}

.badge-new {
  background: linear-gradient(135deg, #4bf0d5, #0ea5e9);
  color: #04252b;
  box-shadow: 0 2px 10px rgba(75, 240, 213, 0.4);
}

.badge-in-stock {
  background: rgba(34, 197, 94, 0.85);
  color: #ffffff;
}

.badge-custom {
  background: linear-gradient(135deg, var(--fairy-pink), var(--fairy-purple));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 123, 229, 0.4);
}

.card-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(13, 9, 24, 0.85);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: var(--fairy-gold);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
  flex: 1;
}

.card-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-specs li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-specs li::before {
  content: '✦';
  color: var(--fairy-pink);
  font-size: 0.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.card-footer .btn {
  flex: 1;
  font-size: 0.88rem;
  padding: 10px 14px;
}

/* Interactive Fairy Customizer Section */
.custom-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 123, 229, 0.2);
}

.custom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.custom-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.custom-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.02rem;
}

.custom-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.custom-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.custom-perks-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 123, 229, 0.2);
  color: var(--fairy-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Live Customizer Box */
.customizer-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow-fairy);
  backdrop-filter: blur(16px);
}

.customizer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.customizer-header svg {
  color: var(--fairy-gold);
}

.customizer-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.customizer-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.char-limit {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(13, 9, 24, 0.7);
  border: 1px solid rgba(255, 123, 229, 0.3);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--fairy-pink);
  box-shadow: 0 0 14px rgba(255, 123, 229, 0.4);
}

/* Option Chips */
.option-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn.active, .chip-btn:hover {
  background: rgba(255, 123, 229, 0.2);
  border-color: var(--fairy-pink);
  color: #ffffff;
}

/* Live Mockup Display */
.charm-mockup-display {
  background: radial-gradient(circle at 50% 40%, #2a164d 0%, #120924 90%);
  border: 1px dashed rgba(255, 123, 229, 0.4);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.mockup-brand-stamp {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fairy-cyan);
  margin-bottom: 6px;
  font-weight: 600;
}

.mockup-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(255, 123, 229, 0.7));
}

.mockup-text-render {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--fairy-starlight);
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.7), 0 0 20px rgba(232, 63, 152, 0.5);
  word-break: break-word;
}

.mockup-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.customizer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The Craft Section */
.craft-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.craft-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  backdrop-filter: blur(10px);
  position: relative;
  transition: var(--transition);
}

.craft-card:hover {
  transform: translateY(-4px);
  border-color: var(--fairy-cyan);
  box-shadow: 0 8px 24px rgba(75, 240, 213, 0.2);
}

.craft-step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 123, 229, 0.35);
  margin-bottom: 12px;
}

.craft-title {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.craft-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ / USPTO Trademark Notice Section */
.faq-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item {
  background: rgba(26, 17, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
}

.faq-q {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fairy-starlight);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #090611;
  border-top: 1px solid rgba(255, 123, 229, 0.18);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--fairy-pink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .custom-layout, .faq-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
