/*
Theme Name: Orvena Design Theme
Theme URI: https://orvenadesign.com
Author: Orvena Design
Author URI: https://orvenadesign.com
Description: A magical, personalized children's storybook WordPress & WooCommerce theme by Orvena Design. Turn every child into the hero of their own illustrated adventure. Featuring an interactive 7-step Story Customizer, live book mockups, WooCommerce cart integration, slide-out cart drawer, and streamlined digital checkout.
Version: 1.0.15
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orvena-design
Tags: e-commerce, custom-menu, featured-images, translation-ready, woocommerce, block-patterns, one-column, wide-blocks
*/

/* =========================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================= */
:root {
  /* Warm Storybook Creams */
  --cream-50: #FFFCF7;
  --cream-100: #FFF8EC;
  --cream-200: #FDEDD3;
  --cream-300: #F8DBA8;

  /* Brand Coral / Terracotta */
  --brand-50: #FFF5F0;
  --brand-100: #FFE8DC;
  --brand-200: #FFD0BA;
  --brand-300: #FFB088;
  --brand-400: #FF8855;
  --brand-500: #F96E3D;
  --brand-600: #E25528;
  --brand-700: #BD421E;
  --brand-800: #97361B;
  --brand-900: #7A2E1A;

  /* Ocean Blues */
  --ocean-50: #F0F9FF;
  --ocean-100: #E0F2FE;
  --ocean-200: #BAE6FD;
  --ocean-300: #7DD3FC;
  --ocean-400: #38BDF8;
  --ocean-500: #0EA5E9;
  --ocean-600: #0284C7;
  --ocean-700: #0369A1;

  /* Meadow Mint */
  --mint-50: #F0FDF4;
  --mint-100: #DCFCE7;
  --mint-200: #BBF7D0;
  --mint-300: #86EFAC;
  --mint-400: #4ADE80;
  --mint-500: #22C55E;
  --mint-600: #16A34A;

  /* Sun Golds */
  --sun-400: #FBBF24;
  --sun-500: #F59E0B;
  --sun-600: #D97706;

  /* Warm Editorial Inks */
  --ink-700: #3D3828;
  --ink-800: #2A2620;
  --ink-900: #1C1915;
  --ink-muted: #6B6554;
  --ink-subtle: #968F7F;

  /* Neutrals */
  --white: #FFFFFF;
  --line: #EEDCC8;
  --line-light: #F6ECE0;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-soft: 0 4px 20px -2px rgba(120, 80, 40, 0.08);
  --shadow-card: 0 8px 30px -4px rgba(120, 80, 40, 0.12);
  --shadow-float: 0 20px 50px -8px rgba(120, 80, 40, 0.18);
  --shadow-glow: 0 0 36px -4px rgba(249, 110, 61, 0.35);

  --max-w: 1280px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-800);
  background-color: var(--cream-50);
  overflow-x: hidden;
  position: relative;
}

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

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-900);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #111;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  top: 1rem;
  line-height: normal;
  padding: 1rem 1.5rem;
  text-decoration: none;
  width: auto;
  z-index: 100000;
}

