/* ============================================
   WISHFUL — Global & Landing Page Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #2d1f2d;
  background: #fef9fb;
  overflow-x: hidden;
}

/* Headings use a more elegant font */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(196, 69, 105, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(196, 69, 105, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #c44569;
  border: 2px solid #c44569;
}

.btn-secondary:hover {
  background: rgba(196, 69, 105, 0.08);
}

/* ============================================
   Hero (Landing)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(196, 69, 105, 0.12) 0%, transparent 50%),
              linear-gradient(180deg, #fef9fb 0%, #fdf2f6 50%, #fef9fb 100%);
}

/* Floating hearts decoration */
.hero-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-hearts::before,
.hero-hearts::after {
  content: '♥';
  position: absolute;
  font-size: 1.2rem;
  color: rgba(196, 69, 105, 0.15);
  animation: float 8s ease-in-out infinite;
}

.hero-hearts::before {
  left: 15%;
  top: 25%;
  animation-delay: 0s;
}

.hero-hearts::after {
  right: 18%;
  top: 40%;
  animation-delay: -3s;
  font-size: 1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-20px) rotate(10deg); opacity: 0.25; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c44569;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.2;
  color: #2d1f2d;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: #5c4a5c;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero .btn-primary {
  margin-bottom: 0.5rem;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #9a7b9a;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, #c44569, transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   How it works
   ============================================ */
.how {
  padding: 4rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.how-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  color: #2d1f2d;
  margin-bottom: 2.5rem;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 16px rgba(196, 69, 105, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(196, 69, 105, 0.1);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c44569, #a83a56);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.35rem;
  color: #2d1f2d;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: #5c4a5c;
  font-weight: 300;
}

/* ============================================
   CTA section
   ============================================ */
.cta {
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.2) 0%, transparent 100%);
}

.cta-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: #2d1f2d;
  margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(196, 69, 105, 0.1);
}

.footer-text {
  font-size: 0.9rem;
  color: #9a7b9a;
  font-weight: 300;
}

/* ============================================
   Site header (Templates + inner pages)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 69, 105, 0.08);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d1f2d;
  transition: color 0.2s ease;
}

.logo:hover {
  color: #c44569;
}

.logo-icon {
  color: #c44569;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #5c4a5c;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #c44569;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, #c44569, #d4a5a5);
  border-radius: 1px;
}

/* ============================================
   Templates page — Hero
   ============================================ */
.templates-hero {
  position: relative;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
}

.templates-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.templates-hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 182, 193, 0.35) 0%, transparent 55%),
              radial-gradient(ellipse 50% 30% at 20% 60%, rgba(212, 165, 165, 0.2) 0%, transparent 50%),
              radial-gradient(ellipse 50% 30% at 80% 70%, rgba(196, 69, 105, 0.08) 0%, transparent 50%);
}

.templates-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 2rem 3rem;
  opacity: 0.2;
}

.deco-heart {
  font-size: 1.5rem;
  color: #c44569;
  animation: float 6s ease-in-out infinite;
}

.deco-heart:nth-child(1) { animation-delay: 0s; }
.deco-heart:nth-child(2) { animation-delay: -2s; color: #d4a5a5; }
.deco-heart:nth-child(3) { animation-delay: -4s; }

.templates-hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

.templates-hero-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c44569;
  margin-bottom: 0.75rem;
}

.templates-hero-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.25;
  color: #2d1f2d;
  margin-bottom: 1rem;
}

.templates-hero-sub {
  font-size: 1rem;
  color: #5c4a5c;
  font-weight: 300;
}

/* ============================================
   Templates page — Category filter
   ============================================ */
