/* ============================================================
   Wick & Willow Apothecary — theme.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --color-primary:            #a87d28;
  --color-primary-foreground: #f9f5ed;
  --color-background:         #f5f1ea;
  --color-foreground:         #3d2e22;
  --color-secondary:          #e7dbc8;
  --color-card:               #efe8dc;
  --color-muted:              #e4ddd3;
  --color-muted-foreground:   #6d5e52;
  --color-border:             #d8ccb8;
  --color-destructive:        #c22b2b;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Nunito Sans', sans-serif;

  --shadow-soft:     0 4px 20px -4px rgba(61,46,34,0.08);
  --shadow-elevated: 0 8px 40px -8px rgba(61,46,34,0.15);

  --logo-height: 48px;

  --btn-radius:        0.5rem;
  --btn-height:        48px;
  --btn-padding:       0.75rem 2rem;
  --btn-font-size:     0.875rem;
  --btn-font-weight:   600;
  --btn-letter-spacing:0.025em;
  --btn-text-transform:none;
  --btn-icon-padding:  0.625rem;
  --card-radius:       1rem;

  --header-height: 80px;
  --transition:    cubic-bezier(0.4,0,0.2,1);
}

/* ---- 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;
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* ---- Layout ---- */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding: 0 2rem; }
}
.max-width-3xl { max-width: 48rem; margin: 0 auto; }
.max-width-5xl { max-width: 64rem; margin: 0 auto; }
.text-center { text-align: center; }

/* ---- Scroll margin for fixed header ---- */
.scroll-mt { scroll-margin-top: calc(var(--header-height) + 1.5rem); }

/* ---- Scroll Progress Bar ---- */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  z-index: 1000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--transition), border-color 0.3s var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(245,241,234,0.96);
  backdrop-filter: blur(8px);
  border-color: var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) {
  .site-nav { height: var(--header-height); }
}

/* Logo */
.site-logo-link,
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-size: 1.125rem; line-height: var(--logo-height); display: block; }
.site-logo-name { font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: 0.025em; }

/* When header is transparent (hero), use white text */
.site-header:not(.is-solid) .site-nav { color: #fff; }
.site-header:not(.is-solid) .site-nav a,
.site-header:not(.is-solid) .site-nav button { color: #fff; }

/* Nav links */
.site-nav-links { display: none; }
@media (min-width: 768px) {
  .site-nav-links { display: flex; align-items: center; gap: 2rem; }
}
.theme-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.theme-nav-list li a,
.theme-nav-list li button {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: opacity 0.2s;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.theme-nav-list li a::after,
.theme-nav-list li button::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition);
}
.theme-nav-list li a:hover::after,
.theme-nav-list li button:hover::after { transform: scaleX(1); }

/* Nav actions */
.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu */
.mobile-menu-btn { padding: 0.5rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-menu  { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  background: rgba(245,241,234,0.98);
  backdrop-filter: blur(8px);
}
.mobile-nav.is-open { display: block; animation: fadeIn 0.2s var(--transition); }
.mobile-nav .theme-nav-list,
.mobile-nav .theme-footer-nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
.mobile-nav li, .mobile-nav .menu-item { width: 100%; }
.mobile-nav li a,
.mobile-nav li button,
.mobile-nav-list li a,
.mobile-nav-list li button {
  display: block;
  width: 100%;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--color-foreground) !important;
  transition: color 0.2s;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.mobile-nav li a:hover, .mobile-nav li button:hover { color: var(--color-muted-foreground) !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-foreground);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(61,46,34,0.55) 0%,
    rgba(61,46,34,0.40) 50%,
    rgba(61,46,34,0.70) 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  will-change: transform;
}
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1.5rem;
  color: #fff;
  will-change: transform, opacity;
}
.hero-tagline {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-subtitle {
  color: rgba(255,255,255,0.8);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-down-btn {
  color: rgba(255,255,255,0.7);
  padding: 0.5rem;
  transition: color 0.2s;
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-down-btn:hover { color: #fff; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.9s cubic-bezier(0.16,1,0.3,1) both;
  opacity: 0;
}
.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.16,1,0.3,1) both;
  opacity: 0;
}
.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.8s; }
.delay-4 { animation-delay: 1s; }
.delay-5 { animation-delay: 1.4s; }

