/* =============================================================================
   LYN Surface Designs — theme.css
   ============================================================================= */

/* ─── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Colors (overridden by inline PHP output from Customizer) */
  --color-background:   #f5f0eb;
  --color-foreground:   #392232;
  --color-primary:      #634055;
  --color-accent:       #bd8b75;
  --color-muted-fg:     #6d5565;
  --color-border:       #d4cbc4;
  --color-card:         #faf7f5;
  --color-secondary:    #e6deda;
  --color-primary-fg:   #f8f5f1;
  --color-accent-fg:    #f8f5f1;
  --color-button-text:  #f8f5f1;

  /* Fonts */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Inter Tight', sans-serif;

  /* Buttons */
  --btn-radius:        0rem;
  --btn-height:        52px;
  --btn-padding:       0.75rem 2.5rem;
  --btn-font-size:     0.6875rem;
  --btn-font-weight:   500;
  --btn-letter-spacing:0.3em;
  --btn-text-transform:uppercase;

  /* Shadows */
  --shadow-soft:     0 4px 24px -8px rgba(57,34,50,0.18);
  --shadow-elevated: 0 20px 60px -16px rgba(99,64,85,0.25);

  /* Logo */
  --logo-height: 40px;

  /* Header */
  --header-height: 80px;

  /* Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ─── Reset / Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Heading reset (Tailwind preflight parity) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: inherit;
  letter-spacing: -0.015em;
}

a { color: inherit; text-decoration: none; }

img, video { display: block; }

/* Global img rule — excludes cover images */
img:not(.cover-img):not(.hero-bg-img):not(.about-img):not(.site-logo-img):not(.contact-bg-img) {
  max-width: 100%;
  height: auto;
}

.cover-img, .hero-bg-img, .about-img, .contact-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* ─── Typography utilities ───────────────────────────────────────────────────── */
.font-display  { font-family: var(--font-display); }
.font-body     { font-family: var(--font-body); }
.italic        { font-style: italic; }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-muted-fg); }
.wordmark      { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.18em; }
.text-center   { text-align: center; }
.block         { display: block; }
.hidden-mobile { display: none; }
@media (min-width: 640px) { .hidden-mobile { display: block; } }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container-wide { width: 100%; max-width: 80rem; 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-20  { padding-top: 5rem; padding-bottom: 5rem; }
.py-40  { padding-top: 10rem; padding-bottom: 10rem; }
.mb-6   { margin-bottom: 1.5rem; }
.mb-10  { margin-bottom: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }

/* ─── Grain overlay ──────────────────────────────────────────────────────────── */
.grain-overlay {
  background-image: radial-gradient(color-mix(in srgb, var(--color-foreground) 4%, transparent) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-hero-primary,
.btn-hero-outline,
.btn-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease, background-color 0.7s ease, color 0.7s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  text-transform: none; /* reset, set individually below */
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.6875rem;
}
.btn-primary:hover { opacity: 0.88; }

.btn-full { width: 100%; }

/* Hero CTAs must stay sentence-case */
.btn-hero-primary, .btn-hero-outline { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.6875rem; font-weight: 500; }

.btn-hero-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
}
.btn-hero-primary:hover { opacity: 0.88; }

.btn-hero-outline {
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 40%, transparent);
}
.btn-hero-outline:hover {
  background-color: var(--color-foreground);
  color: var(--color-background);
}

/* ─── Eyebrow ────────────────────────────────────────────────────────────────── */
.eyebrow-row { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow-icon { color: var(--color-accent); flex-shrink: 0; }
.eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  border-color: var(--color-border);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.site-nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0.5rem;
}
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.site-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block !important; filter: brightness(0.15); }
.site-logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 1.25rem;
}

/* Desktop nav — hidden below md (768px), like Lovable */
.site-nav-desktop {
  display: none;
  margin-left: auto;
}
@media (min-width: 768px) {
  .site-nav-desktop {
    display: flex;
    align-items: center;
  }
}

.theme-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav-desktop .theme-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.theme-nav-list li { list-style: none; }
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  background: none;
  border: none;
  padding: 0;
}
.theme-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
}
.theme-nav-link:hover, .theme-nav-link:hover::after { color: var(--color-foreground); }
.theme-nav-link:hover::after { transform: scaleX(1); }

