/* =============================================================
   TrainWreck279 Theme CSS
   ============================================================= */

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

/* ---- CSS Variables (overridden via wp_add_inline_style) ---- */
:root {
  --color-bg:          #15110e;
  --color-fg:          #e9e6e2;
  --color-card:        #211a17;
  --color-primary:     #c68039;
  --color-primary-fg:  #15110e;
  --color-secondary:   #29221f;
  --color-muted:       #322c29;
  --color-muted-fg:    #8e817b;
  --color-accent:      #b65f20;
  --color-accent-fg:   #f4f2f0;
  --color-border:      #322c29;
  --color-button-text: var(--color-primary-fg);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius:        0.5rem;
  --shadow-soft:   0 4px 20px -4px rgba(0,0,0,0.4);
  --shadow-elev:   0 8px 40px -8px rgba(0,0,0,0.6);

  --header-height: 80px;
  --logo-height:   60px;

  --btn-radius:          0.5rem;
  --btn-height:          2.75rem;
  --btn-padding:         0.625rem 2rem;
  --btn-font-size:       0.875rem;
  --btn-font-weight:     500;
  --btn-letter-spacing:  0.025em;
  --btn-text-transform:  none;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); cursor: pointer; background: none; border: none; }

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

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---- Scroll Animation Classes ---- */
/* Content is always visible — animations are optional (no JS required). */
.theme-reveal,
.theme-reveal-left,
.theme-reveal-right,
.theme-reveal-scale {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-motion-ready .theme-reveal,
  html.theme-motion-ready .theme-reveal-left,
  html.theme-motion-ready .theme-reveal-right,
  html.theme-motion-ready .theme-reveal-scale {
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.theme-motion-ready section:not(.theme-section-inview) .theme-reveal,
  html.theme-motion-ready .hero-section:not(.theme-section-inview) .theme-reveal {
    transform: translateY(1.5rem);
  }
  html.theme-motion-ready section.theme-section-inview .theme-reveal,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal,
  html.theme-motion-ready .theme-reveal.is-visible {
    transform: translateY(0);
  }

  html.theme-motion-ready section:not(.theme-section-inview) .theme-reveal-left,
  html.theme-motion-ready .hero-section:not(.theme-section-inview) .theme-reveal-left {
    transform: translateX(-1.5rem);
  }
  html.theme-motion-ready section.theme-section-inview .theme-reveal-left,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal-left,
  html.theme-motion-ready .theme-reveal-left.is-visible {
    transform: translateX(0);
  }

  html.theme-motion-ready section:not(.theme-section-inview) .theme-reveal-right,
  html.theme-motion-ready .hero-section:not(.theme-section-inview) .theme-reveal-right {
    transform: translateX(1.5rem);
  }
  html.theme-motion-ready section.theme-section-inview .theme-reveal-right,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal-right,
  html.theme-motion-ready .theme-reveal-right.is-visible {
    transform: translateX(0);
  }

  html.theme-motion-ready section:not(.theme-section-inview) .theme-reveal-scale,
  html.theme-motion-ready .hero-section:not(.theme-section-inview) .theme-reveal-scale {
    transform: scale(0.97);
  }
  html.theme-motion-ready section.theme-section-inview .theme-reveal-scale,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal-scale,
  html.theme-motion-ready .theme-reveal-scale.is-visible {
    transform: scale(1);
  }

  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal-left,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal-right,
  html.theme-motion-ready .hero-section.theme-section-inview .theme-reveal-scale {
    animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }

section.theme-section-inview .theme-reveal.delay-1,
section.theme-section-inview .theme-reveal-left.delay-1,
section.theme-section-inview .theme-reveal-right.delay-1,
section.theme-section-inview .theme-reveal-scale.delay-1 { transition-delay: 0.15s; }
section.theme-section-inview .theme-reveal.delay-2,
section.theme-section-inview .theme-reveal-left.delay-2,
section.theme-section-inview .theme-reveal-right.delay-2,
section.theme-section-inview .theme-reveal-scale.delay-2 { transition-delay: 0.30s; }
section.theme-section-inview .theme-reveal.delay-3,
section.theme-section-inview .theme-reveal-left.delay-3,
section.theme-section-inview .theme-reveal-right.delay-3,
section.theme-section-inview .theme-reveal-scale.delay-3 { transition-delay: 0.45s; }
section.theme-section-inview .theme-reveal.delay-4,
section.theme-section-inview .theme-reveal-left.delay-4,
section.theme-section-inview .theme-reveal-right.delay-4,
section.theme-section-inview .theme-reveal-scale.delay-4 { transition-delay: 0.60s; }

.hero-section .theme-reveal.delay-1,
.hero-section .theme-reveal-left.delay-1,
.hero-section .theme-reveal-right.delay-1 { animation-delay: 0.15s; }
.hero-section .theme-reveal.delay-2,
.hero-section .theme-reveal-left.delay-2,
.hero-section .theme-reveal-right.delay-2 { animation-delay: 0.30s; }
.hero-section .theme-reveal.delay-3,
.hero-section .theme-reveal-left.delay-3,
.hero-section .theme-reveal-right.delay-3 { animation-delay: 0.45s; }
.hero-section .theme-reveal.delay-4,
.hero-section .theme-reveal-left.delay-4,
.hero-section .theme-reveal-right.delay-4 { animation-delay: 0.60s; }

@keyframes heroEntrance {
  from { transform: translateY(1.5rem); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-reveal,
  .theme-reveal-left,
  .theme-reveal-right,
  .theme-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Gradient Background ---- */
.gradient-blues {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  isolation: isolate;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container-wide {
  position: relative;
  z-index: 2;
}

/* WordPress admin bar offset (logged-in preview / editor) */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in srgb, var(--color-border) 50%, transparent);
}

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

/* Logo */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.site-logo-img:hover { transform: scale(1.08) rotate(-3deg); }
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  line-height: var(--logo-height);
  display: block;
}
@media (min-width: 1024px) {
  .site-logo-text { font-size: 1.5rem; }
}

/* Desktop nav */
.theme-nav-list {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .theme-nav-list { display: flex; }
}
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  padding-bottom: 2px;
}
.theme-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.theme-nav-link:hover::after { transform: scaleX(1); }
.theme-nav-link:hover { transform: translateY(-2px); }

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

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--color-fg);
  transition: opacity 0.2s;
  line-height: 1;
}
.cart-btn:hover { opacity: 0.6; }
.cart-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  background: var(--color-primary);
  color: var(--color-button-text);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  transform: scale(1);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.theme-cart-count:empty { display: none; }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-fg);
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.2s ease;
}
.mobile-menu-btn:hover {
  background: color-mix(in srgb, var(--color-fg) 6%, transparent);
}
.mobile-menu-btn:active { transform: scale(0.94); }
.mobile-menu-btn.is-active {
  background: color-mix(in srgb, var(--color-fg) 8%, transparent);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu-btn__box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}