/* Intersection Observer reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  transition: opacity 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  text-decoration: none;
  min-height: var(--btn-height);
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.88; }
.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-secondary);
  border-color: var(--color-muted-foreground);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-tagline {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-top: 0.5rem;
}
.section-header { margin-bottom: 3rem; }

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section { padding: 5rem 0; }

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cat-filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-foreground);
  transition: background 0.3s, color 0.3s;
  font-family: var(--font-body);
}
.cat-filter-btn:hover { background: var(--color-muted); }
.cat-filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* Price Filter */
.price-filter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-foreground);
  transition: background 0.2s;
  font-family: var(--font-body);
}
.price-filter-toggle:hover { background: var(--color-muted); }
.price-filter-toggle .chevron-icon {
  transition: transform 0.3s;
}
.price-filter-toggle[aria-expanded="true"] .chevron-icon { transform: rotate(180deg); }

.price-filter-panel {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.price-filter-panel.is-open {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
  padding: 0.5rem 0;
}

/* Radix-style dual-thumb price slider (matches Lovable Slider) */
.price-slider-root {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2rem;
  touch-action: none;
  user-select: none;
}
.price-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-secondary);
  overflow: hidden;
}
.price-slider-range {
  position: absolute;
  height: 100%;
  background: var(--color-primary);
  border-radius: 999px;
  pointer-events: none;
}
.price-slider-input {
  position: absolute;
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  height: 2rem;
  top: 0;
  left: 0;
}
.price-slider-input::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
}
.price-slider-input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
}
.price-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  box-shadow: 0 1px 3px rgba(61,46,34,0.15);
  cursor: grab;
  margin-top: -0.375rem;
}
.price-slider-input::-moz-range-thumb {
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  box-shadow: 0 1px 3px rgba(61,46,34,0.15);
  cursor: grab;
}
.price-slider-input--max { z-index: 2; }
.price-slider-input--min { z-index: 3; }
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.5rem;
}

/* Product Grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Product Card (Section 31.3, 31.9) */
.theme-product-card-wrap { display: flex; }
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: var(--color-card);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: visible;
}
.theme-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(61,46,34,0.18);
}

/* Hit-area overlay (Pattern A) */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  border-radius: var(--card-radius);
}
.theme-product-card * { pointer-events: none; }
.theme-product-card .theme-card-link,
.theme-product-card .product-card-title-link { pointer-events: auto; }
.theme-product-card .product-card-atc-btn,
.theme-product-card .add_to_cart_button,
.theme-product-card .product-card-atc-btn--choose-scent { pointer-events: auto; position: relative; z-index: 3; }

/* Image wrapper */
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--card-radius) - 0.25rem);
  margin-bottom: 1rem;
}
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.08); }

/* Card info */
.theme-product-card__info { flex: 1; padding: 0 0.25rem 0.25rem; }
.product-card-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.product-card-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.product-card-price .woocommerce-Price-amount { color: var(--color-muted-foreground); }

/* Product Badges */
.product-badge {
  position: absolute;
  z-index: 3;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}
@media (min-width: 768px) {
  .product-badge { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
}
.sold-out-badge {
  top: 0.5rem; left: 0.5rem;
  background: var(--color-foreground);
  color: var(--color-background);
}
.sale-badge {
  top: 0.5rem; right: 0.5rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* Add to cart button on card */
.product-card-atc-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevated);
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
  text-decoration: none;
  line-height: 0;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.product-card-atc-btn svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (min-width: 768px) {
  .product-card-atc-btn {
    opacity: 0;
    transform: translateY(4px);
  }
  .theme-product-card:hover .product-card-atc-btn {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card-atc-btn:hover { opacity: 0.85 !important; }
.product-card-atc-btn.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.product-card-atc-btn .atc-icon-check { display: none; }
.product-card-atc-btn.is-added .atc-icon-bag { display: none; }
.product-card-atc-btn.is-added .atc-icon-check { display: block; }
.product-card-title-link {
  color: inherit;
  text-decoration: none;
}
.product-card-title-link:hover { opacity: 0.7; }

/* View All */
.view-all-wrap { text-align: center; margin-top: 2.5rem; }
.view-all-btn { padding: 0.75rem 2.5rem; }

/* No products */
.no-products-message,
.no-filter-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: rgba(231,219,200,0.5);
  padding: 5rem 0;
}
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--card-radius) - 0.25rem);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(231,219,200,0.4); }
.faq-icon {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon .icon-minus { display: none; }
.faq-item.is-open .faq-icon .icon-plus  { display: none; }
.faq-item.is-open .faq-icon .icon-minus { display: block; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
  opacity: 0;
}
.faq-item.is-open .faq-answer {
  max-height: 600px;
  opacity: 1;
}
.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--color-secondary);
  padding: 5rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--card-radius) - 0.25rem);
  box-shadow: var(--shadow-soft);
}
.about-content-col { display: flex; flex-direction: column; gap: 1.25rem; }
.about-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text p { color: var(--color-muted-foreground); line-height: 1.75; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 5rem 0; }
.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--card-radius) + 0.5rem);
  background: var(--color-foreground);
  color: var(--color-background);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cta-inner { grid-template-columns: 1fr 1fr; } }
