/* ============================================================
   BeYarn Your Imagination — theme.css
   All visual styling for the WordPress theme.
   Colors are applied via CSS custom properties from functions.php.
   ============================================================ */

/* ---- Google Fonts fallbacks (loaded via wp_enqueue_style) ---- */
:root {
  --font-display:    'Fraunces', Georgia, serif;
  --font-body:       'Nunito', Arial, sans-serif;
  --font-condensed:  'Archivo Black', Arial Black, sans-serif;
  --font-serif:      Georgia, 'Times New Roman', Times, serif;

  /* Color defaults (overridden by inline style from functions.php) */
  --color-background:    #f9f7f0;
  --color-foreground:    #312131;
  --color-primary:       #962c4f;
  --color-accent:        #3b9b93;
  --color-teal:          #4b9b80;
  --color-rosa:          #d74273;
  --color-marigold:      #eaab3e;
  --color-lilac:         #a687c5;
  --color-nopal:         #4d2e4d;
  --color-butter:        #f5eee0;
  --color-lavender-mist: #ebd6ff;
  --color-blush-pink:    #f4c2d7;
  --color-card:          #f3ede2;
  --color-border:        #dad3c8;
  --color-muted-fg:      #655365;
  --logo-height:         60px;

  /* Spacing / design tokens */
  --radius:        0.75rem;
  --btn-radius:    9999px;
  --btn-height:    3rem;
  --btn-padding:   0.875rem 2rem;
  --btn-font-size: 0.75rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.22em;
  --btn-text-transform: uppercase;
  --card-radius:   0;
  --header-height: 5rem;
  --announcement-height: 0px;
  --site-top-offset: 5rem;
  --wp-adminbar-height: 0px;
  --shadow-soft:   0 4px 20px -4px rgba(46,31,48,0.08);
  --shadow-elevated: 0 8px 40px -8px rgba(46,31,48,0.16);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  max-width: 100%;
  overflow-x: clip;
}
body {
  max-width: 100%;
}
.site-wrapper {
  overflow-x: clip;
}
body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-inline: 2rem; }
}

.font-condensed { font-family: var(--font-condensed); letter-spacing: -0.01em; }
.font-display   { font-family: var(--font-display); font-weight: 400; }
.font-body      { font-family: var(--font-body); }
.font-serif     { font-family: var(--font-serif); }

/* Small uppercase labels (featured, shop, product category) */
.label-caps {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Section eyebrows — Lovable: 12px / 0.32em tracking */
.about-label.label-caps,
.andrea-label.label-caps,
.faq-label.label-caps,
.services-label.label-caps,
.cta-label.label-caps {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
}

.divider-dotted {
  border-top: 1px dotted color-mix(in srgb, var(--color-foreground) 35%, transparent);
}

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ============================================================
   ANIMATION — FADE-UP (triggered by JS, matches Lovable motion)
   ============================================================ */
.js-animate-section { opacity: 1; }
.js-animate-item,
.js-animate-fade {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-smooth);
  transition-delay: var(--animate-delay, 0ms);
  will-change: opacity, transform;
}
.js-animate-item.is-visible,
.js-animate-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroCtasIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes successIconPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes faqPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.6s var(--ease-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--ease-smooth) forwards; }

@media (prefers-reduced-motion: reduce) {
  .js-animate-item,
  .js-animate-fade,
  .hero-inner,
  .hero-title,
  .hero-ctas,
  .contact-modal__box,
  .contact-success,
  .faq-panel.is-entering {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-video,
  .hero-poster-img {
    transform: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  #theme-cart-drawer,
  body.cart-open #theme-cart-drawer,
  #theme-cart-overlay {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.beyarn-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-foreground);
  color: var(--color-background);
  border: 1px solid var(--color-foreground);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  font-family: var(--font-body);
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.beyarn-btn-primary:hover { opacity: 0.85; }

.beyarn-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  font-family: var(--font-body);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.beyarn-btn-outline:hover {
  background: var(--color-foreground);
  color: var(--color-background);
}

.beyarn-btn-outline-nopal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-nopal);
  border: 1px solid var(--color-nopal);
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.beyarn-btn-outline-nopal:hover {
  background: var(--color-nopal);
  color: var(--color-background);
}

.beyarn-btn-outline-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.beyarn-btn-outline-teal:hover {
  background: var(--color-teal);
  color: var(--color-background);
}

.beyarn-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  color: var(--color-foreground);
  border: 1px solid var(--color-foreground);
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.beyarn-btn-white:hover {
  background: var(--color-foreground);
  color: var(--color-background);
}

.beyarn-btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-background);
  border: 1px solid rgba(245,240,232,0.7);
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.beyarn-btn-outline-white:hover {
  border-color: var(--color-background);
  background: rgba(245,240,232,0.1);
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  position: fixed;
  top: var(--wp-adminbar-height, 0px);
  left: 0;
  right: 0;
  z-index: 51;
  background: var(--color-background);
  color: var(--color-foreground);
  border-bottom: 1px solid rgba(46,31,48,0.15);
  transition:
    transform 0.3s var(--ease-smooth),
    opacity 0.3s var(--ease-smooth),
    max-height 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth);
  max-height: 4rem;
}
.announcement-bar.is-collapsed {
  opacity: 0;
  transform: translateY(-100%);
  max-height: 0;
  border-bottom-color: transparent;
  pointer-events: none;
  overflow: hidden;
}
.announcement-bar__inner {
  padding-block: 0.625rem;
  text-align: center;
}
.announcement-bar__text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.announcement-bar__dismiss {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  cursor: pointer;
  background: none; border: none;
}
.announcement-bar__dismiss:hover { opacity: 1; }

/* ============================================================
   HEADER
   ============================================================ */
/* WordPress admin bar — fixed shell sits below toolbar when logged in */
.admin-bar {
  --wp-adminbar-height: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar {
    --wp-adminbar-height: 46px;
  }
}

