/* =========================================================================
   JLabs 3D Printing — theme.css
   Colors are emitted as CSS variables via wp_add_inline_style (Section 6).
   The values below are load-time fallbacks matching the original design.
   ========================================================================= */

:root {
  --color-background: #110f0e;
  --color-foreground: #f2f0ed;
  --color-card: #191715;
  --color-accent: #f9611f;
  --color-accent-foreground: #110f0e;
  --color-muted-foreground: #ada69f;
  --color-border: #322d2a;
  --color-destructive: #e23636;
  --color-button-text: var(--color-accent-foreground);
  --logo-height: 48px;
  --header-height: 115px;
  --admin-bar-height: 0px;
  --radius: 0.25rem;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --btn-radius: 0;
  --btn-height: 46px;
  --btn-padding: 0.75rem 1.5rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: normal;
  --btn-text-transform: none;
  --btn-icon-padding: 0.6rem;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; border-color: var(--color-border); }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
img.cover-img,
img.hero-bg-img,
img.product-card-img,
img.theme-gallery-main-img,
img.theme-gallery-thumb-img {
  max-width: none;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
}
.font-display { font-family: var(--font-display); font-weight: inherit; font-size: inherit; }
.font-mono { font-family: var(--font-mono); }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
.container--narrow { max-width: 896px; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* =========================================================================
   REVEAL / SCROLL ANIMATIONS (Section 2.1)
   ========================================================================= */
.reveal-fade-up,
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1),
              filter 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-fade-up.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Staggered children within a revealed group */
.hero-section__copy.is-visible .hero-badge,
.hero-section__copy .hero-badge { transition-delay: 0s; }

