/* ============================================================
   Barefoot Bayou Farmacy — theme.css
   Theme by The Free Website Guys
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  --color-background:  #F3EFE7;
  --color-foreground:  #2B2F23;
  --color-card:        #EDE8DE;
  --color-primary:     #64724F;
  --color-primary-fg:  #F6F4EE;
  --color-secondary:   #D8DECE;
  --color-muted:       #CDD4C4;
  --color-muted-fg:    #545A49;
  --color-accent:      #987CAB;
  --color-border:      #BEC7B3;
  --color-bayou-deep:  #3B422E;
  --color-bayou-moss:  #64724F;
  --color-bayou-sage:  #BAC7A8;
  --color-bayou-clay:  #72523B;
  --color-bayou-lavender: #A289B3;
  --color-bayou-cream: #F2EDE3;

  --font-display: 'Instrument Serif', serif;
  --font-body:    'Work Sans', sans-serif;

  --shadow-soft:     0 4px 20px -6px rgba(40,42,31,0.12);
  --shadow-elevated: 0 18px 50px -14px rgba(40,42,31,0.22);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --logo-height: 60px;

  --radius: 0.375rem;

  --btn-radius:         0;
  --btn-height:         48px;
  --btn-padding:        0 2.5rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.15em;
  --btn-text-transform: uppercase;

  --header-height: 80px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--color-border); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img:not(.cover-img):not(.hero-bg-video):not(.product-card-img):not(.hero-bg-img) {
  max-width: 100%;
  height: auto;
}

.cover-img, .product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: 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; }
}

.text-center { text-align: center; }

/* ---- Typography helpers ---- */
.italic { font-style: italic; }
.text-primary { color: var(--color-primary); }

/* ---- Scroll reveal base ---- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scale-in-item {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.scale-in-item.is-visible {
  opacity: 1;
  transform: scale(1);
}

.fade-in-item {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.fade-in-item.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item, .scale-in-item, .fade-in-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .theme-product-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

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

.site-header.is-solid,
.site-header.scrolled {
  background-color: rgba(237,229,213,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) {
  .site-nav { height: 80px; }
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
  display: block;
}

.site-brand-name {
  display: none;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-foreground);
  transition: color 0.3s;
}

.site-header:not(.is-solid) .site-brand-name { color: rgba(255,255,255,0.9); }

@media (min-width: 640px) {
  .site-brand-name { display: block; }
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-nav-desktop {
  display: none;
}

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

/* Nav list */
.theme-nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.theme-nav-list li a,
.theme-nav-list li > .theme-nav-link,
.site-nav .theme-nav-list li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-foreground);
  opacity: 0.8;
  transition: opacity 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.theme-nav-list li a::after,
.site-nav .theme-nav-list li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}

.theme-nav-list li a:hover { opacity: 1; }
.theme-nav-list li a:hover::after { transform: scaleX(1); }

.site-header:not(.is-solid) .theme-nav-list li a,
.site-header:not(.is-solid) .theme-nav-link {
  color: rgba(255,255,255,0.8);
}
.site-header:not(.is-solid) .theme-nav-list li a:hover { color: #fff; opacity: 1; }

/* Cart button */
.site-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  padding: 0.5rem;
  transition: color 0.3s;
}
.site-cart-btn:hover { color: var(--color-primary); }
.site-header:not(.is-solid) .site-cart-btn { color: #fff; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 0;
}

.theme-cart-count:empty { display: none; }

/* Mobile toggle */
.site-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  padding: 0.5rem;
  transition: color 0.3s;
}
.site-menu-toggle:hover { color: var(--color-primary); }
.site-header:not(.is-solid) .site-menu-toggle { color: #fff; }

@media (min-width: 768px) {
  .site-menu-toggle { display: none; }
}

/* Mobile menu */
.site-nav-mobile {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  animation: fadeIn 0.6s ease;
}
.site-nav-mobile.is-open { display: block; }

.theme-nav-mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-nav-mobile-list li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-foreground);
  opacity: 0.8;
  transition: color 0.3s, opacity 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  display: block;
}
.theme-nav-mobile-list li a:hover { color: var(--color-primary); opacity: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-foreground);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: var(--color-foreground);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(39,44,30,0.4) 0%,
    rgba(39,44,30,0.3) 40%,
    rgba(39,44,30,0.85) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--color-background);
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-line {
  display: block;
  height: 1px;
  width: 40px;
  background: rgba(237,229,213,0.6);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(237,229,213,0.8);
}

