/* =============================================================
   JC PRESERVE — THEME CSS
   ============================================================= */

/* --- Design Tokens (fallbacks if PHP doesn't inject) --- */
:root {
  --color-background:    #f8f4ef;
  --color-foreground:    #2a1f14;
  --color-primary:       #7a5230;
  --color-primary-fg:    #f8f4ef;
  --color-secondary:     #ede9e2;
  --color-secondary-fg:  #3a2d1e;
  --color-muted:         #b8a898;
  --color-muted-fg:      #7a6a58;
  --color-border:        #d8cfc4;
  --color-card:          #eee9e0;
  --font-display:        'Playfair Display', Georgia, serif;
  --font-body:           'Montserrat', Arial, sans-serif;
  --radius:              0.5rem;
  --shadow-soft:         0 4px 20px -4px rgba(42,31,20,0.06);
  --shadow-elevated:     0 8px 40px -8px rgba(42,31,20,0.12);
  --transition-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --logo-height:         76px;
  --header-height:       96px;
  --btn-height:          48px;
  --btn-padding:         0 2.5rem;
  --btn-radius:          0.5rem;
  --btn-font-size:       0.875rem;
  --btn-font-weight:     500;
  --btn-letter-spacing:  0.025em;
  --btn-text-transform:  none;
  --btn-icon-padding:    0.5rem;
  --card-radius:         0.75rem;
  --section-padding:     2rem;
  --checkout-gap:        2rem;
}

/* =============================================================
   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;
  overflow-x: hidden;
}

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

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

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

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.border-top { border-top: 1px solid var(--color-border); }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.scroll-target { scroll-margin-top: var(--header-height); }

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
}

.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }

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

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border: 2px solid var(--color-primary);
}
.btn--primary:hover { opacity: 0.85; }

.btn--outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn--ghost {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background-color: rgba(255,255,255,0.3); }

.btn--light {
  background-color: var(--color-background);
  color: var(--color-foreground);
  border: 2px solid transparent;
}
.btn--light:hover { background-color: color-mix(in srgb, var(--color-background) 90%, transparent); }

/* WooCommerce button overrides */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !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-primary-fg) !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 quick-add button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-product-card__quick-add {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide "View cart" injected after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-background);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid,
.site-header.is-scrolled {
  background-color: rgba(248,244,239,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
@media (min-width: 1024px) {
  .site-nav { height: 96px; }
}

.site-nav__left {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}

.site-nav__center { display: flex; align-items: center; }

.site-nav__right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}

/* Logo */
.site-logo-link { display: inline-flex; align-items: center; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  line-height: var(--logo-height);
  display: block;
}

/* Desktop nav links */
.site-nav__desktop-links { display: none; }
@media (min-width: 768px) {
  .site-nav__desktop-links { display: flex; align-items: center; gap: 2rem; }
}

.theme-nav-list,
.theme-mobile-nav-list { list-style: none; padding: 0; margin: 0; }

.theme-nav-list { display: flex; align-items: center; gap: 2rem; }

.theme-nav-list li a,
.theme-nav-list li button,
.theme-nav-contact-btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.3s ease;
}

.theme-nav-list li a::after,
.theme-nav-list li button::after,
.theme-nav-contact-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background-color: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list li a:hover::after,
.theme-nav-list li button:hover::after,
.theme-nav-contact-btn:hover::after { transform: scaleX(1); }

/* Mobile toggle */
.site-nav__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}
.site-nav__mobile-toggle:hover { opacity: 0.6; }
@media (min-width: 768px) { .site-nav__mobile-toggle { display: none; } }

/* Mobile menu */
.site-nav__mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.site-nav__mobile-menu.is-open { display: block; }

.theme-mobile-nav-list { display: flex; flex-direction: column; gap: 0; }
.theme-mobile-nav-list li a,
.theme-mobile-nav-list li button,
.theme-mobile-nav-list .theme-nav-contact-btn {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.2s ease;
}
.theme-mobile-nav-list li a:hover,
.theme-mobile-nav-list li button:hover { color: var(--color-muted-fg); }

/* Cart button */
.site-nav__cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}
.site-nav__cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 1.25rem; height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 50%;
  font-family: var(--font-body);
}
.theme-cart-count:empty { display: none; }

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

.hero-section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
}

.hero-section__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.8s var(--transition-smooth) 0.4s forwards;
}

.hero-section__eyebrow-line {
  display: block;
  height: 1px;
  width: 3rem;
  background-color: rgba(255,255,255,0.4);
}

.hero-section__eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.hero-section__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUpFade 1s var(--transition-smooth) 0.6s forwards;
}

.hero-section__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: blurFade 0.8s var(--transition-smooth) 0.9s forwards;
}