.site-wrapper {
  padding-top: var(--site-top-offset);
  transition: padding-top 0.3s var(--ease-smooth);
}
body.has-announcement-bar:not(.announcement-collapsed) {
  --announcement-height: 2.375rem;
  --site-top-offset: calc(var(--header-height) + var(--announcement-height));
}
body.has-announcement-bar.announcement-collapsed {
  --announcement-height: 0px;
  --site-top-offset: var(--header-height);
}

.site-header {
  position: fixed;
  top: calc(var(--wp-adminbar-height, 0px) + var(--announcement-height, 0px));
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  transition:
    top 0.3s var(--ease-smooth),
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  border-top: 2px solid color-mix(in srgb, var(--color-lilac) 40%, transparent);
  border-bottom: 1px solid transparent;
  background: var(--color-background);
}
.site-header.is-solid,
.site-header.scrolled,
.site-header.is-menu-open {
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: color-mix(in srgb, var(--color-border) 60%, transparent);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
  :root {
    --header-height: 6rem;
  }
  body:not(.has-announcement-bar) {
    --site-top-offset: 6rem;
  }
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
@media (min-width: 768px) { .site-nav { height: 6rem; } }

.site-nav__left {
  display: none;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}
@media (min-width: 1024px) { .site-nav__left { display: flex; } }

.site-nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
}

.site-nav__right-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .site-nav__right-links { display: flex; } }

.site-nav__icons { display: flex; align-items: center; gap: 0.5rem; }

.site-nav__link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none; border: none;
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--color-foreground); }

.site-nav__hamburger {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  margin-left: -0.5rem;
  transition: opacity 0.2s ease;
}
.site-nav__hamburger:hover { opacity: 0.6; }
@media (min-width: 1024px) { .site-nav__hamburger { display: none; } }

/* Logo */
.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}
.site-logo-text {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: var(--logo-height);
  display: block;
  white-space: nowrap;
}
.footer-logo { position: static; transform: none; }

/* Cart button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  transition: border-color 0.2s ease;
  cursor: pointer;
}
.cart-btn:hover { border-color: var(--color-foreground); }

.theme-cart-count {
  font-size: 0.8125rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  min-width: 1ch;
  text-align: center;
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  padding-block: 1rem;
}
.mobile-menu:not([hidden]) {
  animation: fadeIn 0.25s var(--ease-smooth) forwards;
}
.mobile-menu__link {
  display: block;
  width: 100%;
  text-align: left;
  padding-block: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  background: none; border: none;
}
.mobile-menu__link:hover { opacity: 0.6; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--color-background);
}
.hero-inner {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 620px;
  overflow: hidden;
  opacity: 0;
  animation: heroFadeIn 1.1s var(--ease-smooth) forwards;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video,
.hero-poster-img {
  position: absolute;
  inset-x: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}
.hero-scrim-bottom {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  height: 33%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 64rem;
  padding-inline: 0.5rem;
}
.hero-title {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  color: var(--color-background);
  line-height: 0.88;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 11vw, 9rem);
  opacity: 0;
  transform: translateY(22px);
  animation: heroTitleIn 1s var(--ease-smooth) 0.5s forwards;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(14px);
  animation: heroCtasIn 0.7s var(--ease-smooth) 0.85s forwards;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 0;
}
.hero-btn--primary {
  background: var(--color-background);
  color: var(--color-foreground);
  border: 1px solid var(--color-background);
}
.hero-btn--primary:hover {
  background: var(--color-foreground);
  color: var(--color-background);
}
.hero-btn--outline {
  background: transparent;
  color: var(--color-background);
  border: 1px solid rgba(245,240,232,0.8);
}
.hero-btn--outline:hover {
  background: var(--color-background);
  color: var(--color-foreground);
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.category-tiles-section {
  background: var(--color-background);
}
.category-tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.5rem 0.75rem 0;
}
@media (min-width: 768px) {
  .category-tiles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2.5rem 1rem 0;
  }
}
.category-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-card);
  padding: 1.5rem;
  display: block;
  cursor: pointer;
}
@media (min-width: 768px) {
  .category-tile { padding: 2.5rem; aspect-ratio: 16/11; }
}
.category-tile__img {
  position: absolute;
  inset: 1.5rem;
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  object-fit: cover;
  transition: transform 1200ms ease-out;
}
@media (min-width: 768px) {
  .category-tile__img {
    inset: 2.5rem;
    width: calc(100% - 5rem);
    height: calc(100% - 5rem);
  }
}
.category-tile:hover .category-tile__img { transform: scale(1.03); }
.category-tile__img--empty { background: var(--color-muted-fg); opacity: 0.1; }
.category-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.category-tile__label {
  display: block;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  color: var(--color-foreground);
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  filter: drop-shadow(0 2px 8px rgba(245,240,232,0.9));
}
.category-tile__cta {
  display: block;
  margin-top: 1.25rem;
  background: var(--color-foreground);
  color: var(--color-background);
  padding: 0.625rem 1.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
}
.category-tile__overlay { flex-direction: column; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  margin-top: 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  overflow: hidden;
  background: var(--color-background);
}
@media (min-width: 768px) { .marquee-wrap { margin-top: 3.5rem; } }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-block: 1.25rem;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
@media (min-width: 768px) {
  .marquee-track {
    gap: 3rem;
    padding-block: 1.5rem;
  }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  color: var(--color-foreground);
  font-size: 1.875rem;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .marquee-item {
    font-size: 3rem;
    gap: 3rem;
  }
}
.marquee-dot {
  display: inline-block;
  width: 0.625rem; height: 0.625rem;
  border-radius: 9999px;
  background: var(--color-accent);
}

/* ============================================================
   FEATURED / FRESH
   ============================================================ */