.mobile-menu-btn__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease,
    width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-btn.is-active .mobile-menu-btn__line:nth-child(1) {
  transform: translateY(6.25px) rotate(45deg);
}
.mobile-menu-btn.is-active .mobile-menu-btn__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.is-active .mobile-menu-btn__line:nth-child(3) {
  transform: translateY(-6.25px) rotate(-45deg);
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--color-bg) 15%, rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
body.mobile-menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile nav panel */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.75rem);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--color-bg) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 56px -16px rgba(0, 0, 0, 0.22);
  transition:
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}
.mobile-nav.is-open {
  max-height: min(85vh, 28rem);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-bottom-color: color-mix(in srgb, var(--color-border) 55%, transparent);
}
@media (min-width: 768px) {
  .mobile-nav,
  .mobile-menu-backdrop { display: none !important; }
}

.mobile-nav-inner {
  padding: 1.25rem 0 1.75rem;
}
.mobile-nav-eyebrow {
  margin: 0 0 0.75rem;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
}
.mobile-nav-item {
  opacity: 0;
  transform: translateX(-1.25rem);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--nav-index, 0) * 0.07s + 0.08s);
}
.mobile-nav.is-open .mobile-nav-item {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav:not(.is-open) .mobile-nav-item {
  transition-delay: 0s;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: var(--color-fg);
  border-radius: 0;
  transition: color 0.25s ease, background 0.25s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}
.mobile-nav-link__text {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.mobile-nav-link__text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.125rem;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-link:hover .mobile-nav-link__text::after,
.mobile-nav-link:focus-visible .mobile-nav-link__text::after {
  transform: scaleX(1);
}

body.mobile-menu-open {
  overflow: hidden;
}
body.mobile-menu-open .site-header {
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: color-mix(in srgb, var(--color-border) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav-item,
  .mobile-menu-backdrop,
  .mobile-menu-btn__line {
    transition: none !important;
  }
  .mobile-nav-item {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1.5rem;
  width: 100%;
  max-width: 1280px;
  margin: auto;
}
.hero-tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-tagline-line {
  height: 1px;
  width: 2rem;
  background: color-mix(in srgb, var(--color-primary) 60%, transparent);
  display: block;
}
.hero-tagline-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.hero-description {
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  font-family: var(--font-body);
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .hero-cta-row { flex-direction: row; }
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-scroll-btn {
  color: rgba(255,255,255,0.5);
  padding: 0.5rem;
  transition: color 0.2s;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll-btn:hover { color: #fff; }
.hero-scroll-btn svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  background: var(--color-primary);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  min-height: var(--btn-height);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; transform: scale(1.04) translateY(-2px); }
.btn-primary:active { transform: scale(0.96); }
.btn-primary.btn-lg { padding: 0.75rem 2.5rem; font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  min-height: var(--btn-height);
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: scale(1.04) translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  background: transparent;
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  min-height: var(--btn-height);
}
.btn-outline:hover {
  background: var(--color-secondary);
  transform: scale(1.04) translateY(-2px);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  background: var(--color-secondary);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  min-height: var(--btn-height);
}
.btn-ghost-white:hover { background: var(--color-muted); transform: scale(1.04); }

/* =============================================================
   SERVICES SECTION
   ============================================================= */
.services-section { scroll-margin-top: 6rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  max-width: 32rem;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-card);
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.5s cubic-bezier(0.4,0,0.2,1);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 0.75rem;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elev); }
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 3.5rem; height: 3.5rem;
  margin: 0 auto 1.25rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.service-card:hover .service-icon-wrap { transform: translateY(-4px) rotate(-8deg); }
.service-icon { width: 28px; height: 28px; color: var(--color-primary); }
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card-desc {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* =============================================================
   ABOUT SECTION
   ============================================================= */
.about-section {
  background: var(--color-secondary);
  scroll-margin-top: 6rem;
}
.about-section .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
  .about-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.about-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-inner {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
}
.about-photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.about-photo-inner:hover img { transform: scale(1.06); }
.about-photo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top-right, transparent, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.about-title .highlight {
  color: var(--color-primary);
  display: inline-block;
  transition: transform 0.2s ease;
}
.about-title .highlight:hover { transform: scale(1.05) rotate(-1deg); }
.about-bio { color: var(--color-muted-fg); font-family: var(--font-body); }
.about-bio p { line-height: 1.8; margin-bottom: 1rem; }
.about-bio p:first-child { font-size: 1rem; }
@media (min-width: 768px) { .about-bio p:first-child { font-size: 1.125rem; } }
.about-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.about-social-link {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.about-social-link:hover { color: var(--color-accent); transform: translateX(4px); }

/* =============================================================
   SHOP SECTION
   ============================================================= */
.shop-section {
  scroll-margin-top: 6rem;
}
.shop-section .container-wide { padding-top: 4rem; padding-bottom: 6rem; }
@media (min-width: 768px) {
  .shop-section .container-wide { padding-top: 6rem; }
}
.shop-header { text-align: center; margin-bottom: 3rem; }

/* Category filter pills */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.cat-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--color-card);
  color: var(--color-muted-fg);
  border: none;
}
.cat-filter-btn:hover {
  color: var(--color-fg);
  background: var(--color-secondary);
  transform: scale(1.05) translateY(-2px);
}
.cat-filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-button-text);
}

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

/* Product card */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.theme-product-card {
  background: var(--color-card);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease;
}
.theme-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.theme-product-card-hidden { display: none !important; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-secondary);
}
.theme-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}
.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.7s;
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
  transform: scale(1.08);
  filter: brightness(1.08);
}
.theme-product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent, transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.theme-product-card:hover .theme-product-card__overlay { opacity: 1; }