.hero-section__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  animation: fadeIn 0.7s var(--transition-smooth) 1.1s forwards;
}
@media (min-width: 640px) {
  .hero-section__buttons { flex-direction: row; }
}

/* =============================================================
   FEATURED SECTION
   ============================================================= */
.featured-section {
  background-color: var(--color-secondary);
  padding: 4rem 0;
}
@media (min-width: 768px) { .featured-section { padding: 6rem 0; } }

.featured-section__inner { }

.featured-section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* =============================================================
   ABOUT SECTION
   ============================================================= */
.about-section { padding: 4rem 0; }
@media (min-width: 768px) { .about-section { padding: 6rem 0; } }

.about-section__inner { }

.about-section__header { max-width: 48rem; margin: 0 auto 2rem; }

.about-section__title { font-size: clamp(1.75rem, 4vw, 3.125rem); }

.about-section__body {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-section__p1,
.about-section__p2 {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  line-height: 1.7;
  font-size: 1rem;
}

.about-section__p1 { font-size: 1.0625rem; }

/* =============================================================
   PROCESS SECTION
   ============================================================= */
.process-section {
  background-color: var(--color-secondary);
  padding: 4rem 0;
}
@media (min-width: 768px) { .process-section { padding: 6rem 0; } }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 0;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.process-item {
  text-align: center;
  padding: 2rem;
}

.process-item__icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 2.5rem;
  height: 2.5rem;
}

.process-item__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-item__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.7;
}

/* =============================================================
   SHOP SECTION
   ============================================================= */
.shop-section { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .shop-section { padding: 5rem 0 5rem; } }

.shop-section__inner { }

/* Search */
.shop-search-wrap {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.shop-search {
  position: relative;
  display: flex;
  align-items: center;
}

.shop-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
  pointer-events: none;
  display: block;
  width: 16px;
  height: 16px;
}

.shop-search__input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.shop-search__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122,82,48,0.1);
}
.shop-search__input::placeholder { color: var(--color-muted-fg); }

/* Category pills */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shop-cat-pill {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.shop-cat-pill:hover { background-color: var(--color-muted); }
.shop-cat-pill.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}

/* Price filter */
.price-filter {
  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-size: 0.875rem;
  font-family: var(--font-body);
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.price-filter__toggle:hover { background-color: var(--color-muted); }

.price-filter__active-range { font-size: 0.75rem; opacity: 0.7; }

.price-filter__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.price-filter__chevron.is-open { transform: rotate(180deg); }

.price-filter__content { width: 100%; max-width: 22rem; transition: height 0.3s ease, opacity 0.3s ease; }
.price-filter__body { padding: 0.5rem 0 1rem; }

/* Price range slider — dual full-width ranges (LTR; avoids RTL min thumb at center) */
.price-range-wrapper {
  position: relative;
  height: 1.5rem;
  margin-bottom: 0.75rem;
}

.price-range-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}

.price-range-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  background: transparent;
  outline: none;
  cursor: pointer;
  pointer-events: none;
  z-index: 2;
}

.price-range-input--min {
  z-index: 3;
}

.price-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.price-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  margin-top: -6px;
  pointer-events: auto;
}
.price-range-input::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  pointer-events: auto;
}

.range-track-fill {
  position: absolute;
  left: 0;
  height: 4px;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
  z-index: 1;
}

.price-filter__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

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

.theme-product-grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) {
  .theme-product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Product card */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--color-foreground);
}

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--color-card);
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.theme-product-card__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
  overflow: hidden;
}

.theme-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.theme-product-card:hover .theme-product-card__image {
  transform: scale(1.06);
}

.theme-product-card__badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  z-index: 3;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-radius: 0.25rem;
}
@media (min-width: 768px) {
  .theme-product-card__badge { top: 0.75rem; left: 0.75rem; }
}

.theme-product-card__quick-add {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  z-index: 2;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: auto;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (min-width: 768px) {
  .theme-product-card__quick-add {
    bottom: 0.75rem; right: 0.75rem;
    opacity: 0;
  }
  .theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
}
.theme-product-card__quick-add:hover { transform: scale(1.1); opacity: 1; }

.theme-product-card__overlay {
  position: absolute;
  inset: 0;
  background-color: transparent;
  pointer-events: none;
  transition: background-color 0.5s ease;
}
.theme-product-card:hover .theme-product-card__overlay {
  background-color: rgba(42,31,20,0.05);
}

.theme-product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.theme-product-card__name-link {
  color: var(--color-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}
.theme-product-card:hover .theme-product-card__name-link { color: var(--color-primary); }

.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-fg);
  margin: 0;
}
.theme-product-card__price .amount { color: var(--color-muted-fg); }