.cta-content-col { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
@media (min-width: 1024px) { .cta-content-col { padding: 4rem; } }
.cta-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; color: var(--color-background); }
.cta-subtitle { color: rgba(245,241,234,0.7); max-width: 28rem; line-height: 1.7; margin-bottom: 2rem; }
.cta-image-col {
  position: relative;
  min-height: 280px;
}
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,46,34,0.2);
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.inner-page-main { padding-top: var(--header-height); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  padding: 2rem 0 1rem;
}
.entry-content { max-width: 100%; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
  padding: 1.5rem 0;
}
.back-link:hover { color: var(--color-foreground); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { min-height: 100vh; }
.contact-page .container-wide { padding-top: 2rem; padding-bottom: 4rem; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.contact-subtitle { color: var(--color-muted-foreground); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }
.contact-info-box {
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: 1.5rem;
}
.contact-info-title { font-size: 1.125rem; margin-bottom: 1rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.contact-info-list svg { flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }
.contact-email-link { transition: color 0.2s; word-break: break-all; }
.contact-email-link:hover { color: var(--color-primary); }
.contact-social { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(216,204,184,0.6); }
.contact-social-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.contact-social-links { display: flex; gap: 0.75rem; }

/* Social button */
.social-btn {
  width: 2.25rem; height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-card);
  transition: background 0.2s, color 0.2s;
  color: var(--color-foreground);
}
.social-btn:hover { background: var(--color-primary); color: var(--color-primary-foreground); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--btn-radius) + 0.25rem);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-muted-foreground); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(168,125,40,0.15);
}
.form-group textarea { resize: none; }
.form-error {
  font-size: 0.875rem;
  color: var(--color-destructive);
  padding: 0.75rem;
  background: rgba(194,43,43,0.08);
  border-radius: var(--btn-radius);
}
.contact-submit-btn { align-self: flex-start; }
.contact-success {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
}
.contact-success-icon {
  width: 4rem; height: 4rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.contact-success h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-success p { color: var(--color-muted-foreground); margin-bottom: 2rem; }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-main .container-wide { padding-bottom: 5rem; }
.product-back-link { padding: 1rem 0; }

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

/* Gallery */
.theme-product-main-image {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.product-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s var(--transition);
}
.theme-product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 100%;
}
.product-thumb-btn {
  width: 60px; height: 60px;
  border: 2px solid var(--color-border);
  border-radius: 0.375rem;
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.product-thumb-btn:hover { border-color: var(--color-muted-foreground); }
.product-thumb-btn.is-active { border-color: var(--color-foreground); }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }
.product-cats { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.product-cats a { color: inherit; transition: color 0.2s; }
.product-cats a:hover { color: var(--color-foreground); }
.product-title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.product-category-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}
.product-price,
.product-price-total { font-size: 1.25rem; margin-bottom: 1.5rem; }
.product-price .woocommerce-Price-amount { font-size: 1.25rem; }
.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--btn-radius);
  margin-bottom: 1rem;
}
.product-description { color: var(--color-muted-foreground); line-height: 1.75; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.product-description p + p { margin-top: 1rem; }

/* Scent Selector */
.product-scent-selectors { margin-bottom: 0.5rem; }
.scent-selector-wrap { margin-bottom: 1.25rem; }
.scent-selector-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.scent-dropdown-wrap { position: relative; }
.scent-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: left;
  font-family: var(--font-body);
}
.scent-dropdown-btn:hover { border-color: rgba(61,46,34,0.5); }
.scent-dropdown-btn[aria-expanded="true"] .chevron-icon { transform: rotate(180deg); }
.scent-dropdown-btn .chevron-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--color-muted-foreground);
  transition: transform 0.2s;
}
.scent-dropdown-value.is-placeholder { color: var(--color-muted-foreground); }
.scent-dropdown-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  box-shadow: var(--shadow-elevated);
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.25rem 0;
  display: none;
  list-style: none;
  margin: 0;
}
.scent-dropdown-list.is-open {
  display: block;
  animation: scentDropdownIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes scentDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.scent-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--color-foreground);
}
.scent-option:hover { background: var(--color-secondary); }
.scent-option.is-selected,
.scent-option[aria-selected="true"] { background: rgba(231,219,200,0.6); }
.scent-option-content { flex: 1; min-width: 0; }
.scent-option-name { display: block; font-weight: 500; font-size: 0.875rem; }
.scent-option-notes { display: block; font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.scent-option-check {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  opacity: 0;
}
.scent-option.is-selected .scent-option-check,
.scent-option[aria-selected="true"] .scent-option-check { opacity: 1; }
.scent-option-empty {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  list-style: none;
}
.scent-error {
  font-size: 0.875rem;
  color: var(--color-destructive);
  margin-bottom: 1rem;
}

/* Add to Cart Area */
.theme-add-to-cart-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  line-height: 1;
  transition: background 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  width: 3rem;
  text-align: center;
  padding: 0.75rem 0.25rem;
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Product details section */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 2rem;
}
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-short-description ul { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; }
.product-short-description li {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.product-short-description li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-muted-foreground);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Responsive single product (Section 11.13) */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* WooCommerce variations table (Section 11.5.1) */
.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; }

