/* =============================================================
   Crisarific Press — theme.css
   Author: The Free Website Guys
   ============================================================= */

/* ── Google Fonts are loaded via wp_enqueue_style in functions.php ── */

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (design system)
   ───────────────────────────────────────────── */
:root {
  /* Colors — overridden by Customizer via wp_add_inline_style */
  --color-background:         #fcf9f3;
  --color-foreground:         #3d2b50;
  --color-primary:            #966ecf;
  --color-primary-foreground: #ffffff;
  --color-secondary:          #dbf0de;
  --color-muted:              #f1ebf4;
  --color-muted-foreground:   #756586;
  --color-border:             #e6dbeb;
  --color-card:               #ffffff;
  --color-green-deep:         #469b65;
  --color-green:              #86cb93;

  /* Derived colors */
  --color-green-soft:         #d9f2dc;
  --color-purple-soft:        #ebdef7;
  --color-purple-deep:        #7743b1;
  --color-sunshine:           #f8d877;

  /* Gradients */
  --gradient-dreamy: linear-gradient(135deg, var(--color-primary) 0%, var(--color-green) 100%);
  --gradient-sky:    linear-gradient(180deg, #e8dff5 0%, #e0f2e4 100%);

  /* Layout offsets */
  --admin-bar-offset: 0px;

  /* Shadows (tinted with primary) */
  --shadow-soft:     0 8px 30px -8px color-mix(in srgb, var(--color-primary) 18%, transparent);
  --shadow-elevated: 0 18px 50px -12px color-mix(in srgb, var(--color-primary) 28%, transparent);
  --shadow-playful:  0 12px 0 0 color-mix(in srgb, var(--color-primary) 12%, transparent);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4,0,0.2,1);

  /* Typography */
  --font-display: 'Abril Fatface', serif;
  --font-body:    'Cabin', sans-serif;

  /* Border radius */
  --radius:       1.25rem;
  --radius-sm:    0.75rem;
  --radius-full:  9999px;

  /* Buttons */
  --btn-radius:         var(--radius-full);
  --btn-height:         3rem;
  --btn-padding:        0.75rem 2.25rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    700;
  --btn-letter-spacing: 0.05em;
  --btn-text-transform: none;

  /* Logo */
  --logo-height: 44px;

  /* Header */
  --header-height: 80px;

  /* Checkout */
  --checkout-gap:   2rem;
  --card-radius:    1.5rem;
  --section-padding: 2rem;
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ─────────────────────────────────────────────
   3. UTILITIES
   ───────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding: 0 2rem; }
}

.font-display  { font-family: var(--font-display); font-weight: 400; }
.font-body     { font-family: var(--font-body); }
.text-primary  { color: var(--color-primary); }
.text-green-deep { color: var(--color-green-deep); }

.gradient-dreamy { background: var(--gradient-dreamy); }
.gradient-sky    { background: var(--gradient-sky); }

.animate-fade-in  { animation: fadeIn 0.6s var(--ease-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--ease-smooth) forwards; }
.animate-floaty   { animation: floaty 6s ease-in-out infinite; }

@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes floaty  {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes chevronBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(8px); }
}

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
  border-radius: 999px;
}
.link-underline:hover::after { transform: scaleX(1); }

.card-hover { transition: all 0.5s var(--ease-smooth); }
.card-hover:hover { box-shadow: var(--shadow-elevated); transform: translateY(-6px); }

.scroll-section { scroll-margin-top: calc(var(--header-height) + var(--admin-bar-offset) + 1rem); }

.eyebrow-line {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--color-green-deep);
  border-radius: 999px;
}
.green-line { background: var(--color-green); }

/* ─────────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  min-height: var(--btn-height);
  text-decoration: none;
  cursor: pointer;
  transform: scale(1);
  transition:
    transform 0.2s var(--ease-smooth),
    background-color 0.2s var(--ease-smooth),
    color 0.2s var(--ease-smooth),
    border-color 0.2s var(--ease-smooth);
}
.btn-primary:hover,
.btn-outline:hover,
.btn-secondary:hover {
  transform: scale(1.04);
}
.btn-primary:active,
.btn-outline:active,
.btn-secondary:active {
  transform: scale(0.97);
}
.btn-primary svg,
.btn-outline svg,
.btn-secondary svg {
  pointer-events: none;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
}
.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, transparent);
  color: var(--color-primary-foreground);
}

.btn-outline {
  background-color: var(--color-background);
  color: var(--color-primary);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-card);
  color: var(--color-primary);
  border: none;
}
.btn-secondary:hover {
  background-color: var(--color-background);
  color: var(--color-primary);
}

/* CTA banner button — slightly larger hover scale (matches Lovable motion.div) */
.cta-btn:hover {
  transform: scale(1.05);
}
.cta-btn:active {
  transform: scale(0.97);
}