.theme-product-card__stock-out {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

/* Card hover lift */
.theme-product-card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s var(--transition-smooth);
}

/* Load more */
.shop-load-more { text-align: center; margin-top: 2.5rem; }
.shop-empty-state { text-align: center; padding: 5rem 0; }
.shop-empty-msg, .shop-empty-state p {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  font-size: 0.9375rem;
}

/* =============================================================
   CTA SECTION
   ============================================================= */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}
@media (min-width: 768px) { .cta-section { padding: 6rem 0; } }

.cta-section__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
}

.cta-section__content {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section__desc {
  font-family: var(--font-body);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-section__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .cta-section__buttons { flex-direction: row; } }

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

.site-footer .container-wide {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
  .site-footer__grid { gap: 4rem; }
}

.site-footer__logo { height: 3.3rem !important; width: auto !important; }

.site-footer__tagline {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  font-style: italic;
}

.site-footer__blurb {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  line-height: 1.6;
  max-width: 22rem;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.theme-footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav-list li a,
.theme-footer-nav-list li button,
.theme-footer-nav-list .theme-nav-contact-btn {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  text-transform: capitalize;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s ease;
}
.theme-footer-nav-list li a:hover,
.theme-footer-nav-list li button:hover,
.theme-footer-nav-list .theme-nav-contact-btn:hover { color: var(--color-foreground); }

.site-footer__contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.site-footer__email-link { transition: color 0.2s ease; }
.site-footer__email-link:hover { color: var(--color-foreground); }

.site-footer__social {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

.site-footer__instagram-link {
  color: var(--color-primary);
  transition: text-decoration 0.2s ease;
}
.site-footer__instagram-link:hover { text-decoration: underline; }

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

.site-footer__copyright,
.site-footer__credit {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.site-footer__credit a { transition: color 0.2s ease; text-decoration: underline; }
.site-footer__credit a:hover { color: var(--color-foreground); }

/* =============================================================
   CONTACT MODAL
   ============================================================= */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.is-open {
  pointer-events: all;
  opacity: 1;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(42,31,20,0.2);
  cursor: pointer;
}

.contact-modal__content {
  position: relative;
  z-index: 10;
  background-color: var(--color-background);
  border-radius: 0.75rem;
  padding: 2rem;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.contact-modal.is-open .contact-modal__content { transform: scale(1); }

.contact-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.contact-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
}

.contact-modal__close {
  padding: 0.25rem;
  color: var(--color-muted-fg);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.contact-modal__close:hover { opacity: 0.6; }

.contact-modal__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.contact-modal__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}

.contact-modal__info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-modal__email-link { transition: color 0.2s ease; }
.contact-modal__email-link:hover { color: var(--color-foreground); }

/* Success state */
.contact-modal__success {
  text-align: center;
  padding: 2rem 0;
}

.contact-modal__success-icon {
  width: 3.5rem; height: 3.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-modal__success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-modal__success-msg {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

/* Contact form */
.contact-modal__form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form__row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .contact-form__row--2 { grid-template-columns: 1fr 1fr; }
}

.contact-form__field { display: flex; flex-direction: column; gap: 0.375rem; }
.contact-form__field label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122,82,48,0.1);
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: var(--color-muted-fg); }
.contact-form__field textarea { resize: none; }

.contact-form__actions { display: flex; justify-content: flex-end; }

/* =============================================================
   CART DRAWER
   ============================================================= */
body.cart-open { overflow: hidden; }

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(42,31,20,0.2);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: all;
}

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  z-index: 150;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
  overflow: hidden;
}

body.cart-open #theme-cart-drawer { transform: translateX(0); }

#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-drawer__close {
  padding: 0.25rem;
  color: var(--color-muted-fg);
  transition: opacity 0.2s ease;
}
.cart-drawer__close:hover { opacity: 0.6; }

/* Empty state */
.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1.5rem;
  color: var(--color-muted-fg);
}

.cart-drawer__empty-msg {
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

/* Cart items */
.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__image-link {
  width: 5rem; height: 6rem;
  flex-shrink: 0;
  background-color: var(--color-card);
  overflow: hidden;
  border-radius: 0.5rem;
  display: block;
}
.cart-item__image-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__details {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
  text-decoration: none;
  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-fg);
  margin-bottom: 0.75rem;
}