.featured-section {
  background: var(--color-background);
}
.featured-inner {
  padding-block: 4rem 6rem;
}
@media (min-width: 768px) { .featured-inner { padding-block: 3.5rem 6rem; } }
.featured-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.featured-label {
  display: block;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  margin-bottom: 1rem;
}
.featured-heading {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 2.25rem;
  line-height: 0.95;
}
@media (min-width: 768px) {
  .featured-heading { font-size: 3.75rem; }
}
.featured-cta-wrap {
  text-align: center;
  margin-top: 3.5rem;
}
.featured-grid.theme-product-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .featured-grid.theme-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   PRODUCT CARDS (§31.9, §31.13)
   ============================================================ */
.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .theme-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
.theme-product-card-wrap {
  height: 100%;
}
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
/* Hit-area overlay (Pattern A §31.3) — all positioning in CSS */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  display: block;
  cursor: pointer;
}
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
/* Image wrapper */
.theme-product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-card);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  margin-bottom: 1.25rem;
}
.theme-product-card__image-wrapper--empty {
  background: var(--color-card);
}
.theme-product-card__image-wrapper img.theme-product-card__img,
.theme-product-card__image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card {
  transition: transform 0.45s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.04); }
.theme-product-card:hover { transform: translateY(-3px); }

/* Badge */
.theme-product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  pointer-events: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.theme-product-card__badge--sold-out {
  background: var(--color-foreground);
  color: var(--color-background);
}
/* Info */
.theme-product-card__info {
  flex: 1;
  padding-inline: 0.25rem;
}
.theme-product-card__cat {
  color: var(--color-muted-fg);
  margin-bottom: 0.375rem;
}
.theme-product-card__cat.label-caps {
  font-weight: 600;
  letter-spacing: 0.22em;
}
.theme-product-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.375;
  color: var(--color-foreground);
  transition: color 0.3s ease;
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.125rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 1rem;
  color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}

/* Add to cart button in card (§11.4.1) */
.add_to_cart_button.button,
.single_add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !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;
  width: 100% !important;
  margin-top: 0.75rem !important;
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}
.add_to_cart_button.button:hover,
.single_add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
}
/* Disabled state (§11.4.1) */
.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-foreground) !important;
}
/* Hide WC "View cart" link after AJAX add (§11.4.2) */
.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;
}
/* Loading state (§31.8) */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* ============================================================
   ABOUT / OUR STORY
   ============================================================ */
.about-section {
  background: var(--color-background);
  padding-top: 6rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .about-section { padding-top: 8rem; } }
.about-image-wrap {
  margin-bottom: 5rem;
  /* Full bleed image */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 42vh;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) {
  .about-image-wrap { height: 55vh; margin-bottom: 7rem; }
}
.about-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}
.about-image--empty {
  background: var(--color-card);
  width: 100%; height: 100%;
}
.about-text {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  padding-inline: 1.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .about-text { padding-inline: 3.5rem; } }
.about-label {
  display: block;
  color: var(--color-nopal);
  margin-bottom: 1.5rem;
}
.about-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--color-foreground);
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .about-lead { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .about-lead { font-size: 2.5rem; }
}
.about-body {
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.625;
  font-size: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .about-body { font-size: 1.125rem; }
}
.about-cta {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  background: none; border: none;
  color: var(--color-foreground);
}

/* ============================================================
   MEET ANDREA
   ============================================================ */
.andrea-section {
  background: var(--color-lavender-mist);
  padding-block: 5rem 7rem;
}
@media (min-width: 768px) { .andrea-section { padding-block: 7rem; } }
.andrea-inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .andrea-inner { padding-inline: 3.5rem; } }
.andrea-label {
  display: block;
  color: var(--color-nopal);
  margin-bottom: 1.25rem;
}
.andrea-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .andrea-heading { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .andrea-heading { font-size: 3.75rem; }
}
.andrea-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
  line-height: 1.375;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .andrea-quote { font-size: 1.5rem; }
}
.andrea-body {
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.andrea-body a { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   SERVICES / WHAT WE DO
   ============================================================ */
.services-section {
  background: var(--color-butter);
  padding-block: 5rem 7rem;
}
@media (min-width: 768px) { .services-section { padding-block: 7rem; } }
.services-header {
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .services-header { margin-bottom: 5rem; }
}
.services-label {
  display: block;
  color: var(--color-nopal);
  font-weight: 600;
  margin-bottom: 1rem;
}
.services-heading {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 2.25rem;
  line-height: 0.95;
}
@media (min-width: 768px) { .services-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 3.75rem; } }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
  max-width: 75rem;
  margin-inline: auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 0.5rem;
}
.service-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
  font-size: 0.6875rem;
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  margin-bottom: 1.5rem;
}
.service-item__img-wrap {
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .service-item__img-wrap { height: 12rem; } }
.service-item__img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.service-item__img--empty {
  width: 8rem; height: 8rem;
  background: color-mix(in srgb, var(--color-muted-fg) 10%, transparent);
  border-radius: 9999px;
}
.service-item__title {
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
}
.service-item__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.7;
  max-width: 15rem;
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
  background: var(--color-background);
  padding-bottom: 6rem;
}
.shop-inner { padding-top: 4rem; padding-bottom: 6rem; }
.shop-header { text-align: center; margin-bottom: 3rem; }
.shop-label {
  display: block;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  margin-bottom: 1rem;
}
.shop-heading {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 2.25rem;
  line-height: 0.95;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .shop-heading { font-size: 3.75rem; }
}

/* Search */
.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.shop-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
}
.shop-search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  transition: border-color 0.2s ease;
  outline: none;
}
.shop-search-input::placeholder { color: var(--color-muted-fg); }
.shop-search-input:focus { border-bottom-color: var(--color-foreground); }

/* Category pills */
.shop-cats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-inline: -1rem;
  padding-inline: 1rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.shop-cats::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .shop-cats {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}
.shop-cat-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}
.shop-cat-pill:active { transform: scale(0.96); }
.shop-cat-pill:hover { border-color: var(--color-lilac); color: var(--color-lilac); }
.shop-cat-pill.is-active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-background);
}