/* ─────────────────────────────────────────────
   5. HEADER
   ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--admin-bar-offset);
  left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.scrolled {
  background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) {
  .site-nav { height: var(--header-height); }
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block !important;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.site-logo-link:hover .site-logo-img { transform: rotate(-12deg); }
.site-logo-text {
  line-height: var(--logo-height);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.site-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-primary {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1;
}
@media (min-width: 1024px) {
  .wordmark-primary { font-size: 1.5rem; }
}
.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-green-deep);
}
@media (min-width: 1024px) {
  .wordmark-sub { font-size: 0.75rem; }
}

/* Desktop nav */
.site-nav-desktop { display: none; }
@media (min-width: 768px) { .site-nav-desktop { display: flex; align-items: center; gap: 2rem; } }

.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-list a,
.site-nav-desktop button,
.theme-nav-list li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}
.theme-nav-list a:hover,
.site-nav-desktop button:hover,
.theme-nav-list li a:hover { color: var(--color-primary); }

/* Nav actions */
.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}
.cart-btn:hover { color: var(--color-primary); }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: color 0.2s ease;
}
.mobile-menu-btn .icon-menu,
.mobile-menu-btn .icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn:hover { color: var(--color-primary); }

/* Mobile menu */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  border-top: 1px solid transparent;
  padding: 0;
  pointer-events: none;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s ease,
    border-color 0.35s ease;
}
.mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  border-top-color: var(--color-border);
  padding: 1rem 0 1.25rem;
  pointer-events: auto;
}
.mobile-menu[hidden] {
  display: block;
  visibility: hidden;
}
.mobile-menu.is-open[hidden] {
  visibility: visible;
}
.theme-mobile-nav-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.theme-mobile-nav-list > li {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open .theme-mobile-nav-list > li {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu.is-open .theme-mobile-nav-list > li:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .theme-mobile-nav-list > li:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .theme-mobile-nav-list > li:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open .theme-mobile-nav-list > li:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.is-open .theme-mobile-nav-list > li:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.is-open .theme-mobile-nav-list > li:nth-child(6) { transition-delay: 0.36s; }
.theme-mobile-nav-list a,
.theme-mobile-nav-list button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.75rem 0;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list button:hover { color: var(--color-primary); }

/* WordPress admin bar offset */
body.admin-bar {
  --admin-bar-offset: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}
body.admin-bar .site-header {
  top: var(--admin-bar-offset);
}

/* Hamburger icon animation */
.mobile-menu-btn .icon-menu,
.mobile-menu-btn .icon-close {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.mobile-menu-btn[aria-expanded="true"] .icon-menu {
  transform: rotate(90deg);
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .icon-close {
  transform: rotate(0deg);
  opacity: 1;
}
.mobile-menu-btn .icon-close {
  transform: rotate(-90deg);
  opacity: 0;
}

/* ─────────────────────────────────────────────
   6. HERO SECTION
   ───────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 40%, transparent) 0%, color-mix(in srgb, var(--color-background) 30%, transparent) 50%, var(--color-background) 100%);
}

.hero-container {
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-container { padding-top: 6rem; padding-bottom: 6rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 2rem; }
}

/* Copy */
.hero-copy { text-align: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-green-deep);
}
.badge-icon { color: var(--color-primary); flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}
.hero-title-br { display: none; }
@media (min-width: 640px) { .hero-title-br { display: block; } }

.hero-description {
  color: rgba(61,43,94,0.75);
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .hero-description { margin-left: 0; font-size: 1.125rem; }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; gap: 0.75rem; } }
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-start; } }

.hero-cta-primary,
.hero-cta-outline {
  padding: 0.75rem 2.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

/* Book cover */
.hero-book-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-book-glow {
  position: absolute;
  inset: -1.5rem;
  background: var(--gradient-dreamy);
  border-radius: 2.5rem;
  filter: blur(2rem);
  opacity: 0.3;
  pointer-events: none;
}
.hero-book-img {
  position: relative;
  width: 15rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px) { .hero-book-img { width: 18rem; } }
@media (min-width: 768px) { .hero-book-img { width: 20rem; } }

/* Scroll indicator */
.hero-scroll-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-scroll-chevron {
  display: block;
  animation: chevronBounce 1.6s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   7. ABOUT SECTION
   ───────────────────────────────────────────── */
.about-section {
  position: relative;
  overflow: hidden;
}
.about-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3rem);
  z-index: 0;
}
.about-blob-top    { top: -8rem; right: -5rem; width: 28rem; height: 28rem; background: rgba(139,92,246,.10); }
.about-blob-bottom { bottom: -8rem; left: -5rem; width: 24rem; height: 24rem; background: rgba(105,196,137,.15); }