@media (min-width: 768px) {
  .hero-eyebrow { font-size: 12px; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1.02;
  color: var(--color-background);
  margin-bottom: 0;
}

.hero-title .italic { color: rgba(237,229,213,0.9); }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(237,229,213,0.85);
  max-width: 42rem;
  margin: 1.75rem auto 2.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-cta-row { flex-direction: row; }
}

/* Hero animation entrance */
.fade-up-item {
  opacity: 0;
  transform: translateY(30px);
}
.fade-up-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  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);
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border-radius: var(--btn-radius);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}
.btn-primary:hover { opacity: 0.85; }

.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  font-size: 0.8125rem;
  min-height: 38px;
  padding: 0 1.25rem;
}
.btn-outline-sm:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-hero-primary {
  background-color: var(--color-background);
  color: var(--color-foreground);
  padding: 0 2.5rem;
  min-height: var(--btn-height);
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.btn-hero-primary:hover { opacity: 0.9; }

.btn-hero-outline {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-background) 60%, transparent);
  color: var(--color-background);
  padding: 0 2.5rem;
  min-height: var(--btn-height);
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.btn-hero-outline:hover { background: color-mix(in srgb, var(--color-background) 10%, transparent); }

.btn-cta-band {
  background-color: var(--color-background);
  color: var(--color-foreground);
  padding: 0 2.5rem;
  min-height: var(--btn-height);
}
.btn-cta-band:hover { opacity: 0.9; }

.btn-form-submit {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  width: 100%;
  padding: 0 2rem;
  min-height: 52px;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}
.btn-form-submit:hover { opacity: 0.85; }
.btn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background-color: var(--color-card);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .about-section { padding: 7rem 0; }
}

.about-blur {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(80px);
}
.about-blur--tr {
  top: -8rem; right: -5rem;
  width: 28rem; height: 28rem;
  background: rgba(84,102,68,0.1);
}
.about-blur--bl {
  bottom: -8rem; left: -5rem;
  width: 24rem; height: 24rem;
  background: rgba(139,111,173,0.1);
}

.about-inner { position: relative; }

.about-header { max-width: 48rem; margin: 0 auto 3.5rem; }

.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

/* Logo Column */
.about-logo-col {
  display: flex;
}

.about-logo-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .about-logo-wrap {
    position: sticky;
    top: 7rem;
  }
}

.about-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.about-ring::after {
  content: '';
  display: block;
  border-radius: 9999px;
  border: 1px solid;
}
.about-ring--outer::after {
  width: 92%; aspect-ratio: 1;
  border-color: rgba(84,102,68,0.25);
}
.about-ring--inner::after {
  width: 78%; aspect-ratio: 1;
  border-color: rgba(84,102,68,0.15);
}

.about-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.about-glow::after {
  content: '';
  display: block;
  width: 70%; aspect-ratio: 1;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(84,102,68,0.15), rgba(139,111,173,0.1), transparent);
  filter: blur(24px);
}

.about-leaf {
  position: absolute;
  pointer-events: none;
  color: rgba(84,102,68,0.4);
}
.about-leaf--tl { top: 0.5rem; left: 0.5rem; transform: rotate(-45deg); }
.about-leaf--br { bottom: 0.5rem; right: 0.5rem; transform: rotate(135deg); }

.about-logo-img {
  position: relative;
  width: 100%;
  max-width: 28rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(84,102,68,0.18));
}

.float-bob {
  animation: floatBob 6s ease-in-out infinite;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Text column */
.about-text-col { display: flex; flex-direction: column; justify-content: center; }

.about-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(39,44,30,0.85);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-body { font-size: 1.125rem; }
}

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.9;
  float: left;
  padding: 0.35rem 0.75rem 0 0;
  color: var(--color-primary);
}

