/* =============================================================
   CHILD OF YHWH — theme.css
   ============================================================= */

/* =============================================================
   TOKENS & CUSTOM PROPERTIES
   ============================================================= */
:root {
  --color-bg:          #ffffff;
  --color-fg:          #141414;
  --color-secondary:   #f5f5f5;
  --color-border:      #e6e6e6;
  --color-muted-fg:    #737373;
  --color-card:        #fafafa;
  --color-muted:       #f0f0f0;

  --wp-admin-bar-height: 0px;

  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-body:    'Inter', sans-serif;

  --logo-height: 58px;

  --header-height: 80px;
  --radius: 0.375rem;
  --btn-radius: 0.375rem;
  --btn-height: 3rem;
  --btn-padding: 0 2.5rem;
  --btn-font-size: 0.75rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.25em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.5rem;

  --color-primary:      var(--color-fg);
  --color-button-text:  var(--color-bg);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-elevated: 0 12px 40px -8px rgba(0,0,0,0.10);
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Global img rule — exclude cover/full-bleed images (Section 15.1) */
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.featured-cat-img):not(.parallax-img):not(.about-portrait):not(.site-logo-img):not(.footer-logo-img):not(.cart-item-img):not(.product-main-image):not(.product-thumb-img) {
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Display headings */
.font-display { font-family: var(--font-display); }

/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.container-narrow {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container-narrow { padding: 0 2rem; } }

.text-center { text-align: center; }
.muted { color: var(--color-muted-fg); }
.scroll-mt { scroll-margin-top: calc(var(--header-height) + var(--wp-admin-bar-height)); }

/* WordPress admin bar offset */
body.admin-bar {
  --wp-admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    --wp-admin-bar-height: 46px;
  }
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  display: block;
  margin-bottom: 1.5rem;
}

/* =============================================================
   ANIMATIONS (Section 2.1)
   ============================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s var(--transition-smooth) both;
}
.animate-slide-up {
  animation: slideUp 0.8s var(--transition-smooth) both;
}
.animate-slide-down {
  animation: slideDown 0.6s var(--transition-smooth) both;
}

/* Reveal items — initial hidden for scroll animation */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

/* Customizer / no-JS / prefers-reduced-motion fallback (Section 2.1) */
body.is-customizer .reveal-item,
body.is-customizer .animate-slide-up,
body.is-customizer .animate-fade-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item { transition: none; opacity: 1; transform: none; }
  .animate-slide-up, .animate-fade-in, .animate-slide-down { animation: none; opacity: 1; transform: none; }
  .mobile-nav,
  .mobile-nav-link,
  .mobile-nav-backdrop,
  .mobile-menu-toggle {
    transition: none !important;
    animation: none !important;
  }
  .mobile-nav.is-open .mobile-nav-link {
    opacity: 1;
    transform: none;
    transition-delay: 0s !important;
  }
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-primary,
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  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;
}
.btn-primary:hover,
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}

/* Override for hero and single-product CTAs — no uppercase on these specific elements */
.btn-hero-primary,
.btn-hero-outline {
  text-transform: none !important;
}

/* Disabled state (Section 11.4.1) */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Outline button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-fg);
  border: 1px solid var(--color-fg);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  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: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: var(--color-fg);
  color: var(--color-bg);
}

/* Button loading state (Section 31.8) */
.ajax_add_to_cart.theme-btn-loading,
.single_add_to_cart_button.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* WooCommerce adds .loading with a spinner ::after — hide it; theme handles feedback */
.single-product .single_add_to_cart_button.loading::after,
.single-product .add_to_cart_button.loading::after,
.single-product .buy-it-now-btn.loading::after {
  display: none !important;
  animation: none !important;
  content: none !important;
}
.single-product .single_add_to_cart_button.loading,
.single-product .add_to_cart_button.loading,
.single-product .buy-it-now-btn.loading {
  opacity: 1 !important;
}

/* =============================================================
   HIDE "VIEW CART" INJECTED BY WOOCOMMERCE (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;
}

/* =============================================================
   LOGO
   ============================================================= */
.site-logo-img, .footer-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block !important;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: block;
  line-height: var(--logo-height);
}
.footer-logo-img {
  height: calc(var(--logo-height) * 1.2) !important;
}

