/* ─────────────────────────────────────────────────────────────────
   Skuttlebutt Creations — Theme Stylesheet
   All colors via CSS custom properties from Customizer
   ───────────────────────────────────────────────────────────────── */

/* ─── CSS Custom Properties (Defaults — overridden by PHP inline) ── */
:root {
  --color-background:         hsl(35, 30%, 97%);
  --color-foreground:         hsl(20, 20%, 12%);
  --color-primary:            hsl(140, 25%, 35%);
  --color-primary-foreground: hsl(35, 30%, 97%);
  --color-secondary:          hsl(35, 22%, 90%);
  --color-secondary-foreground: hsl(20, 15%, 20%);
  --color-muted:              hsl(35, 15%, 85%);
  --color-muted-foreground:   hsl(20, 10%, 45%);
  --color-accent:             hsl(35, 25%, 82%);
  --color-border:             hsl(35, 18%, 82%);
  --color-forest:             hsl(140, 25%, 35%);
  --color-forest-light:       hsl(140, 20%, 48%);
  --color-forest-dark:        hsl(140, 30%, 25%);
  --color-sage:               hsl(100, 15%, 65%);
  --color-cream:              hsl(40, 35%, 96%);
  --color-charcoal:           hsl(20, 10%, 18%);
  --color-destructive:        hsl(0, 84%, 60%);

  --font-display: 'Gorditas', cursive;
  --font-body:    'Nunito Sans', sans-serif;
  --radius:       0.5rem;
  --shadow-soft:     0 4px 20px -4px rgba(20, 15, 10, 0.08);
  --shadow-elevated: 0 8px 40px -8px rgba(20, 15, 10, 0.15);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ─── Layout ─────────────────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding: 0 2rem; }
}
.container-inner { width: 100%; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* ─── Typography helpers ─────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-top: 0.5rem;
  color: var(--color-foreground);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.btn-primary:hover { background-color: var(--color-forest-dark); opacity: 1; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
}
.btn-outline:hover { background-color: var(--color-secondary); opacity: 1; }
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
}
.btn-secondary:hover { background-color: var(--color-muted); opacity: 1; }
.btn.disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ─── Link underline ──────────────────────────────────────────────── */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ─── Badges ──────────────────────────────────────────────────────── */
.sold-out-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  border-radius: 2px;
  z-index: 2;
}
.new-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-forest);
  color: white;
  border-radius: 2px;
  z-index: 2;
}
.one-of-a-kind-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-sage);
  color: var(--color-forest-dark);
  border-radius: 2px;
  z-index: 2;
}
@media (min-width: 768px) {
  .sold-out-badge, .new-badge { top: 0.75rem; padding: 0.25rem 0.75rem; font-size: 0.7rem; }
  .sold-out-badge { left: 0.75rem; }
  .new-badge { right: 0.75rem; }
  .one-of-a-kind-badge { bottom: 0.75rem; left: 0.75rem; padding: 0.25rem 0.5rem; font-size: 0.625rem; }
}

/* ─────────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.theme-no-hero .site-header {
  background-color: rgba(249, 246, 241, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) { .site-nav { height: 5rem; } }

.site-logo-link { display: flex; align-items: center; gap: 0.5rem; }
.site-logo {
  height: 2.5rem;
  width: auto;
  border-radius: 50%;
}
@media (min-width: 1024px) { .site-logo { height: 3rem; } }

/* Header text color — white on transparent hero, normal otherwise */
.site-header:not(.is-scrolled) .site-nav,
.site-header:not(.is-scrolled) .nav-link,
.site-header:not(.is-scrolled) .cart-btn,
.site-header:not(.is-scrolled) .mobile-menu-btn {
  color: white;
}
.theme-no-hero .site-header .site-nav,
.theme-no-hero .site-header .nav-link,
.theme-no-hero .site-header .cart-btn,
.theme-no-hero .site-header .mobile-menu-btn,
.site-header.is-scrolled .site-nav,
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .cart-btn,
.site-header.is-scrolled .mobile-menu-btn {
  color: var(--color-foreground);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .desktop-nav { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: inherit;
  transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: inherit;
  transition: opacity 0.2s;
}
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu[hidden] {
  display: none !important;
}
.mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0 2rem;
  background-color: var(--color-background);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.mobile-nav-link:hover { opacity: 0.7; }

/* ─────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest) 50%, var(--color-forest-light) 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 0;
  animation: fadeInUp 0.9s ease-out 0.4s both;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s ease-out 0.4s both;
}
@media (min-width: 768px) {
  .hero-heading { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .hero-heading { font-size: 4.5rem; }
}
.hero-subtext {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  animation: fadeInUp 0.7s ease-out 0.6s both;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.7s ease-out 0.8s both;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
.hero-btn-about {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}
.hero-btn-about:hover { background-color: rgba(255, 255, 255, 0.15); border-color: white; opacity: 1; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite 1.2s;
}
.hero-scroll-btn {
  display: flex;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.hero-scroll-btn:hover { color: white; }

/* ─────────────────────────────────────────────────────────────────
   ABOUT SECTION
   ───────────────────────────────────────────────────────────────── */
.about-section {
  background-color: var(--color-secondary);
  scroll-margin-top: 6rem;
}
.about-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 0;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1.5rem;
}
.about-para-bold {
  font-weight: 500;
  color: var(--color-foreground);
}

