/* ─── RBI THEME CSS ──────────────────────────────────────────────────────────
   Design tokens, layout, and all component styles.
   Colors are output via wp_add_inline_style() as CSS custom properties.
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── FONT IMPORTS (fallback if Google Fonts blocked) ───────────────────────── */
:root {
  --font-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;

  /* Design tokens */
  --color-primary:          #c0392b;
  --color-secondary:        #1b2a3b;
  --color-background:       #ffffff;
  --color-foreground:       #171717;
  --color-muted:            #e0e0e0;
  --color-muted-foreground: #525252;
  --color-border:           #e0e0e0;
  --color-card:             #f5f5f5;
  --color-card-foreground:  #171717;
  --color-button-text:      #ffffff;
  --logo-height:            60px;

  /* Spacing */
  --header-height: 80px;

  /* Button tokens */
  --btn-radius:         0px;
  --btn-height:         48px;
  --btn-padding:        0.75rem 2rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    700;
  --btn-letter-spacing: 0.05em;
  --btn-text-transform: uppercase;
  --btn-icon-padding:   0.5rem;

  --card-radius: 0px;
  --transition-smooth: cubic-bezier(0.2, 0, 0.38, 0.9);
}

/* ─── RESET / BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-foreground);
}
h1 { font-size: 2.625rem; line-height: 1.19; }
h2 { font-size: 2rem;     line-height: 1.25; }
h3 { font-size: 1.25rem;  line-height: 1.4; }

/* ─── CONTAINER ─────────────────────────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ─── TYPOGRAPHY UTILITIES ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted-foreground { color: var(--color-muted-foreground); }
.font-display { font-family: var(--font-display); }
.font-bold { font-weight: 700; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.theme-btn-primary,
.theme-btn-outline,
.theme-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  font-family: var(--font-display);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  transition: opacity 0.2s var(--transition-smooth), background 0.2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.theme-btn-primary {
  background: var(--color-primary);
  color: var(--color-button-text);
  border: 2px solid var(--color-primary);
}
.theme-btn-primary:hover { opacity: 0.85; color: var(--color-button-text); }

.theme-btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-border);
}
.theme-btn-outline:hover { border-color: var(--color-foreground); }

.theme-btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.3);
}
.theme-btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

.theme-btn-lg { padding: 0.875rem 2.5rem; }
.theme-btn-sm { padding: 0.5rem 1.25rem; min-height: 36px; font-size: 0.8125rem; }

.w-full { width: 100%; }

/* ─── SECTION PATTERNS ──────────────────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}
.secondary-eyebrow { color: rgba(255,255,255,0.5); }

.section-title { font-size: 2rem; margin-top: 0.5rem; }
.secondary-title { color: #fff; }
.section-description { color: var(--color-muted-foreground); margin-top: 1rem; }
.section-header { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── BACK LINK ──────────────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-foreground); }

/* ─── ANIMATE ON SCROLL ─────────────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; }                  to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in  { animation: fadeIn 0.3s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.4s var(--transition-smooth) forwards; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 1s ease-in-out infinite; }

.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.animate-on-scroll.is-visible { opacity: 1; transform: none; }

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--color-secondary);
  color: #fff;
  border-bottom: 2px solid var(--color-primary);
  transition: background 0.3s;
}

.theme-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.site-logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-wrap: nowrap; }
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; flex-shrink: 0; }
.site-logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.site-logo-wordmark--with-image { display: flex; }
.site-logo-line1 { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.site-logo-line2 { font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); }
.footer-logo-wordmark .site-logo-line1 { font-size: 0.75rem; }
.footer-logo-wordmark .site-logo-line2 { font-size: 0.6rem; }

/* Desktop Nav */
.theme-nav-desktop { display: none; height: 100%; }
@media (min-width: 1024px) { .theme-nav-desktop { display: flex; align-items: center; } }