/* Transparent header nav links (desktop bar only) */
.site-header:not(.is-solid) .site-nav-desktop .theme-nav-link {
  color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .site-nav-actions { margin-left: 2rem; }
}

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: color 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.cart-btn:hover { color: var(--color-accent); }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 1.25rem; height: 1.25rem;
  background-color: var(--color-accent);
  color: var(--color-accent-fg);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu toggle — visible only below md, like Lovable */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: color 0.3s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover { color: var(--color-accent); }
.mobile-menu-btn .icon-menu,
.mobile-menu-btn .icon-close {
  display: block;
  width: 20px;
  height: 20px;
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile menu panel — matches Lovable */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.mobile-menu.is-open {
  display: block;
  animation: fadeIn 0.8s var(--ease-smooth) forwards;
}
.mobile-menu .theme-nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.mobile-menu .theme-nav-list li {
  width: 100%;
  list-style: none;
}
.mobile-menu .theme-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  color: var(--color-foreground);
}
.mobile-menu .theme-nav-link::after {
  display: none;
}
.mobile-menu .theme-nav-link:hover {
  color: var(--color-accent);
}
@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu.is-open {
    display: none !important;
  }
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-background);
}

.hero-media {
  position: absolute; inset: 0;
  transform-origin: center;
  will-change: transform;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.hero-overlay {
  position: absolute; inset: 0;
  background-color: var(--color-background);
  pointer-events: none;
  will-change: opacity;
}

.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-background) 60%, transparent),
    color-mix(in srgb, var(--color-background) 65%, transparent),
    color-mix(in srgb, var(--color-background) 95%, transparent)
  );
  pointer-events: none;
  z-index: 1;
}
.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
  background-image: radial-gradient(rgba(57,34,50,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInDown 1s var(--ease-smooth) 0.3s forwards;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero-line-left, .hero-line-right {
  height: 1px;
  background-color: var(--color-accent);
  display: block;
  width: 0;
  animation: expandLine 1s var(--ease-smooth) 0.5s forwards;
}

.hero-title-wrap {
  overflow: hidden;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 20vw, 14rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.85;
  color: var(--color-foreground);
  transform: translateY(100px);
  opacity: 0;
  animation: slideUpFade 1.2s var(--ease-spring) 0.5s forwards;
}

.hero-tagline-wrap { overflow: hidden; margin-top: 1rem; }
.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(57,34,50,0.7);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s var(--ease-smooth) 0.85s forwards;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  color: rgba(57,34,50,0.85);
  max-width: 42rem;
  margin: 3rem auto 2.5rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s var(--ease-smooth) 1.05s forwards;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.9s var(--ease-smooth) 1.25s forwards;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

/* ─── Section layouts ────────────────────────────────────────────────────────── */
.bundles-section, .yardage-section { padding-top: 6rem; padding-bottom: 8rem; }
@media (min-width: 768px) { .bundles-section, .yardage-section { padding-top: 8rem; padding-bottom: 10rem; } }

.section-header-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .section-header-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }
}

.section-header-left { }

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-top: 1.25rem;
}
.bundles-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 768px) { .bundles-heading { font-size: clamp(3rem, 7vw, 4.5rem); } }
@media (min-width: 1024px) { .bundles-heading { font-size: 4.5rem; } }

.yardage-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 1024px) { .yardage-heading { font-size: 4.5rem; } }

.section-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(57,34,50,0.7);
  line-height: 1.75;
}
@media (min-width: 768px) { .section-desc { font-size: 1.125rem; } }

/* ─── Product Grid ───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  gap: 2rem 2.5rem;
  align-items: stretch;
}
.bundles-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .bundles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bundles-grid { grid-template-columns: repeat(4, 1fr); } }

.yardage-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .yardage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .yardage-grid { grid-template-columns: repeat(3, 1fr); } }

/* Archive grid */
.archive-product-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .archive-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .archive-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Related products grid */
.related-product-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) { .related-product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Product card wrap ───────────────────────────────────────────────────────── */
.theme-product-card-wrap { height: 100%; }

/* ─── Product Card ───────────────────────────────────────────────────────────── */
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Hit-area overlay link — Pattern A */
.theme-card-link {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: auto;
  display: block;
}
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

/* Image wrapper */
.theme-product-card__image-wrapper {
  aspect-ratio: 1 / 1;
  background-color: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  display: block;
  transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card__image-wrapper img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card:hover .theme-product-card__image-wrapper {
  transform: translateY(-6px);
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
  transform: scale(1.07);
}

/* Badges */
.card-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 3;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  pointer-events: none;
}
.card-badge--soldout { background-color: rgba(250,247,245,0.9); color: var(--color-foreground); }
.card-badge--limited { background-color: rgba(189,139,117,0.95); color: var(--color-accent-fg); }
.card-bundle-badge {
  position: absolute;
  bottom: 0.75rem; left: 0.75rem;
  z-index: 3;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  background-color: rgba(250,247,245,0.85);
  color: rgba(57,34,50,0.9);
  pointer-events: none;
}

/* Card body */
.theme-product-card__body { flex: 1; display: flex; flex-direction: column; }
.card-collection {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-foreground);
  transition: color 0.3s;
  margin-bottom: 0.5rem;
}
.theme-product-card:hover .card-title { color: var(--color-accent); }