/* ─────────────────────────────────────────────────────────────────
   SHOP SECTION
   ───────────────────────────────────────────────────────────────── */
.shop-section {
  padding: 5rem 0;
  scroll-margin-top: 6rem;
}
.shop-header {
  text-align: center;
  margin-bottom: 3rem;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.filter-pill {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  transition: background-color 0.3s, transform 0.1s;
  cursor: pointer;
}
.filter-pill:hover { background-color: var(--color-muted); transform: scale(1.04); }
.filter-pill.active {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* Price filter (React replica) */
.price-filter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.price-filter-toggle:hover { background-color: var(--color-muted); }
.price-filter-chevron {
  transition: transform 0.3s;
}
.price-filter-wrap[data-open="true"] .price-filter-chevron { transform: rotate(180deg); }
.price-filter-range-label {
  font-size: 0.75rem;
  opacity: 0.8;
}
.price-filter-panel {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
}
.price-filter-sliders { padding: 0.5rem 0; }
.price-filter-row {
  display: flex;
  flex-direction: column;
}
.price-filter-track {
  position: relative;
  width: 100%;
  height: 1.5rem;
  margin: 0;
}
.price-range-input {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--color-primary);
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.price-range-input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: grab;
  border: none;
}
.price-range-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 6px;
  background: transparent;
}
.price-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: grab;
  border: none;
}
.price-range-input::-moz-range-track {
  background: transparent;
  height: 6px;
}
.price-range-min {
  z-index: 2;
}
.price-range-min::-webkit-slider-runnable-track { background: transparent; }
.price-range-min::-moz-range-track { background: transparent; }
.price-range-max {
  z-index: 1;
}
.price-range-max::-webkit-slider-runnable-track {
  background: var(--color-muted);
  border-radius: 9999px;
}
.price-range-max::-moz-range-track {
  background: var(--color-muted);
  border-radius: 9999px;
}
.price-filter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ─────────────────────────────────────────────────────────────────
   PRODUCT CARD
   ───────────────────────────────────────────────────────────────── */
.product-card { display: block; }
.product-card-image-link { display: block; }
.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: transform 0.3s ease-out;
}
.product-card-image-wrap:hover { transform: translateY(-4px); }
.product-card-image-wrap.is-sold-out .product-card-img { opacity: 0.6; }
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}
.product-card-image-wrap:hover .product-card-img { transform: scale(1.05); }
.product-card-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevated);
  opacity: 1;
  z-index: 10;
  transition: opacity 0.3s, transform 0.2s;
}
@media (min-width: 768px) { .product-card-add { opacity: 0; } }
.product-card-image-wrap:hover .product-card-add { opacity: 1; }
.product-card-add:hover { transform: scale(1.1); }
.product-card-info { display: flex; flex-direction: column; gap: 0.25rem; }
.product-card-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.product-card-name a:hover { opacity: 0.7; }
.product-card-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.no-products {
  text-align: center;
  color: var(--color-muted-foreground);
  padding: 5rem 0;
  grid-column: 1 / -1;
}

/* ─────────────────────────────────────────────────────────────────
   CUSTOM ORDERS CTA
   ───────────────────────────────────────────────────────────────── */
