/* =============================================================================
   JOYFUL CRAFTS — THEME CSS
   Replicates the Lovable React/Tailwind design exactly.
   All color variables are injected inline from functions.php via wp_add_inline_style.
   ============================================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Fira+Sans:wght@300;400;500;600;700&display=swap');

/* =============================================================================
   CSS CUSTOM PROPERTIES (overridden by inline style from Customizer)
   ============================================================================= */
:root {
  --color-primary:          #a0522d;
  --color-background:       #faf6ef;
  --color-card:             #f0ebe3;
  --color-foreground:       #3a1f15;
  --color-accent:           #e8b070;
  --color-muted-foreground: #725c4f;
  --color-border:           #dcd1c6;
  --color-button-text:      #fdfaf6;
  --color-secondary:        #f0ebe3;
  --color-copper:           #cd7f32;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Fira Sans', sans-serif;

  --shadow-soft:     0 4px 20px -4px rgba(122, 66, 33, 0.12);
  --shadow-elevated: 0 18px 50px -12px rgba(122, 66, 33, 0.22);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --radius:       0.75rem;
  --card-radius:  0.75rem;
  --logo-height:  60px;
  --header-height: 80px;

  --btn-radius:         calc(var(--radius) - 2px);
  --btn-height:         44px;
  --btn-padding:        0.625rem 1rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    600;
  --btn-letter-spacing: 0.025em;
  --btn-text-transform: none;
  --btn-icon-padding:   0.5rem;

  --section-padding: 2rem;
  --checkout-gap:    1.5rem;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

img, video { max-width: 100%; height: auto; display: block; }
.single-product .product-main-img { height: 100%; max-height: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: var(--font-body); }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */
.container-wide {
  width: 100%;
  max-width: 80rem; /* 1280px = 7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.text-center { text-align: center; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* =============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================= */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
}
.section-label-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label-line {
  display: block;
  height: 1px;
  width: 2.5rem;
  background: var(--color-primary);
}
.text-italic-primary {
  font-style: italic;
  color: var(--color-primary);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  background-color: var(--color-background);
  color: var(--color-foreground);
  border-color: rgba(58, 31, 21, 0.3);
}
.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-foreground);
  border-color: rgba(58, 31, 21, 0.3);
}

.btn-secondary {
  background-color: var(--color-background);
  color: var(--color-foreground);
  border-color: var(--color-background);
}
.btn-secondary:hover { background-color: var(--color-foreground); color: var(--color-background); }

.btn-full { width: 100%; }

.btn-lg {
  padding: 0 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
}

/* =============================================================================
   SCROLL ANIMATIONS
   ============================================================================= */
.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* WordPress admin bar — prevent header/content overlap when logged in */
body.admin-bar {
  --admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-height: 46px;
  }
}
body.admin-bar .site-header {
  top: var(--admin-bar-height);
}
.site-header.is-solid,
.site-header.is-scrolled {
  background-color: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* 64px */
}
@media (min-width: 1024px) {
  .site-nav { height: 5rem; /* 80px */ }
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-foreground);
  display: block;
}
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-text { color: white; }

.header-logo { /* specific to header */ }

.site-nav__links { display: none; }
@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

/* WP nav menu resets */
.theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
.theme-nav-list li { list-style: none; }
.theme-nav-list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(58, 31, 21, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
}
.theme-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list a:hover { color: var(--color-primary); }
.theme-nav-list a:hover::after { transform: scaleX(1); }

/* Transparent header nav */
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list a { color: rgba(255,255,255,0.9); }
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list a::after { background: white; }
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list a:hover { color: white; }

/* Nav link inner span (link-underline effect) */
.nav-link-inner { display: inline; }

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-btn:hover { color: var(--color-primary); }
.site-header:not(.is-solid):not(.is-scrolled) .cart-btn { color: white; }
.site-header:not(.is-solid):not(.is-scrolled) .cart-btn:hover { color: rgba(255,255,255,0.8); }