/* =============================================================
   HEADER (Section 22.7)
   ============================================================= */
.site-header {
  position: fixed;
  top: var(--wp-admin-bar-height);
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  color: #ffffff;
}
.site-header.is-solid,
.site-header.mobile-menu-open {
  background-color: var(--color-bg);
  border-bottom-color: var(--color-border);
  color: var(--color-fg);
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 1rem;
}
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.nav-left { display: flex; align-items: center; gap: 2rem; justify-content: flex-start; }
.nav-right { display: flex; align-items: center; gap: 2rem; justify-content: flex-end; }
.nav-links-left, .nav-links-right { display: none; }
@media (min-width: 768px) {
  .nav-links-left, .nav-links-right { display: flex; align-items: center; gap: 2rem; }
}

/* Nav right has TWO wp_nav_menu calls — hide the first one (duplicate) */
.nav-right .nav-links-right > ul:first-child { display: none !important; }

.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-list li { list-style: none; }
.theme-nav-link, .theme-nav-list a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.theme-nav-link:hover, .theme-nav-list a:hover { opacity: 0.6; }

.site-logo-link { display: flex; align-items: center; justify-self: center; }
.site-header .site-logo-img { transition: filter 0.3s ease; }
.site-header:not(.is-solid):not(.mobile-menu-open) .site-logo-img { filter: invert(1); }

.nav-actions { display: flex; align-items: center; gap: 0.25rem; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  color: inherit;
}
.cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  border-radius: 50%;
  background-color: var(--color-fg);
  color: var(--color-bg);
  line-height: 1;
}
.site-header:not(.is-solid):not(.mobile-menu-open) .theme-cart-count {
  background-color: #ffffff;
  color: #000000;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  transition: opacity 0.2s ease, transform 0.35s var(--transition-smooth);
  color: inherit;
}
.mobile-menu-toggle.is-active {
  transform: rotate(90deg);
}
.mobile-menu-toggle:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  top: calc(var(--header-height) + var(--wp-admin-bar-height));
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--transition-smooth), visibility 0.4s var(--transition-smooth);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.mobile-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  border-top: 1px solid transparent;
  background-color: var(--color-bg);
  color: var(--color-fg);
  transition:
    max-height 0.45s var(--transition-smooth),
    opacity 0.35s var(--transition-smooth),
    transform 0.45s var(--transition-smooth),
    border-color 0.3s ease;
}
.mobile-nav.is-open {
  max-height: 70vh;
  opacity: 1;
  transform: translateY(0);
  border-top-color: var(--color-border);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 0 2rem;
}
.mobile-nav-link {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0;
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.4s var(--transition-smooth),
    transform 0.4s var(--transition-smooth),
    color 0.2s ease;
  color: var(--color-fg);
}
.mobile-nav.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-nav-link:hover { opacity: 0.6; }

body.mobile-nav-open {
  overflow: hidden;
}

/* =============================================================
   INNER PAGE OFFSET
   ============================================================= */
.theme-inner-page {
  padding-top: calc(var(--header-height) + var(--wp-admin-bar-height) + 3rem);
  padding-bottom: 5rem;
  min-height: 60vh;
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-fg);
}
.hero-video,
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.90;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  padding: 0 1.5rem;
  max-width: 64rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-cta .btn-primary {
  background-color: var(--color-fg) !important;
  color: var(--color-bg) !important;
}

/* =============================================================
   FEATURED CATEGORIES
   ============================================================= */
.featured-cats-section { padding: 5rem 0; }
.featured-cats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .featured-cats-grid { grid-template-columns: 1fr 1fr; } }

.featured-cat-item {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  text-decoration: none;
}
.featured-cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.featured-cat-item:hover .featured-cat-img { transform: scale(1.05); }
.featured-cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
  transition: background 0.3s ease;
}
.featured-cat-item:hover .featured-cat-overlay { background: rgba(0,0,0,0.40); }
.featured-cat-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #ffffff;
}
.featured-cat-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .featured-cat-title { font-size: 2.25rem; } }
.featured-cat-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 0.25rem;
}

/* =============================================================
   SHOP SECTION
   ============================================================= */
.shop-section { padding: 5rem 0; }
.section-header { margin-bottom: 4rem; }
.shop-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .shop-heading { font-size: 2.5rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3rem; } }

