/* ============================================================
   ELEVATE WITHIN WELLNESS — theme.css
   ============================================================ */

/* ---- Variables (defaults; overridden by inline CSS via wp_add_inline_style) ---- */
:root {
  --color-primary: #9b6a7a;
  --color-primary-foreground: #ffffff;
  --color-secondary: #f0ece8;
  --color-background: #faf9f7;
  --color-foreground: #1f1f1f;
  --color-muted-fg: #666666;
  --color-border: #e0d9d3;
  --color-button-text: #ffffff;
  --color-blush-light: #c99aaa;

  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 0.5rem;
  --shadow-soft: 0 4px 20px -4px rgba(31,31,31,0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(31,31,31,0.1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --logo-height: 60px;

  --btn-radius: var(--radius);
  --btn-height: 44px;
  --btn-padding: 0.625rem 1.5rem;
  --btn-font-size: 0.9375rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.01em;
  --btn-text-transform: none;
  --btn-icon-padding: 0.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ---- Utilities ---- */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.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; }
.lg-hide { display: block; }
@media (min-width: 1024px) { .lg-hide { display: none !important; } }
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: flex !important; } }

/* ---- Animations ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

/* ---- Link Underline Hover ---- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---- Card Hover ---- */
.card-hover {
  transition: box-shadow 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.card-hover:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* ---- Image Zoom ---- */
.image-zoom { transition: transform 0.7s ease-out; }
.image-zoom:hover { transform: scale(1.05); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  opacity: 0.9;
  background-color: var(--color-primary);
  color: var(--color-button-text);
}

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-secondary);
  opacity: 1;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-secondary:hover { opacity: 0.85; }

.btn-lg { min-height: 52px; padding: 0.75rem 2rem; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 0.4rem 1rem; font-size: 0.875rem; }

.btn-white {
  background-color: var(--color-background);
  color: var(--color-foreground);
}
.btn-white:hover { opacity: 0.9; }

/* ---- Site Logo ---- */
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-foreground);
  line-height: var(--logo-height);
  display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,249,247,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
@media (min-width: 1024px) { .nav-inner { height: 64px; } }

.desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.desktop-logo { margin: 0 3rem; flex-shrink: 0; }

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-foreground);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--color-primary); }
.nav-link--apply {
  color: var(--color-primary);
  font-weight: 500;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-btn:hover { opacity: 0.6; }

@media (max-width: 1023px) {
  .cart-btn.desktop-only {
    display: none !important;
  }
}

.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: 500;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.mobile-controls { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .mobile-controls { display: none; } }

.hamburger-btn {
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.hamburger-btn:hover { opacity: 0.6; }

.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  animation: fadeIn 0.2s var(--transition-smooth);
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 1rem; }
.mobile-link {
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--color-foreground);
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--color-muted-fg); }
.mobile-link--apply { color: var(--color-primary); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 340px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-icon {
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.social-icon:hover { opacity: 0.6; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-foreground); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
.footer-contact-list li svg { flex-shrink: 0; color: var(--color-muted-fg); }
.footer-contact-list a { color: var(--color-muted-fg); transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--color-foreground); }

.footer-bottom {
  padding: 2rem 0 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright { font-size: 0.75rem; color: var(--color-muted-fg); }
.footer-cad { font-size: 0.75rem; color: var(--color-muted-fg); }
.footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}
.footer-credit a {
  color: var(--color-muted-fg);
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--color-foreground); }
.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
@media (min-width: 640px) {
  .footer-bottom-right { flex-direction: row; align-items: center; gap: 1rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 6rem 0 8rem;
  max-width: 32rem;
}
@media (min-width: 1024px) { .hero-content { padding: 8rem 0; } }

.hero-eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary-foreground);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary-foreground);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-primary-foreground);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.2); opacity: 1; }

/* ============================================================
   VALUE BAR
   ============================================================ */