.theme-cart-count {
  position: absolute;
  top: 0; right: 0;
  min-width: 1.25rem; height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-button-text);
  border-radius: 50%;
  padding: 0 3px;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-btn:hover { color: var(--color-primary); }
.site-header:not(.is-solid):not(.is-scrolled) .mobile-menu-btn { color: white; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  animation: fadeIn 0.3s ease;
}
.mobile-nav.is-open { display: block; }

.theme-mobile-nav-list { display: flex; flex-direction: column; gap: 0; }
.theme-mobile-nav-list li { list-style: none; }
.theme-mobile-nav-link,
.theme-mobile-nav-list a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--color-foreground);
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.theme-mobile-nav-link:hover,
.theme-mobile-nav-list a:hover { color: var(--color-primary); }

/* =============================================================================
   LINK UNDERLINE ANIMATION
   ============================================================================= */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-background);
  padding-top: 4rem;
}
@media (min-width: 1024px) { .hero-section { padding-top: 5rem; } }

.hero-video-wrap {
  position: absolute;
  inset: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-tagline-line {
  display: block;
  height: 1px;
  width: 2.5rem;
  background: var(--color-accent);
}
.hero-tagline-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title-wrap { overflow: hidden; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: white;
  max-width: 56rem;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.hero-title-italic {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 2rem auto 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

.hero-cta-primary { }
.hero-cta-secondary { }

/* =============================================================================
   ABOUT SECTION
   ============================================================================= */
.about-section {
  background-color: var(--color-card);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.about-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(96px);
}
.about-bg-circle--tr {
  top: -8rem; right: -5rem;
  width: 28rem; height: 28rem;
  background: rgba(232, 176, 112, 0.2);
}
.about-bg-circle--bl {
  bottom: -8rem; left: -5rem;
  width: 24rem; height: 24rem;
  background: rgba(160, 82, 45, 0.1);
}

.about-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
@media (min-width: 768px) { .about-inner { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 16rem;
}
.about-logo-glow {
  position: absolute;
  inset: 0;
  background: rgba(160, 82, 45, 0.15);
  filter: blur(96px);
  transform: scale(0.9);
  border-radius: 50%;
}
.about-logo { position: relative; max-width: 100%; }
.about-section .about-logo.site-logo-img,
.about-section .site-logo-img.about-logo {
  height: auto !important;
  width: auto !important;
  max-height: 300px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  border-radius: 50%;
}

.about-content { }

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
@media (min-width: 768px) { .about-text { font-size: 1.125rem; } }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.about-stat {
  text-align: center;
}
@media (min-width: 640px) { .about-stat { text-align: left; } }

.stat-icon { color: var(--color-primary); margin-bottom: 0.5rem; display: block; }
@media (max-width: 639px) { .stat-icon { margin-left: auto; margin-right: auto; } }

.stat-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-top: 0.25rem;
}
@media (min-width: 768px) { .stat-value { font-size: 1.25rem; } }

/* =============================================================================
   SHOP SECTION
   ============================================================================= */
.shop-section {
  scroll-margin-top: 6rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .shop-section { padding-top: 7rem; padding-bottom: 7rem; } }

.shop-header { text-align: center; margin-bottom: 3.5rem; }

.shop-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0.75rem 0 2.5rem;
}

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cat-pill {
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}
.cat-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cat-pill--active {
  background: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}

/* Price filter */
.price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}
.price-filter-toggle:hover { color: var(--color-foreground); }

.price-filter-chevron {
  transition: transform 0.3s ease;
}
.price-filter-toggle[aria-expanded="true"] .price-filter-chevron { transform: rotate(180deg); }

.price-filter-active-range {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.price-filter-panel {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.price-filter-panel.is-open {
  max-height: 80px;
  opacity: 1;
}
.price-filter-inner { padding: 0.5rem 0; }

/* Price range slider — single-track dual thumb (matches Lovable Radix slider) */
.price-range-wrapper {
  position: relative;
  height: 1.25rem;
  margin-bottom: 0.75rem;
}
.range-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: var(--color-secondary);
  border-radius: 9999px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.range-track-fill {
  position: absolute;
  height: 0.5rem;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  border-radius: 9999px;
}
.range-input {
  position: absolute;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}
.range-input--min { z-index: 3; }
.range-input--max { z-index: 4; }

.range-input::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.range-input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  pointer-events: all;
  margin-top: -0.375rem;
  transition: transform 0.15s ease;
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.05); }
.range-input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  pointer-events: all;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.product-card-wrap.is-hidden { display: none; }
.product-card-wrap { display: flex; flex-direction: column; }

/* Product card */
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.theme-product-card * { pointer-events: none; }
.theme-card-link { pointer-events: auto; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
}
.theme-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card:hover .theme-product-card__img { transform: scale(1.08); }
.theme-product-card__img.is-sold-out { opacity: 0.6; }

.theme-product-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 31, 21, 0);
  transition: background 0.5s ease;
  pointer-events: none;
}
.theme-product-card:hover .theme-product-card__hover-overlay { background: rgba(58, 31, 21, 0.05); }