/* Badges */
.theme-badge-format {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: color-mix(in srgb, var(--color-fg) 85%, transparent);
  color: var(--color-bg);
  font-size: 0.625rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
}
.theme-badge-save {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-size: 0.625rem;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
}

/* Card body */
.theme-product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}
.theme-product-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  transition: color 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
}
.theme-product-card:hover .theme-product-card__title {
  color: var(--color-primary);
  transform: translateX(4px);
}
.theme-product-card__desc {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.theme-product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.theme-product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}
.theme-product-card__price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.theme-product-card__price-compare {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-decoration: line-through;
  font-family: var(--font-body);
}
.theme-product-card__actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.theme-product-card__actions .btn-outline,
.theme-product-card__actions .btn-primary,
.theme-product-card__actions a.add_to_cart_button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: 0.375rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.theme-product-card__actions .btn-outline,
.theme-product-card__actions a.add_to_cart_button.btn-outline {
  background: var(--color-bg);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
}
.theme-product-card__actions .btn-outline:hover,
.theme-product-card__actions a.add_to_cart_button.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  border-color: var(--color-accent);
  opacity: 1;
  transform: scale(1.04);
}
.theme-product-card__actions .btn-primary {
  background: var(--color-primary);
  color: var(--color-button-text);
  border: none;
}
.theme-product-card__actions .btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.04);
}
.theme-product-card__actions .btn-outline:active,
.theme-product-card__actions .btn-primary:active,
.theme-product-card__actions a.add_to_cart_button.btn-outline:active {
  transform: scale(0.95);
}