.templates-filter-wrap {
  padding: 0 1.5rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.templates-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5c4a5c;
  margin-right: 0.25rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill {
  padding: 0.5rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5c4a5c;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(196, 69, 105, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  color: #c44569;
  background: rgba(255, 255, 255, 1);
  border-color: rgba(196, 69, 105, 0.35);
}

.pill-active {
  color: #fff;
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(196, 69, 105, 0.3);
}

.pill-active:hover {
  color: #fff;
  background: linear-gradient(135deg, #a83a56 0%, #8b3148 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(196, 69, 105, 0.35);
}

/* ============================================
   Templates page — Gallery grid
   ============================================ */
.templates-gallery {
  padding: 0 1.5rem 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

.gallery-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .gallery-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .gallery-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Template card */
.template-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(196, 69, 105, 0.06);
  border: 1px solid rgba(196, 69, 105, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(196, 69, 105, 0.15), 0 0 0 1px rgba(196, 69, 105, 0.06);
  border-color: rgba(196, 69, 105, 0.12);
}

.template-card.hidden-by-filter {
  display: none;
}

/* Staggered fade-in for template cards on load */
.templates-gallery .template-card {
  animation: cardFadeIn 0.5s ease both;
}

.gallery-inner .template-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-inner .template-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-inner .template-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-inner .template-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-inner .template-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-inner .template-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-inner .template-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-inner .template-card:nth-child(8) { animation-delay: 0.4s; }
.gallery-inner .template-card:nth-child(9) { animation-delay: 0.45s; }
.gallery-inner .template-card:nth-child(10) { animation-delay: 0.5s; }
.gallery-inner .template-card:nth-child(11) { animation-delay: 0.55s; }
.gallery-inner .template-card:nth-child(12) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preview area: gradient placeholders with romantic feel */
.template-preview {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s ease;
}

.template-card:hover .preview-icon {
  transform: scale(1.15);
}

.template-preview-1 {
  background: linear-gradient(145deg, #e8a0b8 0%, #c44569 50%, #a83a56 100%);
}
.template-preview-2 {
  background: linear-gradient(145deg, #f5d0e0 0%, #e8a0b8 50%, #c44569 100%);
}
.template-preview-3 {
  background: linear-gradient(145deg, #f8e8ed 0%, #e8b4c4 50%, #d4a5a5 100%);
}
.template-preview-4 {
  background: linear-gradient(145deg, #ffb6c1 0%, #e8a0b8 100%);
}
.template-preview-5 {
  background: linear-gradient(145deg, #c44569 0%, #8b3148 100%);
}
.template-preview-6 {
  background: linear-gradient(145deg, #d4a5a5 0%, #c44569 80%);
}
.template-preview-7 {
  background: linear-gradient(145deg, #f5e6d3 0%, #e8d4b8 50%, #c9a959 100%);
}
.template-preview-8 {
  background: linear-gradient(145deg, #ffe4ec 0%, #f5c6d6 100%);
}
.template-preview-9 {
  background: linear-gradient(145deg, #a83a56 0%, #6b2840 100%);
}
.template-preview-10 {
  background: linear-gradient(145deg, #f5b0c2 0%, #e890a8 100%);
}
.template-preview-11 {
  background: linear-gradient(145deg, #e8d4b8 0%, #c9a959 50%, #a88b40 100%);
}
.template-preview-12 {
  background: linear-gradient(145deg, #f0d8e0 0%, #e8a0b8 100%);
}

.template-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.template-name {
  font-size: 1.2rem;
  color: #2d1f2d;
  margin-bottom: 0.35rem;
}

.template-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #a83a56;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.template-desc {
  font-size: 0.875rem;
  color: #5c4a5c;
  font-weight: 300;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.btn-card {
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 69, 105, 0.35);
}

/* No results message */
.templates-no-results {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #9a7b9a;
  font-size: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.templates-no-results[hidden] {
  display: none !important;
}

/* ============================================
   Templates page — CTA block
   ============================================ */
.templates-cta {
  position: relative;
  padding: 3.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.templates-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.25) 0%, rgba(232, 212, 184, 0.2) 50%, rgba(201, 169, 89, 0.12) 100%);
}

.templates-cta-content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
}

.cta-icon {
  display: inline-block;
  font-size: 1.75rem;
  color: #c44569;
  margin-bottom: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

.templates-cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #2d1f2d;
  margin-bottom: 0.5rem;
}

.templates-cta-sub {
  font-size: 0.95rem;
  color: #5c4a5c;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.btn-cta-gold {
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  box-shadow: 0 4px 20px rgba(196, 69, 105, 0.35);
}

.btn-cta-gold:hover {
  box-shadow: 0 6px 28px rgba(196, 69, 105, 0.45);
}

/* ============================================
   Template Details Page
   ============================================ */

/* Hero banner */
.detail-hero {
  position: relative;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 182, 193, 0.35) 0%, transparent 55%),
              radial-gradient(ellipse 50% 30% at 80% 50%, rgba(212, 165, 165, 0.15) 0%, transparent 50%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
}

.detail-hero-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: #c44569;
  margin-bottom: 0.5rem;
  animation: float 5s ease-in-out infinite;
}

.detail-hero-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c44569;
  margin-bottom: 0.35rem;
}

.detail-hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: #2d1f2d;
}

/* Preview section: desktop + mobile mockup */
.detail-preview-section {
  padding: 0 1.5rem 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.detail-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.detail-mockup {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(196, 69, 105, 0.12), 0 0 0 1px rgba(196, 69, 105, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.detail-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(196, 69, 105, 0.18), 0 0 0 1px rgba(196, 69, 105, 0.08);
}

.detail-mockup-desktop {
  flex: 1 1 320px;
  max-width: 480px;
}

.mockup-bar {
  height: 32px;
  background: linear-gradient(180deg, #e8e4e8 0%, #ddd8dd 100%);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c44569;
  opacity: 0.6;
}

.mockup-dot:nth-child(2) { background: #d4a5a5; }
.mockup-dot:nth-child(3) { background: #e8a0b8; }

.detail-mockup .mockup-screen {
  aspect-ratio: 4 / 3;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-mockup .mockup-screen-with-deco {
  overflow: hidden;
}

.preview-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.preview-deco .deco-item {
  position: absolute;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.detail-mockup .preview-icon {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detail-mockup-mobile {
  flex: 0 0 auto;
  width: 160px;
}

.mockup-notch {
  height: 20px;
  background: #2d1f2d;
  border-radius: 0 0 12px 12px;
  margin: 0 24px;
}

.detail-mockup-mobile .mockup-screen-mobile {
  aspect-ratio: 9 / 16;
  min-height: 240px;
}

.detail-mockup-mobile .preview-icon {
  font-size: 1.75rem;
}

/* Preview meta: dynamic description, message area, music, Customize only */
.detail-preview-meta {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
}

.detail-desc-dynamic {
  font-size: 1.05rem;
  color: #5c4a5c;
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

.detail-message-area {
  margin-bottom: 1.25rem;
  text-align: left;
}

.detail-message-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d1f2d;
  margin-bottom: 0.4rem;
}

.detail-message-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #2d1f2d;
  border: 1px solid rgba(196, 69, 105, 0.25);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-message-input:focus {
  outline: none;
  border-color: #c44569;
  box-shadow: 0 0 0 3px rgba(196, 69, 105, 0.15);
}

.detail-music-area {
  margin-bottom: 1.5rem;
}

.detail-music-label {
  display: block;
  font-size: 0.85rem;
  color: #5c4a5c;
  margin-bottom: 0.35rem;
}

.detail-audio {
  width: 100%;
  max-width: 20rem;
  height: 36px;
  margin: 0 auto;
}

.btn-customize {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 69, 105, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-customize:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(196, 69, 105, 0.45);
}

/* Unique preview decorations per template (12 animations) */
.preview-deco-hearts .deco-item { left: 10%; top: 20%; animation-name: decoFloatHearts; }
.preview-deco-hearts .deco-item:nth-child(2) { left: 25%; top: 60%; animation-delay: 0.5s; }
.preview-deco-hearts .deco-item:nth-child(3) { left: 60%; top: 15%; animation-delay: 1s; }
.preview-deco-hearts .deco-item:nth-child(4) { left: 80%; top: 50%; animation-delay: 1.5s; }
.preview-deco-hearts .deco-item:nth-child(5) { left: 15%; top: 75%; animation-delay: 2s; }
.preview-deco-hearts .deco-item:nth-child(6) { left: 70%; top: 80%; animation-delay: 2.5s; }
@keyframes decoFloatHearts {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-15px) scale(1.2); opacity: 0.9; }
}

.preview-deco-sparkles .deco-item { font-size: 0.7rem; animation-name: decoSparkle; }
.preview-deco-sparkles .deco-item:nth-child(1) { left: 20%; top: 30%; }
.preview-deco-sparkles .deco-item:nth-child(2) { left: 50%; top: 20%; animation-delay: 0.3s; }
.preview-deco-sparkles .deco-item:nth-child(3) { left: 80%; top: 40%; animation-delay: 0.6s; }
.preview-deco-sparkles .deco-item:nth-child(4) { left: 10%; top: 60%; animation-delay: 0.9s; }
.preview-deco-sparkles .deco-item:nth-child(5) { left: 40%; top: 70%; animation-delay: 1.2s; }
.preview-deco-sparkles .deco-item:nth-child(6) { left: 75%; top: 75%; animation-delay: 1.5s; }
@keyframes decoSparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

.preview-deco-confetti .deco-item { animation-name: decoConfetti; font-size: 0.6rem; }
.preview-deco-confetti .deco-item:nth-child(1) { left: 5%; top: 10%; }
.preview-deco-confetti .deco-item:nth-child(2) { left: 30%; top: 5%; animation-delay: 0.2s; }
.preview-deco-confetti .deco-item:nth-child(3) { left: 55%; top: 15%; animation-delay: 0.4s; }
.preview-deco-confetti .deco-item:nth-child(4) { left: 80%; top: 8%; animation-delay: 0.6s; }
.preview-deco-confetti .deco-item:nth-child(5) { left: 15%; top: 50%; animation-delay: 0.8s; }
.preview-deco-confetti .deco-item:nth-child(6) { left: 90%; top: 60%; animation-delay: 1s; }
@keyframes decoConfetti {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0.6; }
  100% { transform: translateY(80px) rotate(180deg); opacity: 0.2; }
}

.preview-deco-petals .deco-item { animation-name: decoPetals; }
.preview-deco-petals .deco-item:nth-child(1) { left: 10%; top: 15%; }
.preview-deco-petals .deco-item:nth-child(2) { left: 35%; top: 25%; animation-delay: 0.5s; }
.preview-deco-petals .deco-item:nth-child(3) { left: 65%; top: 10%; animation-delay: 1s; }
.preview-deco-petals .deco-item:nth-child(4) { left: 85%; top: 35%; animation-delay: 1.5s; }
.preview-deco-petals .deco-item:nth-child(5) { left: 20%; top: 65%; animation-delay: 2s; }
.preview-deco-petals .deco-item:nth-child(6) { left: 70%; top: 70%; animation-delay: 2.5s; }
@keyframes decoPetals {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(15deg); opacity: 0.9; }
}

.preview-deco-stars .deco-item { animation-name: decoStars; }
.preview-deco-stars .deco-item:nth-child(1) { left: 15%; top: 25%; }
.preview-deco-stars .deco-item:nth-child(2) { left: 45%; top: 15%; animation-delay: 0.4s; }
.preview-deco-stars .deco-item:nth-child(3) { left: 75%; top: 30%; animation-delay: 0.8s; }
.preview-deco-stars .deco-item:nth-child(4) { left: 25%; top: 55%; animation-delay: 1.2s; }
.preview-deco-stars .deco-item:nth-child(5) { left: 55%; top: 65%; animation-delay: 1.6s; }
.preview-deco-stars .deco-item:nth-child(6) { left: 85%; top: 75%; animation-delay: 2s; }
@keyframes decoStars {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); }
}

.preview-deco-bubbles .deco-item { font-size: 0.75rem; animation-name: decoBubbles; }
.preview-deco-bubbles .deco-item:nth-child(1) { left: 20%; top: 70%; }
.preview-deco-bubbles .deco-item:nth-child(2) { left: 40%; top: 60%; animation-delay: 0.5s; }
.preview-deco-bubbles .deco-item:nth-child(3) { left: 60%; top: 75%; animation-delay: 1s; }
.preview-deco-bubbles .deco-item:nth-child(4) { left: 80%; top: 65%; animation-delay: 1.5s; }
.preview-deco-bubbles .deco-item:nth-child(5) { left: 30%; top: 85%; animation-delay: 2s; }
.preview-deco-bubbles .deco-item:nth-child(6) { left: 70%; top: 85%; animation-delay: 2.5s; }
@keyframes decoBubbles {
  0% { transform: translateY(0) scale(1); opacity: 0.4; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

.preview-deco-snow-hearts .deco-item { animation-name: decoSnowHearts; }
.preview-deco-snow-hearts .deco-item:nth-child(1) { left: 10%; top: -10%; }
.preview-deco-snow-hearts .deco-item:nth-child(2) { left: 30%; top: -5%; animation-delay: 0.6s; }
.preview-deco-snow-hearts .deco-item:nth-child(3) { left: 50%; top: -15%; animation-delay: 1.2s; }
.preview-deco-snow-hearts .deco-item:nth-child(4) { left: 70%; top: -8%; animation-delay: 1.8s; }
.preview-deco-snow-hearts .deco-item:nth-child(5) { left: 90%; top: -12%; animation-delay: 2.4s; }
@keyframes decoSnowHearts {
  0% { transform: translateY(0) translateX(0); opacity: 0.6; }
  100% { transform: translateY(120px) translateX(10px); opacity: 0.2; }
}

.preview-deco-love-dots .deco-item { font-size: 0.5rem; animation-name: decoLoveDots; }
.preview-deco-love-dots .deco-item:nth-child(1) { left: 25%; top: 35%; }
.preview-deco-love-dots .deco-item:nth-child(2) { left: 50%; top: 25%; animation-delay: 0.3s; }
.preview-deco-love-dots .deco-item:nth-child(3) { left: 75%; top: 40%; animation-delay: 0.6s; }
.preview-deco-love-dots .deco-item:nth-child(4) { left: 35%; top: 60%; animation-delay: 0.9s; }
.preview-deco-love-dots .deco-item:nth-child(5) { left: 65%; top: 55%; animation-delay: 1.2s; }
@keyframes decoLoveDots {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

.preview-deco-ribbons .deco-item { font-size: 1rem; animation-name: decoRibbons; }
.preview-deco-ribbons .deco-item:nth-child(1) { left: 15%; top: 20%; }
.preview-deco-ribbons .deco-item:nth-child(2) { left: 50%; top: 15%; animation-delay: 0.4s; }
.preview-deco-ribbons .deco-item:nth-child(3) { left: 85%; top: 25%; animation-delay: 0.8s; }
.preview-deco-ribbons .deco-item:nth-child(4) { left: 20%; top: 60%; animation-delay: 1.2s; }
.preview-deco-ribbons .deco-item:nth-child(5) { left: 80%; top: 65%; animation-delay: 1.6s; }
@keyframes decoRibbons {
  0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.4; }
  50% { transform: translateY(-12px) rotate(5deg); opacity: 0.7; }
}

.preview-deco-roses .deco-item { animation-name: decoRoses; }
.preview-deco-roses .deco-item:nth-child(1) { left: 20%; top: 30%; }
.preview-deco-roses .deco-item:nth-child(2) { left: 60%; top: 20%; animation-delay: 0.5s; }
.preview-deco-roses .deco-item:nth-child(3) { left: 80%; top: 50%; animation-delay: 1s; }
.preview-deco-roses .deco-item:nth-child(4) { left: 15%; top: 65%; animation-delay: 1.5s; }
.preview-deco-roses .deco-item:nth-child(5) { left: 50%; top: 70%; animation-delay: 2s; }
@keyframes decoRoses {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.15) rotate(10deg); opacity: 0.9; }
}

.preview-deco-cupid-arrows .deco-item { animation-name: decoCupidArrows; }
.preview-deco-cupid-arrows .deco-item:nth-child(1) { left: 20%; top: 40%; }
.preview-deco-cupid-arrows .deco-item:nth-child(2) { left: 50%; top: 30%; animation-delay: 0.3s; }
.preview-deco-cupid-arrows .deco-item:nth-child(3) { left: 80%; top: 45%; animation-delay: 0.6s; }
.preview-deco-cupid-arrows .deco-item:nth-child(4) { left: 30%; top: 70%; animation-delay: 0.9s; }
.preview-deco-cupid-arrows .deco-item:nth-child(5) { left: 70%; top: 75%; animation-delay: 1.2s; }
@keyframes decoCupidArrows {
  0%, 100% { transform: translateX(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateX(8px) rotate(15deg); opacity: 0.9; }
}

.preview-deco-fireflies .deco-item { font-size: 0.6rem; animation-name: decoFireflies; }
.preview-deco-fireflies .deco-item:nth-child(1) { left: 25%; top: 35%; }
.preview-deco-fireflies .deco-item:nth-child(2) { left: 55%; top: 25%; animation-delay: 0.4s; }
.preview-deco-fireflies .deco-item:nth-child(3) { left: 80%; top: 45%; animation-delay: 0.8s; }
.preview-deco-fireflies .deco-item:nth-child(4) { left: 15%; top: 60%; animation-delay: 1.2s; }
.preview-deco-fireflies .deco-item:nth-child(5) { left: 65%; top: 70%; animation-delay: 1.6s; }
@keyframes decoFireflies {
  0%, 100% { opacity: 0.2; transform: translate(0, 0); }
  25% { opacity: 0.9; transform: translate(5px, -8px); }
  75% { opacity: 0.4; transform: translate(-5px, 5px); }
}

/* Customization section */
.detail-customize {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.12) 0%, transparent 50%);
}

.detail-customize-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.detail-customize-title {
  font-size: 1.5rem;
  color: #2d1f2d;
  margin-bottom: 1.5rem;
  text-align: center;
}

.detail-customize-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .detail-customize-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-customize-form {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(196, 69, 105, 0.08);
  border: 1px solid rgba(196, 69, 105, 0.08);
}

.customize-field {
  margin-bottom: 1.25rem;
}

.customize-field:last-child {
  margin-bottom: 0;
}

.customize-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d1f2d;
  margin-bottom: 0.4rem;
}

.customize-input,
.customize-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #2d1f2d;
  border: 1px solid rgba(196, 69, 105, 0.25);
  border-radius: 0.5rem;
  background: #fff;
  transition: border-color 0.2s ease;
}

.customize-textarea {
  resize: vertical;
  min-height: 80px;
}

.customize-input:focus,
.customize-textarea:focus {
  outline: none;
  border-color: #c44569;
}

.customize-color {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid rgba(196, 69, 105, 0.25);
  border-radius: 0.5rem;
  cursor: pointer;
  background: #fff;
}

.detail-live-preview-wrap {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(196, 69, 105, 0.08);
  border: 1px solid rgba(196, 69, 105, 0.08);
}

.live-preview-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5c4a5c;
  margin-bottom: 0.75rem;
}

.detail-live-preview {
  --accent: #c44569;
  min-height: 140px;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 249, 251, 0.95) 0%, rgba(255, 230, 240, 0.3) 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(196, 69, 105, 0.15);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}


.live-preview-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent, #c44569);
  margin-bottom: 0.5rem;
}

.live-preview-msg {
  font-size: 0.95rem;
  color: #5c4a5c;
  line-height: 1.5;
}

/* Bottom actions only: price + Buy Now + Add to Cart */
.detail-bottom-actions {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.15) 0%, rgba(255, 249, 251, 0.5) 100%);
}

.detail-bottom-actions-inner {
  max-width: 28rem;
  margin: 0 auto;
}

.detail-bottom-actions .detail-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #a83a56;
  margin-bottom: 1.25rem;
}

.detail-bottom-actions .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-buy-now {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 69, 105, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(196, 69, 105, 0.45);
}

.btn-add-cart {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  background: transparent;
  color: #a83a56;
  border: 2px solid #c9a959;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  background: rgba(201, 169, 89, 0.1);
  box-shadow: 0 4px 16px rgba(201, 169, 89, 0.25);
}

/* Template details / specs */
.detail-specs {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.12) 0%, transparent 100%);
}