.theme-nav-list,
.theme-nav-desktop ul { display: flex; list-style: none; height: 100%; margin: 0; padding: 0; gap: 0; }
.theme-nav-list a,
.theme-nav-desktop ul li a,
.theme-nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  border-top: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-nav-list a:hover,
.theme-nav-link:hover { color: #fff; border-top-color: var(--color-primary); background: rgba(255,255,255,0.05); }
.theme-nav-list li.current-menu-item > a,
.theme-nav-list li.current_page_item > a { color: #fff; border-top-color: var(--color-primary); }

/* Inicio: enlaces del menú más legibles sobre el hero (referencia diseño) */
body.front-page .theme-nav-list a,
body.front-page .theme-nav-desktop ul li a,
body.front-page .theme-nav-link,
body.home .theme-nav-list a,
body.home .theme-nav-desktop ul li a,
body.home .theme-nav-link {
  color: rgba(255, 255, 255, 0.95);
}

/* Donate en cabecera: texto blanco sólido */
.theme-btn-header-donate {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.theme-btn-header-donate:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* Nav Actions */
.theme-nav-actions { display: flex; align-items: center; gap: 0.25rem; }

.desktop-only { display: none; }
@media (min-width: 640px) { .desktop-only { display: inline-flex; } }

/* Cart Button */
.theme-cart-btn {
  position: relative;
  padding: 0.5rem;
  color: #fff;
  display: flex; align-items: center;
  transition: background 0.2s;
}
.theme-cart-btn:hover { background: rgba(255,255,255,0.1); }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0;
}
.theme-cart-count:empty { display: none; }

/* Mobile Toggle */
.theme-mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem;
  color: #fff;
  transition: background 0.2s;
}
.theme-mobile-toggle:hover { background: rgba(255,255,255,0.1); }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

/* Mobile Nav */
.theme-mobile-nav {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeIn 0.2s ease;
}
.theme-mobile-nav.is-open { display: block; }

.theme-mobile-nav-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.theme-mobile-nav-list li a,
.theme-mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-mobile-nav-list li a:hover,
.theme-mobile-nav-link:hover { color: #fff; border-left-color: var(--color-primary); background: rgba(255,255,255,0.05); }

.theme-mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
}
@media (min-width: 640px) { .theme-mobile-nav-actions { display: none; } }

/* ─── MAIN / INNER ───────────────────────────────────────────────────────────── */
.site-main { min-height: 100vh; }
.theme-inner-main { padding-top: calc(var(--header-height) + 0px); }

/* ─── PAGE TITLES ────────────────────────────────────────────────────────────── */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-description { color: var(--color-muted-foreground); font-size: 1.125rem; margin-top: 0.5rem; }

/* ─── HERO ────────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-secondary);
  margin-bottom: 0;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Vídeo visible (banderas/cielo) con lectura del texto tipo referencia */
  background: linear-gradient(
    180deg,
    rgba(22, 36, 53, 0.45) 0%,
    rgba(22, 36, 53, 0.72) 45%,
    rgba(22, 36, 53, 0.88) 100%
  );
}

.hero-section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(64rem, 100%);
  margin-left: 0;
  margin-right: auto;
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: left;
}
@media (min-width: 1024px) {
  .hero-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
    max-width: min(70rem, 100%);
  }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .hero-title { font-size: clamp(2.75rem, 5vw, 3.75rem); }
}
@media (min-width: 1024px) {
  .hero-title { font-size: clamp(3rem, 5.5vw, 4.5rem); }
}
.hero-title-accent { color: var(--color-primary); }

.typewriter-text {
  display: inline;
  white-space: normal;
}
.typewriter-text::after {
  content: '|';
  animation: pulse 1s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

/* ─── VALUE BAR (continuación visual del hero, barra roja) ───────────────────── */
.value-bar-section {
  background: var(--color-primary);
  color: #fff;
  margin-top: 0;
}
.value-bar-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .value-bar-inner { flex-direction: row; gap: 3rem; }
}
.value-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.value-bar-icon {
  flex-shrink: 0;
  color: #fff;
}
.value-bar-separator { opacity: 0.4; }
.hidden-mobile { display: none; }
@media (min-width: 640px) { .hidden-mobile { display: block; } }