.about-container { padding-top: 4rem; padding-bottom: 6rem; position: relative; z-index: 1; }
@media (min-width: 768px) { .about-container { padding-top: 6rem; } }

.about-card {
  background: var(--color-card);
  border-radius: 2rem;
  border: 1px solid rgba(139,92,246,.10);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}
.about-card-inner-border {
  position: absolute;
  inset: 0.75rem;
  border-radius: 1.5rem;
  border: 2px dashed rgba(139,92,246,.15);
  pointer-events: none;
  z-index: 1;
}
.about-card-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}
@media (min-width: 640px)  { .about-card-content { padding: 2.5rem; } }
@media (min-width: 768px)  { .about-card-content { padding: 3.5rem; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
}

/* About copy */
.about-copy { text-align: center; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .about-copy { text-align: left; } }

.about-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}
@media (min-width: 1024px) { .about-eyebrow-wrap { justify-content: flex-start; } }
.about-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green-deep);
}

.about-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.about-title-highlight {
  position: relative;
  display: inline-block;
}
.about-underline-svg {
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 8px;
  color: var(--color-green);
}

.about-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(61,43,94,.80);
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .about-description { font-size: 1.125rem; } }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .about-stats { gap: 1rem; } }

.about-stat {
  background: rgba(209,250,229,.40);
  border: 1px solid rgba(139,92,246,.10);
  border-radius: 1rem;
  padding: 0.75rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.about-stat:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.about-stat-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  white-space: nowrap;
}
@media (min-width: 640px) { .about-stat-label { font-size: 0.625rem; letter-spacing: 0.22em; } }
.about-stat-value {
  font-size: 0.875rem;
  line-height: 1.2;
  margin-top: 0.25rem;
  color: var(--color-primary);
  white-space: nowrap;
}
@media (min-width: 640px) { .about-stat-value { font-size: 1.25rem; } }
@media (min-width: 768px) { .about-stat-value { font-size: 1.5rem; } }

/* About image */
.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-image-glow {
  position: absolute;
  inset: -0.75rem;
  background: var(--gradient-dreamy);
  border-radius: 2rem;
  transform: rotate(-3deg);
  opacity: 0.25;
}
.about-image-frame {
  position: relative;
  background: var(--color-card);
  padding: 0.75rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-elevated);
  transform: rotate(2deg);
}
.about-image {
  width: 16rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.5rem;
}
@media (min-width: 640px) { .about-image { width: 18rem; } }
.about-image-badge {
  position: absolute;
  bottom: -1rem;
  right: -0.75rem;
  background: var(--color-card);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(139,92,246,.15);
  transform: rotate(3deg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-foreground);
  white-space: nowrap;
}
.about-badge-pulse {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--color-green-deep);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* About footer */
.about-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.25rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(139,92,246,.10);
}
@media (min-width: 640px) {
  .about-footer { flex-direction: row; }
}
.about-footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.about-heart-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(139,92,246,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.about-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139,92,246,.90);
}
.about-cta { flex-shrink: 0; }

/* ─────────────────────────────────────────────
   8. SHOP SECTION
   ───────────────────────────────────────────── */
.shop-section { }
.shop-container { padding-top: 5rem; padding-bottom: 7rem; }
@media (min-width: 768px) { .shop-container { padding-top: 7rem; } }

.shop-header { text-align: center; margin-bottom: 3.5rem; }
.shop-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  margin-bottom: 0.75rem;
}
.shop-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-foreground);
  margin-bottom: 2.5rem;
}
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.shop-filter-btn {
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}
.shop-filter-btn:hover,
.shop-filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

/* Product grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .theme-product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
}

.shop-product-grid { max-width: 80rem; margin: 0 auto; }

/* Card */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.theme-product-card-wrap.shop-card-hidden { display: none; }

.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
}

.theme-product-card__image-wrapper {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  background-color: rgba(209,250,229,.60);
  margin-bottom: 1rem;
  position: relative;
}
.theme-product-card__image-wrapper * { pointer-events: none; }