/* =========================================================
   3. UTILITY CLASSES & PATTERNS
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.warm-bg {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
}

.dot-pattern {
  background-image: radial-gradient(var(--ink-700) 0.85px, transparent 0.85px);
  background-size: 24px 24px;
  opacity: 0.12;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--sun-500) 50%, var(--brand-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-600);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 1rem;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand-500);
  color: var(--white);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--brand-600);
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-600);
  border: 2px solid var(--brand-200);
  padding: 0.8125rem 1.875rem;
  font-size: 1rem;
}

.btn-secondary:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* =========================================================
   4. ANIMATIONS & MICRO-INTERACTIONS
   ========================================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-floatSlow {
  animation: floatSlow 7s ease-in-out infinite;
}

.animate-sparkle {
  animation: sparkle 2.4s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* =========================================================
   5. HEADER & NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 990;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253, 237, 211, 0.7);
  box-shadow: 0 1px 10px rgba(120, 80, 40, 0.04);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px -2px rgba(120, 80, 40, 0.08);
  background: rgba(255, 252, 247, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 48px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo-link,
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

/* Force strict logo sizing and prevent oversized SVGs or uploaded PNGs */
.custom-logo,
.custom-logo-link img,
.custom-logo-link svg,
.brand-link img,
.brand-link svg,
.site-branding img,
.site-branding svg {
  max-height: 44px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-link:hover .brand-icon {
  transform: scale(1.1);
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}

.main-navigation {
  display: none;
}

@media (min-width: 992px) {
  .main-navigation {
    display: flex;
    align-items: center;
  }
}

.main-navigation ul,
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-700);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation a:hover {
  background: var(--cream-200);
  color: var(--brand-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-500);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

@media (min-width: 640px) {
  .header-cta-btn {
    display: inline-flex;
  }
}

.header-cta-btn:hover {
  background: var(--brand-600);
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
  color: var(--white);
}

.header-cta-btn:active {
  transform: scale(0.96);
}

.cart-toggle-btn {
  position: relative;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: var(--radius-md);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-800);
  transition: var(--transition);
}

.cart-toggle-btn:hover {
  background: var(--cream-200);
  color: var(--brand-500);
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand-500);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.125rem 0.4rem;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

.mobile-menu-toggle {
  display: flex;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: var(--radius-md);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.45);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--cream-50);
  box-shadow: var(--shadow-float);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

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

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-800);
}

.mobile-nav-links a:hover {
  background: var(--cream-200);
  color: var(--brand-600);
}

/* =========================================================
   6. HERO SECTION & 3D BOOK MOCKUP
   ========================================================= */
.hero-section {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
}

.hero-blob-1 {
  position: absolute;
  top: 5rem;
  left: 2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 208, 186, 0.4);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  width: 24rem;
  height: 24rem;
  background: rgba(186, 230, 253, 0.3);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 1.25rem;
  line-height: 1.12;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-muted);
  margin-top: 1.25rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.star-rating {
  display: flex;
  color: var(--sun-500);
  gap: 2px;
}

/* 3D / Floating Book Mockup */
.book-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem 2rem;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.book-cover {
  position: relative;
  width: clamp(230px, 46vw, 300px);
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
  z-index: 20;
}

.book-cover:hover {
  transform: rotate(0deg) scale(1.02);
}

.book-cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500) 50%, var(--brand-700));
}

.book-cover-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  color: var(--white);
}

.book-cover-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.book-avatar-circle {
  width: clamp(7.5rem, 18vw, 9.5rem);
  height: clamp(7.5rem, 18vw, 9.5rem);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.book-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.book-cover-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.book-cover-starring {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.35rem;
}

/* Floating background pages */
.book-page-back-1 {
  position: absolute;
  left: -0.5rem;
  top: 4.5rem;
  width: clamp(180px, 36vw, 240px);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotate(-7deg);
  z-index: 10;
}

.book-page-back-2 {
  position: absolute;
  right: -0.5rem;
  top: 7rem;
  width: clamp(180px, 36vw, 240px);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotate(7deg);
  z-index: 10;
}

.book-page-thumb {
  height: 7.5rem;
  overflow: hidden;
}

.book-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-page-text {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--ink-700);
  line-height: 1.45;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-800);
  z-index: 25;
}

/* =========================================================
   7. WHY PARENTS LOVE IT / EMOTIONAL VALUE
   ========================================================= */
.section-padding {
  padding-top: clamp(4.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
}

.emotional-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .emotional-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 4.5rem;
  }
}

.emotional-media-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.emotional-media-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.emotional-quote-card {
  position: absolute;
  bottom: -1.25rem;
  right: -0.75rem;
  max-width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 1.25rem;
  border: 1px solid var(--cream-200);
  display: flex;
  gap: 0.75rem;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--cream-200);
  margin-top: 0.75rem;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}

.benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-500);
  flex-shrink: 0;
}

/* =========================================================
   8. HOW IT WORKS (3-STEP TIMELINE)
   ========================================================= */
.steps-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

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