/* ─── COUNTERS ───────────────────────────────────────────────────────────────── */
.counters-section { padding: 5rem 0; }
.counters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .counters-grid { grid-template-columns: repeat(3, 1fr); } }
.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--color-primary);
}
.counter-label { color: var(--color-muted-foreground); font-size: 0.875rem; font-weight: 500; margin-top: 0.5rem; }

/* ─── MISSION ────────────────────────────────────────────────────────────────── */
.mission-section { padding-bottom: 5rem; }
.mission-card {
  position: relative;
  overflow: hidden;
  background: var(--color-muted);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
}
@media (min-width: 1024px) { .mission-card { padding: 4rem; } }
.mission-accent-bar {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 6rem; height: 4px;
  background: var(--color-primary);
  border-radius: 0 0 9999px 9999px;
}
.mission-title { font-size: 1.75rem; margin-bottom: 1.5rem; }
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}
.mission-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-primary);
  transition: opacity 0.2s;
}
.mission-link:hover { opacity: 0.8; }

/* ─── FEATURES ───────────────────────────────────────────────────────────────── */
.features-section { padding-bottom: 5rem; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background 0.2s var(--transition-smooth);
}
.feature-card:hover { background: color-mix(in srgb, var(--color-muted) 50%, transparent); }
.feature-card-image { height: 12rem; overflow: hidden; }
.feature-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--transition-smooth); }
.feature-card:hover .feature-card-image img { transform: scale(1.05); }
.feature-card-image-placeholder { width: 100%; height: 100%; background: var(--color-secondary); }
.feature-card-body { padding: 1.5rem; flex: 1; text-align: center; }
.feature-card-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.feature-card-title svg { color: var(--color-primary); }
.feature-card-desc { color: var(--color-muted-foreground); font-size: 0.9375rem; line-height: 1.6; }