/* Preview / no-JS fallback — never hide content in the Customizer preview */
body.is-customizer .reveal-fade-up,
body.is-customizer .reveal-item,
.no-js .reveal-fade-up,
.no-js .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-fade-up, .reveal-item {
    transition: opacity 0.4s linear !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================================================================
   SCROLL PROGRESS BAR
   ========================================================================= */
.theme-scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  transition: transform 0.1s linear;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
@media (min-width: 640px) { .site-header__inner { height: var(--header-height); } }
.site-header__brand { display: flex; align-items: center; min-width: 0; gap: 0.5rem; }
.site-logo-img {
  height: 48px;
  width: auto;
  max-width: none;
  max-height: 48px;
  object-fit: contain;
}
@media (min-width: 640px) {
  .site-logo-img {
    height: var(--logo-height);
    max-height: var(--logo-height);
  }
}
/* WooCommerce global img rules override logo sizing on product pages */
.woocommerce .site-header .site-logo-img,
.woocommerce-page .site-header .site-logo-img {
  height: 48px;
  width: auto;
  max-width: none;
  max-height: 48px;
  object-fit: contain;
}
@media (min-width: 640px) {
  .woocommerce .site-header .site-logo-img,
  .woocommerce-page .site-header .site-logo-img {
    height: var(--logo-height);
    max-height: var(--logo-height);
  }
}
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.site-header__nav { display: none; }
@media (min-width: 1024px) { .site-header__nav { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 3rem; }
.theme-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  transition: color 0.2s ease;
}
.theme-nav-link:hover { color: var(--color-foreground); }
.site-header__actions { display: flex; align-items: center; gap: 0.25rem; }
.theme-cart-toggle {
  position: relative;
  padding: 0.75rem;
  color: var(--color-foreground);
  transition: color 0.2s ease;
}
.theme-cart-toggle:hover { color: var(--color-accent); }
.icon-cart { display: block; }
.theme-cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 20px; height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-foreground);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-cart-count:empty { display: none; }
.theme-mobile-toggle { display: flex; padding: 0.75rem; color: var(--color-foreground); }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-mobile-toggle .icon-close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-menu { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-header__mobile {
  display: none;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem 1.75rem;
}
.site-header__mobile.is-open { display: block; }
@media (min-width: 1024px) { .site-header__mobile { display: none !important; } }
.theme-nav-list--mobile { flex-direction: column; align-items: stretch; gap: 0; }
.theme-mobile-nav-link { display: block; padding: 1rem 0; font-size: 1rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

/* =========================================================================
   WORDPRESS ADMIN BAR — keep fixed UI below the toolbar when logged in
   ========================================================================= */
body.admin-bar {
  --admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-height: 46px;
  }
}
body.admin-bar .site-header,
body.admin-bar .theme-scroll-progress {
  top: var(--admin-bar-height);
}
body.admin-bar #theme-cart-drawer {
  top: var(--admin-bar-height);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 9rem 0 4rem;
  overflow: hidden;
  background: var(--color-background);
}
.hero-section__grid-bg {
  position: absolute; inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-border) 40%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-border) 40%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-section__glow {
  position: absolute;
  top: -8rem; right: -8rem;
  width: 520px; height: 520px;
  background: color-mix(in srgb, var(--color-accent) 20%, transparent);
  filter: blur(140px);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section__container { position: relative; }
.hero-section__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-section__layout { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .hero-section__copy { grid-column: span 7; }
  .hero-section__media { grid-column: span 5; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.hero-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-section__title em { font-style: normal; color: var(--color-accent); }
.hero-section__subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}
@media (min-width: 640px) { .hero-section__subtitle { font-size: 1.125rem; } }
.hero-section__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
@media (min-width: 640px) { .hero-section__ctas { flex-direction: row; } }
.btn-hero-primary, .btn-hero-outline {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-hero-primary { background: var(--color-accent); color: var(--color-accent-foreground); }
.btn-hero-primary:hover { background: color-mix(in srgb, var(--color-accent) 90%, transparent); }
.btn-hero-outline { border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn-hero-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.hero-section__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 3rem 0 0;
  padding: 0;
  max-width: 28rem;
  align-items: start;
}
@media (min-width: 640px) {
  .hero-section__stats {
    gap: 1.5rem 2rem;
    max-width: 30rem;
  }
}
.hero-section__stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hero-section__stats dt {
  margin: 0;
  min-height: 2rem;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .hero-section__stats dt {
    min-height: 2.25rem;
    font-size: 1.875rem;
  }
}
.hero-section__stats dd {
  margin: 0.375rem 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
  text-wrap: balance;
}
.hero-section__image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.hero-section__layers {
  position: absolute; inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, color-mix(in srgb, var(--color-foreground) 4%, transparent) 3px, color-mix(in srgb, var(--color-foreground) 4%, transparent) 4px);
}
.hero-section__caption {
  position: absolute;
  bottom: 0.75rem; left: 0.75rem; right: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
}

/* =========================================================================
   SECTION HEADINGS (Section 2.2.5 — per-section scales)
   ========================================================================= */
.section-heading { font-weight: 700; letter-spacing: -0.02em; }
.shop-heading, .about-heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 640px) { .shop-heading { font-size: 3rem; } .about-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3.75rem; } }
.faq-heading { font-size: 2.25rem; }
@media (min-width: 640px) { .faq-heading { font-size: 3rem; } }
.contact-heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 640px) { .contact-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-heading { font-size: 3.75rem; } }
.section-heading em { font-style: normal; color: var(--color-accent); }

/* =========================================================================
   SHOP SECTION
   ========================================================================= */
.shop-section { padding: 5rem 0; background: var(--color-background); border-top: 1px solid var(--color-border); overflow-x: clip; }
@media (min-width: 640px) { .shop-section { padding: 7rem 0; } }
.shop-section__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .shop-section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
  }
}
.shop-section__description { max-width: 24rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }

.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.theme-product-grid > * { min-width: 0; max-width: 100%; }
.theme-product-card-wrap { display: flex; min-width: 0; max-width: 100%; }
.theme-product-card-wrap.is-hidden { display: none; }
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
}
.theme-product-card:hover { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); }
.theme-product-card__image-link {
  display: block;
  flex-shrink: 0;
  color: inherit;
  cursor: pointer;
}
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-background);
  min-width: 0;
}
.theme-product-card__image { transition: transform 0.7s ease; }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  border: 1px solid var(--color-border);
}
.theme-product-card__stock {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-destructive);
  color: #fff;
}
.theme-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  min-width: 0;
}
.theme-product-card__series {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.theme-product-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.theme-product-card__tagline {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.theme-product-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.theme-product-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-display); }
.theme-product-card__actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-product-card__details {
  font-size: 0.75rem; font-weight: 600;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  padding: 0.5rem;
}
.theme-product-card__details:hover { color: var(--color-foreground); }
a.add_to_cart_button.theme-product-card__add {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem; font-weight: 600;
  background: var(--color-foreground);
  color: var(--color-background);
  transition: background-color 0.2s ease, color 0.2s ease;
}
a.add_to_cart_button.theme-product-card__add:hover { background: var(--color-accent); color: var(--color-accent-foreground); }