.sold-out-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-foreground);
  color: var(--color-background);
  pointer-events: none;
}

.theme-product-card__info { space-y: 0.25rem; }
.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: color 0.3s ease;
  line-height: 1.4;
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }

.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}

/* Card hover lift animation */
.theme-product-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.theme-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(48, 25, 13, 0.15);
}

.shop-empty-msg {
  text-align: center;
  padding: 5rem 0;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
}
.shop-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
}
.shop-show-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* =============================================================================
   MEET THE MAKER
   ============================================================================= */
.owner-section {
  background-color: var(--color-card);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 6rem;
}
.owner-bg-circle {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 50rem; height: 50rem;
  background: rgba(232, 176, 112, 0.1);
  filter: blur(96px);
  border-radius: 50%;
  pointer-events: none;
}
.owner-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
  position: relative;
}
@media (min-width: 768px) { .owner-inner { padding-top: 7rem; padding-bottom: 7rem; } }
@media (min-width: 1024px) {
  .owner-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.owner-photo-wrap {
  position: relative;
  min-height: 500px;
}
@media (min-width: 1024px) { .owner-photo-wrap { min-height: 0; } }

.owner-photo-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(160, 82, 45, 0.15);
  filter: blur(96px);
  border-radius: 50%;
  pointer-events: none;
}
.owner-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevated);
}
.owner-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.owner-badge {
  position: absolute;
  bottom: -1rem; right: -1rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-elevated);
  z-index: 2;
}

.owner-content { }
.owner-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.owner-text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .owner-text { font-size: 1.125rem; } }

.owner-quote {
  border-left: 2px solid var(--color-primary);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(58, 31, 21, 0.9);
  line-height: 1.5;
}
@media (min-width: 768px) { .owner-quote { font-size: 1.5rem; } }

/* =============================================================================
   CUSTOM ORDERS CTA BANNER
   ============================================================================= */
.cta-section { padding-top: 3rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .cta-section { padding-top: 5rem; } }

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-copper) 60%, var(--color-accent));
  color: var(--color-button-text);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .cta-banner { padding: 5rem; } }

.cta-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(122, 66, 33, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.3;
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================================
   FAQ SECTION
   ============================================================================= */
.faq-section {
  scroll-margin-top: 6rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .faq-section { padding-top: 7rem; padding-bottom: 7rem; } }

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin: 1rem 0;
}
.faq-subtitle {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  margin-top: 1rem;
}

.faq-accordion { max-width: 48rem; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.is-open { border-color: rgba(160, 82, 45, 0.4); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}
.faq-question {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--color-foreground);
}
@media (min-width: 768px) { .faq-question { font-size: 1.25rem; } }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-foreground);
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition-smooth);
}
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}

/* =============================================================================
   CONTACT SECTION
   ============================================================================= */