.cta-section { padding: 5rem 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: white;
  max-width: 42rem;
  margin: 0 auto;
  transition: transform 0.4s ease;
}
@media (min-width: 768px) { .cta-card { padding: 4rem; } }
.cta-card:hover { transform: scale(1.02); }
.cta-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.cta-content { position: relative; z-index: 1; }
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.cta-text {
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Home: mobile replica of React (max-width: 767px) ───────────── */
@media (max-width: 767px) {
  .about-section .section-heading {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
  .shop-section .shop-header .section-heading {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }
  .cta-card {
    padding: 2.5rem;
  }
  .cta-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  /* Filter by price: handler/panel not full width on mobile */
  .price-filter-panel {
    width: 100%;
    max-width: 20rem;
  }
  /* Product cards: side padding on mobile */
  .product-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 4rem 0; }
}
.footer-logo-link { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo { height: 2.5rem; width: 2.5rem; border-radius: 50%; object-fit: cover; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.footer-tagline { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 22rem; line-height: 1.6; }
.footer-shipping-note { margin-top: 0.5rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-col-heading { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; color: var(--color-foreground); }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.footer-link:hover { color: var(--color-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-address-item { align-items: flex-start; }
.footer-contact-link { color: var(--color-muted-foreground); transition: color 0.2s; word-break: break-all; }
.footer-contact-link:hover { color: var(--color-foreground); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.footer-credit:hover { color: var(--color-foreground); }

/* ─────────────────────────────────────────────────────────────────
   SINGLE PRODUCT PAGE
   ───────────────────────────────────────────────────────────────── */
.single-product-page { padding-top: 6rem; }
@media (min-width: 1024px) { .single-product-page { padding-top: 7rem; } }

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

.single-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .single-product-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Gallery */
.product-gallery {}
.product-main-image-wrap {
  aspect-ratio: 3 / 4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.product-main-image { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.product-thumb-btn {
  width: 4rem;
  height: 4rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  cursor: pointer;
}
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-btn.is-active { border-color: var(--color-foreground); }
.product-thumb-btn:hover { border-color: var(--color-muted-foreground); }

/* Product Info - matches React lg:py-10 */
.product-info { padding: 2.5rem 0; }
.product-category { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin-top: 0.5rem; margin-bottom: 1rem; }
.product-price { font-size: 1.25rem; color: var(--color-foreground); margin-bottom: 1.5rem; }
.product-price .woocommerce-Price-amount { font-size: 1.25rem; }
.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }
/* Details - React: border-t border-border pt-8, h3 text-sm font-medium mb-4, ul space-y-2 */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 2rem;
  margin-bottom: 0;
}
.product-details-section h3 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.product-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-details-list li {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}
.product-details-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin-top: 0.5rem;
  margin-right: 0.75rem;
  background-color: var(--color-muted-foreground);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Variations - React: Sizes min-w-[48px] px-4 py-2; Colors w-10 h-10 rounded-full border-2 */
.variation-group { margin-bottom: 1.5rem; }
.variation-group.variation-color { margin-bottom: 1.5rem; }
.variation-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.variation-options { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* Size / default buttons - React: min-w-[48px] px-4 py-2 text-sm border rounded */
.variation-option-btn {
  min-width: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  font-family: inherit;
}
.variation-option-btn:hover { border-color: var(--color-foreground); }
.variation-option-btn.is-selected {
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-color: var(--color-foreground);
}
/* Color swatches - React: w-10 h-10 rounded-full border-2, selected scale-110 */
.variation-group.variation-color .variation-option-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-width: 2px;
  border-radius: 50%;
  text-indent: -9999px;
  overflow: hidden;
}
.variation-group.variation-color .variation-option-btn:hover { transform: scale(1.05); }
.variation-group.variation-color .variation-option-btn.is-selected {
  transform: scale(1.1);
  border-color: var(--color-foreground);
}
/* Hide WC dropdown select (keep in DOM for variation script) - we use custom buttons */
.variation-group select {
  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;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Quantity + Add to Cart - React: flex gap-4 mb-8, px-4 py-3, min-w-[48px] */
.quantity-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-btn,
.qty-minus,
.qty-plus {
  padding: 1rem 0.75rem;
  background: transparent;
  color: var(--color-foreground);
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover,
.qty-minus:hover,
.qty-plus:hover { background-color: var(--color-secondary); }
.qty-display {
  padding: 1rem 0.75rem;
  min-width: 48px;
  text-align: center;
  font-size: 0.9rem;
}
/* Add to Cart - React Button size="lg": h-11 rounded-md px-8 flex-1 */
.single-product-page .single_add_to_cart_button,
.single-product-page .single_add_to_cart_link,
.product-info .single_add_to_cart_button,
.product-info .single_add_to_cart_link {
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 2rem;
  border-radius: var(--radius);
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.single-product-page .single_add_to_cart_link:hover,
.product-info .single_add_to_cart_link:hover {
  color: var(--color-primary-foreground);
}
.quantity-wrap .single_add_to_cart_button,
.quantity-wrap .single_add_to_cart_link,
.quantity-wrap .btn { flex: 1; }

/* Hide "View cart" link on single product page (drawer is used instead) */
.single-product-page .added_to_cart.wc-forward { display: none !important; }

/* Reset variations link */
.reset-variations-wrap { margin-bottom: 1.5rem; }
.reset-variations-wrap .reset_variations {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.reset-variations-wrap .reset_variations:hover { color: var(--color-foreground); }

/* Related Products */
.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; margin-bottom: 2.5rem; }
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.related-product-link { display: block; color: inherit; }
.related-product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.related-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-product-link:hover .related-product-image img { transform: scale(1.04); }
.related-product-info {}
.related-product-name { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.related-product-price { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ─────────────────────────────────────────────────────────────────
   SHOP ARCHIVE PAGE
   ───────────────────────────────────────────────────────────────── */
.shop-archive-page { padding-top: 6rem; }
.shop-archive-header { padding: 3rem 0 2rem; text-align: center; }
.shop-archive-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.shop-grid-section { padding: 2rem 0 5rem; }
.shop-pagination { margin-top: 3rem; text-align: center; }
.shop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: background-color 0.2s;
}
.shop-pagination .page-numbers a:hover { background-color: var(--color-secondary); color: var(--color-foreground); }
.shop-pagination .page-numbers .current { background-color: var(--color-primary); color: var(--color-primary-foreground); }

/* ─────────────────────────────────────────────────────────────────
   CART DRAWER
   ───────────────────────────────────────────────────────────────── */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 26, 22, 0.2);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: all;
}
#theme-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  box-shadow: var(--shadow-elevated);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

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

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 1rem;
  color: var(--color-muted-foreground);
}
.cart-empty-state svg { color: var(--color-muted-foreground); }

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

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

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT PAGE (default WooCommerce checkout)
   ───────────────────────────────────────────────────────────────── */
body.woocommerce-checkout main {
  padding-top: 6rem;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  body.woocommerce-checkout main { padding-top: 7rem; }
}
form.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  form.woocommerce-checkout {
    grid-template-columns: 1fr 1fr;
  }
  body.woocommerce-checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / -1;
  }
  body.woocommerce-checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
  }
  body.woocommerce-checkout #order_review {
    grid-column: 2;
    grid-row: 2;
  }
  body.woocommerce-checkout .woocommerce-form-login {
    grid-column: 1;
  }
}
#order_review_heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}
body.woocommerce-checkout #order_review {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 0;
}

/* WC form fields override */
.woocommerce-checkout .form-row { margin: 0; padding: 0; }
.woocommerce-checkout .form-row label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  color: var(--color-foreground);
}
.theme-input,
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.theme-input:focus,
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}
.woocommerce-checkout .form-row textarea { resize: vertical; min-height: 5rem; }
.woocommerce-checkout .form-row.form-row-first,
.woocommerce-checkout .form-row.form-row-last {
  width: 100%;
  float: none;
}

/* WooCommerce order review */
.woocommerce-checkout-review-order { margin-top: 1.5rem; }
.woocommerce-checkout-review-order table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.woocommerce-checkout-review-order table th,
.woocommerce-checkout-review-order table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
  text-align: left;
}
.woocommerce-checkout-review-order table tfoot tr:last-child td,
.woocommerce-checkout-review-order table tfoot tr:last-child th {
  font-weight: 600;
  font-size: 1rem;
  border-bottom: none;
}
.woocommerce-checkout-review-order table tfoot tr:empty { display: none; }