.shop-section__more { display: flex; justify-content: center; margin-top: 2.5rem; }
.btn-shop-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-shop-toggle:hover { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); color: var(--color-accent); }
.btn-shop-toggle svg { transition: transform 0.2s ease; }
.btn-shop-toggle.is-expanded svg { transform: rotate(180deg); }
.shop-section__empty { color: var(--color-muted-foreground); }

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-section { position: relative; padding: 5rem 0; background: var(--color-card); border-top: 1px solid var(--color-border); overflow: hidden; }
@media (min-width: 640px) { .about-section { padding: 7rem 0; } }
.about-section__glow {
  position: absolute; bottom: -8rem; left: -5rem;
  width: 420px; height: 420px;
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  filter: blur(120px); border-radius: 50%;
  pointer-events: none;
}
.about-section__layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-section__layout { grid-template-columns: repeat(12, 1fr); gap: 4rem; }
  .about-section__media { grid-column: span 5; }
  .about-section__copy { grid-column: span 7; }
}
.about-section__image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.about-section__layers {
  position: absolute; inset: 0;
  mix-blend-mode: overlay; opacity: 0.4; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, color-mix(in srgb, var(--color-foreground) 4%, transparent) 3px, color-mix(in srgb, var(--color-foreground) 4%, transparent) 4px);
}
.about-section__caption {
  position: absolute; bottom: 0.75rem; left: 0.75rem; right: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
}
.about-section__logo { height: 1.5rem; width: auto; }
.about-section__body { margin-top: 1.5rem; font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
.about-section__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 2.5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--color-border);
  align-items: start;
}
@media (min-width: 640px) {
  .about-section__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}
.about-section__stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.about-section__stats dt {
  margin: 0;
  min-height: 1rem;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
  white-space: nowrap;
}
.about-section__stats dd {
  margin: 0.375rem 0 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* =========================================================================
   FAQ SECTION
   ========================================================================= */
.faq-section { padding: 5rem 0; background: var(--color-background); border-top: 1px solid var(--color-border); }
@media (min-width: 640px) { .faq-section { padding: 7rem 0; } }
.faq-section__head { margin-bottom: 3rem; }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-list__item { border-bottom: 1px solid var(--color-border); }
.faq-list__question {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0;
  text-align: left;
}
.faq-list__question span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding-right: 0.5rem; transition: color 0.2s ease; }
@media (min-width: 640px) { .faq-list__question span { font-size: 1.125rem; } }
.faq-list__question:hover span { color: var(--color-accent); }
.faq-list__icon { flex-shrink: 0; margin-top: 0.25rem; color: var(--color-accent); transition: transform 0.3s ease; }
.faq-list__question[aria-expanded="true"] .faq-list__icon { transform: rotate(45deg); }
.faq-list__answer-wrap { overflow: hidden; height: auto; transition: height 0.3s ease; }
.faq-list__answer { padding-bottom: 1.25rem; padding-right: 3rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-section { position: relative; padding: 5rem 0; background: var(--color-card); border-top: 1px solid var(--color-border); overflow: hidden; }
@media (min-width: 640px) { .contact-section { padding: 7rem 0; } }
.contact-section__glow {
  position: absolute; top: -8rem; right: 0;
  width: 480px; height: 480px;
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  filter: blur(140px); border-radius: 50%; pointer-events: none;
}
.contact-section__intro { position: relative; max-width: 56rem; }
.contact-section__body { margin-top: 1.5rem; max-width: 36rem; font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
.contact-section__cards {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .contact-section__cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card-link { display: block; height: 100%; }
.contact-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
}
.contact-card-link:hover .contact-card,
.contact-card:hover { border-color: var(--color-accent); }
.contact-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; color: var(--color-accent); }
.contact-card__arrow { color: var(--color-muted-foreground); transition: color 0.2s ease; }
.contact-card-link:hover .contact-card__arrow { color: var(--color-accent); }
.contact-card__label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-muted-foreground); }
.contact-card__value { margin-top: 0.25rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; overflow-wrap: break-word; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--color-background); border-top: 1px solid var(--color-border); padding: 2.5rem 0 3rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__brand { display: flex; align-items: flex-start; gap: 0.75rem; }
.site-footer__logo { height: 2.5rem; width: auto; object-fit: contain; flex-shrink: 0; }
.site-footer__tagline { font-size: 0.75rem; line-height: 1.6; color: var(--color-muted-foreground); margin-top: 0.25rem; max-width: 15rem; }
.site-footer__heading { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.site-footer__links a:hover { color: var(--color-accent); }
.site-footer__muted { color: var(--color-muted-foreground); }
.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted-foreground);
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__bottom a:hover { color: var(--color-accent); }