/* single_variation_wrap hidden until variation selected */
.single_variation_wrap { display: none; }

/* Related products */
.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-title { font-size: 1.25rem; margin-bottom: 2.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; }
}

/* ============================================================
   WOOCOMMERCE ADD TO CART BUTTON OVERRIDES (Section 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-primary-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}
/* Card compact button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .product-card-atc-btn {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  overflow: visible !important;
}

/* Hide WooCommerce "View cart" link (Section 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; }

/* ============================================================
   CART DRAWER (Section 12)
   ============================================================ */
#theme-cart-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(100%, 28rem);
  height: 100%;
  background: var(--color-background);
  box-shadow: var(--shadow-elevated);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16,1,0.3,1);
}
body.cart-open #theme-cart-drawer { right: 0; }
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,46,34,0.2);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title { font-size: 1.125rem; font-weight: 500; }
.cart-drawer-close {
  padding: 0.25rem;
  transition: opacity 0.2s;
  cursor: pointer;
}
.cart-drawer-close:hover { opacity: 0.6; }

.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-drawer-empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.cart-continue-btn { cursor: pointer; }

.cart-drawer-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 { flex-shrink: 0; width: 5rem; height: 6rem; background: var(--color-secondary); border-radius: 0.375rem; overflow: hidden; }
.cart-item-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img-link .cart-item-img { display: block; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; transition: opacity 0.2s; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-item-qty { font-size: 0.875rem; min-width: 1.5rem; text-align: center; }
.cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s; cursor: pointer; }
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.25rem; }
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-checkout-btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* ============================================================
   WOOCOMMERCE NOTICES (Section 14.1)
   ============================================================ */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error {
  background: rgba(194,43,43,0.08);
  border-left: 3px solid var(--color-destructive);
  padding: 1rem;
  border-radius: var(--btn-radius);
  font-size: 0.875rem;
  list-style: none;
}

/* ============================================================
   CHECKOUT (Section 13)
   ============================================================ */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .entry-content { padding-top: 0; }
body.woocommerce-checkout .inner-page-main { padding-bottom: 4rem; }
body.woocommerce-checkout .wc-block-checkout { display: block; }

/* Cart, checkout, and my-account — align with container-wide margins */
.entry-content--woo,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .entry-content--woo,
  body.woocommerce-cart .entry-content,
  body.woocommerce-checkout .entry-content,
  body.woocommerce-account .entry-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