/* Payment methods */
.woocommerce-checkout-payment { margin-top: 1.5rem; }
.wc_payment_methods { list-style: none; }
.wc_payment_method { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.wc_payment_method label { font-size: 0.875rem; cursor: pointer; }
.payment_box { padding: 0.75rem; background-color: var(--color-secondary); border-radius: var(--radius); margin-top: 0.5rem; font-size: 0.8rem; color: var(--color-muted-foreground); }
.payment_method_stripe .payment_box, .wc-upe-form { overflow-x: hidden; }
.select2-container { width: 100% !important; }
.select2-dropdown { position: absolute; max-width: calc(100vw - 2rem); overflow-x: hidden; }
.select2-results__option, .select2-selection__rendered { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Place Order button */
#place_order {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  margin-top: 1.5rem;
}
#place_order:hover { background-color: var(--color-forest-dark); }
.woocommerce-terms-and-conditions-wrapper { font-size: 0.8rem; color: var(--color-muted-foreground); margin-top: 1rem; }
.woocommerce-privacy-policy-text { font-size: 0.8rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

/* ─────────────────────────────────────────────────────────────────
   CHECKOUT BLOCK (WooCommerce Block Checkout)
   ───────────────────────────────────────────────────────────────── */
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  color: var(--color-foreground);
  font-family: var(--font-body);
}
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-address-form input[type="text"],
.wc-block-checkout .wc-block-components-address-form input[type="email"],
.wc-block-checkout .wc-block-components-address-form input[type="tel"] {
  width: 100% !important;
  background-color: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-address-form input:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15) !important;
}
.wc-block-checkout .wc-blocks-components-select__container,
.wc-block-checkout .wc-blocks-components-select__select {
  width: 100% !important;
}
.wc-block-checkout .wc-blocks-components-select__select {
  background-color: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  appearance: none;
  -webkit-appearance: none;
}
.wc-block-checkout .wc-blocks-components-select__select:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15) !important;
}
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button:hover {
  opacity: 0.8;
  color: var(--color-primary);
}
.wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button.contained {
  width: 100%;
  padding: 1rem 1.5rem !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button.contained:hover {
  background-color: var(--color-forest-dark) !important;
  opacity: 1;
}
.wc-block-checkout .wc-block-components-checkout-step__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-foreground);
}
.wc-block-checkout .wc-block-components-checkbox__label {
  font-size: 0.875rem;
  color: var(--color-foreground);
  font-family: var(--font-body);
}
.wc-block-checkout .wc-block-components-notice-banner {
  border-radius: var(--radius);
  font-size: 0.875rem;
}