/* ─── VIDEO SECTION ──────────────────────────────────────────────────────────── */
.video-section { background: var(--color-secondary); padding: 5rem 0; }
.video-placeholder-container {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-inner { text-align: center; }
.video-play-icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(192,57,43,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.video-play-icon svg { color: var(--color-primary); }
.video-placeholder-text { color: rgba(255,255,255,0.6); font-size: 0.875rem; font-family: var(--font-display); }
.video-placeholder-sub  { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 0.25rem; }

/* ─── HOME TESTIMONIALS ──────────────────────────────────────────────────────── */
.home-testimonials-section { padding: 5rem 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex; flex-direction: column;
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 0.75rem; color: var(--color-primary); }
.testimonial-text-wrap { flex: 1; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.testimonial-footer { border-top: 1px solid var(--color-border); padding-top: 0.75rem; }
.testimonial-name { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; }
.testimonial-meta { font-size: 0.75rem; color: var(--color-muted-foreground); }
.testimonial-toggle-btn {
  font-size: 0.75rem; font-family: var(--font-display); font-weight: 700;
  color: var(--color-primary); margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.25rem;
  background: none; border: none; padding: 0; cursor: pointer;
}
.testimonial-toggle-btn:hover { text-decoration: underline; }

/* ─── SPONSORS ───────────────────────────────────────────────────────────────── */
.sponsors-section { padding: 5rem 0; }
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .sponsors-grid { grid-template-columns: repeat(4, 1fr); } }
.sponsor-card {
  background: var(--color-muted);
  padding: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  cursor: pointer;
}
.sponsor-card:hover { transform: scale(1.05); }
.sponsor-card--dark-logo {
  background: #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.sponsor-logo { max-height: 4rem; width: auto; object-fit: contain; }
.sponsor-logo-scaled { transform: scale(1.5); }

/* ─── STORE SECTION ──────────────────────────────────────────────────────────── */
.store-section { background: var(--color-muted); padding: 5rem 0; scroll-margin-top: var(--header-height); }

/* ─── CTA SECTION ────────────────────────────────────────────────────────────── */
.cta-section { padding: 5rem 0; }
.cta-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  padding: 2.5rem;
  text-align: center;
  background: var(--color-secondary);
}
@media (min-width: 1024px) { .cta-card { padding: 4rem; } }
.cta-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay  { position: absolute; inset: 0; background: rgba(27,42,59,0.85); }
.cta-content  { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.cta-description { color: rgba(255,255,255,0.7); max-width: 36rem; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }
.justify-center { justify-content: center; }

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────────────── */
.about-501-title { font-size: 1.75rem; margin-bottom: 1rem; }
.about-501-text  { color: var(--color-muted-foreground); font-style: italic; line-height: 1.7; }

.leader-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) { .leader-row { grid-template-columns: 1fr 2fr; } }
.leader-photo-col { display: flex; justify-content: center; }
.leader-photo { width: 16rem; height: 20rem; object-fit: cover; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.leader-photo-placeholder { width: 16rem; height: 20rem; background: var(--color-muted); }
.leader-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.leader-title-text { font-size: 1.125rem; font-family: var(--font-display); font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; }
.leader-bio { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1rem; }
.leader-bio-col { text-align: center; }
@media (min-width: 1024px) { .leader-bio-col { text-align: left; } }

/* ─── CONTACT PAGE ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }

.contact-info-card {
  background: var(--color-secondary);
  color: #fff;
  padding: 1.5rem;
}
.contact-info-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #fff;
}
.contact-info-list  { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item  { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.contact-info-item svg { color: var(--color-primary); flex-shrink: 0; }
.contact-info-item a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.contact-info-item a:hover { color: var(--color-primary); }
.break-all { word-break: break-all; }

/* ─── PROGRAMS PAGE ──────────────────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: background 0.2s;
}
.course-card:hover { background: color-mix(in srgb, var(--color-muted) 50%, transparent); }
.course-card-image { height: 10rem; overflow: hidden; }
.course-card-image img { width: 100%; height: 100%; object-fit: cover; }
.course-card-image-placeholder { width: 100%; height: 100%; background: var(--color-secondary); }
.course-card-body { padding: 1.5rem; flex: 1; }
.course-icon {
  width: 3rem; height: 3rem;
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.course-icon svg { color: var(--color-primary); }
.course-title    { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.course-duration { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.course-desc     { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }

.services-block {
  background: var(--color-secondary);
  padding: 2.5rem;
}
@media (min-width: 1024px) { .services-block { padding: 4rem; } }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.services-copy .section-eyebrow { color: rgba(255,255,255,0.5); }
.services-title { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: #fff; margin: 0.5rem 0 1.5rem; }
.services-desc  { color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 1.5rem; }
.services-list  { display: flex; flex-direction: column; gap: 1rem; }
.services-list-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: rgba(255,255,255,0.8);
}
.services-bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* ─── APPLY PAGE ─────────────────────────────────────────────────────────────── */
.apply-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2.5rem;
}
.apply-step-bar { flex: 1; }
.apply-step-bar-fill {
  height: 8px;
  border-radius: 9999px;
  background: var(--color-muted);
  transition: background 0.3s;
}
.apply-step-bar-fill.active { background: var(--color-primary); }
.apply-step-label {
  font-size: 0.75rem; font-weight: 500; margin-top: 4px;
  color: var(--color-muted-foreground);
  display: none;
}
.apply-step-label.active { color: var(--color-foreground); }
@media (min-width: 640px) { .apply-step-label { display: block; } }

.apply-step { display: none; }
.apply-step.active { display: block; }

.veteran-toggle-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--color-muted) 50%, transparent);
}
.veteran-toggle-buttons { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.veteran-toggle-btn {
  flex: 1; padding: 0.625rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  cursor: pointer; transition: all 0.2s;
}
.veteran-toggle-btn.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.veteran-toggle-note { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

.apply-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; }
.apply-review-card { background: var(--color-muted); padding: 1.5rem; }
.apply-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.875rem; }
.apply-review-grid .col-span-2 { grid-column: span 2; }