/* Price filter */
.shop-price-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.shop-price-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none; border: none;
  font-family: var(--font-body);
}
.shop-price-toggle:hover { color: var(--color-foreground); }
.shop-price-toggle__range {
  opacity: 0.7;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.8125rem;
}
.price-chevron {
  transition: transform 0.3s ease;
}
.shop-price-toggle[aria-expanded="true"] .price-chevron { transform: rotate(180deg); }
.shop-price-panel {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s var(--ease-smooth),
    opacity 0.3s var(--ease-smooth);
}
.shop-price-panel.is-open {
  max-height: 8rem;
  opacity: 1;
}
.shop-price-panel__inner {
  padding-block: 0.5rem;
}
.shop-show-more-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
.shop-show-more-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Price range slider — matches Lovable Radix dual-thumb slider */
.price-range {
  position: relative;
  width: 100%;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  touch-action: none;
}
.price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0.5rem;
  background: var(--color-card);
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
}
.price-range__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--color-primary);
  border-radius: 9999px;
  pointer-events: none;
}
.price-range__input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 2.5rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
}
.price-range__input--min { z-index: 3; }
.price-range__input--max { z-index: 4; }
.price-range__input::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.price-range__input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.price-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  box-shadow: none;
  cursor: grab;
  margin-top: -0.375rem;
}
.price-range__input:active::-webkit-slider-thumb {
  cursor: grabbing;
}
.price-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  cursor: grab;
}
.price-range__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.price-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

/* Product grid */
.shop-product-grid {
  margin-bottom: 3rem;
  transition: opacity 0.25s var(--ease-smooth);
}
.shop-product-grid.is-updating {
  opacity: 0.45;
  pointer-events: none;
}
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-smooth) forwards;
}
.shop-show-more-wrap { text-align: center; margin-top: 3rem; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--color-background);
  padding-block: 5rem 7rem;
}
@media (min-width: 768px) { .faq-section { padding-block: 7rem; } }
.faq-header { max-width: 40rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .faq-header { margin-bottom: 3.5rem; } }
.faq-label { display: block; color: var(--color-nopal); margin-bottom: 0.75rem; }
.faq-heading {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 1.875rem;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .faq-heading { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .faq-heading { font-size: 3.75rem; }
}
.faq-subtext {
  font-family: var(--font-body);
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  font-size: 1rem;
}
@media (min-width: 768px) { .faq-subtext { font-size: 1.125rem; } }
.faq-subtext a { text-decoration: underline; text-underline-offset: 4px; }

/* Tabs */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .faq-tabs { gap: 0.625rem; }
}
.faq-tab {
  flex: 0 1 auto;
  max-width: 100%;
  border-radius: 9999px;
  border: 1px solid;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-foreground);
}
/* Color variants */
.faq-border--teal     { border-color: var(--color-teal); }
.faq-border--nopal    { border-color: var(--color-nopal); }
.faq-border--lilac    { border-color: var(--color-lilac); }
.faq-border--marigold { border-color: var(--color-marigold); }
.faq-border--rosa     { border-color: var(--color-rosa); }

.faq-text--teal     { color: var(--color-teal); }
.faq-text--nopal    { color: var(--color-nopal); }
.faq-text--lilac    { color: var(--color-lilac); }
.faq-text--marigold { color: var(--color-foreground); }
.faq-text--rosa     { color: var(--color-foreground); }

.faq-color--teal-active.is-active     { background: var(--color-teal); color: var(--color-background); border-color: var(--color-teal); }
.faq-color--nopal-active.is-active    { background: var(--color-nopal); color: var(--color-background); border-color: var(--color-nopal); }
.faq-color--lilac-active.is-active    { background: var(--color-lilac); color: var(--color-foreground); border-color: var(--color-lilac); }
.faq-color--marigold-active.is-active { background: var(--color-marigold); color: var(--color-foreground); border-color: var(--color-marigold); }
.faq-color--rosa-active.is-active     { background: var(--color-rosa); color: var(--color-foreground); border-color: var(--color-rosa); }