.contact-section {
  background-color: var(--color-card);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 6rem;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.contact-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.contact-bg-wash {
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 239, 0.85);
}
.contact-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  pointer-events: none;
}
.contact-bg-circle--tr {
  top: -10rem; right: -10rem;
  width: 32rem; height: 32rem;
  background: rgba(160, 82, 45, 0.1);
}
.contact-bg-circle--bl {
  bottom: -10rem; left: -10rem;
  width: 32rem; height: 32rem;
  background: rgba(232, 176, 112, 0.2);
}
.contact-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(122, 66, 33, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
}
.contact-content { position: relative; z-index: 10; }
.contact-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px) { .contact-inner { padding-top: 7rem; padding-bottom: 7rem; } }

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.contact-subtitle {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.contact-cta-btn {
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  min-height: 52px;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) { .contact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-strip { grid-template-columns: repeat(4, 1fr); } }

.contact-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: center;
}
.contact-strip-item svg { color: var(--color-primary); flex-shrink: 0; }
.contact-strip-item:hover { color: var(--color-primary); }

/* =============================================================================
   CONTACT MODAL
   ============================================================================= */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 31, 21, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.35s var(--transition-smooth), transform 0.35s var(--transition-smooth);
}
.contact-modal.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.contact-modal-inner {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 2rem;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
@media (min-width: 768px) { .contact-modal-inner { padding: 2.5rem; } }

.contact-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 10;
}
.contact-modal-close:hover { color: var(--color-foreground); background: rgba(0,0,0,0.05); }

.contact-modal-header { margin-bottom: 1.75rem; }
.contact-modal-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.contact-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .contact-form-row { grid-template-columns: repeat(2, 1fr); } }

.contact-form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(58, 31, 21, 0.8);
  display: block;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-muted-foreground); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.15);
}
.form-textarea { resize: none; }

/* Contact modal success */
.contact-modal-success { text-align: center; padding: 2.5rem 0; }

.success-icon-wrap {
  width: 4rem; height: 4rem;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-button-text);
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}
.success-text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
@media (min-width: 1024px) { .footer-grid { padding-top: 4rem; padding-bottom: 4rem; } }

.footer-brand { }
.footer-logo-link { display: inline-flex; align-items: center; }
.footer-logo { height: var(--logo-height) !important; width: auto !important; object-fit: contain; border-radius: 50%; }

.footer-tagline {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 24rem;
  line-height: 1.6;
}
.footer-tagline-italic {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-primary);
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Footer nav */
.footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-list li { list-style: none; }
.footer-nav-list a {
  display: inline-block;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav-list a:hover { color: var(--color-foreground); }

/* Footer contact */
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.footer-contact-item--address { align-items: flex-start; }
.footer-contact-item a { color: var(--color-muted-foreground); text-decoration: none; transition: color 0.3s ease; }
.footer-contact-item a:hover { color: var(--color-foreground); }
.footer-contact-item svg { flex-shrink: 0; }

.footer-bottom {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copyright,
.footer-credit {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}
.footer-credit a { text-decoration: underline; transition: color 0.3s ease; }
.footer-credit a:hover { color: var(--color-primary); }

/* =============================================================================
   CART DRAWER
   ============================================================================= */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 31, 21, 0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 201;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }

#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.cart-close-btn {
  padding: 0.25rem;
  color: var(--color-foreground);
  opacity: 0.7;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-close-btn: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;
}
.cart-empty-icon { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-empty-text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.cart-item { display: flex; gap: 1rem; }
.cart-item-img-link {
  width: 5rem;
  height: 6rem;
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  text-decoration: none;
  color: var(--color-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.125rem;
}
.cart-item-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: 0.25rem;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-display {
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 1.5rem;
  text-align: center;
}
.cart-remove-btn {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cart-remove-btn: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-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }
.cart-free-shipping {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}
.cart-checkout-link {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: opacity 0.2s ease;
  border: none;
  cursor: pointer;
}
.cart-checkout-link:hover { opacity: 0.85; }

/* =============================================================================
   WOOCOMMERCE OVERRIDES
   ============================================================================= */

/* WooCommerce add-to-cart button override per §11.4.1 */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Hide "View cart" link per §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; }

/* Button loading state per §31.8 */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* WC notices — scoped per §14.1 */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* WC notices styling on shop/archive */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  font-family: var(--font-body);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.woocommerce-message { background: rgba(160, 82, 45, 0.1); border-left: 3px solid var(--color-primary); }
.woocommerce-error { background: rgba(180, 40, 40, 0.08); border-left: 3px solid #b42828; }
.woocommerce-info { background: rgba(58, 31, 21, 0.07); border-left: 3px solid var(--color-foreground); }

/* =============================================================================
   SINGLE PRODUCT PAGE (§11)
   ============================================================================= */
.single-product .site-main { padding-top: 6rem; }
@media (min-width: 1024px) {
  .single-product .site-main { padding-top: 7rem; }
}

.single-product .theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .single-product .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

/* Product gallery */
.single-product .product-main-img-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 133.333%;
  background: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
}
.single-product .product-main-img-wrap .product-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
}