.about-quote {
  border-left: 2px solid rgba(84,102,68,0.6);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.about-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-foreground);
}

@media (min-width: 768px) {
  .about-quote-text { font-size: 1.5rem; }
}

.about-quote-author {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}

.about-body-2 {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(39,44,30,0.75);
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.about-stat-key {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.about-stat-val {
  font-family: var(--font-display);
  font-size: 1.125rem;
}
@media (min-width: 768px) {
  .about-stat-val { font-size: 1.25rem; }
}

/* Eyebrow Tags */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.eyebrow-line {
  display: block;
  height: 1px;
  width: 32px;
  background: var(--color-primary);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.05;
  margin-top: 0.5rem;
}

.about-section .section-heading {
  font-size: 2.25rem;
}
@media (min-width: 768px) {
  .about-section .section-heading { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .about-section .section-heading { font-size: 4.5rem; }
}

.offerings-section .section-heading {
  font-size: 2.25rem;
}
@media (min-width: 768px) {
  .offerings-section .section-heading { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .offerings-section .section-heading { font-size: 3.75rem; }
}

.shop-heading {
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .shop-heading { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .shop-heading { font-size: 4.5rem; }
}

/* ============================================================
   OFFERINGS SECTION
   ============================================================ */
.offerings-section {
  background-color: var(--color-background);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
@media (min-width: 768px) { .offerings-section { padding: 7rem 0; } }

.section-header {
  max-width: 40rem;
  margin: 0 auto 4rem;
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .offerings-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.offering-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}
.offering-card:hover {
  border-color: rgba(84,102,68,0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.offering-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-muted);
}

.offering-card__image {
  transition: transform 1200ms ease-out;
}
.offering-card:hover .offering-card__image {
  transform: scale(1.05);
}

.offering-card__icon {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237,229,213,0.9);
  backdrop-filter: blur(4px);
  color: var(--color-primary);
}

.offering-card__body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offering-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  min-height: 3.5rem;
}

.offering-card__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.7;
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
  background: color-mix(in srgb, var(--color-secondary) 40%, transparent);
  padding: 5rem 0;
}
@media (min-width: 768px) { .shop-section { padding: 7rem 0; } }

.shop-header { margin-bottom: 3.5rem; }

.shop-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  border-radius: 0;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

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

.theme-product-card-wrap {
  height: 100%;
}

.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(43, 47, 35, 0.15);
}

/* Hit-area overlay PATTERN A */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  display: block;
}

.theme-product-card > .theme-card-link { pointer-events: auto; z-index: 2; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-secondary);
}

.theme-product-card__image {
  transition: transform 0.6s cubic-bezier(0.25,0.4,0.25,1);
}
.theme-product-card:hover .theme-product-card__image {
  transform: scale(1.08);
}

.product-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background-color 0.5s ease;
}
.theme-product-card:hover .product-card-hover-overlay {
  background: rgba(39,44,30,0.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-foreground);
  color: var(--color-background);
  pointer-events: none;
}
.product-badge--sold-out {
  animation: badgeSlideIn 0.4s ease forwards;
}

.theme-product-card__info {
  padding: 0.75rem 0;
  flex: 1;
  min-width: 0;
}

.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: color 0.3s ease;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }

.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-fg);
  margin-top: 0.25rem;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted-fg);
  font-style: italic;
  font-family: var(--font-body);
  padding: 5rem 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band-wrap {
  padding: 4rem 0;
}

.cta-band {
  background: linear-gradient(135deg, var(--color-bayou-deep), var(--color-bayou-moss));
  color: var(--color-primary-fg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-band { padding: 5rem 3rem; }
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--color-primary-fg);
}
@media (min-width: 768px) {
  .cta-band__title { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .cta-band__title { font-size: 4.5rem; }
}
.cta-band__title .italic { font-style: italic; }

.cta-band__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 40rem;
  margin: 0 auto 2rem;
}
@media (min-width: 768px) { .cta-band__body { font-size: 1.125rem; } }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-bayou-deep);
}

.contact-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: luminosity;
  position: absolute;
  inset: 0;
  max-width: none;
  height: 100%;
}