.value-bar {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.value-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 0.875rem;
  text-align: center;
}
@media (min-width: 640px) {
  .value-bar-inner { flex-direction: row; gap: 3rem; }
}
.value-bar-item { display: flex; align-items: center; gap: 0.5rem; }
.value-bar-sep { display: none; opacity: 0.4; }
@media (min-width: 640px) { .value-bar-sep { display: block; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--color-muted-fg);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- About Preview ---- */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-preview-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about-image-wrap {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) { .about-image-wrap { margin-left: 0; } }
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Programs Preview ---- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .programs-grid { grid-template-columns: repeat(3, 1fr); } }

.program-card {
  background: var(--color-background);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
  text-align: center;
}
.program-card .program-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1rem;
  color: var(--color-primary);
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.program-card p { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.6; margin-bottom: 1.5rem; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.testimonial-card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.testimonial-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.testimonial-card-image img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card-body { padding: 1.5rem; }
.stars { display: flex; gap: 2px; margin-bottom: 0.75rem; }
.star-icon { width: 1rem; height: 1rem; fill: var(--color-primary); color: var(--color-primary); }
.testimonial-quote { color: var(--color-muted-fg); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after { content: '"'; }
.testimonial-name { font-size: 0.875rem; font-weight: 500; }
.testimonial-role { font-size: 0.75rem; color: var(--color-muted-fg); }

/* ---- Shop Section ---- */
.shop-section { background: var(--color-secondary); }
/* Home shop: one row of four from tablet up; unrelated .products-grid layouts unchanged */
@media (min-width: 768px) {
  .shop-section .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .shop-section .products-grid { gap: 2rem; }
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* ---- CTA Section ---- */
.cta-section { position: relative; padding: 5rem 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: rgba(31,31,31,0.6); }
.cta-content { position: relative; z-index: 10; text-align: center; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary-foreground);
  margin-bottom: 1rem;
}
.cta-text {
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card a.theme-card-link-wrap { display: block; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-secondary);
  margin-bottom: 1rem;
}
.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease-out;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }

.theme-product-card__info { flex: 1; }
.theme-product-card__category {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.25rem;
}
.theme-product-card__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
  min-width: 0;
  overflow-wrap: break-word;
}
.theme-product-card:hover .theme-product-card__title { opacity: 0.7; }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-fg); }
.theme-product-card__sold-out {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quick-add button */
.theme-product-card__quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,249,247,0.9);
  backdrop-filter: blur(4px);
  color: var(--color-foreground);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
}
.theme-product-card__quick-add:hover,
.theme-product-card__quick-add.is-added {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  transform: scale(1.1);
}
.theme-product-card__quick-add svg { width: 1rem; height: 1rem; }

/* Badges */
.badge-new {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 2px;
  z-index: 1;
}
.badge-sold-out {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-foreground);
  color: var(--color-background);
  border-radius: 2px;
  z-index: 1;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product main { padding-top: 7rem; }
.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

/* Gallery */
.theme-product-gallery { display: flex; flex-direction: column; gap: 1rem; }
#product-main-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-secondary);
  cursor: pointer;
}
#product-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.theme-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.theme-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-thumb-btn.is-active,
.theme-thumb-btn:hover { border-color: var(--color-primary); }