/* =============================================================
   BUNDLE CTA
   ============================================================= */
.bundle-section .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
  .bundle-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; }
}
.bundle-card {
  text-align: center;
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
  border-radius: 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@media (min-width: 768px) { .bundle-card { padding: 3.5rem; } }
.bundle-card:hover { transform: scale(1.02); }
.bundle-bg-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: rotateSlow 20s linear infinite;
  pointer-events: none;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.bundle-content { position: relative; z-index: 1; }
.bundle-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.bundle-desc {
  opacity: 0.9;
  margin-bottom: 1rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
}
.bundle-savings {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}
.bundle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: var(--color-fg);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.bundle-btn:hover { background: var(--color-accent-fg); transform: scale(1.06) translateY(-2px); }

/* =============================================================
   CONTACT SECTION
   ============================================================= */
.contact-section {
  background: var(--color-secondary);
  scroll-margin-top: 6rem;
}
.contact-section .container-wide { padding-top: 5rem; padding-bottom: 5rem; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, color 0.2s;
}
.contact-info-item:hover { color: var(--color-fg); transform: scale(1.05) translateY(-2px); }
.contact-info-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-info-item a { transition: color 0.2s; }
.contact-info-item a:hover { color: var(--color-fg); }
.contact-form-wrap { max-width: 42rem; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .contact-form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-fg);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-fg);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-muted-fg); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
  transform: scale(1.01);
}
.form-textarea { resize: none; min-height: 8rem; }
.contact-form-submit { text-align: center; }
.contact-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.contact-success-icon {
  width: 4rem; height: 4rem;
  background: var(--color-primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.contact-success-icon svg { width: 32px; height: 32px; color: var(--color-button-text); }
.contact-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-success-msg { color: var(--color-muted-fg); font-family: var(--font-body); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
}
.site-footer .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) {
  .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-bio {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 22rem;
  line-height: 1.7;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-social-link {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s;
}
.footer-social-link:hover { color: var(--color-fg); }
.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  color: var(--color-fg);
}
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s;
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.footer-nav-link:hover { color: var(--color-fg); }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--color-fg); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.footer-credit a {
  transition: color 0.2s;
  text-decoration: underline;
}
.footer-credit a:hover { color: var(--color-fg); }

/* =============================================================
   CART DRAWER
   ============================================================= */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-fg) 15%, transparent);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}