/* Panels */
.faq-list { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); }
.faq-item__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  text-align: left;
  cursor: pointer;
  background: none; border: none;
}
@media (min-width: 768px) { .faq-item__toggle { padding-block: 1.5rem; } }
.faq-item__question {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--color-foreground);
  line-height: 1.4;
}
@media (min-width: 768px) { .faq-item__question { font-size: 1.25rem; } }
.faq-item__icon {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: transparent;
}
.faq-item__icon svg {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item__toggle[aria-expanded="true"] .faq-item__icon svg {
  transform: rotate(180deg);
}
.faq-item__answer {
  overflow: hidden;
}
.faq-item__answer p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.7;
  padding-bottom: 1.5rem;
  padding-right: 3rem;
  max-width: 48rem;
}
@media (min-width: 768px) { .faq-item__answer p { font-size: 1.0625rem; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--color-blush-pink);
  padding-block: 4rem 6rem;
}
@media (min-width: 768px) { .testimonials-section { padding-block: 6rem; } }
.testimonials-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-foreground);
}
@media (min-width: 768px) {
  .testimonials-heading {
    font-size: 3rem;
    margin-bottom: 3.5rem;
  }
}
.testimonials-carousel {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
}
.testimonials-viewport {
  overflow: hidden;
  width: 100%;
}
.testimonials-track {
  display: flex;
  transition: transform 0.7s ease-out;
  will-change: transform;
}
.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: 1rem;
}
@media (min-width: 768px) { .testimonial-slide { padding-inline: 1.5rem; } }
.testimonial-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .testimonial-card { padding: 3.5rem; } }
.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-marigold);
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.625;
  text-align: center;
  color: var(--color-foreground);
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .testimonial-quote { font-size: 1.5rem; }
}
.testimonial-attr {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.testimonial-prev,
.testimonial-next {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-nopal);
  color: var(--color-nopal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: transparent;
}
.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--color-nopal);
  color: var(--color-background);
}
.testimonial-dots { display: flex; align-items: center; gap: 0.5rem; }
.testimonial-dot {
  height: 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-nopal) 30%, transparent);
  width: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.testimonial-dot.is-active {
  width: 2rem;
  background: var(--color-nopal);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section { overflow: hidden; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}
.cta-image-col {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
@media (min-width: 1024px) { .cta-image-col { min-height: 480px; } }
.cta-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-img--empty { background: var(--color-card); width: 100%; height: 100%; }
.cta-panel {
  background: var(--color-accent);
  color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
}
@media (min-width: 768px) { .cta-panel { padding: 6rem 4rem; } }
.cta-panel-inner { max-width: 28rem; text-align: center; }
.cta-label {
  display: block;
  color: rgba(245,240,232,0.8);
  margin-bottom: 1.25rem;
}
.cta-heading {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 2.25rem;
  line-height: 0.95;
  color: var(--color-background);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .cta-heading { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .cta-heading { font-size: 3.75rem; }
}
.cta-body {
  font-family: var(--font-body);
  color: rgba(245,240,232,0.9);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cta-btns { flex-direction: row; justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-butter);
  border-top: 1px solid var(--color-border);
}
.site-footer .container-wide { padding-block: 4rem 5rem; }
@media (min-width: 1024px) { .site-footer .container-wide { padding-block: 5rem; } }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .footer-brand { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-logo { position: static !important; transform: none !important; }
.footer-logo-img { height: calc(var(--logo-height) * 1.5) !important; }
.footer-logo-text {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  display: block;
}
.footer-brand__text { max-width: 32rem; }
@media (min-width: 640px) { .footer-brand__text { text-align: right; } }
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  line-height: 1.6;
}
.footer-contact-line {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.footer-contact-line a:hover { color: var(--color-foreground); }
.footer-sep { margin-inline: 0.5rem; opacity: 0.4; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 3rem;
  }
}
.footer-col--reach { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-col--reach { grid-column: auto; } }

.footer-col__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-foreground);
  margin-bottom: 1.25rem;
}
.footer-col__list { list-style: none; }
.footer-col__list li + li { margin-top: 0.75rem; }
.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  cursor: pointer;
  background: none; border: none;
  text-align: left;
  transition: color 0.2s ease;
  padding: 0;
}
.footer-link:hover { color: var(--color-foreground); }
.footer-reach-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.footer-contact-list { list-style: none; }
.footer-contact-list li + li { margin-top: 0.75rem; }
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  transition: color 0.2s ease;
}
.footer-contact-link:hover { color: var(--color-foreground); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-quote {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-nopal);
  letter-spacing: 0.025em;
  font-style: italic;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  letter-spacing: 0.025em;
}
.footer-copy a { text-decoration: underline; }
.footer-copy a:hover { color: var(--color-foreground); }

/* ============================================================
   CART DRAWER (§12)
   ============================================================ */
#theme-cart-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}
body.cart-open #theme-cart-drawer {
  visibility: visible;
  pointer-events: auto;
  animation: slideUp 0.6s var(--ease-smooth) forwards;
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.cart-drawer__close {
  padding: 0.25rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  background: none; border: none;
}
.cart-drawer__close:hover { opacity: 1; }
.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1.5rem;
}
.cart-drawer__empty-icon { color: var(--color-muted-fg); }
.cart-drawer__empty-text { font-family: var(--font-body); color: var(--color-muted-fg); }
.cart-drawer__continue { font-size: 0.8125rem; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cart-item__img-link {
  width: 5rem; height: 6rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-card);
  display: block;
}
.cart-item__img-link img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__details { flex: 1; min-width: 0; }
.cart-item__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-foreground);
  transition: opacity 0.2s ease;
}
.cart-item__name:hover { opacity: 0.7; }
.cart-item__variation { margin-top: 0.25rem; }
.cart-item__attr { font-size: 0.75rem; color: var(--color-muted-fg); font-family: var(--font-body); }
.cart-item__price { font-family: var(--font-body); font-size: 0.875rem; 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-item__qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  background: transparent; border: none;
}
.cart-item__qty-btn:hover { background: var(--color-card); }
.cart-item__qty-display { font-family: var(--font-body); font-size: 0.875rem; min-width: 1.5rem; text-align: center; }
.cart-item__remove {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none; border: none;
}
.cart-item__remove:hover { color: var(--color-foreground); }
.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.cart-drawer__free-ship {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
.cart-drawer__checkout-btn { width: 100%; text-align: center; }
.cart-drawer__checkout-btn:hover { opacity: 0.85; }
/* Loading state (§22.5) */
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

/* Overlay (§22.5) */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,31,48,0.2);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-smooth);
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal[hidden] { display: none; }
.contact-modal.is-open .contact-modal__overlay {
  animation: fadeIn 0.3s ease forwards;
}
.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,31,48,0.4);
  cursor: pointer;
  opacity: 0;
}
.contact-modal.is-open .contact-modal__overlay { opacity: 1; }
.contact-modal__box {
  position: relative;
  background: var(--color-background);
  border-radius: 0.75rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: scale(0.95) translateY(8px);
}
@media (max-width: 639px) {
  .contact-modal__box { padding: 1.75rem 1.5rem; }
}
.contact-modal.is-open .contact-modal__box {
  animation: modalIn 0.35s var(--ease-smooth) forwards;
}
.contact-modal.is-closing .contact-modal__box {
  animation: none;
  opacity: 0;
  transform: scale(0.97) translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.contact-modal.is-closing .contact-modal__overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.contact-modal__form-state {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.35s var(--ease-smooth) forwards;
}
.faq-panel.is-entering {
  animation: faqPanelIn 0.25s var(--ease-smooth) forwards;
}
.contact-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.35rem;
  cursor: pointer;
  opacity: 0.55;
  color: var(--color-foreground);
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  line-height: 0;
}
.contact-modal__close:hover { opacity: 1; }
.contact-modal__content {
  display: flex;
  flex-direction: column;
}
.contact-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 2rem;
}
.contact-modal__title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}
@media (min-width: 640px) {
  .contact-modal__title { font-size: 1.75rem; }
}
.contact-modal__desc {
  color: var(--color-muted-fg);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.contact-modal__contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-top: 0.25rem;
}
.contact-modal__info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  line-height: 1.4;
}
.contact-modal__info-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}
.contact-modal__info-link:hover { color: var(--color-foreground); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.contact-form__label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-foreground);
}
.contact-form__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form__input::placeholder {
  color: var(--color-muted-fg);
  opacity: 0.85;
}
.contact-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 18%, transparent);
}
.contact-form__textarea {
  resize: none;
  min-height: 7.5rem;
}
.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-foreground);
  color: var(--color-background);
  border: none;
  border-radius: var(--btn-radius);
  padding: 0.75rem 1.75rem;
  min-height: 2.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.contact-form__submit svg {
  flex-shrink: 0;
  margin-left: 0.125rem;
}
.contact-form__submit:hover { opacity: 0.85; }
.contact-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
/* Success state */
.contact-success {
  text-align: center;
  padding-block: 2rem;
  animation: successPop 0.4s var(--ease-smooth) forwards;
}
.contact-success__icon {
  width: 3.5rem; height: 3.5rem;
  background: var(--color-primary);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: #fff;
  animation: successIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.contact-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.contact-success__body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

/* ============================================================
   SINGLE PRODUCT PAGE (§11.13)
   ============================================================ */
.single-product-page { padding-top: 0; background: var(--color-background); }
.product-breadcrumb {
  padding-block: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-breadcrumb a:hover { color: var(--color-foreground); }
.product-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 6rem;
  padding-top: 1rem;
  align-items: start;
  min-width: 0;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}
.theme-product-gallery,
.theme-product-info {
  min-width: 0;
  max-width: 100%;
}
.product-main-img-wrap {
  aspect-ratio: 1;
  background: var(--color-card);
  overflow: hidden;
  margin-bottom: 1rem;
}
.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  flex-wrap: wrap;
  max-width: 100%;
  padding-bottom: 0.25rem;
}
.product-thumb {
  width: 5rem; height: 5rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-card);
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.2s ease; }
.product-thumb.is-active img { opacity: 1; }
.product-thumb.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-foreground);
}
.product-cats {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.75rem;
}
.product-cats a { color: var(--color-muted-fg); }
.product-cats a:hover { color: var(--color-foreground); }
.product-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .product-title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .product-title { font-size: 2.75rem; }
}
.product-price {
  font-size: 1.25rem;
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}
.product-sold-out {
  display: inline-block;
  background: var(--color-foreground);
  color: var(--color-background);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.woocommerce-product-details__description,
.product-description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted-fg);
  line-height: 1.7;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Quantity wrapper (§11.6) */