.card-swatches {
  display: flex;
  gap: 0.25rem;
  padding-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.card-swatch {
  width: 1rem; height: 1rem;
  border: 1px solid var(--color-border);
  display: inline-block;
}

.card-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(57,34,50,0.85);
  padding-top: 0.25rem;
  margin-top: auto;
}
.card-price-unit { color: var(--color-muted-fg); font-size: 0.75rem; margin-left: 0.25rem; }

/* Sold-out overlay */
.card-img-soldout { opacity: 0.6; }

/* ─── Manifesto Strip ────────────────────────────────────────────────────────── */
.manifesto-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: color-mix(in srgb, var(--color-card) 40%, transparent);
}
.strip-grid {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: left;
}
@media (min-width: 768px) { .strip-grid { grid-template-columns: repeat(3, 1fr); } }

.strip-item { display: flex; align-items: flex-start; gap: 1rem; }
.strip-icon { color: var(--color-accent); flex-shrink: 0; margin-top: 0.25rem; display: flex; align-items: center; }
.strip-item-title {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.strip-item-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(57,34,50,0.75);
  line-height: 1.6;
}

/* ─── About ──────────────────────────────────────────────────────────────────── */
.about-section {
  background-color: var(--color-card);
  position: relative;
  overflow: hidden;
  padding-top: 6rem; padding-bottom: 6rem;
}
@media (min-width: 768px) { .about-section { padding-top: 8rem; padding-bottom: 8rem; } }

.about-glow-1, .about-glow-2 {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  filter: blur(4rem);
}
.about-glow-1 { top: -8rem; right: -5rem; width: 28rem; height: 28rem; background-color: color-mix(in srgb, var(--color-primary) 15%, transparent); }
.about-glow-2 { bottom: -8rem; left: -5rem; width: 24rem; height: 24rem; background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.about-grid {
  display: grid;
  gap: 3rem;
  position: relative;
  align-items: stretch;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }

.about-image-col { }
.about-image-wrap {
  position: relative;
  min-height: 28rem;
  height: 100%;
  overflow: hidden;
}
.about-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(245,240,235,0.3), transparent 60%);
  pointer-events: none;
}

.about-content-col { display: flex; flex-direction: column; justify-content: center; }

.about-eyebrow-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.about-line { width: 3rem; height: 1px; background-color: var(--color-accent); display: block; flex-shrink: 0; }

.about-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .about-heading { font-size: 3.75rem; } }

.about-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(57,34,50,0.8);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}
@media (min-width: 768px) { .about-text { font-size: 1.125rem; } }
.about-text-secondary { font-size: 1rem !important; color: rgba(57,34,50,0.7) !important; margin-bottom: 2.5rem !important; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  max-width: 42rem;
}
.about-stat-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}
.about-stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}
@media (min-width: 768px) { .about-stat-value { font-size: 1.875rem; } }

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.about-signature {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(57,34,50,0.7);
}

/* ─── Contact Section ────────────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-card);
}

.contact-bg-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.contact-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-bg-overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-background) 80%, transparent); }
.contact-grain { position: absolute; inset: 0; opacity: 0.4; background-image: radial-gradient(rgba(57,34,50,0.04) 1px, transparent 1px); background-size: 3px 3px; }

.contact-inner { position: relative; z-index: 10; padding-top: 7rem; padding-bottom: 10rem; }
@media (min-width: 768px) { .contact-inner { padding-top: 10rem; padding-bottom: 12rem; } }

.contact-content-wrap { max-width: 48rem; margin: 0 auto; text-align: center; }

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
}
.contact-eyebrow-line { display: block; height: 1px; width: 2.5rem; background-color: var(--color-accent); }

.contact-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .contact-heading { font-size: clamp(3.5rem, 8vw, 5rem); } }
@media (min-width: 1024px) { .contact-heading { font-size: 5rem; } }

.contact-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(57,34,50,0.7);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
}
@media (min-width: 768px) { .contact-desc { font-size: 1.125rem; } }

/* Contact CTA button */
.contact-btn-trigger,
a.contact-btn-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  padding: 1.25rem 3rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-smooth);
}
.contact-btn-trigger:hover { transform: scale(1.03); }
.contact-btn-trigger:active { transform: scale(0.98); }
.contact-btn-fill {
  position: absolute; inset: 0;
  background-color: var(--color-accent);
  transform: translateY(100%);
  transition: transform 0.7s ease-out;
}
.contact-btn-trigger:hover .contact-btn-fill { transform: translateY(0); }
.contact-btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.7s;
}
.contact-btn-trigger:hover .contact-btn-inner { color: var(--color-accent-fg); }