#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-elev);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s 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; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-fg);
  transition: opacity 0.2s;
}
.cart-drawer-close:hover { opacity: 0.6; }
.cart-drawer-close svg { width: 20px; height: 20px; stroke-width: 1.5; }

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1rem;
}
.cart-drawer-empty svg { width: 48px; height: 48px; color: var(--color-muted-fg); stroke-width: 1; }
.cart-drawer-empty p { color: var(--color-muted-fg); font-family: var(--font-body); }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item { display: flex; gap: 1rem; }
.cart-item-img-link {
  width: 5rem; height: 6rem;
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-img-link img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: opacity 0.2s;
  margin-bottom: 0.25rem;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}
.cart-item-variation {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  color: var(--color-fg);
  transition: background 0.2s;
  border-radius: var(--radius);
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-btn svg { width: 12px; height: 12px; }
.cart-qty-display {
  font-size: 0.875rem;
  width: 1.5rem;
  text-align: center;
  font-family: var(--font-body);
}
.cart-item-remove {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--color-fg); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }
.cart-digital-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  text-align: center;
  transition: opacity 0.2s;
  text-decoration: none;
}
.cart-checkout-btn:hover { opacity: 0.85; }

/* =============================================================
   SINGLE PRODUCT PAGE
   ============================================================= */
.single-product main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 4rem;
}
.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.product-back-link:hover { color: var(--color-fg); }
.product-back-link svg { width: 16px; height: 16px; }

.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: 3.5rem; }
}

.theme-product-gallery { min-width: 0; max-width: 100%; }
.product-main-image-wrap {
  aspect-ratio: 1/1;
  background: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
#product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.product-thumb-btn {
  width: 4rem; height: 4rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.product-thumb-btn.is-active { border-color: var(--color-primary); }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.theme-product-info { min-width: 0; max-width: 100%; display: flex; flex-direction: column; justify-content: center; }
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.product-category-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}
.product-format-badge {
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.product-price-compare {
  font-size: 1.125rem;
  color: var(--color-muted-fg);
  text-decoration: line-through;
  font-family: var(--font-body);
}
.product-description {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  line-height: 1.8;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-stock-out {
  display: inline-block;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
}

/* Quantity wrapper */
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.quantity-label {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  flex-shrink: 0;
}
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.5rem;
  color: var(--color-fg);
  font-size: 1rem;
  min-width: 2.25rem;
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  width: 2.5rem;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--color-fg);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.theme-add-to-cart-area .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Product details list */
.product-details-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-details-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.product-details-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.product-details-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Related products */
.related-products-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}
.related-products-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .related-products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   ADD TO CART BUTTON OVERRIDES (WooCommerce)
   ============================================================= */
.single_add_to_cart_button.button,
.add_to_cart_button.button:not(.btn-outline),
a.single_add_to_cart_button:not(.btn-outline),
a.add_to_cart_button:not(.btn-outline) {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:not(.btn-outline):hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled:not(.btn-outline),
.add_to_cart_button.button.disabled:not(.btn-outline) {
  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:not(.btn-outline):hover,
.add_to_cart_button.button.disabled:not(.btn-outline):hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}
/* Hide "View cart" WooCommerce injected link */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

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

/* =============================================================
   WooCommerce NOTICES (scoped)
   ============================================================= */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error {
  background: rgba(180,40,40,0.15);
  border: 1px solid rgba(180,40,40,0.4);
  color: var(--color-fg);
  padding: 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  list-style: none;
  margin-bottom: 1rem;
}

/* =============================================================
   WOOCOMMERCE ARCHIVE (SHOP)
   ============================================================= */
.woocommerce-archive-page main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 4rem;
}
.archive-shop-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* =============================================================
   CHECKOUT
   ============================================================= */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