.single-product .theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.product-thumb-btn {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}
.product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }
.product-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info */
.product-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  display: block;
}
.product-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}
@media (min-width: 768px) {
  .product-title { font-size: 1.875rem; }
}
.product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.product-price ins { text-decoration: none; }
.product-price del { color: var(--color-muted-foreground); font-size: 1rem; }

.product-description {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.625;
  margin-bottom: 2rem;
  white-space: pre-line;
}
.product-description p { margin: 0; }
.single-product .woocommerce-product-details__short-description {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Color/size selectors */
.product-attr-section { margin-bottom: 1.5rem; }
.product-attr-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.attr-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.attr-options--color { gap: 0.75rem; }
.attr-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.attr-option-btn:hover { border-color: rgba(58, 31, 21, 0.5); }
.attr-option-btn.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-button-text);
}
.attr-option-btn--color.is-selected {
  border-color: var(--color-primary);
  background: rgba(160, 82, 45, 0.05);
  color: var(--color-foreground);
}
.attr-color-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Variations table from WC */
.single-product .variations.shop_attributes { margin-bottom: 0; }
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody tr { margin-bottom: 1.5rem; }
.single-product .variations tbody td.label {
  padding-bottom: 0.75rem;
}
.single-product .variations tbody td.label label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}
.single-product .variations tbody td.value { padding-top: 0; }

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability,
.single-product .woocommerce-variation-description { display: none !important; }

.theme-attr-select-hidden { display: none !important; }

/* Quantity + add to cart */
.single-product .theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
  min-height: 44px !important;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  width: 3rem;
  min-width: 3rem;
  text-align: center;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.25rem;
  -moz-appearance: textfield;
  color: var(--color-foreground);
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Product details list */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 0;
}
.product-details-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted-foreground);
}
.detail-bullet {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-primary);
  border-radius: 50%;
  margin-top: 0.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Stock status */