@media (min-width: 768px) { .contact-btn-trigger { padding: 1.5rem 4rem; } }

.contact-links {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(57,34,50,0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(57,34,50,0.7);
  transition: color 0.3s;
}
.contact-link svg { color: var(--color-accent); flex-shrink: 0; }
.contact-link:hover { color: var(--color-accent); }

/* ─── Contact Modal ──────────────────────────────────────────────────────────── */
body.contact-modal-open { overflow: hidden; }

.contact-modal-overlay {
  position: fixed; inset: 0;
  background-color: rgba(245,240,235,0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}
.contact-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--ease-smooth);
}
.contact-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  overflow: hidden;
  background-color: rgba(250,247,245,0.7);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(57,34,50,0.1);
  box-shadow: 0 20px 80px -20px rgba(99,64,85,0.5);
  padding: 2rem;
  transform: scale(0.96);
  opacity: 0;
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}
.contact-modal.is-visible .contact-modal__panel {
  transform: scale(1);
  opacity: 1;
}
@media (min-width: 768px) { .contact-modal__panel { padding: 3rem; } }

.contact-modal-glow-1 {
  position: absolute; top: -5rem; right: -5rem;
  width: 15rem; height: 15rem;
  background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
  filter: blur(3rem);
  pointer-events: none; border-radius: 50%;
}
.contact-modal-glow-2 {
  position: absolute; bottom: -5rem; left: -5rem;
  width: 15rem; height: 15rem;
  background-color: color-mix(in srgb, var(--color-accent) 15%, transparent);
  filter: blur(3rem);
  pointer-events: none; border-radius: 50%;
}

.contact-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: rgba(57,34,50,0.6);
  transition: color 0.2s, background-color 0.2s;
  z-index: 10;
}
.contact-modal-close:hover { color: var(--color-foreground); background-color: rgba(57,34,50,0.05); }

.contact-modal-inner { position: relative; overflow: hidden; }

/* Success state */
.contact-modal-success { text-align: center; padding: 2.5rem 0; }
.contact-success-icon {
  width: 4rem; height: 4rem;
  background-color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  transform: scale(0) rotate(-90deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s;
}
.contact-success-icon.is-visible { transform: scale(1) rotate(0deg); }
.contact-success-icon svg { color: var(--color-accent-fg); }
.contact-success-title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; margin-bottom: 0.75rem; }
.contact-success-text { font-family: var(--font-body); color: var(--color-muted-fg); }

/* Form */
.contact-modal-header { margin-bottom: 2rem; }
.contact-modal-heading { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.2; margin-top: 0.5rem; }
@media (min-width: 768px) { .contact-modal-heading { font-size: 2.25rem; } }

.contact-form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.contact-form-row .form-group { margin-bottom: 0; }

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(57,34,50,0.7);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(245,240,235,0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(57,34,50,0.15);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.3s, background-color 0.3s;
  outline: none;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--color-muted-fg); }
.form-input:focus { border-color: var(--color-accent); background-color: rgba(245,240,235,0.6); }
.form-textarea { resize: none; min-height: 7rem; }

.contact-modal-form-wrap,
.contact-form {
  max-width: 100%;
  overflow: hidden;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; } }

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 24rem;
  line-height: 1.6;
  margin-top: 1.25rem;
}
.footer-origin {
  font-family: var(--font-body);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  margin-top: 1rem;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.3s;
}
.footer-nav-link:hover { color: var(--color-foreground); }

.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.875rem; color: var(--color-muted-fg); }
.footer-contact-link { transition: color 0.3s; }
.footer-contact-link:hover { color: var(--color-foreground); }