.theme-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}
.theme-qty-btn {
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
}
.theme-qty-btn:hover { background: var(--color-card); }
.theme-qty-input {
  padding: 0.625rem 1rem;
  min-width: 2.75rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: none;
  background: transparent;
  color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* Product accordions */
.product-details-section { border-top: 1px solid var(--color-border); }
.product-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  cursor: pointer;
  background: none; border: none;
}
.product-accordion-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.product-accordion-chevron {
  transition: transform 0.2s ease;
}
.product-accordion-toggle.is-open .product-accordion-chevron,
.product-accordion-toggle[aria-expanded="true"] .product-accordion-chevron {
  transform: rotate(180deg);
}
.product-accordion-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted-fg);
  line-height: 1.7;
  padding-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-accordion-body p + p { margin-top: 0.75rem; }
.product-accordion-body ul { list-style: none; }
.product-accordion-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.product-accordion-body li::before {
  content: '';
  width: 0.25rem; height: 0.25rem;
  border-radius: 9999px;
  background: var(--color-foreground);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Related products */
.related-products-section {
  padding-top: 5rem;
  border-top: 1px solid var(--color-border);
  padding-bottom: 6rem;
}
.related-products-header {
  text-align: center;
  margin-bottom: 3rem;
}
.related-products-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.related-products-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
}
.related-products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) {
  .related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Variable product styles */
.variations.shop_attributes { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.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; }
.single-product .variations tbody td.value { padding-top: 0; }
.variations tbody td.label label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  display: block;
  margin-bottom: 0.5rem;
}
.variations tbody td.value select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  background: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  cursor: pointer;
  margin-bottom: 0.75rem;
}

/* ============================================================
   ARCHIVE / SHOP PAGE
   ============================================================ */