.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-100);
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.step-icon-box {
  width: 5rem;
  height: 5rem;
  margin: 0.5rem auto 1.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

/* =========================================================
   9. INTERACTIVE PERSONALIZATION EXAMPLE (DEMO)
   ========================================================= */
.demo-section {
  background: var(--cream-100);
  position: relative;
}

.demo-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .demo-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }
}

.demo-submission-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-200);
}

.submission-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .submission-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .submission-label {
    width: 130px;
    flex-shrink: 0;
  }
}

.submission-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-500);
}

.submission-value {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-800);
}

.demo-result-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-float);
  border: 2px solid var(--brand-200);
  position: relative;
  overflow: hidden;
}

.demo-storybook-view {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.demo-mini-cover {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
}

.demo-page-viewer {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
}

.demo-page-viewer-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.demo-page-viewer-text {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--ink-700);
  line-height: 1.5;
}

.demo-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.demo-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cream-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-800);
}

.demo-nav-btn:hover {
  background: var(--cream-300);
}

.demo-pills {
  display: flex;
  gap: 0.35rem;
}

.demo-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--cream-300);
  transition: var(--transition);
}

.demo-pill-dot.active {
  width: 1.5rem;
  background: var(--brand-500);
}

@media (max-width: 768px) {
  .demo-result-card,
  .demo-submission-card {
    padding: 1.5rem 1.125rem;
  }
  .demo-storybook-view {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
  }
  .demo-mini-cover {
    width: 150px;
    max-width: 65%;
    margin: 0 auto;
    transform: rotate(-1deg);
  }
  .demo-page-viewer {
    width: 100%;
  }
  .demo-page-viewer-img {
    height: 220px;
  }
  .demo-page-viewer-text {
    padding: 1rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

/* =========================================================
   10. STORY THEMES CATALOG (12 THEMES)
   ========================================================= */
.theme-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.375rem;
  border-radius: var(--radius-pill);
  background: var(--cream-200);
  border: 1px solid var(--cream-300);
  margin-top: 2rem;
}

.theme-tab-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-700);
  transition: var(--transition);
}

.theme-tab-btn.active {
  background: var(--brand-500);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.themes-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

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

.theme-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.theme-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.theme-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.theme-card:hover .theme-card-media img {
  transform: scale(1.08);
}

.theme-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 25, 21, 0.8) 100%);
}

.theme-card-title {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-tag-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-600);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.theme-card-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.theme-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--brand-600);
}

.theme-card-action:hover {
  gap: 0.75rem;
  color: var(--brand-700);
}

/* =========================================================
   11. WHAT'S INCLUDED CHECKLIST
   ========================================================= */
.included-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

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

.included-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--cream-200);
  font-weight: 700;
  color: var(--ink-800);
  transition: var(--transition);
}

.included-item:hover {
  border-color: var(--mint-400);
  box-shadow: var(--shadow-soft);
}

.check-icon-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--mint-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-600);
  flex-shrink: 0;
}

/* =========================================================
   12. PRICING PACKAGES & ADD-ONS
   ========================================================= */
.pricing-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

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

.package-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.75rem;
  border: 2px solid var(--cream-200);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.package-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-4px);
}

.package-card.popular {
  background: var(--white);
  border-color: var(--brand-400);
  box-shadow: var(--shadow-float);
  transform: scale(1.03);
}

@media (min-width: 1024px) {
  .package-card.popular {
    transform: scale(1.05) translateY(-6px);
  }
}

.popular-ribbon {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}

.package-head {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cream-200);
  margin-bottom: 1.5rem;
}

.package-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
}

.package-tagline {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.package-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-500);
  margin-top: 1rem;
  font-family: var(--font-display);
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  margin-bottom: 2rem;
}

.package-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--ink-700);
  line-height: 1.5;
}

.addons-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

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

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

.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--cream-200);
  transition: var(--transition);
}

.addon-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.addon-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-500);
  flex-shrink: 0;
}

/* =========================================================
   13. CHILD PRIVACY & DATA SAFETY
   ========================================================= */
.trust-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

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

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--white);
  box-shadow: var(--shadow-soft);
}