/* Product info */
.theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-category-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.product-description {
  color: var(--color-muted-fg);
  line-height: 1.7;
  margin-bottom: 2rem;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-stock-out {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

/* Quantity + Add to Cart */
.theme-add-to-cart-area {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.theme-add-to-cart-area > table.variations {
  flex: 1 1 100%;
  width: 100%;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem;
  background: transparent;
  color: var(--color-foreground);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }

.theme-qty-input,
input.qty {
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: transparent;
  padding: 0.5rem 0;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-dispatch-notice {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-align: center;
  margin-bottom: 1rem;
}

/* Details / Ingredients */
.product-details-section { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: var(--font-body); }
.product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-list li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.product-details-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.product-ingredients-section { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 2rem; }
.product-ingredients-text { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.6; }

/* Related Products */
.related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* Single product responsive */
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 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: 500; font-size: 0.875rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* ============================================================
   ADD TO CART — WooCommerce override
   ============================================================ */
.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-button-text) !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;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.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-button-text) !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;
}

/* Card compact button */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 2rem !important;
  height: 2rem !important;
  background: rgba(250,249,247,0.9) !important;
  color: var(--color-foreground) !important;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover {
  background: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  transform: scale(1.1);
  opacity: 1 !important;
}

/* Hide "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 loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,31,31,0.2);
  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(--transition-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);
}
.cart-drawer-header-left { display: flex; align-items: center; gap: 0.75rem; }
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}
.cart-clear-btn {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.cart-clear-btn:hover { color: #dc2626; }
.cart-close-btn { padding: 0.25rem; transition: opacity 0.2s; }
.cart-close-btn:hover { opacity: 0.6; }

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty-icon { width: 3rem; height: 3rem; color: var(--color-muted-fg); margin-bottom: 1rem; }
.cart-empty-text { color: var(--color-muted-fg); margin-bottom: 1.5rem; }

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

.cart-item { display: flex; gap: 1rem; }
.cart-item-image {
  width: 80px;
  height: 96px;
  background: var(--color-secondary);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  transition: opacity 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-fg); margin-top: 0.125rem; }
.cart-item-meta { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 0.25rem; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.2s;
  color: var(--color-foreground);
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-btn svg { width: 0.75rem; height: 0.75rem; }
.cart-qty-display { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-fg); transition: color 0.2s; }
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-fg); }

/* ============================================================
   INNER PAGE LAYOUT
   ============================================================ */
.inner-page { padding-top: 6rem; min-height: 100vh; }
@media (min-width: 1024px) { .inner-page { padding-top: 8rem; } }
.page-py { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-foreground); }
.back-link svg { width: 1rem; height: 1rem; }

/* ---- About Page ---- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .about-hero-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.mission-block {
  background: var(--color-secondary);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .mission-block { padding: 4rem; } }

.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  color: var(--color-muted-fg);
  max-width: 40rem;
  margin: 1.5rem auto;
  line-height: 1.5;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card { background: var(--color-secondary); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.value-icon { width: 1.75rem; height: 1.75rem; margin: 0 auto 0.75rem; color: var(--color-primary); }
.value-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; }
.value-desc { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.6; }

.motherhood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .motherhood-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-pair-img { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; }
.photo-pair-img:last-child { margin-top: 2rem; }
.photo-pair-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Programs Page ---- */
.programs-list { display: flex; flex-direction: column; gap: 2rem; max-width: 56rem; margin: 0 auto 5rem; }
.program-full-card {
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--color-primary);
  background: rgba(155,106,122,0.05);
}
@media (min-width: 1024px) { .program-full-card { padding: 2.5rem; } }

.program-full-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.program-full-icon {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  flex-shrink: 0;
}
.program-full-icon svg { width: 1.5rem; height: 1.5rem; display: block; }
.program-full-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.program-full-subtitle { font-size: 0.875rem; color: var(--color-muted-fg); }
.program-full-desc { color: var(--color-muted-fg); line-height: 1.7; margin-bottom: 1.5rem; }
.includes-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; font-family: var(--font-body); }
.includes-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.includes-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-fg); }
.includes-check { width: 1rem; height: 1rem; color: var(--color-primary); flex-shrink: 0; margin-top: 0.125rem; }

.programs-cta-section { position: relative; border-radius: 1rem; overflow: hidden; margin-bottom: 2.5rem; }
.programs-cta-section img { width: 100%; height: 16rem; object-fit: cover; }
@media (min-width: 1024px) { .programs-cta-section img { height: 20rem; } }
.programs-cta-overlay {
  position: absolute; inset: 0;
  background: rgba(31,31,31,0.6);
  display: flex; align-items: center; justify-content: center;
}
.programs-cta-inner { text-align: center; padding: 1.5rem; }
.programs-cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.375rem, 2.5vw, 2rem); color: var(--color-primary-foreground); font-weight: 500; margin-bottom: 1rem; }
.programs-cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; max-width: 28rem; }