/* ─────────────────────────────────────────────────────────────────
   THANK YOU PAGE
   ───────────────────────────────────────────────────────────────── */
.thankyou-page { padding-top: 1.2rem; min-height: 100vh; }
/* Hide checkout page title on thank you / order-received */
body.theme-thankyou-page .entry-header,
body.theme-thankyou-page .page-title,
body.theme-thankyou-page .entry-title,
body.theme-thankyou-page .woocommerce-checkout .page-title {
  display: none !important;
}
.thankyou-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
  text-align: left;
}
@media (min-width: 768px) {
  .thankyou-content { max-width: 56rem; }
}
.thankyou-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.thankyou-header .thankyou-icon {
  margin-bottom: 1rem;
}
.thankyou-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thankyou-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.thankyou-subtext {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
}
.thankyou-order-content {
  width: 100%;
  margin-bottom: 2rem;
}
.thankyou-page .woocommerce-order {
  width: 100%;
  text-align: left;
  color: var(--color-foreground);
  font-size: 0.875rem;
}
/* Order overview (order number, date, total, etc.) */
.thankyou-page .woocommerce-order-overview {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .thankyou-page .woocommerce-order-overview {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.thankyou-page .woocommerce-order-overview li {
  padding: 1rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-foreground);
  min-width: 0;
}
.thankyou-page .woocommerce-order-overview li .woocommerce-Price-amount {
  color: var(--color-foreground);
}
/* Order details table */
.thankyou-page .woocommerce-table--order-details,
.thankyou-page .shop_table.order_details {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.thankyou-page .woocommerce-table--order-details th,
.thankyou-page .woocommerce-table--order-details td,
.thankyou-page .shop_table.order_details th,
.thankyou-page .shop_table.order_details td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
  text-align: left;
}
.thankyou-page .woocommerce-table--order-details thead th,
.thankyou-page .shop_table.order_details thead th {
  background-color: var(--color-secondary);
  font-weight: 600;
}
.thankyou-page .woocommerce-table--order-details tfoot tr:last-child th,
.thankyou-page .woocommerce-table--order-details tfoot tr:last-child td,
.thankyou-page .shop_table.order_details tfoot tr:last-child th,
.thankyou-page .shop_table.order_details tfoot tr:last-child td {
  font-weight: 600;
  font-size: 1rem;
  border-bottom: none;
}
.thankyou-page .woocommerce-table--order-details tfoot tr:empty,
.thankyou-page .shop_table.order_details tfoot tr:empty {
  display: none;
}
/* Customer details (billing / shipping) */
.thankyou-page .woocommerce-customer-details {
  margin-top: 2rem;
}
.thankyou-page .woocommerce-customer-details .woocommerce-columns {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .thankyou-page .woocommerce-customer-details .woocommerce-columns {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }
}
.thankyou-page .woocommerce-customer-details .woocommerce-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.thankyou-page .woocommerce-column__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--color-foreground);
}
.thankyou-page .woocommerce-customer-details address {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-style: normal;
  line-height: 1.6;
}
/* CTA */
.thankyou-actions {
  margin-top: 2.5rem;
  text-align: center;
}
/* Notices on thank you page */
.thankyou-page .woocommerce-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.thankyou-page .woocommerce-notice--error {
  background-color: rgba(220, 53, 69, 0.08);
  border: 1px solid var(--color-destructive);
  color: var(--color-foreground);
}
.thankyou-page .woocommerce-thankyou-order-failed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.thankyou-page .woocommerce-thankyou-order-received-text {
  margin-bottom: 1.5rem;
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────
   CONTACT PAGE
   ───────────────────────────────────────────────────────────────── */
.contact-page { padding-top: 6rem; min-height: 100vh; }
@media (min-width: 1024px) { .contact-page { padding-top: 7rem; } }
.contact-page-inner { max-width: 56rem; margin: 0 auto; padding: 2.5rem 0; }
.contact-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.contact-back-link:hover { color: var(--color-foreground); }
.contact-page-header { text-align: center; margin-bottom: 3rem; }
.contact-page-title { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 500; margin-bottom: 1rem; }
.contact-page-subtext { color: var(--color-muted-foreground); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 2fr; gap: 2.5rem; }
}
.contact-info-box {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-info-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.contact-info-item svg { color: var(--color-primary); flex-shrink: 0; }
.contact-info-link { color: var(--color-muted-foreground); transition: color 0.2s; word-break: break-all; }
.contact-info-link:hover { color: var(--color-primary); }
.contact-address-item { align-items: flex-start; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .contact-form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--color-foreground); }
.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-foreground); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.15);
}
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-textarea { resize: none; min-height: 9rem; }
.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: 5rem 0;
}
.contact-success-state .success-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.contact-success-state .success-icon-wrap svg { width: 2rem; height: 2rem; }
.contact-success-state .font-display {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .contact-success-state .font-display { font-size: 2.25rem; } }
.contact-success-state p { color: var(--color-muted-foreground); margin-bottom: 2rem; }
.success-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────
   404 PAGE
   ───────────────────────────────────────────────────────────────── */