/* =========================================================================
   SIDE CART DRAWER
   ========================================================================= */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }
#theme-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: 100%;
  max-width: 420px;
  background: var(--color-card);
  border-left: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title-wrap { display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-drawer__title-wrap svg { color: var(--color-accent); }
.theme-cart-drawer__title-wrap h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.theme-cart-drawer__count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__close { padding: 0.5rem; }
.theme-cart-drawer__close:hover { color: var(--color-accent); }
.theme-cart-drawer__body { flex: 1; overflow-y: auto; }
.theme-cart-drawer__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty-title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.theme-cart-drawer__empty-body { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-drawer__empty-cta { margin-top: 1.5rem; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600; background: var(--color-accent); color: var(--color-accent-foreground); }
.theme-cart-drawer__empty-cta:hover { background: color-mix(in srgb, var(--color-accent) 90%, transparent); }
.theme-cart-drawer__list { }
.theme-cart-item { display: flex; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-item__thumb { width: 80px; height: 80px; flex-shrink: 0; background: var(--color-background); border: 1px solid var(--color-border); overflow: hidden; display: block; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__series { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); }
.theme-cart-item__name { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-item__price { font-family: var(--font-mono); font-size: 0.875rem; margin-top: 0.25rem; }
.theme-cart-item__controls { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-item__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-cart-item__qty button { padding: 0.375rem; }
.theme-cart-item__qty button:hover { color: var(--color-accent); }
.theme-cart-item__qty span { padding: 0 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; }
.theme-cart-item__remove { padding: 0.375rem; color: var(--color-muted-foreground); }
.theme-cart-item__remove:hover { color: var(--color-destructive); }
.theme-cart-drawer__footer { border-top: 1px solid var(--color-border); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-drawer__subtotal-row { display: flex; align-items: center; justify-content: space-between; }
.theme-cart-drawer__subtotal-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal-value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.theme-cart-drawer__note { font-size: 11px; color: var(--color-muted-foreground); line-height: 1.6; }
.theme-cart-drawer__checkout, .theme-cart-drawer__empty-action {
  display: block; width: 100%; text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem; font-weight: 600;
}
.theme-cart-drawer__checkout { background: var(--color-accent); color: var(--color-accent-foreground); }
.theme-cart-drawer__checkout:hover { background: color-mix(in srgb, var(--color-accent) 90%, transparent); }
.theme-cart-drawer__empty-action { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-muted-foreground); padding: 0.5rem; }
.theme-cart-drawer__empty-action:hover { color: var(--color-destructive); }

/* View cart injected by WooCommerce after AJAX add (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; }

/* =========================================================================
   ADD TO CART BUTTON OVERRIDE (Section 11.4.1)
   ========================================================================= */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-accent) !important;
  color: var(--color-accent-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  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-accent) !important;
  color: var(--color-accent-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-accent) !important;
}
/* Card compact button override — after the global rules */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-product-card__add {
  min-height: unset !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0 !important;
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  font-size: 0.75rem !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-product-card__add:hover {
  background-color: var(--color-accent) !important;
  color: var(--color-accent-foreground) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* =========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================= */
.single-product .site-main--inner,
.site-main--inner.single-product { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 5rem; }
.back-to-shop {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.back-to-shop:hover { color: var(--color-accent); }
.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  min-width: 0;
}
@media (min-width: 768px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; max-width: 100%; }
.theme-thumb-btn {
  width: calc(20% - 0.4rem);
  aspect-ratio: 1/1;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.theme-thumb-btn.is-active, .theme-thumb-btn:hover { border-color: var(--color-accent); }
.theme-product-info__series { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-accent); margin-bottom: 0.5rem; }
.product-title { font-family: var(--font-body); font-weight: 600; font-size: 1.75rem; line-height: 1.2; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 640px) { .product-title { font-size: 2rem; } }
.theme-product-info__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-top: 0.75rem; }
.theme-stock-indicator { display: inline-block; margin-top: 0.75rem; padding: 0.25rem 0.6rem; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.theme-stock-indicator--out { background: var(--color-destructive); color: #fff; }
.theme-product-info__description,
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.posted_in {
  margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7;
  overflow-wrap: break-word; word-break: break-word;
}
.single-product .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.single-product .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); }
.theme-quantity-wrapper button { padding: 0.75rem; }
.theme-quantity-wrapper button:hover { color: var(--color-accent); }
.theme-qty-input {
  width: 3rem; text-align: center; border: none; background: transparent; color: inherit;
  font-family: var(--font-mono); font-size: 0.875rem;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.theme-product-info__note { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-foreground); }
.theme-product-details { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.theme-product-details__heading { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.75rem; }
.theme-product-details__body ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details__body li { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); }

.related-products-section { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--color-border); }
.related-products-section__heading { font-size: 1.75rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .related-products-section__heading { font-size: 2.25rem; } }

/* =========================================================================
   404
   ========================================================================= */
.theme-404 { min-height: 70vh; display: flex; align-items: center; padding-top: var(--header-height); }
.theme-404__inner { text-align: center; padding: 4rem 0; }
.theme-404__code { font-family: var(--font-display); font-weight: 700; font-size: 5rem; color: var(--color-accent); }
.theme-404 .page-title { font-size: 1.75rem; margin: 1rem 0 0.5rem; }
.theme-404 p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* =========================================================================
   SHOP ARCHIVE / GENERIC PAGE
   ========================================================================= */
.site-main--inner { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 4rem; }
.shop-archive__head { margin-bottom: 2rem; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-bottom: 1rem; }

/* =========================================================================
   WOOCOMMERCE NOTICES (Section 14.1)
   ========================================================================= */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-foreground);
  border-radius: 0;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}
.woocommerce-error { border-color: var(--color-destructive); }

/* =========================================================================
   CHECKOUT BLOCK (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
  max-width: 100%;
}
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title { margin-bottom: 2rem; }

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    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-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  background-color: var(--color-background);
  border: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
  padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
  border-color: var(--color-accent) !important;
  outline: none;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-accent) !important;
  color: var(--color-accent-foreground) !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }
body.woocommerce-checkout .wc-block-components-notice-banner {
  border-radius: 0;
  font-family: var(--font-body);
  grid-column: 1 / -1;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: 0;
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-panel { color: var(--color-foreground); }
body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-components-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #000;
}

/* Checkout block — field labels (WC defaults often inherit low-contrast theme colors) */
body.woocommerce-checkout .wc-block-checkout label,
body.woocommerce-checkout .wc-block-components-label,
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__label,
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__option label,
body.woocommerce-checkout .wc-block-components-address-form label,
body.woocommerce-checkout .wc-block-components-checkout-step__description {
  color: #000 !important;
}

/* Cart & account page width/alignment parity (Section 13.7) */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce-MyAccount-content { width: 100%; }
@media (min-width: 768px) {
  body.woocommerce-cart .wc-block-cart .wp-block-cart-items {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
}

/* =========================================================================
   THANK YOU PAGE (Section 22.8)
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; margin: 0 0 2rem;
  background: var(--color-card); border: 1px solid var(--color-border);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
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); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* =========================================================================
   RESPONSIVE UTILITIES
   ========================================================================= */
@media (max-width: 639px) {
  .contact-section__cards { grid-template-columns: 1fr; }
}