.shop-body { font-weight: 300; max-width: 32rem; margin: 0 auto; line-height: 1.75; }

/* Category Filter Pills */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-fg);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  font-family: var(--font-body);
}
.category-chip-active, .category-chip.is-active {
  background-color: var(--color-fg);
  color: var(--color-bg);
  border-color: var(--color-fg);
}
.category-chip-inactive:hover, .category-chip:not(.is-active):hover {
  border-color: var(--color-fg);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.shop-no-products { text-align: center; padding: 5rem 0; }

/* =============================================================
   PRODUCT CARD (Section 31.3, 31.9)
   ============================================================= */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Overlay link (Pattern A) */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  display: block;
}
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--color-muted);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease-out;
  display: block;
}
.theme-product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-img.opacity-50 { opacity: 0.5; }

/* Hover bar */
.product-card-hover-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-fg);
  color: var(--color-bg);
  padding: 0.625rem;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.theme-product-card:hover .product-card-hover-bar { transform: translateY(0); }

.theme-product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.product-card-name {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.theme-product-card:hover .product-card-name { opacity: 0.6; }

.product-card-price {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-muted-fg);
}
.product-card-price .woocommerce-Price-amount { color: var(--color-muted-fg); }

/* Badges */
.sold-out-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-color: var(--color-fg);
  color: var(--color-bg);
  z-index: 3;
}
.new-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background-color: var(--color-fg);
  color: var(--color-bg);
  z-index: 3;
}

/* =============================================================
   PARALLAX SECTIONS
   ============================================================= */
.parallax-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 60vh;
}
@media (min-width: 768px) { .parallax-section { height: 70vh; } }

.parallax-inner {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: scale(1.1);
}
.parallax-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.50);
}
.parallax-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}
.parallax-content-inner {
  width: 100%;
  max-width: 42rem;
  text-align: center;
  color: #ffffff;
}

.parallax-subheading {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  display: block;
  margin-bottom: 1rem;
}
.parallax-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}
@media (min-width: 768px) { .parallax-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .parallax-heading { font-size: 3.75rem; } }

/* =============================================================
   ABOUT SECTION
   ============================================================= */
.about-section { padding: 5rem 0; }
.about-intro { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.about-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
.about-body { font-weight: 300; line-height: 1.75; font-size: 1.125rem; color: var(--color-muted-fg); }

.about-founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-founder-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about-portrait-wrap {
  aspect-ratio: 1/1;
  max-width: 28rem;
  overflow: hidden;
  margin: 0 auto;
}
@media (min-width: 1024px) { .about-portrait-wrap { margin: 0; } }

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.75rem 0 2rem;
}
@media (min-width: 768px) { .founder-name { font-size: 2.25rem; } }

.founder-bio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--color-muted-fg);
  font-weight: 300;
  line-height: 1.75;
}

/* =============================================================
   VALUES SECTION
   ============================================================= */
.values-section {
  padding: 5rem 0;
  background-color: var(--color-secondary);
}
.values-header { text-align: center; margin-bottom: 4rem; }
.values-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}
@media (min-width: 768px) { .values-heading { font-size: 2.25rem; } }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-item { text-align: center; }
.value-icon { margin-bottom: 1.5rem; display: flex; justify-content: center; color: var(--color-fg); }
.value-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.value-body { color: var(--color-muted-fg); font-weight: 300; line-height: 1.75; }

/* =============================================================
   STAFF PICKS
   ============================================================= */
.picks-section { padding: 5rem 0; }
.picks-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .picks-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .picks-heading { font-size: 3rem; } }

.picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) { .picks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

/* =============================================================
   CONTACT SECTION
   ============================================================= */
.contact-section {
  padding: 5rem 0;
  background-color: var(--color-secondary);
}
.contact-header { text-align: center; margin-bottom: 4rem; max-width: 40rem; margin-left: auto; margin-right: auto; }
.contact-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .contact-heading { font-size: 3rem; } }
.contact-intro { font-weight: 300; line-height: 1.75; color: var(--color-muted-fg); }