.footer-bottom {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copy { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-muted-fg); }
.footer-credit { font-family: var(--font-body); font-size: 0.625rem; color: var(--color-muted-fg); text-transform: uppercase; letter-spacing: 0.3em; }
.footer-credit-link { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.footer-credit-link:hover { color: var(--color-foreground); }

/* ─── Side Cart Drawer ───────────────────────────────────────────────────────── */
#theme-cart-overlay {
  position: fixed; inset: 0;
  background-color: rgba(57,34,50,0.2);
  z-index: 60;
  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;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  background-color: var(--color-background);
  z-index: 61;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-spring);
  overflow: hidden;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}
.cart-close-btn {
  padding: 0.25rem;
  background: none; border: none; cursor: pointer;
  color: var(--color-foreground);
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cart-close-btn:hover { opacity: 1; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty-icon { color: var(--color-muted-fg); margin-bottom: 1rem; }
.cart-empty-msg {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  margin-bottom: 1.5rem;
}
.cart-continue-btn {
  display: inline-flex; align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  background: none;
  font-family: var(--font-body); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.25em;
  cursor: pointer; color: var(--color-foreground);
  transition: background-color 0.3s, color 0.3s;
}
.cart-continue-btn:hover { background-color: var(--color-foreground); color: var(--color-background); }

.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-img-link {
  width: 5rem; height: 6rem;
  background-color: var(--color-secondary);
  overflow: hidden; flex-shrink: 0; display: block;
}
.cart-item-img-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: opacity 0.2s;
}
.cart-item-name-link:hover { opacity: 0.7; }
.cart-item-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-top: 0.125rem;
}
.cart-item-variation {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  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; background: none; border: none; cursor: pointer;
  color: var(--color-foreground);
  transition: background-color 0.2s;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-qty-display {
  font-family: var(--font-body);
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}
.cart-remove-btn {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.cart-subtotal-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-body); font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  background-color: var(--color-primary);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  text-transform: uppercase; letter-spacing: var(--btn-letter-spacing);
  font-weight: var(--btn-font-weight);
  border: none; cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.cart-checkout-btn:hover { opacity: 0.88; color: var(--color-button-text); }

/* ─── WooCommerce Single Product ─────────────────────────────────────────────── */
.theme-inner-main { padding-top: var(--header-height); }

.single-product .theme-inner-main { padding-top: 0; }
.single-product .product-header-spacer { height: var(--header-height); }

.back-to-shop-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--color-muted-fg);
  transition: color 0.3s;
  padding: 1.5rem 0;
}
.back-to-shop-link:hover { color: var(--color-foreground); }
.back-to-shop-link svg { flex-shrink: 0; }

.single-product .theme-product-layout {
  display: grid;
  gap: 3rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) { .single-product .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

/* Product gallery */
.product-main-image-wrap {
  aspect-ratio: 4/5;
  background-color: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.product-main-image-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.theme-product-thumbnails {
  display: flex; gap: 0.5rem;
  flex-wrap: wrap; max-width: 100%;
}
.product-thumb-btn {
  width: 4.5rem; aspect-ratio: 1/1;
  overflow: hidden;
  border: 2px solid transparent;
  background: none; padding: 0; cursor: pointer;
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
}
.product-thumb-btn.is-active { border-color: var(--color-accent); opacity: 1; }
.product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info */
.product-category {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}
.product-title {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--color-foreground);
  overflow-wrap: break-word; word-break: break-word;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.product-price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
}
.product-price-unit {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.product-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(57,34,50,0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
  white-space: pre-line;
  overflow-wrap: break-word; word-break: break-word;
}

/* Bundle swatches on single product */
.product-swatches-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.75rem;
}
.product-swatches { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.product-swatch {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--color-border);
  display: inline-block;
}

/* Yard specs */
.product-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  max-width: 28rem;
}
.product-spec-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.25rem;
}
.product-spec-value { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; }

/* Limited note */
.product-limited-note {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

/* Quantity + cart row */
.single-product .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--color-foreground);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  padding: 0.75rem 1rem;
  min-width: 3.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
  background: transparent; color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button, .theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; text-transform: none; }

/* WooCommerce button override */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-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: uppercase !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important; opacity: 0.4 !important; pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Hide "View cart" 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 loading state */
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Product details section */
.product-details-section { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.product-details-title {
  font-family: var(--font-body);
  font-size: 0.625rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--color-accent);
  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.75rem;
  font-family: var(--font-body); font-size: 0.875rem;
  color: rgba(57,34,50,0.75); line-height: 1.6;
}
.product-details-dot {
  width: 0.25rem; height: 0.25rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.5rem; flex-shrink: 0;
  display: block;
}