.theme-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }

/* Badges */
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.product-badge--new {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}
.product-badge--sold-out {
  background: var(--color-foreground);
  color: var(--color-background);
}

.theme-product-card__info { flex: 1; padding: 0 0.25rem; }
.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-product-card__name { font-size: 1rem; } }
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-green-deep);
}
/* WooCommerce price HTML */
.theme-product-card__price .woocommerce-Price-currencySymbol,
.theme-product-card__price .amount { color: var(--color-green-deep); }

/* Load more */
.shop-load-more-wrap { text-align: center; margin-top: 2.5rem; }
.shop-no-results { text-align: center; padding: 5rem 0; }
.shop-no-results[hidden] { display: none; }
.shop-empty-text { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ─────────────────────────────────────────────
   9. AUTHOR SECTION
   ───────────────────────────────────────────── */
.author-section {
  background-color: rgba(209,250,229,.40);
  position: relative;
  overflow: hidden;
}
.author-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3rem);
}
.author-blob-top    { top: -6rem; left: -5rem; width: 20rem; height: 20rem; background: rgba(105,196,137,.20); }
.author-blob-bottom { bottom: -6rem; right: -5rem; width: 20rem; height: 20rem; background: rgba(139,92,246,.15); }

.author-container {
  padding-top: 4rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .author-container { padding-top: 6rem; } }

.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .author-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
}

/* Photo */
.author-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .author-photo-wrap { justify-content: flex-start; } }

.author-photo-glow {
  position: absolute;
  inset: -0.75rem;
  background: var(--gradient-dreamy);
  border-radius: 2rem;
  transform: rotate(3deg);
  opacity: 0.30;
}
.author-photo-frame {
  position: relative;
  background: var(--color-card);
  padding: 0.75rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-elevated);
  transform: rotate(-2deg);
}
.author-photo {
  width: 18rem;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 1.5rem;
}
@media (min-width: 768px) { .author-photo { width: 20rem; } }

.author-photo-badge {
  position: absolute;
  bottom: -1rem;
  right: -0.5rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  transform: rotate(3deg);
  white-space: nowrap;
}

/* Author content */
.author-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.author-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green-deep);
}

.author-title {
  font-size: clamp(1.875rem, 4vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}
.author-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(61,43,94,.80);
  margin-bottom: 1.25rem;
  max-width: 42rem;
}
@media (min-width: 768px) { .author-bio { font-size: 1.125rem; } }

.author-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.author-interest-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(61,43,94,.80);
}
.author-interest-chip svg { color: var(--color-primary); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   10. CTA BANNER
   ───────────────────────────────────────────── */
.cta-section { }
.cta-container { padding-top: 5rem; padding-bottom: 5rem; }

.cta-card {
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-elevated);
  color: var(--color-primary-foreground);
  transition: transform 0.4s var(--ease-smooth);
}
@media (min-width: 768px) { .cta-card { padding: 5rem; } }
.cta-card:hover { transform: scale(1.01); }

.cta-blob {
  position: absolute;
  width: 16rem;
  height: 16rem;
  background: rgba(255,255,255,.15);
  filter: blur(3rem);
  border-radius: 50%;
  pointer-events: none;
}
.cta-blob-top    { top: -4rem; left: -2.5rem; }
.cta-blob-bottom { bottom: -4rem; right: -2.5rem; }

.cta-sparkles {
  display: block;
  margin: 0 auto 1rem;
  opacity: 0.9;
}
.cta-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.cta-description {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
}
.cta-btn { font-size: 0.875rem; }

/* ─────────────────────────────────────────────
   11. CONTACT SECTION
   ───────────────────────────────────────────── */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-bg-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}
.contact-blob {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3rem);
}
.contact-blob-top    { top: -5rem; left: -4rem; background: rgba(139,92,246,.15); }
.contact-blob-bottom { bottom: -5rem; right: -4rem; background: rgba(105,196,137,.20); }

.contact-container {
  padding-top: 6rem;
  padding-bottom: 8rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .contact-container { padding-top: 8rem; } }

.contact-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  margin-bottom: 1.5rem;
}
.eyebrow-dash {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--color-green);
  border-radius: 999px;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}