.error-404-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-muted);
}
.error-404-content { text-align: center; }
.error-404-code { font-size: 4rem; font-weight: 700; font-family: var(--font-body); margin-bottom: 1rem; }
.error-404-message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* ─────────────────────────────────────────────────────────────────
   PAGE CONTENT
   ───────────────────────────────────────────────────────────────── */
.page-content { padding-top: 7rem; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.entry-content { font-size: 1rem; line-height: 1.7; color: var(--color-foreground); max-width: 52rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2, .entry-content h3 { margin-bottom: 0.75rem; margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }

/* ─────────────────────────────────────────────────────────────────
   WOOCOMMERCE NOTICES
   ───────────────────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.woocommerce-message {
  background-color: rgba(74, 124, 89, 0.1);
  border-left: 3px solid var(--color-primary);
  color: var(--color-forest-dark);
}
.woocommerce-error {
  background-color: rgba(220, 38, 38, 0.08);
  border-left: 3px solid hsl(0, 84%, 60%);
  color: hsl(0, 60%, 40%);
}
.woocommerce-error li { list-style: none; }
.woocommerce-info {
  background-color: var(--color-secondary);
  border-left: 3px solid var(--color-muted-foreground);
  color: var(--color-muted-foreground);
}

/* ─────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }

/* Scroll-triggered fade-in (IntersectionObserver) */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE UTILITIES
   ───────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, #theme-cart-drawer, #theme-cart-overlay { display: none; }
}