.trust-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  background: var(--mint-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint-600);
}

/* =========================================================
   14. FAMILY STORIES / TESTIMONIALS
   ========================================================= */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--ink-800);
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.testimonial-author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.testimonial-theme {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* =========================================================
   15. FAQ ACCORDION
   ========================================================= */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-200);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  background: var(--white);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-soft);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-900);
}

.faq-item.active .faq-trigger {
  color: var(--brand-600);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* =========================================================
   16. FINAL CALL TO ACTION
   ========================================================= */
.final-cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600) 60%, var(--brand-700));
  color: var(--white);
  padding: clamp(5rem, 9vw, 7.5rem) 0;
  overflow: hidden;
}

.final-cta-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .final-cta-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.final-cta-heading {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.final-cta-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.25rem;
  max-width: 520px;
}

.btn-cta-white {
  background: var(--white);
  color: var(--brand-600);
  font-size: 1.125rem;
  font-weight: 800;
  padding: 1.125rem 2.5rem;
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-pill);
}

.btn-cta-white:hover {
  background: var(--cream-50);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   17. INTERACTIVE STORY BUILDER MODAL (ORDER FLOW WIZARD)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--cream-50);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-float);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--cream-200);
  background: var(--white);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.modal-close-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-800);
}

.modal-close-btn:hover {
  background: var(--cream-200);
}

/* Progress bar */
.wizard-progress {
  padding: 0.875rem 1.75rem 0.5rem;
  background: var(--cream-50);
}

.wizard-progress-bar {
  display: flex;
  gap: 0.375rem;
}

.wizard-step-tick {
  height: 6px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--cream-200);
  transition: background 0.3s ease;
}

.wizard-step-tick.active {
  background: var(--brand-500);
}

.wizard-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--cream-200);
  background: var(--white);
}

/* Form Styles */
.form-grid {
  display: grid;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 0.375rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-200);
  background: var(--white);
  color: var(--ink-900);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(249, 110, 61, 0.15);
}

/* Photo dropzone */
.photo-upload-zone {
  border: 2px dashed var(--brand-300);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.photo-upload-zone:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.photo-preview-container {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo-preview-container img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Step Pickers */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.theme-picker-card {
  border-radius: var(--radius-md);
  border: 2px solid var(--cream-200);
  background: var(--white);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.theme-picker-card.selected {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(249, 110, 61, 0.2);
}

.theme-picker-thumb {
  height: 90px;
  overflow: hidden;
}

.theme-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-picker-title {
  padding: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
}

/* Style Tone selector */
.tone-picker-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .tone-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tone-picker-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--cream-200);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.tone-picker-card.selected {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

/* Confirmation celebration */
.confirmation-box {
  text-align: center;
  padding: 2.5rem 1rem;
}

.celebrate-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--mint-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* =========================================================
   18. CART DRAWER (SLIDE-OUT WOOCOMMERCE CART)
   ========================================================= */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--white);
  box-shadow: var(--shadow-float);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--cream-200);
}

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

.cart-drawer-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-100);
}

.cart-drawer-item-thumb {
  width: 70px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-100);
}

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

.cart-drawer-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
}

.cart-drawer-item-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--cream-200);
  background: var(--cream-50);
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* =========================================================
   19. MOBILE STICKY BOTTOM BAR
   ========================================================= */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 252, 247, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cream-200);
  padding: 0.75rem 1rem;
  z-index: 900;
}

@media (min-width: 640px) {
  .sticky-cta-mobile {
    display: none;
  }
}

/* =========================================================
   20. FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-100);
  padding-top: 4.5rem;
  padding-bottom: 6rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding-bottom: 3.5rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* =========================================================
   21. WOOCOMMERCE ESSENTIAL STYLES & DIGITAL CHECKOUT
   ========================================================= */
.woocommerce-page-inner {
  padding: 4rem 0 6rem;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.product-card-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-100);
}

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

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

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}

.product-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-500);
  font-family: var(--font-display);
  margin-top: 0.5rem;
}

/* =========================================================
   17. STREAMLINED DIGITAL CHECKOUT & ORDER SUMMARY UI
   ========================================================= */