.cart-item__variations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.cart-item__variation-item {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-item__qty-btn {
  padding: 0.25rem;
  background-color: transparent;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__qty-btn:hover { background-color: var(--color-secondary); }

.cart-item__qty-value {
  font-family: var(--font-body);
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}

.cart-item__remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s ease;
}
.cart-item__remove:hover { color: var(--color-foreground); }

/* Cart footer */
.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.cart-drawer__subtotal-label { color: var(--color-muted-fg); }
.cart-drawer__subtotal-value { font-weight: 500; }

.cart-drawer__free-shipping {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

.cart-drawer__checkout-btn { width: 100%; justify-content: center; }

/* =============================================================
   SINGLE PRODUCT PAGE
   ============================================================= */
.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__back { padding: 1.5rem 0; }
.single-product__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s ease;
}
.single-product__back-link:hover { color: var(--color-foreground); }

/* Gallery */
.theme-product-gallery { min-width: 0; max-width: 100%; }

.theme-product-gallery__main {
  aspect-ratio: 3 / 4;
  background-color: var(--color-card);
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.theme-product-gallery__main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.theme-product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
}
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-primary); opacity: 1; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

.single-product__categories {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}
.single-product__categories a { color: inherit; transition: color 0.2s ease; }
.single-product__categories a:hover { color: var(--color-primary); }

.single-product__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.single-product__price {
  font-size: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.single-product__price .amount { color: var(--color-primary); }

.single-product__sold-out {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-secondary);
  color: var(--color-muted-fg);
  font-size: 0.8125rem;
  font-family: var(--font-body);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.single-product__description {
  color: var(--color-muted-fg);
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.single-product__description p { margin-bottom: 0.75rem; }

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  color: var(--color-foreground);
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
  border: none;
  background: transparent;
  text-align: center;
  width: 3rem;
  padding: 0.75rem 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.single_add_to_cart_button.theme-btn-primary,
.theme-btn-primary {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Variations table */
.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; margin-bottom: 1rem; }

.single-product .variations tbody td.label label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-foreground);
}

.single-product .variations select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.single-product .variations select:focus { border-color: var(--color-primary); }

.theme-attr-select-hidden { display: none !important; }

/* single_variation_wrap */
.single_variation_wrap { margin-top: 1rem; }

/* Details section */
.single-product__details {
  padding-top: 2rem;
}
.single-product__details-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.single-product__details-body {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}
.single-product__details-body ul { padding-left: 0; }
.single-product__details-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.single-product__details-body li::before {
  content: '';
  display: inline-block;
  width: 0.375rem; height: 0.375rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

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

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

/* Single product responsive */
.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; }

/* =============================================================
   PAGE: INNER PAGES
   ============================================================= */
.theme-inner-page {
  padding-top: var(--header-height);
  min-height: 60vh;
}

.theme-inner-page .container-wide { padding-top: 2.5rem; padding-bottom: 4rem; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}

.entry-content {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-muted-fg);
}

/* =============================================================
   404 PAGE
   ============================================================= */
.error-404 { padding: 5rem 0; text-align: center; }
.error-404__code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-border);
  margin-bottom: 1rem;
}
.error-404__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.error-404__msg {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* =============================================================
   CHECKOUT — WOOCOMMERCE CHECKOUT BLOCK
   ============================================================= */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .container-wide { max-width: 1200px; }

body.woocommerce-checkout .page-title {
  margin-bottom: 2rem;
}

/* Two-column grid */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--checkout-gap, 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;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-background) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !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(122,82,48,0.1) !important;
  outline: none !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  width: 100% !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  background-color: var(--color-secondary);
  border-color: var(--color-primary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  color: var(--color-foreground);
}

body.woocommerce-checkout { overflow-x: hidden; }

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

.thankyou-page { padding: 2rem 0; }

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
  color: var(--color-foreground);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 0 1rem 0;
  color: var(--color-foreground);
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
}

body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

body.theme-thankyou-page .woocommerce-order-overview li strong { color: var(--color-foreground); }

body.theme-thankyou-page .woocommerce-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 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: 1.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  font-style: normal;
  max-width: 480px;
  overflow-wrap: break-word;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.6;
}

/* =============================================================
   WOOCOMMERCE — GENERAL OVERRIDES
   ============================================================= */
/* Archive shop page */
.woocommerce-page .shop-archive { padding-bottom: 4rem; }

.woocommerce-page .woocommerce-result-count,
.woocommerce-page .woocommerce-ordering { display: none; }

.woocommerce-page h1.woocommerce-products-header__title,
.woocommerce-page h1.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* WooCommerce notices — keep visible on appropriate pages */
.woocommerce-error {
  background-color: var(--color-secondary);
  border-left: 3px solid #c0392b;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  list-style: none;
  margin-bottom: 1.5rem;
}

.woocommerce-message,
.woocommerce-info {
  background-color: var(--color-secondary);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}

/* =============================================================
   ANIMATION KEYFRAMES
   ============================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blurFade {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Scroll-triggered animations */
.js-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.js-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