/* WC Checkout Block two-column layout */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 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,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important;
  max-width: none !important;
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  color: var(--color-fg) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
}
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 0.875rem 2rem !important;
  width: 100% !important;
  transition: opacity 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}
body.woocommerce-checkout h2,
body.woocommerce-checkout .wc-block-components-title {
  font-family: var(--font-display) !important;
  letter-spacing: 0.04em !important;
}
body.woocommerce-checkout .wc-block-cart-items__row {
  border-color: var(--color-border) !important;
}

/* =============================================================
   THANK YOU PAGE
   ============================================================= */
body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
  color: var(--color-fg);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display) !important;
  padding: 0 0 1rem;
  letter-spacing: 0.04em;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  background: var(--color-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order-overview li strong { color: var(--color-fg); }
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-fg);
}
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-style: normal;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  background: var(--color-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
}
body.theme-thankyou-page { overflow-x: hidden; }

/* =============================================================
   GENERAL INNER PAGES
   ============================================================= */
.theme-inner-page .site-main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}

/* =============================================================
   404 PAGE
   ============================================================= */
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background: var(--color-muted);
}
.not-found-content { text-align: center; padding: 2rem; }
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--color-primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}
.not-found-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.not-found-desc { color: var(--color-muted-fg); font-family: var(--font-body); margin-bottom: 2rem; }

/* =============================================================
   VARIATIONS FORM (WooCommerce variable products)
   ============================================================= */
.theme-variations-form {
  margin-bottom: 1.5rem;
}
.theme-variations-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.theme-variation-row {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.theme-variation-label {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-fg);
  letter-spacing: 0.02em;
}
.theme-attr-select-hidden,
.single-product .variations_form select.theme-attr-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.theme-attr-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.theme-attr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  background: var(--color-card);
  color: var(--color-fg);
  margin: 0;
  line-height: 1.2;
}
.theme-attr-btn:hover {
  border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
  transform: translateY(-1px);
}
.theme-attr-btn.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.theme-attr-btn:disabled,
.theme-attr-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.theme-attr-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Color swatches */
.theme-attr-color-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  padding: 3px;
  background: var(--color-bg);
}
.theme-attr-color-btn .theme-attr-swatch-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--swatch-color, var(--color-muted));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-fg) 12%, transparent);
}
.theme-attr-color-btn.is-selected {
  border-color: var(--color-primary);
  background: var(--color-bg);
}

/* Size buttons */
.theme-attr-size-btn {
  flex-direction: column;
  min-width: 3.25rem;
  min-height: 3rem;
  padding: 0.375rem 0.625rem;
  gap: 0.125rem;
}
.theme-attr-size-abbr {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.theme-attr-size-full {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-attr-size-btn.is-selected {
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-card));
}
.theme-attr-size-btn.is-selected .theme-attr-size-full {
  color: color-mix(in srgb, var(--color-primary) 70%, var(--color-fg));
}

/* Legacy table fallback (if present) */
.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; }

/* =============================================================
   WOOCOMMERCE BREADCRUMBS suppressed via PHP
   ============================================================= */

/* =============================================================
   RESPONSIVE PRODUCT LAYOUT
   ============================================================= */
@media (max-width: 767px) {
  .theme-product-layout { gap: 1.5rem; }
  .theme-add-to-cart-area { gap: 0.75rem; }
}

/* =============================================================
   RESPONSIVE MISC
   ============================================================= */
@media (max-width: 767px) {
  .hero-content { padding: 5rem 1rem 4rem; }
  .contact-info-row { flex-direction: column; align-items: flex-start; }
  .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }

/* Scroll anchor helpers */
.scroll-anchor { display: block; height: 0; visibility: hidden; }