.contact-success { text-align: center; padding: 4rem 1.5rem; }
.success-icon {
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.success-body { color: var(--color-muted-fg); font-weight: 300; max-width: 28rem; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* Form Box */
.contact-form-box {
  padding: 2rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
}
@media (min-width: 1024px) { .contact-form-box { padding: 2.5rem; } }

.contact-box-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .form-row-2 { flex-direction: row; } .form-row-2 .form-field { flex: 1; } }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}
.form-input, .form-textarea {
  border: 1px solid var(--color-border);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 300;
  font-family: var(--font-body);
  color: var(--color-fg);
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--color-fg); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-fg); }
.form-textarea { resize: none; }
.form-submit-btn { width: 100%; }

/* Contact Info */
.contact-info-items { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.contact-info-link {
  font-size: 0.875rem;
  font-weight: 300;
  transition: opacity 0.2s ease;
}
.contact-info-link:hover { opacity: 0.7; }

.contact-hours-box {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}
.contact-hours-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.contact-hours-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; font-weight: 300; color: var(--color-muted-fg); }

.contact-response-box {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--color-bg);
}
.contact-response-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.contact-response-box p { font-size: 0.875rem; font-weight: 300; }

/* =============================================================
   404 PAGE
   ============================================================= */
.error-404-content {
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  display: block;
  margin-bottom: 1.5rem;
}
.error-heading {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .error-heading { font-size: 4.5rem; } }
.error-body { color: var(--color-muted-fg); font-weight: 300; max-width: 28rem; margin: 0 auto 2.5rem; }

/* =============================================================
   FOOTER
   ============================================================= */
/* Newsletter Band */
.newsletter-band {
  background-color: var(--color-fg);
  color: var(--color-bg);
}
.newsletter-inner {
  padding: 4rem 0;
  text-align: center;
}
@media (min-width: 1024px) { .newsletter-inner { padding: 5rem 0; } }
.newsletter-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .newsletter-heading { font-size: 2.25rem; } }
.newsletter-body {
  color: rgba(255,255,255,0.70);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.30);
  color: #ffffff;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.50); }
.newsletter-input:focus { border-color: #ffffff; }
.newsletter-btn {
  padding: 1rem 2rem;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  border: none;
  font-family: var(--font-body);
}
.newsletter-btn:hover { background-color: rgba(255,255,255,0.90); }

/* Main Footer */
.footer-main {
  background-color: var(--color-secondary);
  border-top: 1px solid var(--color-border);
}
.footer-main > .container-wide {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .footer-main > .container-wide {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    gap: 4rem;
  }
}

.footer-brand .footer-brand-body {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 24rem;
  line-height: 1.625;
  font-weight: 300;
}
.footer-social { display: flex; gap: 1rem; margin-top: 2rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
  color: var(--color-fg);
}
.social-link:hover { border-color: var(--color-fg); }

.footer-col-heading {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-nav-link {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-weight: 300;
  transition: color 0.2s ease;
}
.footer-nav-link:hover { color: var(--color-fg); }
.footer-dialog-btn {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
}
.footer-dialog-btn:hover { color: var(--color-fg); }

/* Footer Bottom */
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom-left { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .footer-bottom-left { flex-direction: row; gap: 1rem; } }
.footer-copyright, .footer-credit { font-size: 0.75rem; color: var(--color-muted-fg); font-weight: 300; letter-spacing: 0.05em; }
.footer-credit-link { text-decoration: underline; transition: color 0.2s ease; }
.footer-credit-link:hover { color: var(--color-fg); }
.footer-bottom-right { display: flex; gap: 1.5rem; }
.footer-legal-btn { font-size: 0.75rem; }

/* =============================================================
   DIALOGS (replaces Radix/shadcn Dialog)
   ============================================================= */
.theme-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.theme-dialog-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.theme-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 201;
  background: var(--color-bg);
  width: calc(100% - 2rem);
  max-width: 32rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.dialog-inner { padding: 1.5rem; }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.dialog-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.dialog-close {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.dialog-close:hover { opacity: 1; }

.dialog-scroll { max-height: 60vh; overflow-y: auto; padding-right: 0.5rem; }
.dialog-body { font-size: 0.875rem; color: var(--color-muted-fg); font-weight: 300; line-height: 1.75; }
.dialog-body p { margin-bottom: 1rem; }
.dialog-body ul { padding-left: 1.25rem; list-style: disc; }
.dialog-body ul li { margin-bottom: 0.25rem; }
.dialog-subhead {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-fg);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.dialog-email { color: var(--color-fg); }

.dialog-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.dialog-table th, .dialog-table td {
  padding: 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.dialog-table th { font-weight: 500; color: var(--color-fg); font-size: 0.75rem; }
.dialog-table td:first-child { font-weight: 500; color: var(--color-fg); }

/* =============================================================
   CART DRAWER (Section 12)
   ============================================================= */
#theme-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-bg);
  z-index: 300;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-inner { display: flex; flex-direction: column; height: 100%; }

.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.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cart-close-btn { display: flex; align-items: center; justify-content: center; padding: 0.5rem; transition: opacity 0.2s ease; }
.cart-close-btn:hover { opacity: 0.6; }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; }

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 3rem 0;
  gap: 1rem;
}
.cart-empty-state svg { color: var(--color-muted-fg); margin-bottom: 0.5rem; }
.cart-empty-msg { color: var(--color-muted-fg); font-weight: 300; margin-bottom: 1rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img-link { width: 6rem; height: 8rem; flex-shrink: 0; overflow: hidden; display: block; background-color: var(--color-secondary); }
.cart-item-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
  display: block;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-meta { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 0.25rem; }
.cart-item-custom { font-style: italic; }
.cart-item-price { font-size: 0.875rem; font-weight: 300; margin-top: 0.5rem; }

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}
.cart-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}
.cart-qty-btn {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-qty-num { width: 2rem; text-align: center; font-size: 0.75rem; }
.cart-remove-btn { font-size: 0.75rem; color: var(--color-muted-fg); text-decoration: underline; transition: color 0.2s ease; }
.cart-remove-btn:hover { color: var(--color-fg); }

.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; align-items: center; margin-bottom: 1.5rem; }
.cart-subtotal-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted-fg); }
.cart-subtotal-value { font-size: 1.125rem; font-weight: 300; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-fg); font-weight: 300; margin-bottom: 1.5rem; }
.cart-checkout-btn { width: 100%; }