/* ─── EVENTS PAGE ────────────────────────────────────────────────────────────── */
.events-calendar-wrap { background: var(--color-muted); border-radius: 1rem; padding: 1rem 2rem; }
.events-calendar-iframe { width: 100%; min-height: 600px; border: none; border-radius: 0.75rem; display: block; }

/* ─── TESTIMONIALS PAGE ──────────────────────────────────────────────────────── */
.cohort-timeline {
  position: relative;
  margin-bottom: 5rem;
}
.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 1rem;
  width: 1px;
  background: var(--color-border);
}
@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-1px); }
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .timeline-entry {
    grid-template-columns: 1fr 2rem 1fr;
  }
}

.timeline-dot {
  position: absolute;
  left: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-background);
  z-index: 2;
}
@media (min-width: 768px) {
  .timeline-dot { left: 50%; transform: translateX(-50%) translateY(-50%); }
}

.timeline-col-left,
.timeline-col-right,
.timeline-spacer { display: none; }
@media (min-width: 768px) {
  .timeline-col-left  { display: flex; justify-content: flex-end; }
  .timeline-col-right { display: flex; justify-content: flex-start; }
  .timeline-spacer    { display: block; }
}

.timeline-mobile-card { grid-column: 2; }
@media (min-width: 768px) { .timeline-mobile-card { display: none; } }

.timeline-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  max-width: 36rem;
  width: 100%;
}
.timeline-card.flex-row-reverse { flex-direction: row-reverse; }

.timeline-card-img { width: 55%; height: 11rem; object-fit: cover; flex-shrink: 0; }
.timeline-card-img-placeholder {
  width: 55%; height: 11rem;
  background: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.timeline-card-img-placeholder span { font-size: 0.875rem; color: var(--color-muted-foreground); }
.timeline-card-body { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; gap: 4px; }
.timeline-year-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.timeline-card-title { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; line-height: 1.3; }
.timeline-card-co    { font-size: 0.75rem; color: var(--color-muted-foreground); }

.fellows-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .fellows-grid { grid-template-columns: repeat(2, 1fr); } }

.fellow-card { background: var(--color-card); border: 1px solid var(--color-border); padding: 2rem; }
.fellow-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.fellow-year-badge {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  flex-shrink: 0;
}
.fellow-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.fellow-co    { font-size: 0.875rem; color: var(--color-muted-foreground); }
.fellow-stars { display: flex; gap: 2px; margin-bottom: 1rem; color: var(--color-primary); }
.fellow-quote-icon { color: color-mix(in srgb, var(--color-primary) 20%, transparent); margin-bottom: 0.75rem; }
.fellow-text-wrap { overflow: hidden; }
.fellow-text  { color: var(--color-muted-foreground); line-height: 1.7; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  border: none;
  padding: 0;
}
.gallery-hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.95); }
.lightbox-content { position: relative; display: flex; align-items: center; justify-content: center; width: 95vw; max-height: 90vh; }
.lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: -2.5rem; right: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.4); }
.lightbox-counter { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: var(--font-display); font-size: 0.875rem; }

.quote-block {
  background: var(--color-secondary);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) { .quote-block { padding: 4rem; } }
.quote-block-icon { color: rgba(192,57,43,0.3); margin: 0 auto 1.5rem; }
.quote-block-text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  font-style: italic;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonials-cta-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--color-primary); font-family: var(--font-display); font-weight: 700;
  transition: opacity 0.2s;
}
.testimonials-cta-link:hover { opacity: 0.8; }

/* ─── FORMS ──────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.form-input::placeholder { color: var(--color-muted-foreground); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: none; min-height: 8rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* Success State */
.contact-success-state {
  max-width: 42rem; margin: 5rem auto; text-align: center;
}
.success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.mt-6 { margin-top: 1.5rem; }

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