.detail-specs-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.detail-specs-title {
  font-size: 1.5rem;
  color: #2d1f2d;
  margin-bottom: 1.25rem;
  text-align: center;
}

.detail-specs-content {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 16px rgba(196, 69, 105, 0.06);
  border: 1px solid rgba(196, 69, 105, 0.06);
}

.detail-specs-text {
  font-size: 0.98rem;
  color: #5c4a5c;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.detail-specs-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.detail-specs-list li {
  font-size: 0.9rem;
  color: #2d1f2d;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.detail-specs-list li::before {
  content: '♥';
  position: absolute;
  left: 0;
  color: #c44569;
  font-size: 0.75rem;
}

.btn-demo {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  background: transparent;
  color: #c44569;
  border: 2px solid #c44569;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-demo:hover {
  background: rgba(196, 69, 105, 0.1);
  color: #a83a56;
}

/* Related templates */
.detail-related {
  padding: 3rem 1.5rem 4rem;
}

.detail-related-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.detail-related-title {
  font-size: 1.5rem;
  color: #2d1f2d;
  margin-bottom: 1.5rem;
  text-align: center;
}

.detail-related-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .detail-related-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .detail-related-scroll {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.related-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(196, 69, 105, 0.06);
  border: 1px solid rgba(196, 69, 105, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(196, 69, 105, 0.12);
}

.related-preview {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.related-card:hover .related-preview {
  transform: scale(1.03);
}

.related-preview .preview-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.related-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.related-name {
  font-size: 1rem;
  color: #2d1f2d;
  margin-bottom: 0.25rem;
}

.related-theme {
  font-size: 0.8rem;
  color: #5c4a5c;
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.related-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #a83a56;
  margin-bottom: 0.75rem;
}

.btn-related {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #c44569 0%, #a83a56 100%);
  color: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-related:hover {
  box-shadow: 0 4px 14px rgba(196, 69, 105, 0.35);
}

/* Stagger animation for related cards when in view */
.detail-related-scroll .related-card {
  animation: cardFadeIn 0.5s ease both;
}

.detail-related-scroll .related-card:nth-child(1) { animation-delay: 0.05s; }
.detail-related-scroll .related-card:nth-child(2) { animation-delay: 0.1s; }
.detail-related-scroll .related-card:nth-child(3) { animation-delay: 0.15s; }
.detail-related-scroll .related-card:nth-child(4) { animation-delay: 0.2s; }
.detail-related-scroll .related-card:nth-child(5) { animation-delay: 0.25s; }
.detail-related-scroll .related-card:nth-child(6) { animation-delay: 0.3s; }