.orvena-checkout-wrapper {
  padding: clamp(1.5rem, 4vw, 3rem) 0 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-header-banner {
  text-align: center;
  margin-bottom: 2.5rem;
}

.checkout-header-banner .section-label {
  margin-bottom: 0.5rem;
}

.checkout-header-banner .section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink-900);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.2;
}

.checkout-header-banner .section-sub {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Clean Vertical Checkout Flow (Customer Details -> Order Summary -> Payment Options) */
.checkout-vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.checkout-step-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Base Checkout Cards */
.checkout-card,
.checkout-order-summary-card,
.woocommerce-checkout #payment {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--cream-200);
  transition: var(--transition);
}

.checkout-card:hover,
.checkout-order-summary-card:hover,
.woocommerce-checkout #payment:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--cream-300);
}

/* Step 1: Field Layout (First Name, Last Name, Email ONLY) */
.woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

.woocommerce-billing-fields__field-wrapper .form-row {
  margin: 0;
  padding: 0;
  float: none;
  width: 100%;
}

@media (max-width: 580px) {
  .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

.woocommerce-checkout label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 0.5rem;
}

.woocommerce-checkout label .required {
  color: var(--brand-500);
  text-decoration: none;
  margin-left: 0.2rem;
}

.woocommerce-checkout input.input-text {
  width: 100%;
  height: 3.25rem;
  padding: 0.75rem 1.125rem;
  background: var(--cream-50);
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  transition: var(--transition);
  box-sizing: border-box;
}

.woocommerce-checkout input.input-text:focus {
  background: var(--white);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-100);
  outline: none;
}

.woocommerce-checkout input.input-text::placeholder {
  color: var(--ink-subtle);
  opacity: 0.85;
}

/* Step 2: Order Summary Cards & Items List */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-item-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-200);
  position: relative;
  transition: var(--transition);
}

.checkout-item-row:hover {
  background: var(--white);
  border-color: var(--cream-300);
  box-shadow: 0 4px 14px rgba(120, 80, 40, 0.06);
}

/* Interactive Delete Button for Order Item (Failsafe) */
.checkout-remove-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.375rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78125rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
}

.checkout-remove-item-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.checkout-remove-item-btn:active {
  transform: translateY(0);
}

.checkout-remove-item-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.checkout-remove-item-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Step 3: Payment Section & Gateways */
.woocommerce-checkout #payment {
  margin-top: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.woocommerce-checkout #payment li.wc_payment_method {
  background: var(--cream-50);
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
  transition: var(--transition);
  cursor: pointer;
}

.woocommerce-checkout #payment li.wc_payment_method:hover,
.woocommerce-checkout #payment li.wc_payment_method:has(input:checked) {
  background: var(--white);
  border-color: var(--brand-400);
  box-shadow: 0 4px 14px rgba(249, 110, 61, 0.08);
}

.woocommerce-checkout #payment li.wc_payment_method label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
}

.woocommerce-checkout #payment li.wc_payment_method input[type="radio"] {
  accent-color: var(--brand-500);
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--cream-100);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--ink-700);
  line-height: 1.5;
  border-left: 3px solid var(--brand-500);
}

.woocommerce-checkout #payment .place-order {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-200);
}

#place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.125rem 2rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

#place_order:hover {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

/* Empty Cart State */
.empty-cart-wrap {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Story Order Meta in Account / Received */
.story-order-meta-box {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.story-order-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--cream-100);
}

.story-order-meta-row:last-child {
  border-bottom: none;
}

/* Hide Gutenberg Empty Cart Cross-Sells ("New in store") */
.wc-block-cart__empty-cart-products,
.wc-block-cart__empty-cart-wrapper .wp-block-heading,
.wc-block-cart__empty-cart-wrapper .wc-block-grid,
.wc-block-cart__empty-cart-wrapper h2,
.wp-block-woocommerce-cart .wc-block-grid,
.wp-block-woocommerce-cart ul.wc-block-grid__products,
.empty-cart-new-in-store {
  display: none !important;
}