.contact-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-bayou-deep) 75%, transparent) 0%,
    color-mix(in srgb, var(--color-bayou-deep) 60%, transparent) 50%,
    color-mix(in srgb, var(--color-bayou-deep) 80%, transparent) 100%
  );
}

.contact-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, color-mix(in srgb, var(--color-bayou-deep) 70%, transparent) 100%);
}

.contact-content {
  position: relative;
  z-index: 10;
  padding: 6rem 1.5rem;
  color: var(--color-background);
}

@media (min-width: 768px) { .contact-content { padding: 9rem 1.5rem; } }

.contact-inner { max-width: 48rem; margin: 0 auto; }

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-bayou-sage);
  margin-bottom: 1.5rem;
}
.contact-eyebrow-line {
  display: block;
  height: 1px;
  width: 32px;
  background: var(--color-bayou-sage);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.02;
  color: var(--color-background);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .contact-title { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .contact-title { font-size: 6rem; }
}

.contact-em { color: var(--color-bayou-sage); }

.contact-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(237,229,213,0.75);
  max-width: 36rem;
  margin: 0 auto 3rem;
}

/* Contact button with hover fill */
.btn-contact-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-background);
  color: var(--color-foreground);
  padding: 1.25rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.2s ease;
}
.btn-contact-open:hover { transform: scale(1.04); }
.btn-contact-open:active { transform: scale(0.97); }

@media (min-width: 768px) {
  .btn-contact-open {
    padding: 1.5rem 3.5rem;
    font-size: 1rem;
  }
}

.btn-contact-hover-fill {
  position: absolute;
  inset: 0;
  background: var(--color-bayou-sage);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.btn-contact-open:hover .btn-contact-hover-fill { transform: translateY(0); }
.btn-contact-open > * { position: relative; }

.contact-strip {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(237,229,213,0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 1.5rem;
}

.contact-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(237,229,213,0.75);
  transition: color 0.3s;
  text-decoration: none;
}
.contact-strip__item svg { color: var(--color-bayou-sage); }
.contact-strip__item:hover { color: var(--color-bayou-sage); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal[hidden] { display: none; }

.contact-modal.is-open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.contact-modal.is-closing {
  animation: fadeOut 0.3s ease forwards;
}

.contact-modal.is-closing .contact-modal__panel {
  animation: modalExit 0.45s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}

.contact-modal.is-closing .contact-modal__backdrop {
  animation: fadeOut 0.3s ease forwards;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-background) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.contact-modal__panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-card) 40%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
  box-shadow: 0 20px 80px -20px color-mix(in srgb, var(--color-primary) 40%, transparent);
  padding: 2rem;
  animation: scaleIn 0.45s cubic-bezier(0.25,0.4,0.25,1);
}

@media (max-width: 480px) {
  .contact-modal__panel {
    overflow-y: auto;
  }
}

@media (min-width: 768px) {
  .contact-modal__panel { padding: 2.5rem; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(39,44,30,0.6);
  transition: color 0.2s, background-color 0.2s;
  z-index: 10;
}
.modal-close-btn:hover { color: var(--color-foreground); background: rgba(39,44,30,0.05); }

.modal-glow {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 9999px;
  pointer-events: none;
}
.modal-glow--tr { top: -5rem; right: -5rem; background: rgba(84,102,68,0.3); filter: blur(48px); }
.modal-glow--bl { bottom: -5rem; left: -5rem; background: rgba(84,102,68,0.1); filter: blur(48px); }

.modal-form-header { margin-bottom: 1.75rem; }
.modal-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.2;
  margin-top: 0.5rem;
}
@media (min-width: 768px) { .modal-title { font-size: 2.25rem; } }

/* Form styles */
.contact-form .form-row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) {
  .contact-form .form-row--2col { flex-direction: row; }
  .contact-form .form-row--2col .form-field { flex: 1; }
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(39,44,30,0.7);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(237,229,213,0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(39,44,30,0.15);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
  border-radius: 0;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-fg); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  background: rgba(237,229,213,0.6);
}
.form-textarea { resize: none; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* Success state */
.modal-success { text-align: center; padding: 2.5rem 0; }

.modal-success__icon {
  width: 64px; height: 64px;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: iconPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}

@keyframes iconPop {
  from { transform: scale(0) rotate(-90deg); }
  to   { transform: scale(1) rotate(0); }
}

.modal-success__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}
.modal-success__body {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
}