/* ---- Transformations Page ---- */
.transformations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .transformations-grid { grid-template-columns: repeat(2, 1fr); } }

.transformation-card {
  background: rgba(155,106,122,0.05);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--color-primary);
}
.transformation-image { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.transformation-image img { width: 100%; height: 100%; object-fit: cover; }
.transformation-meta { font-size: 0.875rem; color: var(--color-muted-fg); margin-bottom: 0.5rem; }
.transformation-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; }
.transformation-desc { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.6; }

.testimonials-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.testimonial-page-card {
  background: var(--color-background);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.quote-icon { width: 1.5rem; height: 1.5rem; color: rgba(155,106,122,0.3); margin-bottom: 0.75rem; }
.testimonial-page-text { color: var(--color-muted-fg); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.testimonial-page-divider { border-top: 1px solid var(--color-border); padding-top: 0.75rem; }
.testimonial-page-name { font-size: 0.875rem; font-weight: 500; }
.testimonial-page-program { font-size: 0.75rem; color: var(--color-muted-fg); }

.trans-cta { background: var(--color-primary); border-radius: 1rem; padding: 2.5rem 2rem; text-align: center; color: var(--color-primary-foreground); }
@media (min-width: 1024px) { .trans-cta { padding: 4rem; } }
.trans-cta h2 { font-family: var(--font-display); font-size: clamp(1.375rem, 2.5vw, 2rem); font-weight: 500; margin-bottom: 1rem; }
.trans-cta p { opacity: 0.9; max-width: 28rem; margin: 0 auto 2rem; }

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 2.5rem; } }

.contact-info-card { background: var(--color-secondary); border-radius: var(--radius); padding: 1.5rem; }
.contact-info-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.contact-info-item svg { width: 1.25rem; height: 1.25rem; color: var(--color-primary); flex-shrink: 0; }
.contact-info-item a { transition: color 0.2s; }
.contact-info-item a:hover { color: var(--color-primary); }
.contact-social-list { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-social-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--color-primary);
}
.contact-social-link:hover { text-decoration: underline; }
.contact-social-link svg { width: 1rem; height: 1rem; }

/* Form */
.theme-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; }
.form-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-fg); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.form-textarea { resize: none; }

/* Success state */
.contact-success { text-align: center; }
.success-icon {
  width: 4rem; height: 4rem;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-icon svg { width: 2rem; height: 2rem; color: var(--color-primary-foreground); }

/* ---- FAQ Page ---- */
.faq-max { max-width: 48rem; margin: 0 auto; }
.faq-category { margin-bottom: 2.5rem; }
.faq-category-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.faq-items { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  transition: background 0.2s;
  gap: 1rem;
}
.faq-question:hover { background: rgba(240,236,232,0.5); }
.faq-question span { font-weight: 500; font-size: 0.875rem; flex: 1; }
.faq-chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--color-muted-fg); transition: transform 0.2s; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s; }
.faq-item.is-open .faq-answer { max-height: 500px; padding: 0 1.25rem 1.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.7; }

.faq-cta { position: relative; margin-top: 4rem; border-radius: 1rem; overflow: hidden; }
.faq-cta img { width: 100%; height: 16rem; object-fit: cover; }
@media (min-width: 1024px) { .faq-cta img { height: 20rem; } }
.faq-cta-overlay {
  position: absolute; inset: 0;
  background: rgba(31,31,31,0.6);
  display: flex; align-items: center; justify-content: center;
}
.faq-cta-inner { text-align: center; padding: 1.5rem; }
.faq-cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.375rem, 2.5vw, 2rem); color: var(--color-primary-foreground); font-weight: 500; margin-bottom: 1rem; }
.faq-cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; max-width: 28rem; }

/* ============================================================
   SHOP / ARCHIVE PAGE
   ============================================================ */