/* Overlay (Section 22.5) */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================================
   SINGLE PRODUCT PAGE (Section 11)
   ============================================================= */
.single-product.theme-inner-page { padding-top: calc(var(--header-height) + 2rem); }

.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  transition: color 0.2s ease;
  margin-bottom: 2.5rem;
}
.back-to-shop-link:hover { color: var(--color-fg); }

/* Two-column product layout */
.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: start; }
}

/* Gallery */
.theme-product-gallery { min-width: 0; }
.product-main-img-wrap {
  background-color: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.06);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .product-main-img-wrap { padding: 4rem; } }

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.thumb-btn {
  width: 4rem;
  height: 5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}
.thumb-btn.is-active { border-color: var(--color-fg); }
.thumb-btn:hover { border-color: var(--color-fg); }
.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}

/* Product info column */
.theme-product-info {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 1024px) { .theme-product-info { position: sticky; top: 8rem; } }

.product-cats-wrap { margin-bottom: 0.75rem; }
.product-cats-wrap a, .product-cats { font-size: 0.75rem; color: var(--color-muted-fg); }
.posted_in { font-size: 0.75rem; color: var(--color-muted-fg); overflow-wrap: break-word; word-break: break-word; }

.product-title {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--color-fg);
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }

.product-price { font-size: 1.125rem; font-weight: 300; margin-bottom: 0; }
.product-price .woocommerce-Price-amount { font-size: 1.125rem; }

.product-stock-status { margin-top: 0.5rem; }
.out-of-stock-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  background-color: var(--color-fg);
  color: var(--color-bg);
  display: inline-block;
}

.product-divider { height: 1px; background: var(--color-border); margin: 1.5rem 0; }

/* Size selector */
.size-selector { margin-bottom: 1.5rem; }
.size-label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  display: block;
  margin-bottom: 0.75rem;
}
.size-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.size-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.size-btn.is-active { background-color: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }
.size-btn:hover:not(.is-active) { border-color: var(--color-fg); }
.size-guide-trigger {
  font-size: 0.6875rem;
  text-decoration: underline;
  color: var(--color-muted-fg);
  cursor: pointer;
  transition: color 0.2s ease;
}
.size-guide-trigger:hover { color: var(--color-fg); }