.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: inline-flex; align-items: center; }
.footer-logo { max-height: 64px; width: auto; }

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

.footer-motto {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0.75rem;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.footer-nav-col ul,
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-list li a,
.footer-nav-col .menu-item a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: color 0.3s;
}
.footer-nav-list li a:hover,
.footer-nav-col .menu-item a: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 {
  color: var(--color-muted-fg);
  transition: color 0.3s;
}
.footer-contact-link:hover { color: var(--color-foreground); }

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copyright {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted-fg);
}

/* ============================================================
   CART OVERLAY
   ============================================================ */
#theme-cart-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
#theme-cart-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 150;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.cart-open #theme-cart-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
}

.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer__close:hover { opacity: 1; }

.cart-drawer__empty {
  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-fg);
}
.cart-drawer__empty svg { opacity: 0.4; }
.cart-drawer__empty-text { font-family: var(--font-body); margin-bottom: 0.5rem; }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
}

.cart-item__thumb-link,
.cart-item__thumb-wrap {
  display: flex;
  align-items: stretch;
  width: 80px;
  height: 96px;
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__thumb {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}
.cart-item__name: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__price * { color: inherit !important; }

.cart-item__variation {
  font-family: var(--font-body);
  font-size: 12px;
  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 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.cart-qty-btn:hover { background: var(--color-secondary); }

.cart-qty-display {
  font-family: var(--font-body);
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}

.cart-item__remove {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted-fg);
  transition: color 0.2s;
  pointer-events: auto;
}
.cart-item__remove: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;
}

.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.cart-drawer__subtotal-label { color: var(--color-muted-fg); }
.cart-drawer__subtotal-value { font-weight: 500; }
.cart-drawer__subtotal-value * { color: inherit !important; }

.cart-drawer__shipping-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted-fg);
}

.cart-drawer__checkout {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}
.cart-drawer__checkout:hover { opacity: 0.85; color: var(--color-primary-fg); }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-main { padding-top: var(--header-height); }

.product-back-row { padding: 1.5rem 0; }

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.3s;
}
.product-back-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.theme-product-gallery,
.theme-product-info {
  min-width: 0;
  max-width: 100%;
}

.product-main-img-wrap {
  display: flex;
  align-items: stretch;
  aspect-ratio: 3 / 4;
  background: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-main-img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  transition: opacity 0.3s;
}

.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.product-thumb-btn {
  display: flex;
  align-items: stretch;
  aspect-ratio: 1;
  width: calc(20% - 0.4rem);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-secondary);
  cursor: pointer;
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
}
.product-thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }
.product-thumb-btn:hover { opacity: 1; }

.product-thumb-img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

.theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-cats {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-cats a { color: var(--color-muted-fg); transition: color 0.2s; }
.product-cats a:hover { color: var(--color-primary); }

.product-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .product-title { font-size: 1.875rem; font-weight: 700; }
}

.product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.product-price * { color: inherit !important; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; }

.product-sold-out {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-foreground);
  background: rgba(39,44,30,0.1);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.product-description {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(39,44,30,0.8);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-description p { margin-bottom: 0.75em; }

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.single-product .theme-add-to-cart-area {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.theme-qty-minus, .theme-qty-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background-color 0.2s;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }

.theme-qty-input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  padding: 0.5rem 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { appearance: none; }

.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Product details */
.product-details {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.product-details__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-details__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-details__content li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.product-details__content li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 9999px;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* Related products */
.related-products-section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}

.related-products__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.related-products-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
  .related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Variable product variations */
.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.5rem; font-weight: 600; font-size: 0.875rem; font-family: var(--font-body); font-style: normal; }
.single-product .variations .label label {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
}
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations { border: none; width: 100%; margin-bottom: 1.5rem; }