.contact-description {
  color: rgba(61,43,94,.70);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.contact-open-modal-btn {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.25rem 2.5rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) {
  .contact-open-modal-btn { padding: 1.5rem 3.5rem; font-size: 1rem; }
}

/* Contact chips */
.contact-chips {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .contact-chips { gap: 1rem; } }

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-card);
  border: 1px solid rgba(139,92,246,.10);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(61,43,94,.80);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-decoration: none;
}
.contact-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(139,92,246,.30);
  color: var(--color-primary);
}
.chip-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(139,92,246,.10);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.contact-chip:hover .chip-icon-wrap {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* ─────────────────────────────────────────────
   12. FOOTER
   ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: rgba(209,250,229,.40);
}
.site-footer .container-wide { padding-top: 3rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
  .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.footer-logo-link { margin-bottom: 1rem; display: inline-flex; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 28rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.footer-tagline-cta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 0.75rem;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  margin-bottom: 1rem;
}

.theme-footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav a,
.theme-footer-nav button {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: color 0.2s ease;
  text-decoration: none;
}
.theme-footer-nav a:hover,
.theme-footer-nav button:hover { color: var(--color-primary); }

.footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-icon { color: var(--color-primary); flex-shrink: 0; }
.footer-contact-link {
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-contact-link:hover { color: var(--color-primary); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-copyright, .footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-credit-link {
  text-decoration: underline;
  transition: color 0.2s ease;
}
.footer-credit-link:hover { color: var(--color-primary); }

/* ─────────────────────────────────────────────
   13. CONTACT MODAL
   ───────────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal[hidden] { display: none; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61,43,94,.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 90svh;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.45s var(--ease-smooth);
}

.contact-modal-inner {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  box-shadow: var(--shadow-elevated);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .contact-modal-inner { padding: 2.5rem; } }

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(61,43,94,.60);
  transition: all 0.2s ease;
  z-index: 10;
}
.contact-modal-close:hover { background: var(--color-muted); color: var(--color-foreground); }

.contact-modal-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  margin-bottom: 0.5rem;
}
.contact-modal-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin-top: 0.5rem;
  color: var(--color-foreground);
}
.contact-modal-header { margin-bottom: 1.75rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }

.contact-form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(61,43,94,.70);
}
.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.3s ease;
  outline: none;
}
.contact-input::placeholder { color: var(--color-muted-foreground); }
.contact-input:focus { border-color: var(--color-primary); }
.contact-textarea { resize: none; }

.contact-submit {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-icon { flex-shrink: 0; }

/* Success state */
.contact-modal-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.contact-modal-success[hidden] { display: none; }
.contact-modal-form-state[hidden] { display: none; }

.success-icon-wrap {
  width: 4rem;
  height: 4rem;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary-foreground);
  animation: scaleIn 0.5s var(--ease-smooth);
}
@keyframes scaleIn { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(0deg); } }

.success-title {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}
.success-text { color: var(--color-muted-foreground); }

/* ─────────────────────────────────────────────
   14. CART DRAWER
   ───────────────────────────────────────────── */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,43,94,.20);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 200;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-smooth);
}
body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}
#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-size: 1.125rem;
  color: var(--color-foreground);
}
.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-foreground);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.cart-drawer-close:hover { opacity: 1; }

/* Empty state */
.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1rem;
}
.cart-empty-icon { color: var(--color-muted-foreground); }
.cart-empty-text { color: var(--color-muted-foreground); }

/* Cart items */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item { display: flex; gap: 1rem; align-items: flex-start; }
.cart-item-image-link {
  width: 5rem;
  height: 6rem;
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  border-radius: 0.5rem;
}
.cart-item-image { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.cart-item-price .amount { color: var(--color-muted-foreground); }

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
  color: var(--color-foreground);
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-display {
  font-size: 0.875rem;
  width: 1.5rem;
  text-align: center;
}
.cart-item-remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}
.cart-item-remove:hover { color: var(--color-foreground); }

/* Cart footer */
.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }
.cart-free-shipping { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-checkout-btn { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────
   15. SINGLE PRODUCT PAGE
   ───────────────────────────────────────────── */
.single-product-main { padding-top: calc(var(--header-height) + 1rem); }
.single-product-main .container-wide { padding-bottom: 5rem; }

.product-back-link-wrap { padding: 1.5rem 0; }
.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s ease;
}
.product-back-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Gallery */
.theme-product-gallery { min-width: 0; max-width: 100%; }
.product-main-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  background: rgba(209,250,229,.60);
  margin-bottom: 1rem;
}
.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.product-thumb {
  aspect-ratio: 1;
  width: calc(20% - 0.4rem);
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
}
.product-thumb:hover { opacity: 1; }
.product-thumb.is-active { border-color: var(--color-primary); opacity: 1; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-categories { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); display: block; margin-bottom: 0.5rem; }
.product-categories a { color: var(--color-muted-foreground); transition: color 0.2s; }
.product-categories a:hover { color: var(--color-primary); }