.woocommerce-archive { padding-bottom: 6rem; }
.archive-header {
  padding-block: 3rem;
  border-bottom: 1px dotted color-mix(in srgb, var(--color-foreground) 35%, transparent);
  margin-bottom: 3rem;
}
.archive-title {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.95;
}
.archive-description {
  margin-top: 1rem;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  max-width: 40rem;
}
.archive-empty {
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
}
.archive-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.woocommerce-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: all 0.2s ease;
}
.woocommerce-pagination .page-numbers a:hover { background: var(--color-foreground); color: var(--color-background); }
.woocommerce-pagination .page-numbers .current { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

/* ============================================================
   CHECKOUT (§13) — Lovable: 2 columns, summary left, form right
   ============================================================ */
body.woocommerce-checkout .site-main {
  padding-top: var(--site-top-offset, 5rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }

.checkout-page__inner {
  padding-block: 2.5rem;
}
.checkout-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 ease;
}
.checkout-back-link:hover { color: var(--color-foreground); }
.checkout-page__title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

/* Classic shortcode checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.checkout-layout__form { order: 1; }
.checkout-layout__summary { order: 2; }
@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    align-items: start;
  }
  .checkout-layout__summary { order: 1; }
  .checkout-layout__form { order: 2; }
}
.checkout-section-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.checkout-order-review .shop_table {
  border: none;
  margin-bottom: 1.5rem;
}
.checkout-order-review .shop_table th,
.checkout-order-review .shop_table td {
  border: none;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.checkout-order-review .cart_item td.product-name { font-weight: 500; }
.checkout-order-review .order-total th,
.checkout-order-review .order-total td {
  font-weight: 600;
  font-size: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}
.woocommerce-checkout .col2-set {
  display: block;
  width: 100%;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100%;
  float: none;
  margin-bottom: 2rem;
}
.woocommerce-checkout h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-background);
  color: var(--color-foreground);
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--color-primary);
}
.woocommerce-checkout #payment {
  background: transparent;
  border: none;
  padding: 0;
}
.woocommerce-checkout #place_order {
  width: 100%;
  margin-top: 1rem;
}

/* WooCommerce Blocks checkout */
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 80rem;
  margin-inline: auto;
  align-items: stretch;
}
@media (min-width: 1024px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    flex: 1 1 0;
    order: 1;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  body.woocommerce-checkout .wc-block-checkout__main {
    flex: 1 1 0;
    order: 2;
    width: auto;
    max-width: none;
    min-width: 0;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  font-family: var(--font-body) !important;
  color: var(--color-foreground) !important;
  background: var(--color-background) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: var(--color-foreground) !important;
  color: var(--color-background) !important;
  border-radius: var(--btn-radius) !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  min-height: 3rem !important;
}
body.woocommerce-checkout .wc-block-components-product-name {
  font-family: var(--font-body) !important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item {
  padding-block: 1rem !important;
}

/* ============================================================
   THANK YOU PAGE (§22.8) — Lovable success + details card
   ============================================================ */
body.theme-thankyou-page .site-main {
  padding-top: var(--site-top-offset, 5rem);
  padding-bottom: 4rem;
  min-height: 70vh;
}
body.theme-thankyou-page .thankyou-page__content {
  max-width: none;
  padding-inline: 0;
}
body.theme-thankyou-page { overflow-x: hidden; }

.thankyou-page__inner {
  padding-block: 2.5rem 4rem;
}

.thankyou-wrap {
  max-width: 42rem;
  margin-inline: auto;
}

/* Success / error hero */
.thankyou-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.thankyou-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-primary);
  color: var(--color-background);
}
.thankyou-icon--failed {
  background: color-mix(in srgb, #cc3d3d 18%, var(--color-background));
  color: #cc3d3d;
}
.thankyou-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.thankyou-message {
  color: var(--color-muted-fg);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.thankyou-cta {
  min-height: 3rem;
  padding-inline: 2rem;
}

/* Order details card */
.thankyou-details {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
}
@media (min-width: 640px) {
  .thankyou-details { padding: 2rem; }
}
.thankyou-details__heading {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

/* Override WooCommerce flex on .woocommerce-order-overview */
.thankyou-details .thankyou-overview,
body.theme-thankyou-page .thankyou-overview {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .thankyou-details .thankyou-overview,
  body.theme-thankyou-page .thankyou-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.thankyou-details .thankyou-overview li,
body.theme-thankyou-page .thankyou-overview li {
  float: none;
  width: auto;
  margin: 0;
  clear: none;
  padding: 0.875rem 1rem;
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  line-height: 1.3;
  min-height: 4.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
}
.thankyou-details .thankyou-overview li strong,
body.theme-thankyou-page .thankyou-overview li strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-foreground);
  line-height: 1.4;
  word-break: break-word;
}

/* Order items + totals summary table */
.thankyou-order-table {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.thankyou-items-heading {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}
.thankyou-order-table .woocommerce-order-details__title {
  display: none;
}
.thankyou-order-table .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  border-radius: 0.5rem;
  background: var(--color-background);
  margin: 0;
  padding: 0.25rem 1rem;
}
.thankyou-order-table .woocommerce-table--order-details thead {
  display: none;
}
.thankyou-order-table .woocommerce-table--order-details tbody,
.thankyou-order-table .woocommerce-table--order-details tfoot {
  display: block;
}
.thankyou-order-table .woocommerce-table--order-details tbody tr,
.thankyou-order-table .woocommerce-table--order-details tfoot tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}
.thankyou-order-table .woocommerce-table--order-details tbody tr:last-child {
  border-bottom: none;
}
.thankyou-order-table .woocommerce-table--order-details tbody td,
.thankyou-order-table .woocommerce-table--order-details tfoot th,
.thankyou-order-table .woocommerce-table--order-details tfoot td {
  display: block;
  padding: 0;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.45;
}
.thankyou-order-table .woocommerce-table--order-details .woocommerce-table__product-name {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-foreground);
  padding-right: 0;
}
.thankyou-order-table .woocommerce-table--order-details .woocommerce-table__product-total {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-foreground);
}
.thankyou-order-table .woocommerce-table--order-details .product-quantity {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-muted-fg);
}
.thankyou-order-table .woocommerce-table--order-details .wc-item-meta {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-muted-fg);
}
.thankyou-order-table .woocommerce-table--order-details .wc-item-meta li {
  margin: 0;
  padding: 0;
}
.thankyou-order-table .woocommerce-table--order-details .wc-item-meta li p {
  margin: 0.15rem 0 0;
}
.thankyou-order-table .woocommerce-table--order-details tfoot {
  margin-top: 0;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}
.thankyou-order-table .woocommerce-table--order-details tfoot tr {
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: none;
}
.thankyou-order-table .woocommerce-table--order-details tfoot th {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  color: var(--color-muted-fg);
  font-weight: 400;
  font-size: 0.8125rem;
}
.thankyou-order-table .woocommerce-table--order-details tfoot td {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--color-foreground);
}
.thankyou-order-table .woocommerce-table--order-details tfoot tr:last-child {
  margin-top: 0.125rem;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--color-border);
}
.thankyou-order-table .woocommerce-table--order-details tfoot tr:last-child th,
.thankyou-order-table .woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground);
}

/* Hide default WC success notice (custom hero replaces it) */
body.theme-thankyou-page .woocommerce-thankyou-order-received,
body.theme-thankyou-page .woocommerce-notice--success.woocommerce-thankyou-order-received {
  display: none !important;
}