.theme-attr-select-hidden { display: none !important; }

.variation-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variation-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  pointer-events: auto;
}
.variation-btn:hover { border-color: rgba(84,102,68,0.5); }
.variation-btn.is-selected { background: var(--color-primary); color: var(--color-primary-fg); border-color: var(--color-primary); }

.single_variation_wrap {
  display: none;
}
.single_variation_wrap.active { display: block; }

.single-product .variations_form .theme-add-to-cart-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.single-product .variations_form .theme-quantity-wrapper {
  flex: 0 0 auto;
}
.single-product .variations_form .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

/* ============================================================
   ADD TO CART BUTTON OVERRIDES (WooCommerce)
   ============================================================ */
.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-primary-fg) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  text-decoration: none !important;
}

.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button {
  text-transform: none !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-primary-fg) !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;
}

/* Loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide WooCommerce "View cart" link after add */
.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;
}

/* ============================================================
   WOOCOMMERCE NOTICES
   ============================================================ */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
  display: none;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
  list-style: none;
}
.woocommerce-error { background: rgba(114,25,25,0.08); border-left: 3px solid #b94444; color: var(--color-foreground); }
.woocommerce-message { background: rgba(84,102,68,0.08); border-left: 3px solid var(--color-primary); }
.woocommerce-info { background: rgba(139,111,173,0.08); border-left: 3px solid var(--color-accent); }

/* ============================================================
   INNER PAGE / GENERIC
   ============================================================ */
.inner-page-main {
  padding-top: var(--header-height);
  min-height: 60vh;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 768px) { .page-title { font-size: 3rem; } }

.entry-content {
  font-family: var(--font-body);
  line-height: 1.7;
  max-width: 56rem;
}
.entry-content p { margin-bottom: 1em; }

/* ============================================================
   SHOP ARCHIVE
   ============================================================ */
.shop-archive-main { padding-bottom: 5rem; }
.shop-archive-header { margin: 2rem 0 3rem; }

/* ============================================================
   CHECKOUT / CART / ACCOUNT PAGES
   ============================================================ */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content { max-width: 100%; }

/* Checkout block */
body.woocommerce-checkout .wc-block-checkout {
  display: block;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout.wc-block-checkout.is-large,
  body.woocommerce-checkout .wc-block-components-sidebar-layout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
  background: var(--color-background) !important;
  font-family: var(--font-body) !important;
  color: var(--color-foreground) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: none !important;
  width: 100% !important;
  min-height: var(--btn-height) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
}

/* Thank You page */
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
body.theme-thankyou-page .woocommerce-order-overview li strong { color: var(--color-foreground); }
body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page { overflow-x: hidden; }

/* 404 */
.error-404 {
  padding: 5rem 0;
}
.error-404__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.error-404__body {
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes badgeSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes modalExit {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to   { opacity: 0; transform: scale(0.95) translateY(20px); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL REVEAL – Section container
   ============================================================ */
.scroll-reveal-section .reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}
.scroll-reveal-section .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-section .scale-in-item {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}
.scroll-reveal-section .scale-in-item.is-visible {
  opacity: 1;
  transform: scale(1);
}

.contact-section.scroll-reveal-section .reveal-item {
  transition: opacity 0.6s var(--transition-smooth),
              transform 0.6s var(--transition-smooth);
}

@media (prefers-reduced-motion: reduce) {
  .product-badge--sold-out { animation: none; }
  .btn-contact-open:hover,
  .btn-contact-open:active { transform: none; }
  #theme-cart-overlay,
  #theme-cart-drawer { transition: none !important; }
  .contact-modal.is-closing,
  .contact-modal.is-closing .contact-modal__panel,
  .contact-modal.is-closing .contact-modal__backdrop { animation: none !important; }
}

/* ============================================================
   PRODUCT SINGLE RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .theme-add-to-cart-area { flex-wrap: wrap; }
  .single_add_to_cart_button { width: 100%; flex: none; }
}

/* ============================================================
   WC TEMPLATE CLEANUP
   ============================================================ */
select.theme-attr-select-hidden { display: none !important; }