/* Customization box */
.customization-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background-color: color-mix(in srgb, var(--color-secondary) 40%, transparent);
  margin-bottom: 1.5rem;
}
.customization-note { font-size: 0.75rem; font-weight: 300; color: var(--color-muted-fg); line-height: 1.625; }
.customization-note.muted { margin-bottom: 0.75rem; }
.customization-textarea {
  margin: 0;
  background-color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 300;
  resize: none;
}
.customization-footer { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.char-count,
.char-count-label {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Qty + Add to Cart row (Section 11.13) */
.theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.theme-add-to-cart-area .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

.theme-quantity-wrapper {
  display: inline-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 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: 3rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  color: var(--color-fg);
}
.theme-qty-minus:hover, .theme-qty-plus:hover { opacity: 0.6; }
.theme-qty-input {
  width: 2rem;
  height: 3rem;
  text-align: center;
  font-size: 0.875rem;
  border: none;
  outline: none;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: transparent;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Buy it now */
.buy-it-now-btn { width: 100%; margin-bottom: 1rem; }

/* Disabled button (sold out) */
.disabled-btn {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Variable product 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: 1.5rem; }
.single-product .variations label {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  display: block;
  margin-bottom: 0.75rem;
}

/* Attribute pills */
.attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.attr-pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.attr-pill.is-active { background-color: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }
.attr-pill:hover:not(.is-active) { border-color: var(--color-fg); }

/* Hidden native select for variation matching */
.theme-attr-select-hidden { display: none !important; }

/* Product description */
.product-description {
  padding-top: 1rem;
  color: rgba(20,20,20,0.80);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-description p { margin-bottom: 0.75rem; }

/* Details section */
.product-details-section { border-top: 1px solid var(--color-border); padding-top: 1.5rem; margin-top: 1.5rem; }
.details-label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
}
.product-details-content ul, .product-details-content li { list-style: none; }
.product-details-content li {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-muted-fg);
  padding: 0.25rem 0 0.25rem 1rem;
  position: relative;
}
.product-details-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.25rem;
  height: 0.25rem;
  background: var(--color-muted-fg);
  border-radius: 50%;
}
.woocommerce-product-details__short-description { overflow-wrap: break-word; word-break: break-word; }

/* Related products */
.related-products-section { margin-top: 6rem; }
.related-products-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .related-products-heading { font-size: 1.875rem; } }

/* Responsive layout (Section 11.13) */
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

/* =============================================================
   WOOCOMMERCE: ARCHIVE (Section 19)
   ============================================================= */
.woocommerce-shop .section-header h1.woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}
.woocommerce-pagination { text-align: center; margin-top: 3rem; }
.woocommerce-pagination .page-numbers { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.woocommerce-pagination .page-numbers li { list-style: none; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: var(--color-fg);
}
.woocommerce-pagination .page-numbers .current {
  background-color: var(--color-fg);
  color: var(--color-bg);
  border-color: var(--color-fg);
}
.woocommerce-pagination .page-numbers a:hover { background-color: var(--color-secondary); }

/* =============================================================
   WOOCOMMERCE NOTICES (Section 14.1)
   ============================================================= */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Style notices on shop/archive */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 300;
}
.woocommerce-notices-wrapper .woocommerce-error { border-color: #dc2626; color: #dc2626; }

/* =============================================================
   CHECKOUT (Section 13)
   ============================================================= */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding: 0;
}
body.woocommerce-checkout .entry-content { max-width: none; }

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 2rem;
}

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;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-fg) !important;
  background-color: var(--color-bg) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-fg) !important;
  color: var(--color-bg) !important;
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  border-radius: var(--btn-radius) !important;
  border: none !important;
}

/* =============================================================
   THANK YOU PAGE (Section 22.8)
   ============================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .thankyou-wrapper { padding: 1rem 0; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-muted-fg);
}
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-fg); font-weight: 500; }
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  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: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-size: 0.875rem;
  line-height: 1.75;
  font-style: normal;
}

/* =============================================================
   WOOCOMMERCE CART / ACCOUNT PAGES (Section 13.7)
   ============================================================= */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* =============================================================
   MISCELLANEOUS WC OVERRIDES
   ============================================================= */
.woocommerce-page .woocommerce { max-width: 80rem; margin: 0 auto; }

/* Single product add-to-cart title override */
.single-product .single_add_to_cart_button { text-transform: none !important; }