/* WooCommerce Blocks — order confirmation */
body.theme-thankyou-page .wp-block-woocommerce-checkout-order-confirmation-block,
body.theme-thankyou-page .wc-block-order-confirmation {
  max-width: 42rem;
  margin-inline: auto;
}
body.theme-thankyou-page .wc-block-order-confirmation-status {
  text-align: center;
  margin-bottom: 2.5rem;
}
body.theme-thankyou-page .wc-block-order-confirmation-status svg {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
}
body.theme-thankyou-page .wc-block-order-confirmation-status h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
body.theme-thankyou-page .wc-block-order-confirmation-status p {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 32rem;
  margin-inline: auto;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary,
body.theme-thankyou-page .wc-block-order-confirmation-totals-wrapper {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  margin-bottom: 0;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary {
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals-wrapper {
  border-top: none;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  padding-top: 0;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  body.theme-thankyou-page .wc-block-order-confirmation-summary,
  body.theme-thankyou-page .wc-block-order-confirmation-totals-wrapper {
    padding: 2rem;
  }
  body.theme-thankyou-page .wc-block-order-confirmation-totals-wrapper {
    padding-top: 0;
  }
}
body.theme-thankyou-page .wc-block-order-confirmation-summary h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
/* Pair each dt+dd in one grid cell (fixes staggered 2-col layout) */
body.theme-thankyou-page .wc-block-order-confirmation-summary dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
}
@media (min-width: 640px) {
  body.theme-thankyou-page .wc-block-order-confirmation-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt,
body.theme-thankyou-page .wc-block-order-confirmation-summary dd {
  margin: 0;
  font-family: var(--font-body);
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  line-height: 1.3;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-foreground);
  line-height: 1.4;
  word-break: break-word;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(1),
body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(2) {
  grid-column: 1;
  grid-row: 1;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(3),
body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(4) {
  grid-column: 2;
  grid-row: 1;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(5),
body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(6) {
  grid-column: 1;
  grid-row: 2;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(7),
body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(8) {
  grid-column: 2;
  grid-row: 2;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(9),
body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(10) {
  grid-column: 1;
  grid-row: 3;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(11),
body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(12) {
  grid-column: 2;
  grid-row: 3;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dt {
  padding: 0.875rem 1rem 0.2rem;
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
}
body.theme-thankyou-page .wc-block-order-confirmation-summary dd {
  padding: 0 1rem 0.875rem;
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  align-self: end;
}
@media (max-width: 639px) {
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt,
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd {
    grid-column: 1;
  }
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(1),
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(2) { grid-row: 1; }
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(3),
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(4) { grid-row: 2; }
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(5),
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(6) { grid-row: 3; }
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(7),
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(8) { grid-row: 4; }
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(9),
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(10) { grid-row: 5; }
  body.theme-thankyou-page .wc-block-order-confirmation-summary dt:nth-child(11),
  body.theme-thankyou-page .wc-block-order-confirmation-summary dd:nth-child(12) { grid-row: 6; }
}
body.theme-thankyou-page .wc-block-order-confirmation-totals table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  border-radius: 0.5rem;
  background: var(--color-background);
  padding: 0.25rem 1rem;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tbody,
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot {
  display: block;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tbody tr,
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tbody tr:last-child {
  border-bottom: none;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals th,
body.theme-thankyou-page .wc-block-order-confirmation-totals td {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0;
  border: none;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tbody td:first-child {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-foreground);
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tbody td:last-child {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  color: var(--color-foreground);
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot th {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  color: var(--color-muted-fg);
  font-weight: 400;
  font-size: 0.8125rem;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot td {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--color-foreground);
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot {
  margin-top: 0;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot tr {
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: none;
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot tr:last-child {
  margin-top: 0.125rem;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--color-border);
}
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot tr:last-child th,
body.theme-thankyou-page .wc-block-order-confirmation-totals tfoot tr:last-child td {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground);
}
body.theme-thankyou-page .wc-block-order-confirmation-actions {
  text-align: center;
  margin-top: 2rem;
}
body.theme-thankyou-page .wc-block-order-confirmation-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 2rem;
  background: var(--color-foreground);
  color: var(--color-background);
  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);
  text-transform: var(--btn-text-transform);
  transition: opacity 0.2s ease;
}
body.theme-thankyou-page .wc-block-order-confirmation-actions a:hover {
  opacity: 0.85;
}

/* Legacy .woocommerce-order wrapper (blocks / shortcode fallback) */
body.theme-thankyou-page .woocommerce-order {
  max-width: 42rem;
  margin-inline: auto;
}

/* ============================================================
   WC NOTICES (§14.1)
   ============================================================ */
/* Show notices on most pages but hide redundant ones */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
/* Style visible notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.woocommerce-message { background: color-mix(in srgb, var(--color-teal) 15%, transparent); border-left: 3px solid var(--color-teal); }
.woocommerce-error  { background: color-mix(in srgb, #cc3d3d 10%, transparent); border-left: 3px solid #cc3d3d; }
.woocommerce-info   { background: color-mix(in srgb, var(--color-lilac) 15%, transparent); border-left: 3px solid var(--color-lilac); }
.woocommerce-error  { display: block !important; }

/* ============================================================
   PAGE TEMPLATE (page.php, 404.php)
   ============================================================ */
.page-title {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  padding-block: 2rem 0;
  letter-spacing: -0.01em;
}
.entry-content {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-foreground);
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-bottom: 4rem;
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 1023px) {
  .site-nav__left,
  .site-nav__right-links { display: none !important; }
}
@media (max-width: 639px) {
  .cta-grid { grid-template-columns: 1fr; }
  .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   WC BREADCRUMBS — hidden (§14.2)
   ============================================================ */
.woocommerce-breadcrumb { display: none; }

/* ============================================================
   ARCHIVE HEADER TEXT
   ============================================================ */
.theme-no-hero .site-main { padding-top: 0; }