.shop-archive { padding-top: 7rem; min-height: 100vh; }
.shop-archive-header { text-align: center; margin-bottom: 3rem; }
.shop-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) { .shop-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shop-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.shop-archive-grid .theme-product-card { height: 100%; }
.shop-empty { text-align: center; padding: 4rem 0; color: var(--color-muted-fg); }

/* WooCommerce notices — scoped */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* WooCommerce notice styling on shop/archive pages */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  border-left: 4px solid var(--color-primary);
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.woocommerce-notices-wrapper .woocommerce-error { border-left-color: #dc2626; }

/* ============================================================
   PAGE.PHP GENERIC
   ============================================================ */
.page-template { padding-top: 7rem; min-height: 100vh; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
}
.entry-content { max-width: 100%; }

/* ============================================================
   CHECKOUT
   ============================================================ */
body.woocommerce-checkout .entry-content { max-width: 100%; }

body.woocommerce-checkout .wc-block-checkout {
  font-family: var(--font-body);
}

/* Outer block wrapper: avoid nested grid (inner layout has its own grid). */
@media (min-width: 768px) {
  body.woocommerce-checkout .wp-block-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 1fr;
    gap: 2rem;
    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: var(--color-secondary);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Match contact form fields (.form-input / .form-select); do not set padding — WooCommerce defaults apply */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-textarea label {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
}

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,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input {
  width: 100% !important;
  max-width: none !important;
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-size: 0.875rem !important;
  font-family: var(--font-body) !important;
  color: var(--color-foreground) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input::placeholder {
  color: var(--color-muted-fg) !important;
}

/* Classic shortcode checkout */
body.woocommerce-checkout form.checkout .input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout textarea {
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-size: 0.875rem !important;
  font-family: var(--font-body) !important;
  color: var(--color-foreground) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.woocommerce-checkout form.checkout .input-text:focus,
body.woocommerce-checkout form.checkout select:focus,
body.woocommerce-checkout form.checkout textarea:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}

body.woocommerce-checkout form.checkout .input-text::placeholder,
body.woocommerce-checkout form.checkout textarea::placeholder {
  color: var(--color-muted-fg) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  padding: var(--btn-padding) !important;
  min-height: var(--btn-height) !important;
  width: 100%;
  cursor: pointer;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
body.theme-thankyou-page { overflow-x: hidden; }

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
  max-width: 52rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
body.theme-thankyou-page .woocommerce-order-overview li strong { color: var(--color-foreground); }

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

body.theme-thankyou-page .woocommerce-order-details {
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-thankyou-page .woocommerce-order-details__title {
  padding: 1rem 1rem 0.75rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Classic WooCommerce order tables */
body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page table.shop_table.order_details,
body.theme-thankyou-page table.woocommerce-table--order-details {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0;
}

body.theme-thankyou-page .woocommerce-order-details table thead th,
body.theme-thankyou-page table.shop_table.order_details thead th,
body.theme-thankyou-page table.woocommerce-table--order-details thead th {
  background: var(--color-secondary);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

body.theme-thankyou-page .woocommerce-order-details table tbody td,
body.theme-thankyou-page .woocommerce-order-details table tbody th,
body.theme-thankyou-page table.shop_table.order_details tbody td,
body.theme-thankyou-page table.shop_table.order_details tbody th,
body.theme-thankyou-page table.woocommerce-table--order-details tbody td,
body.theme-thankyou-page table.woocommerce-table--order-details tbody th {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details table tbody tr:last-child td,
body.theme-thankyou-page .woocommerce-order-details table tbody tr:last-child th,
body.theme-thankyou-page table.shop_table.order_details tbody tr:last-child td,
body.theme-thankyou-page table.woocommerce-table--order-details tbody tr:last-child td {
  border-bottom: none;
}

body.theme-thankyou-page .woocommerce-order-details table tbody tr:hover td,
body.theme-thankyou-page .woocommerce-order-details table tbody tr:hover th {
  background: rgba(0, 0, 0, 0.02);
}

body.theme-thankyou-page .woocommerce-order-details table tfoot th,
body.theme-thankyou-page table.shop_table.order_details tfoot th,
body.theme-thankyou-page table.woocommerce-table--order-details tfoot th {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: none;
  background: var(--color-secondary);
  text-align: left;
  font-size: 0.875rem;
}

body.theme-thankyou-page .woocommerce-order-details table tfoot td,
body.theme-thankyou-page table.shop_table.order_details tfoot td,
body.theme-thankyou-page table.woocommerce-table--order-details tfoot td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: none;
  background: var(--color-secondary);
  text-align: right;
  font-size: 0.875rem;
}

body.theme-thankyou-page .woocommerce-order-details table tfoot tr.order-total th,
body.theme-thankyou-page .woocommerce-order-details table tfoot tr.order-total td,
body.theme-thankyou-page table.shop_table.order_details tfoot tr.order-total th,
body.theme-thankyou-page table.shop_table.order_details tfoot tr.order-total td {
  border-top: 2px solid var(--color-border);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-foreground);
}

body.theme-thankyou-page .woocommerce-order-details table .product-name,
body.theme-thankyou-page .woocommerce-order-details table tbody th {
  text-align: left;
}

body.theme-thankyou-page .woocommerce-order-details table .product-total,
body.theme-thankyou-page .woocommerce-order-details table td[data-title="Total"] {
  text-align: right;
}

/* Checkout Block — order confirmation tables / lists */
body.theme-thankyou-page .wc-block-order-confirmation-totals-wrapper,
body.theme-thankyou-page .wc-block-components-totals-wrapper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-top: 1.5rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-totals table,
body.theme-thankyou-page .wc-block-components-totals-item table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-totals th,
body.theme-thankyou-page .wc-block-order-confirmation-totals td,
body.theme-thankyou-page .wc-block-components-totals-item th,
body.theme-thankyou-page .wc-block-components-totals-item td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

body.theme-thankyou-page .wc-block-order-confirmation-totals tr:last-child th,
body.theme-thankyou-page .wc-block-order-confirmation-totals tr:last-child td,
body.theme-thankyou-page .wc-block-components-totals-item:last-child th,
body.theme-thankyou-page .wc-block-components-totals-item:last-child td {
  border-bottom: none;
}

body.theme-thankyou-page .wc-block-order-confirmation-totals .wc-block-components-totals-item__label,
body.theme-thankyou-page .wc-block-components-totals-item__label {
  color: var(--color-muted-fg);
}

body.theme-thankyou-page .wc-block-order-confirmation-totals .wc-block-components-totals-item__value,
body.theme-thankyou-page .wc-block-components-totals-item__value {
  text-align: right;
  font-weight: 500;
  color: var(--color-foreground);
}

body.theme-thankyou-page .wc-block-order-confirmation-downloads table,
body.theme-thankyou-page .wc-block-order-confirmation-downloads .shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-downloads th,
body.theme-thankyou-page .wc-block-order-confirmation-downloads td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

body.theme-thankyou-page .wc-block-order-confirmation-downloads thead th {
  background: var(--color-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.theme-thankyou-page .wc-block-order-confirmation-summary-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-top: 1.5rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-summary-list-item {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-summary-list-item:last-child {
  border-bottom: none;
}

body.theme-thankyou-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
}
.error-404-inner { text-align: center; }
.error-404 h1 { font-size: 5rem; font-weight: 700; margin-bottom: 1rem; }
.error-404 p { font-size: 1.25rem; color: var(--color-muted-fg); margin-bottom: 1rem; }

/* ============================================================
   MISCELLANEOUS
   ============================================================ */
.text-muted { color: var(--color-muted-fg); }
.text-primary-color { color: var(--color-primary); }
.bg-secondary-color { background: var(--color-secondary); }
.italic { font-style: italic; }
.font-display { font-family: var(--font-display); }

/* Spacing classes */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.text-center { text-align: center; }
.max-w-lg { max-width: 32rem; margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }

/* Responsive product page layout */
@media (max-width: 767px) {
  .theme-product-layout { gap: 1.5rem; }
  .single-product .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}