body.woocommerce-cart .inner-page-main .page-title,
body.woocommerce-checkout .inner-page-main .page-title,
body.woocommerce-account .inner-page-main .page-title {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  body.woocommerce-cart .inner-page-main .page-title,
  body.woocommerce-checkout .inner-page-main .page-title,
  body.woocommerce-account .inner-page-main .page-title {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--btn-radius) + 0.25rem);
  background: var(--color-background);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(168,125,40,0.15);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  min-height: var(--btn-height) !important;
  border: none !important;
  transition: opacity 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.88 !important; }
body.woocommerce-checkout h1.page-title { padding: 2.5rem 0 1.5rem; font-size: clamp(1.75rem,3vw,2.5rem); }

/* ============================================================
   THANK YOU PAGE (Section 22.8)
   ============================================================ */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { max-width: 800px; margin: 0 auto; padding: 2rem 0; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding-bottom: 1rem; }
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 1rem;
  list-style: none; padding: 1.5rem;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { flex: 1; min-width: 120px; }
body.theme-thankyou-page .woocommerce-order-overview strong { display: block; font-size: 0.875rem; color: var(--color-muted-foreground); }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
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 { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; background: var(--color-card); padding: 1.5rem; border-radius: var(--card-radius); font-style: normal; }
.thankyou-content { max-width: 800px; margin: 0 auto; }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-page { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; }
.not-found-content { text-align: center; padding: 5rem 1rem; }
.not-found-title { font-family: var(--font-display); font-size: clamp(4rem,10vw,8rem); font-weight: 500; opacity: 0.2; margin-bottom: 0.5rem; }
.not-found-subtitle { font-size: 1.5rem; margin-bottom: 1rem; }
.not-found-text { color: var(--color-muted-foreground); margin-bottom: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--color-border); background: rgba(231,219,200,0.4); }
.site-footer .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.footer-logo { height: var(--logo-height) !important; width: auto !important; }
.footer-tagline { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 22rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-col-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; }
.theme-footer-nav-list li a,
.theme-footer-nav-list li button {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.theme-footer-nav-list li a:hover,
.theme-footer-nav-list li button:hover { color: var(--color-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-contact-list svg { flex-shrink: 0; margin-top: 1px; }
.footer-email-link { word-break: break-all; color: inherit; transition: color 0.2s; }
.footer-email-link:hover { color: var(--color-foreground); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-built-by { font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.footer-built-by:hover { color: var(--color-foreground); }

/* ============================================================
   ARCHIVE PRODUCT PAGE
   ============================================================ */
.archive-product-main .container-wide { padding-top: 2rem; padding-bottom: 4rem; }
.archive-product-main .woocommerce-result-count,
.archive-product-main .woocommerce-ordering { display: none; }
.archive-product-main ul.products { list-style: none; padding: 0; margin: 0; display: contents; }
.archive-product-main ul.products li { display: contents; }
/* Pagination */
.woocommerce-pagination,
.navigation.pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul,
.nav-links { display: inline-flex; gap: 0.25rem; list-style: none; padding: 0; }
.woocommerce-pagination .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--btn-radius);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  border: 1px solid var(--color-border);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.woocommerce-pagination .page-numbers.current,
.nav-links .current {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}
.woocommerce-pagination .page-numbers:hover,
.nav-links a:hover { background: var(--color-secondary); }

/* ============================================================
   MISCELLANEOUS WC OVERRIDES
   ============================================================ */
/* WooCommerce price */
.woocommerce-Price-amount bdi { /* inherit color */ }
del .woocommerce-Price-amount { color: var(--color-muted-foreground); }
ins { text-decoration: none; }
ins .woocommerce-Price-amount { color: var(--color-foreground); }

/* Stock status */
.woocommerce-variation-availability .stock { font-size: 0.875rem; }
.in-stock { color: #2a7a3b; }
.out-of-stock { color: var(--color-muted-foreground); }

/* Hidden variation select (Section 11.5.2) */
.theme-attr-select-hidden { display: none !important; }

/* ============================================================
   WooCommerce notices on shop (Section 14.1)
   ============================================================ */
.woocommerce-message {
  padding: 1rem 1.5rem;
  background: var(--color-secondary);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--btn-radius);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