.stock-status {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.stock-status--in-stock { color: var(--color-primary); }
.stock-status--out-of-stock { color: #b42828; }

/* Back to shop */
.back-to-shop-wrap { padding: 1.5rem 0; }
.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

/* Related products */
.related-products-section {
  border-top: 1px solid var(--color-border);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.related-products-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .related-products-title { font-size: 1.5rem; } }

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Product info col responsive */
.single-product .product-info-col { padding-top: 0; }
@media (min-width: 1024px) { .single-product .product-info-col { padding-top: 2.5rem; } }

/* =============================================================================
   ARCHIVE / SHOP PAGE
   ============================================================================= */
.woocommerce-page.woocommerce-shop .site-main { padding-top: var(--header-height); }

.theme-archive-wrap {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.theme-archive-header {
  margin-bottom: 3rem;
}
.theme-archive-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.theme-archive-count {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.theme-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .theme-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .theme-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.theme-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
}

/* =============================================================================
   WOOCOMMERCE PAGES — Shared structural layout
   Cart, checkout, my account, and order received (block + classic).
   ============================================================================= */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main,
.site-main:has(.wp-block-woocommerce-cart),
.site-main:has(.wc-block-cart),
.site-main:has(.wp-block-woocommerce-checkout),
.site-main:has(.wc-block-checkout),
.site-main:has(.woocommerce-MyAccount-navigation),
.site-main:has(.woocommerce-order),
.site-main:has([class*="wp-block-woocommerce-order-confirmation"]) {
  padding-top: var(--header-height, 80px);
  padding-bottom: 4rem;
}

/* Parent wrappers must not constrain WooCommerce page width */
body.woocommerce-cart #page-content,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .site-main,
body.woocommerce-cart article,
body.woocommerce-checkout #page-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout article,
body.woocommerce-account #page-content,
body.woocommerce-account .entry-content,
body.woocommerce-account .site-main,
body.woocommerce-account article,
body.theme-thankyou-page #page-content,
body.theme-thankyou-page .entry-content,
body.theme-thankyou-page .site-main,
body.theme-thankyou-page article,
.site-main:has(.wp-block-woocommerce-cart),
.site-main:has(.wc-block-cart),
.site-main:has(.wp-block-woocommerce-checkout),
.site-main:has(.wc-block-checkout),
.site-main:has(.woocommerce-MyAccount-navigation),
.site-main:has(.woocommerce-order),
.site-main:has([class*="wp-block-woocommerce-order-confirmation"]),
.entry-content:has(.wp-block-woocommerce-cart),
.entry-content:has(.wc-block-cart),
.entry-content:has(.wp-block-woocommerce-checkout),
.entry-content:has(.wc-block-checkout),
.entry-content:has(.woocommerce-MyAccount-navigation),
.entry-content:has(.woocommerce-order),
.entry-content:has([class*="wp-block-woocommerce-order-confirmation"]) {
  max-width: none;
  width: 100%;
}

/* Block / page root containers — centered, 1280px max */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-account .entry-content > .woocommerce,
body.theme-thankyou-page .theme-thankyou-wrap,
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-cart,
.entry-content .wc-block-cart,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation),
.entry-content .theme-thankyou-wrap,
.entry-content .woocommerce-order,
.entry-content:has([class*="wp-block-woocommerce-order-confirmation"]) .wp-block-woocommerce-checkout,
.entry-content [class*="wp-block-woocommerce-order-confirmation"] {
  max-width: 80rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Cart & checkout — two-column grid on sidebar layout */
@media (min-width: 768px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-cart .wc-block-checkout-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap, 1.5rem);
    align-items: start;
  }
}

/* Cart & checkout — grid children */
body.woocommerce-cart .wc-block-components-sidebar-layout > *,
body.woocommerce-cart .wc-block-checkout-sidebar-layout > *,
body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Cart & checkout — notices full row */
body.woocommerce-cart .wc-block-components-notices,
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
  grid-column: 1 / -1;
  order: 1;
  max-width: 80rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main,
.entry-content .wc-block-cart__main,
.entry-content .wc-block-checkout__main {
  order: 2;
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar,
.entry-content .wc-block-cart__sidebar,
.entry-content .wc-block-components-sidebar.wc-block-cart__sidebar,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar.wc-block-checkout__sidebar {
  order: 3;
}

@media (min-width: 768px) {
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar,
  .entry-content .wc-block-cart__sidebar,
  .entry-content .wc-block-components-sidebar.wc-block-cart__sidebar,
  .entry-content .wc-block-checkout__sidebar,
  .entry-content .wc-block-components-sidebar.wc-block-checkout__sidebar {
    min-width: 360px;
  }
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-cart-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-cart__main,
.entry-content .wc-block-cart__sidebar,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar,
.entry-content .wc-block-cart__sidebar,
.entry-content .wc-block-components-sidebar.wc-block-cart__sidebar,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar.wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}

/* My Account — two-column nav + content */
@media (min-width: 768px) {
  body.woocommerce-account .entry-content > .woocommerce,
  .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: var(--checkout-gap, 1.5rem);
    align-items: start;
  }
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
.entry-content .woocommerce-MyAccount-navigation {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content,
.entry-content .woocommerce-MyAccount-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul,
.entry-content .woocommerce-MyAccount-navigation ul {
  list-style: none;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li,
.entry-content .woocommerce-MyAccount-navigation li {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a,
.entry-content .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.625rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a,
.entry-content .woocommerce-MyAccount-navigation li:last-child a {
  border-bottom: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.entry-content .woocommerce-MyAccount-navigation li.is-active a,
.entry-content .woocommerce-MyAccount-navigation a:hover {
  color: var(--color-primary);
}

/* Classic + block notices on WooCommerce pages */
body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-account .woocommerce-notices-wrapper,
body.theme-thankyou-page .woocommerce-notices-wrapper,
.entry-content .wc-block-components-notice-banner {
  font-family: var(--font-body);
  border-radius: var(--radius);
}

/* Checkout form fields & button */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  background-color: var(--color-card) !important;
  width: 100% !important;
  max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.15) !important;
  outline: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  padding: 0.875rem 1.5rem !important;
  transition: opacity 0.2s ease !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85 !important; }

/* Visible page titles on default WooCommerce pages (cart, checkout, my account) */
.theme-page-header--visible {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .theme-page-header--visible { padding-left: 2rem; padding-right: 2rem; }
}

body.woocommerce-cart .theme-page-header--visible .page-title,
body.woocommerce-checkout .theme-page-header--visible .page-title,
body.woocommerce-account .theme-page-header--visible .page-title,
body.woocommerce-page .theme-page-header--visible .page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--color-foreground);
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content {
  padding-top: 0.5rem;
}

/* =============================================================================
   THANK YOU / ORDER RECEIVED (§22.8)
   ============================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }

body.theme-thankyou-page .theme-thankyou-wrap {
  padding: 2rem 1.5rem 4rem;
}

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  background: var(--color-card);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-foreground); display: block; font-size: 1rem; }

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 100%;
  overflow-wrap: break-word;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* Block-based order confirmation (post-checkout) */
body.theme-thankyou-page [class*="wp-block-woocommerce-order-confirmation"],
.entry-content [class*="wp-block-woocommerce-order-confirmation"] {
  font-family: var(--font-body);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.theme-thankyou-page .wp-block-woocommerce-order-confirmation-status,
body.theme-thankyou-page .wp-block-woocommerce-order-confirmation-summary,
.entry-content .wp-block-woocommerce-order-confirmation-status,
.entry-content .wp-block-woocommerce-order-confirmation-summary {
  margin-bottom: 1.5rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-totals table,
.entry-content .wc-block-order-confirmation-totals table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

body.theme-thankyou-page .wc-block-order-confirmation-totals th,
body.theme-thankyou-page .wc-block-order-confirmation-totals td,
.entry-content .wc-block-order-confirmation-totals th,
.entry-content .wc-block-order-confirmation-totals td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* =============================================================================
   INNER PAGES (non-homepage)
   ============================================================================= */
.theme-inner-page { padding-top: var(--header-height, 80px); min-height: 70vh; }

/* 404 page */
.error-label {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}
.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.error-text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

/* =============================================================================
   SCROLL-REVEAL SECTIONS
   ============================================================================= */
.scroll-target { scroll-margin-top: 6rem; }
body.admin-bar .scroll-target,
body.admin-bar .about-section,
body.admin-bar .shop-section,
body.admin-bar .owner-section,
body.admin-bar .faq-section,
body.admin-bar .contact-section {
  scroll-margin-top: calc(6rem + var(--admin-bar-height, 32px));
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9) rotate(-90deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* =============================================================================
   RESPONSIVE UTILITIES
   ============================================================================= */
@media (max-width: 767px) {
  .cart-btn.desktop-only { display: none; }
  .single-product .theme-product-thumbnails { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 639px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}

/* Grain overlay utility */
.grain-overlay {
  background-image: radial-gradient(rgba(122, 66, 33, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}