.product-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-foreground);
  margin: 0.5rem 0 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-price { font-size: 1.5rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1.5rem; }
.product-price .woocommerce-Price-amount { color: var(--color-primary); }

.product-sold-out-badge {
  display: inline-block;
  background: var(--color-foreground);
  color: var(--color-background);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.product-description {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  width: 3rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* WC add-to-cart button overrides */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
  flex: 1 1 auto;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Hide WC "View cart" link */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Button lock during request */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Variable product variations */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; font-size: 0.875rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.theme-attr-select-hidden { display: none !important; }
.reset_variations {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}
.reset_variations:hover { color: var(--color-primary); }

.single_variation_wrap { margin-top: 1rem; }
.woocommerce-variation-price { margin-bottom: 1rem; }
.woocommerce-variation-price .price { font-size: 1.5rem; color: var(--color-primary); }
.woocommerce-variation-availability { margin-bottom: 1rem; font-size: 0.875rem; }

/* Product details */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 1rem;
}
.product-details-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-short-desc ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.product-short-desc li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.product-short-desc li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Related products */
.related-products-section {
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-border);
}
.related-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.related-products-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
  .related-products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────────────────────────────────────────
   16. SHOP ARCHIVE PAGE
   ───────────────────────────────────────────── */
.shop-archive-main { padding-top: calc(var(--header-height) + 2rem); }
.shop-archive-header { margin-bottom: 2rem; }
.shop-archive-header h1,
.woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-foreground);
}
.shop-archive-grid { margin-bottom: 3rem; }

/* ─────────────────────────────────────────────
   17. PAGE TEMPLATE (checkout, standard pages)
   ───────────────────────────────────────────── */
.site-main { min-height: 60vh; }
.theme-no-hero .site-main { padding-top: var(--header-height); }
.page-content-wrap { padding-top: 3rem; padding-bottom: 4rem; }
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-foreground);
  margin-bottom: 2rem;
}
.entry-content { line-height: 1.7; }

/* ─────────────────────────────────────────────
   18. WOOCOMMERCE CHECKOUT
   ───────────────────────────────────────────── */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content {
  max-width: 100%;
}
/* Two-column layout */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: hsl(280 30% 94%);
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  outline: none;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: var(--btn-font-weight) !important;
}
body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-foreground);
}

/* ─────────────────────────────────────────────
   19. THANK YOU PAGE
   ───────────────────────────────────────────── */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { max-width: 100%; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding-bottom: 1rem;
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 1.5rem; background: var(--color-muted); border-radius: var(--card-radius); margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; color: var(--color-primary); font-weight: 700; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { font-style: normal; overflow-wrap: break-word; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; font-weight: 600; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

/* ─────────────────────────────────────────────
   20. WOOCOMMERCE NOTICES
   ───────────────────────────────────────────── */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.woocommerce-message { background: var(--color-green-soft); color: #145a32; border-left: 4px solid var(--color-green-deep); }
.woocommerce-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.woocommerce-info    { background: var(--color-muted); color: var(--color-foreground); border-left: 4px solid var(--color-primary); }

/* ─────────────────────────────────────────────
   21. RESPONSIVE — SINGLE PRODUCT
   ───────────────────────────────────────────── */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* ─────────────────────────────────────────────
   22. PAGE WRAPPER
   ───────────────────────────────────────────── */
#page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
#page-wrapper > .site-main,
#page-wrapper > main { flex: 1; }

 — remove extra UL wrapper styles
   ───────────────────────────────────────────── */
.theme-nav-list.menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-footer-nav.menu { list-style: none; margin: 0; padding: 0; }
.theme-mobile-nav-list.menu { list-style: none; margin: 0; padding: 0; }

/* WP adds <ul class="children"> inside nav menus — hide sub-menus (no design for them) */
.theme-nav-list .sub-menu,
.theme-footer-nav .sub-menu,
.theme-mobile-nav-list .sub-menu { display: none; }

/* ─────────────────────────────────────────────
   24. WooCommerce single product — post_class() wrappers
   ───────────────────────────────────────────── */
.woocommerce-page .woocommerce,
.woocommerce { display: contents; }

/* ─────────────────────────────────────────────
   25. SCREEN-READER ONLY
   ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