/* Stock status */
.product-stock-out {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--color-muted-fg);
  padding: 0.5rem 0;
}

/* Related products */
.related-products-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--color-border);
}
.related-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

/* Variable product variations */
.theme-attr-select-hidden { display: none !important; }

.variations-wrap { margin-bottom: 1.5rem; }
.variation-row { margin-bottom: 1rem; }
.variation-label {
  font-family: var(--font-body) !important;
  font-size: 0.625rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  font-style: normal !important;
  color: rgba(57,34,50,0.7) !important;
  display: block; margin-bottom: 0.5rem;
}
.variations label { font-family: var(--font-body) !important; font-weight: 600 !important; font-style: normal !important; }
.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; }

.variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variation-pill {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer; background: none;
  color: var(--color-foreground);
  transition: border-color 0.2s, background-color 0.2s;
}
.variation-pill.is-selected { border-color: var(--color-foreground); background-color: var(--color-foreground); color: var(--color-background); }
.variation-pill:hover:not(.is-selected) { border-color: var(--color-muted-fg); }

/* ─── Archive/Shop ───────────────────────────────────────────────────────────── */
.archive-header {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}
.archive-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.75rem);
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: var(--font-body);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-card);
  color: var(--color-foreground);
  font-size: 0.875rem;
}
.woocommerce-error { border-color: #c0392b; }
/* Suppress notices on single product (drawer provides feedback) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ─── Checkout ───────────────────────────────────────────────────────────────── */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  padding: 2rem 0;
  color: var(--color-foreground);
}

/* WC Checkout Block two-column */
body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; width: 100%; max-width: none; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: 0;
  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;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border) !important;
  background-color: var(--color-background) !important;
  border-radius: 0 !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { border-color: var(--color-accent) !important; }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  font-weight: var(--btn-font-weight) !important;
  transition: opacity 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.88 !important; }

/* ─── Thank You Page ──────────────────────────────────────────────────────────── */
body.theme-thankyou-page .woocommerce-order { max-width: 100%; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem); padding: 0 0 1rem 0; color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0 0 2rem; padding: 0;
  border: 1px solid var(--color-border); padding: 1.5rem; background-color: var(--color-card);
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body); font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem; border-bottom: 1px solid var(--color-border); font-family: var(--font-body); font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; font-weight: 500; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page { overflow-x: hidden; }

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(var(--from-y, 40px)); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes expandLine {
  from { width: 0; }
  to   { width: 3.5rem; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variants */
.reveal-item[data-delay="1"] { transition-delay: 0.1s; }
.reveal-item[data-delay="2"] { transition-delay: 0.2s; }
.reveal-item[data-delay="3"] { transition-delay: 0.3s; }
.reveal-item[data-delay="4"] { transition-delay: 0.4s; }
.reveal-item[data-delay="5"] { transition-delay: 0.5s; }
.reveal-item[data-delay="6"] { transition-delay: 0.6s; }

/* Customizer fallback */
.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; }

/* ─── prefers-reduced-motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-tagline, .hero-subtitle, .hero-ctas,
  .hero-eyebrow-row, .hero-line-left, .hero-line-right {
    animation: none !important;
    opacity: 1 !important; transform: none !important;
  }
  .hero-line-left, .hero-line-right { width: 3.5rem; }
  .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .theme-product-card__image-wrapper { transition: none !important; }
  .theme-product-card:hover .theme-product-card__image-wrapper { transform: none !important; }
  .theme-product-card__image-wrapper img { transition: none !important; }
  .mobile-menu.is-open { animation: none !important; }
}

/* ─── Inner page spacing ─────────────────────────────────────────────────────── */
body.admin-bar .theme-inner-page .site-main,
body.admin-bar .theme-inner-page.woocommerce .site-main {
  padding-top: calc(var(--header-height) + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .theme-inner-page .site-main,
  body.admin-bar .theme-inner-page.woocommerce .site-main {
    padding-top: calc(var(--header-height) + 46px);
  }
}

.theme-inner-page .site-main,
.theme-inner-page.woocommerce .site-main {
  padding-top: var(--header-height);
  min-height: calc(100svh - var(--header-height));
}
.theme-inner-page.woocommerce-checkout .site-main { padding-top: var(--header-height); }

/* ─── Customizer controls ────────────────────────────────────────────────────── */
.font-body { font-family: var(--font-body); }