.theme-product-card-wrap { display: block; }
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
}
.theme-product-card > * { pointer-events: none; }
.theme-card-link { pointer-events: auto; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-secondary);
  margin-bottom: 1rem;
}
.theme-product-card__image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }

.product-card-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.badge-sold-out { background: var(--color-muted); color: var(--color-muted-foreground); }
.badge-new      { background: var(--color-primary); color: #fff; }

.theme-card-atc {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  z-index: 2;
  pointer-events: auto;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  color: var(--color-foreground);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.theme-card-atc:hover { background: var(--color-primary); color: #fff; transform: scale(1.1); }
.theme-card-atc.theme-btn-loading { opacity: 0.6; pointer-events: none; cursor: wait; }

.theme-product-card__info { padding: 0 0 0.5rem; }
.product-card-category { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); margin-bottom: 0.25rem; }
.product-card-name { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; transition: opacity 0.2s; }
.theme-product-card:hover .product-card-name { opacity: 0.7; }
.product-card-price { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ─── WOOCOMMERCE ADD TO CART OVERRIDES ───────────────────────────────────────── */
.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: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}

/* Disabled states */
.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;
}

/* Card compact button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-card-atc.add_to_cart_button {
  min-height: unset !important;
  padding: var(--btn-icon-padding) !important;
  border-radius: 50% !important;
  width: 2rem !important;
  height: 2rem !important;
}

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

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

.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 {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-secondary);
}
.product-main-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.theme-product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 1rem;
}
.product-thumb-btn {
  width: 5rem; height: 5rem;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
  background: none; padding: 0;
}
.product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn.is-active { border-color: var(--color-foreground); opacity: 1; }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-category-label {
  display: block;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}
.product-category-label a { color: inherit; }
.product-name  { font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.product-price .woocommerce-Price-amount { font-size: inherit; }
.product-sold-out-badge {
  display: inline-block; padding: 0.5rem 1rem;
  background: var(--color-muted); color: var(--color-muted-foreground);
  font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1rem;
}

.product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

/* Quantity & Add to Cart */
.theme-add-to-cart-area { display: flex; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.theme-quantity-wrapper {
  display: flex; align-items: center;
  border: 1px solid var(--color-border);
}
.theme-qty-minus, .theme-qty-plus {
  padding: 0.75rem;
  font-size: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--color-foreground);
  transition: background 0.2s;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); color: #fff; }
.theme-qty-input {
  padding: 0.75rem;
  min-width: 2.5rem;
  text-align: center;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  color: var(--color-foreground);
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.single_add_to_cart_button.theme-btn-primary {
  flex: 1 1 auto;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}
.single_add_to_cart_button .rbi-atc-btn-text { white-space: normal; line-height: 1.25; }

/* Product Details */
.product-details-section { margin-top: 2rem; }
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-details-content ul,
.product-details-content .rbi-product-details-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin: 0; padding: 0; }
.product-details-content ul li,
.product-details-content .rbi-product-details-list li {
  font-size: 0.875rem; color: var(--color-muted-foreground);
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding-left: 0; line-height: 1.6;
}
.product-details-content ul li::before,
.product-details-content .rbi-product-details-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0; margin-top: 0.4rem;
}

/* Variation UI (swatches + visually hidden selects for WooCommerce JS) */
.single-product .variations.rbi-variations-table tbody,
.single-product .variations.rbi-variations-table tbody tr,
.single-product .variations.rbi-variations-table tbody td { display: block; width: 100%; }
.single-product .variations.rbi-variations-table tbody td.label { padding-bottom: 0.35rem; }
.single-product .variations.rbi-variations-table tbody td.value { padding-top: 0; }
.rbi-variation-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.rbi-variation-value { position: relative; padding-bottom: 1.25rem; }
.theme-variation-select-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rbi-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rbi-swatch--text {
  min-width: 3rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.rbi-swatch--text:hover { border-color: var(--color-foreground); }
.rbi-swatch--text.is-selected {
  border-color: var(--color-foreground);
  background: var(--color-foreground);
  color: var(--color-background);
}
.rbi-swatch--color {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rbi-swatch-inner {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rbi-swatch-bg, #d1d5db);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}
.rbi-swatch--color.is-selected .rbi-swatch-inner {
  box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-foreground);
}
.rbi-swatch--color:hover .rbi-swatch-inner { transform: scale(1.05); }
.rbi-color-row-label-value { font-weight: 500; color: var(--color-foreground); }
.theme-attr-select-hidden { display: none !important; }

/* Related Products */
.related-products-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 2.5rem; }
.related-products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Single product responsive */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }

/* WooCommerce Notices */
.woocommerce-message, .woocommerce-error, .woocommerce-info { padding: 1rem 1.25rem; border-left: 4px solid var(--color-primary); background: var(--color-card); margin-bottom: 1rem; font-size: 0.875rem; }
.woocommerce-error { border-color: #c0392b; }
.woocommerce-info  { border-color: #2980b9; }
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ─── CART DRAWER ──────────────────────────────────────────────────────────────── */
#theme-cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 40;
}
body.cart-open #theme-cart-overlay { display: block; animation: fadeIn 0.2s; }

#theme-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%; max-width: 28rem;
  background: var(--color-background);
  z-index: 50;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--transition-smooth);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

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

.cart-empty-state {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
  color: var(--color-muted-foreground);
}
.cart-empty-msg { margin: 1rem 0 1.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-img-link { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; display: block; }
.cart-item-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.25rem; transition: opacity 0.2s; }
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 0.25rem; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-bottom: 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; transition: background 0.2s; }
.cart-qty-btn:hover { background: var(--color-secondary); color: #fff; }
.cart-item-qty { font-size: 0.875rem; min-width: 1.5rem; text-align: center; }
.cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); background: none; border: none; cursor: pointer; transition: color 0.2s; }
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; }
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note  { font-size: 0.75rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-checkout-btn   { display: flex !important; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.9);
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  /* Matches React: brand (2 cols) + Explore + Get Involved + Contact */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: span 2; }
}

.footer-brand {}
.footer-description { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-top: 1rem; max-width: 24rem; }
.footer-col {}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.footer-nav-list a { font-size: 0.875rem; color: #ffffff; transition: opacity 0.2s; }
.footer-nav-list a:hover { opacity: 0.85; }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: #ffffff; }
.footer-contact-item svg { flex-shrink: 0; color: #ffffff; }
.footer-contact-item a { color: #ffffff; transition: opacity 0.2s; }
.footer-contact-item a:hover { opacity: 0.85; }

.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright, .footer-credit { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-credit a { color: var(--color-primary); transition: opacity 0.2s; }
.footer-credit a:hover { opacity: 0.8; }

/* ─── WOOCOMMERCE 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 .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 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: var(--color-card);
  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 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-background);
  width: 100% !important; max-width: 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-primary);
  outline: none;
}
body.woocommerce-checkout .wc-block-components-checkbox__input:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

/* Thank you page */
body.theme-thankyou-page .woocommerce-order { max-width: 56rem; margin: 0 auto; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-weight: 700; padding-bottom: 1rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 1.5rem; background: var(--color-muted); margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; }
body.theme-thankyou-page { overflow-x: hidden; }

/* ─── BORDER RULE ─────────────────────────────────────────────────────────────── */
.border-t { border-top: 1px solid var(--color-border); }
.items-start { align-items: flex-start; }

/* ─── WOOCOMMERCE PAGINATION ──────────────────────────────────────────────────── */
.woocommerce-pagination ul { display: flex; gap: 0.5rem; margin-top: 3rem; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span { padding: 0.5rem 0.75rem; border: 1px solid var(--color-border); font-size: 0.875rem; }
.woocommerce-pagination ul li span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ─── 404 ─────────────────────────────────────────────────────────────────────── */
.no-products-found { text-align: center; color: var(--color-muted-foreground); padding: 4rem 0; }
