/**
 * Raised for Greatness - Main Stylesheet
 * Brand System: Gentle Growth
 */

:root {
  /* Brand Colors */
  --rfg-forest-green: #2F5B4D;
  --rfg-dark-forest: #173F34;
  --rfg-dark-forest-hover: #214538;
  --rfg-warm-clay: #CD856C;
  --rfg-warm-clay-hover: #B8735B;
  --rfg-soft-butter: #D9D5A7;
  --rfg-sage-green: #B3CCB0;
  --rfg-sage-light: #DCE8DC;
  --rfg-warm-ivory: #FAF5EB;
  --rfg-ivory-light: #FDFBF7;
  --rfg-primary-text: #183D33;
  --rfg-secondary-text: #50665D;
  --rfg-pure-white: #FFFFFF;
  --rfg-light-border: #E7E7DC;

  /* Typography */
  --rfg-font-heading: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rfg-font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --rfg-content-max-width: 1240px;
  --rfg-wide-max-width: 1400px;
  --rfg-container-padding: clamp(1rem, 4vw, 2.5rem);

  /* Border Radii */
  --rfg-radius-button: 12px;
  --rfg-radius-product: 18px;
  --rfg-radius-card: 20px;
  --rfg-radius-image: 24px;
  --rfg-radius-pill: 999px;

  /* Transitions */
  --rfg-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --rfg-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--rfg-warm-ivory);
  color: var(--rfg-primary-text);
  font-family: var(--rfg-font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rfg-forest-green);
  text-decoration: none;
  transition: color var(--rfg-transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--rfg-dark-forest-hover);
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--rfg-forest-green);
  outline-offset: 3px;
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6,
.rfg-h1,
.rfg-h2,
.rfg-h3 {
  font-family: var(--rfg-font-heading);
  color: var(--rfg-forest-green);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75em;
  font-weight: 600;
}

h1,
.rfg-h1 {
  font-size: clamp(2.125rem, 1.75rem + 1.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2,
.rfg-h2 {
  font-size: clamp(1.75rem, 1.55rem + 0.85vw, 2.75rem);
  letter-spacing: -0.015em;
}

h3,
.rfg-h3 {
  font-size: clamp(1.3125rem, 1.2rem + 0.45vw, 1.75rem);
}

.rfg-eyebrow {
  display: inline-block;
  font-family: var(--rfg-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rfg-warm-clay);
  margin-bottom: 0.75rem;
}

.rfg-lead {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  color: var(--rfg-secondary-text);
  line-height: 1.6;
}

/* Container & Layout */
.rfg-container {
  width: 100%;
  max-width: var(--rfg-content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--rfg-container-padding);
  padding-right: var(--rfg-container-padding);
}

.rfg-container--wide {
  max-width: var(--rfg-wide-max-width);
}

.rfg-section {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  position: relative;
}

/* Announcement Bar */
.rfg-announcement-bar {
  background-color: var(--rfg-forest-green);
  color: var(--rfg-warm-ivory);
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rfg-announcement-bar a {
  color: var(--rfg-soft-butter);
  text-decoration: underline;
}

/* Site Header */
.rfg-header-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--rfg-warm-ivory);
  border-bottom: 1px solid var(--rfg-light-border);
  transition: box-shadow var(--rfg-transition-fast), padding var(--rfg-transition-fast);
}

.rfg-header-sticky-wrapper.is-scrolled {
  box-shadow: 0 4px 20px rgba(24, 61, 51, 0.06);
}

.rfg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.rfg-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rfg-header-logo img,
.rfg-header-logo svg {
  height: 48px;
  width: auto;
  max-width: 260px;
}

.rfg-desktop-nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rfg-desktop-nav,
.rfg-desktop-nav-wrap ul,
.rfg-desktop-nav-wrap .wp-block-navigation__container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(1rem, 2vw, 2.25rem) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rfg-desktop-nav li,
.rfg-desktop-nav-wrap li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rfg-desktop-nav a,
.rfg-desktop-nav-wrap li a,
.rfg-desktop-nav-wrap .wp-block-navigation-item a,
.rfg-desktop-nav-wrap .wp-block-navigation__item a {
  font-family: var(--rfg-font-body) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--rfg-primary-text) !important;
  white-space: nowrap !important;
  position: relative;
  padding: 0.35rem 0 !important;
  text-decoration: none !important;
}

.rfg-desktop-nav a::after,
.rfg-desktop-nav-wrap li a::after,
.rfg-desktop-nav-wrap .wp-block-navigation-item a::after,
.rfg-desktop-nav-wrap .wp-block-navigation__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--rfg-forest-green);
  transition: width var(--rfg-transition-fast);
}

.rfg-desktop-nav a:hover::after,
.rfg-desktop-nav a:focus-visible::after,
.rfg-desktop-nav-wrap li a:hover::after,
.rfg-desktop-nav-wrap li a:focus-visible::after,
.rfg-desktop-nav .current-menu-item>a::after {
  width: 100%;
}

/* Guard: Filter out utility/checkout/policy pages if Page List ever tries to fallback */
.rfg-desktop-nav-wrap li a[href*="cart"],
.rfg-desktop-nav-wrap li a[href*="checkout"],
.rfg-desktop-nav-wrap li a[href*="terms"],
.rfg-desktop-nav-wrap li a[href*="shipping"],
.rfg-desktop-nav-wrap li a[href*="returns"],
.rfg-desktop-nav-wrap li a[href*="privacy"],
.rfg-desktop-nav-wrap li a[href*="my-account"],
.rfg-desktop-nav-wrap li a[href*="faqs"],
.rfg-desktop-nav-wrap li a[href*="contact"],
.rfg-desktop-nav-wrap li:has(a[href*="cart"]),
.rfg-desktop-nav-wrap li:has(a[href*="checkout"]),
.rfg-desktop-nav-wrap li:has(a[href*="terms"]),
.rfg-desktop-nav-wrap li:has(a[href*="shipping"]),
.rfg-desktop-nav-wrap li:has(a[href*="returns"]),
.rfg-desktop-nav-wrap li:has(a[href*="privacy"]),
.rfg-desktop-nav-wrap li:has(a[href*="my-account"]) {
  display: none !important;
}

.rfg-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rfg-header-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--rfg-primary-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--rfg-radius-button);
  position: relative;
  transition: background-color var(--rfg-transition-fast), color var(--rfg-transition-fast);
}

.rfg-header-action-btn:hover,
.rfg-header-action-btn:focus-visible {
  background-color: rgba(47, 91, 77, 0.08);
  color: var(--rfg-forest-green);
}

/* Inline SVG Icon System */
.rfg-icon-svg {
  display: block;
  stroke: var(--rfg-primary-text);
  color: var(--rfg-primary-text);
  transition: stroke var(--rfg-transition-fast), transform var(--rfg-transition-fast);
}

.rfg-header-action-btn:hover .rfg-icon-svg,
.rfg-header-action-btn:focus-visible .rfg-icon-svg {
  stroke: var(--rfg-forest-green);
  color: var(--rfg-forest-green);
  transform: scale(1.08);
}

/* Fallback CSS Icons System with Self-Contained SVG Data URIs */
.rfg-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

.rfg-cart-icon-fallback {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23183D33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

.rfg-search-icon-fallback {
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23183D33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.rfg-account-icon-fallback {
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23183D33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.rfg-menu-icon-fallback {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23183D33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}

.rfg-close-icon-fallback {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23183D33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.rfg-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rfg-cart-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background-color: var(--rfg-forest-green);
  color: var(--rfg-warm-ivory);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: var(--rfg-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--rfg-warm-ivory);
  box-shadow: 0 1px 3px rgba(24, 61, 51, 0.2);
  pointer-events: none;
}

.rfg-mobile-toggle {
  display: none;
}

/* Mobile Nav Drawer */
.rfg-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background-color: var(--rfg-warm-ivory);
  box-shadow: -4px 0 30px rgba(24, 61, 51, 0.15);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--rfg-transition-base);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.rfg-mobile-drawer.is-open {
  transform: translateX(0);
}

.rfg-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(24, 61, 51, 0.4);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--rfg-transition-base);
}

.rfg-drawer-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.rfg-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--rfg-primary-text);
  border-radius: var(--rfg-radius-button);
}

.rfg-mobile-nav {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rfg-mobile-nav a {
  font-family: var(--rfg-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rfg-forest-green);
  display: block;
}

/* Buttons */
.rfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--rfg-font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--rfg-radius-button);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  min-height: 48px;
  line-height: 1.2;
  transition: background-color var(--rfg-transition-fast), color var(--rfg-transition-fast), border-color var(--rfg-transition-fast), transform 100ms ease;
}

@media (max-width: 600px) {
  .rfg-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .rfg-hero-actions .rfg-btn {
    width: 100%;
  }
}

.rfg-btn:active {
  transform: translateY(1px);
}

.rfg-btn--primary {
  background-color: var(--rfg-forest-green);
  color: var(--rfg-warm-ivory);
}

.rfg-btn--primary:hover,
.rfg-btn--primary:focus-visible {
  background-color: var(--rfg-dark-forest-hover);
  color: var(--rfg-warm-ivory);
}

.rfg-btn--secondary {
  background-color: var(--rfg-warm-clay);
  color: var(--rfg-dark-forest);
}

.rfg-btn--secondary:hover,
.rfg-btn--secondary:focus-visible {
  background-color: var(--rfg-warm-clay-hover);
  color: var(--rfg-pure-white);
}

.rfg-btn--outline {
  background-color: transparent;
  color: var(--rfg-forest-green);
  border-color: var(--rfg-forest-green);
}

.rfg-btn--outline:hover,
.rfg-btn--outline:focus-visible {
  background-color: rgba(47, 91, 77, 0.08);
  color: var(--rfg-dark-forest);
}

.rfg-btn--block {
  width: 100%;
}

/* Pills and Badges */
.rfg-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--rfg-radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--rfg-sage-light);
  color: var(--rfg-dark-forest);
  line-height: 1;
}

.rfg-pill--clay {
  background-color: rgba(205, 133, 108, 0.15);
  color: #8c4934;
}

.rfg-pill--butter {
  background-color: var(--rfg-soft-butter);
  color: var(--rfg-dark-forest);
}

/* Hero Section */
.rfg-hero-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 3.5rem;
  align-items: center;
}

.rfg-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rfg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rfg-hero-image-wrapper {
  position: relative;
  border-radius: var(--rfg-radius-image);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(24, 61, 51, 0.08);
  aspect-ratio: 16 / 9;
}

.rfg-hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Value Props Strip */
.rfg-value-strip {
  background-color: var(--rfg-ivory-light);
  border-top: 1px solid var(--rfg-light-border);
  border-bottom: 1px solid var(--rfg-light-border);
  padding: 3rem 0;
}

.rfg-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.rfg-value-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--rfg-radius-card);
}

.rfg-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--rfg-sage-light);
  color: var(--rfg-forest-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfg-value-title {
  font-family: var(--rfg-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rfg-forest-green);
  margin: 0;
}

.rfg-value-desc {
  font-size: 0.9375rem;
  color: var(--rfg-secondary-text);
  margin: 0;
  line-height: 1.5;
}

/* Flagship Product Showcase */
.rfg-flagship-card {
  background-color: var(--rfg-pure-white);
  border-radius: var(--rfg-radius-image);
  border: 1px solid var(--rfg-light-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 48% 52%;
  box-shadow: 0 8px 32px rgba(24, 61, 51, 0.05);
}

.rfg-flagship-image-col {
  background-color: var(--rfg-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.rfg-flagship-image-col.rfg-flagship-image-col--inset {
  padding: 0;
  background: none;
  overflow: hidden;
  display: flex;
}

.rfg-flagship-image-col.rfg-flagship-image-col--inset picture,
.rfg-flagship-image-col.rfg-flagship-image-col--inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

@media (max-width: 900px) {
  .rfg-flagship-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .rfg-flagship-content-col,
  .rfg-flagship-image-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .rfg-flagship-image-col.rfg-flagship-image-col--inset {
    min-height: 300px;
  }
}

.rfg-flagship-content-col {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

/* Collection Grid / Product Cards */
.rfg-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rfg-product-card {
  background-color: var(--rfg-pure-white);
  border-radius: var(--rfg-radius-product);
  border: 1px solid var(--rfg-light-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--rfg-transition-fast), box-shadow var(--rfg-transition-fast);
}

.rfg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(24, 61, 51, 0.08);
}

.rfg-product-card-thumb {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--rfg-ivory-light);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfg-product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rfg-product-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rfg-product-card-title {
  font-family: var(--rfg-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--rfg-forest-green);
}

.rfg-product-card-desc {
  font-size: 0.9375rem;
  color: var(--rfg-secondary-text);
  margin: 0;
  flex-grow: 1;
}

.rfg-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rfg-light-border);
}

.rfg-product-card-price {
  font-family: var(--rfg-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rfg-primary-text);
}

/* Philosophy Section */
.rfg-philosophy-section {
  background-color: var(--rfg-sage-green);
  color: var(--rfg-dark-forest);
  border-radius: var(--rfg-radius-image);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) var(--rfg-container-padding);
}

.rfg-philosophy-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  align-items: center;
}

.rfg-philosophy-section h2 {
  color: var(--rfg-dark-forest);
}

.rfg-philosophy-section .rfg-eyebrow {
  color: var(--rfg-forest-green);
}

.rfg-philosophy-image {
  border-radius: var(--rfg-radius-image);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(24, 61, 51, 0.12);
}

/* Three Pillars */
.rfg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rfg-pillar-card {
  background-color: var(--rfg-pure-white);
  border-radius: var(--rfg-radius-card);
  border: 1px solid var(--rfg-light-border);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rfg-pillar-card .rfg-h3 {
  min-height: 2.6em;
  margin-bottom: 0.25rem;
}

.rfg-pillar-link {
  font-weight: 700;
  color: var(--rfg-forest-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.rfg-pillar-link:hover {
  color: var(--rfg-warm-clay);
}

.rfg-pillar-num {
  font-family: var(--rfg-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rfg-warm-clay);
  line-height: 1;
}

/* Discovery Cards */
.rfg-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rfg-discovery-card {
  background-color: var(--rfg-pure-white);
  border-radius: var(--rfg-radius-card);
  border: 1px solid var(--rfg-light-border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
  align-items: center;
}

.rfg-discovery-card .rfg-h3 {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

/* FAQ Accordion */
.rfg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.rfg-faq-item {
  background-color: var(--rfg-pure-white);
  border: 1px solid var(--rfg-light-border);
  border-radius: 16px;
  overflow: hidden;
}

.rfg-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--rfg-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rfg-forest-green);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.rfg-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--rfg-transition-fast);
}

.rfg-faq-item.is-open .rfg-faq-icon {
  transform: rotate(180deg);
}

.rfg-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--rfg-secondary-text);
  font-size: 1rem;
  line-height: 1.6;
  display: none;
}

.rfg-faq-item.is-open .rfg-faq-answer {
  display: block;
}

/* Newsletter Section */
.rfg-newsletter-section {
  background-color: var(--rfg-forest-green);
  color: var(--rfg-warm-ivory);
  border-radius: var(--rfg-radius-image);
  padding: clamp(3rem, 6vw, 5rem) var(--rfg-container-padding);
  text-align: center;
}

.rfg-newsletter-section h2 {
  color: var(--rfg-warm-ivory);
}

.rfg-newsletter-section p {
  color: var(--rfg-soft-butter);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.rfg-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.rfg-newsletter-input {
  flex: 1 1 280px;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--rfg-radius-button);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--rfg-warm-ivory);
  font-family: var(--rfg-font-body);
  font-size: 1rem;
}

.rfg-newsletter-input::placeholder {
  color: rgba(250, 245, 235, 0.6);
}

.rfg-newsletter-input:focus {
  outline: none;
  border-color: var(--rfg-soft-butter);
  background-color: rgba(255, 255, 255, 0.15);
}

.rfg-newsletter-microcopy {
  font-size: 0.8125rem;
  color: rgba(250, 245, 235, 0.7);
  margin-top: 1rem !important;
}

/* Site Footer */
.rfg-footer {
  background-color: var(--rfg-dark-forest);
  color: var(--rfg-warm-ivory);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2rem;
  margin-top: 5rem;
}

.rfg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(250, 245, 235, 0.12);
}

.rfg-footer-col h4 {
  font-family: var(--rfg-font-heading);
  font-size: 1.125rem;
  color: var(--rfg-soft-butter);
  margin-bottom: 1.25rem;
}

.rfg-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rfg-footer-col a {
  color: rgba(250, 245, 235, 0.8);
  font-size: 0.9375rem;
}

.rfg-footer-col a:hover {
  color: var(--rfg-soft-butter);
}

.rfg-footer-brand-logo {
  max-width: 220px;
  margin-bottom: 1rem;
}

.rfg-footer-tagline {
  font-family: var(--rfg-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rfg-soft-butter);
  margin-bottom: 0.5rem;
}

.rfg-footer-desc {
  font-size: 0.875rem;
  color: rgba(250, 245, 235, 0.75);
  line-height: 1.6;
}

.rfg-footer-contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: rgba(250, 245, 235, 0.78);
}

.rfg-footer-contact a {
  color: var(--rfg-soft-butter);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rfg-footer-contact a:hover {
  color: var(--rfg-pure-white);
}

.rfg-footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(250, 245, 235, 0.75);
}

.rfg-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.rfg-footer-bottom-links a {
  color: rgba(250, 245, 235, 0.85);
  transition: color var(--rfg-transition-fast);
}

.rfg-footer-bottom-links a:hover {
  color: var(--rfg-soft-butter);
}

/* Mobile Sticky Purchase Bar */
.rfg-sticky-purchase-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--rfg-pure-white);
  border-top: 1px solid var(--rfg-light-border);
  box-shadow: 0 -4px 20px rgba(24, 61, 51, 0.1);
  padding: 0.75rem 1rem env(safe-area-inset-bottom, 0.75rem);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(120%);
  transition: transform var(--rfg-transition-base);
}

@media (min-width: 901px) {
  .rfg-sticky-purchase-bar {
    display: none !important;
  }
}

.rfg-sticky-purchase-bar.is-visible {
  transform: translateY(0);
}

.rfg-sticky-info {
  display: flex;
  flex-direction: column;
}

.rfg-sticky-title {
  font-family: var(--rfg-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rfg-forest-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.rfg-sticky-price {
  font-family: var(--rfg-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rfg-primary-text);
}

/* Mini Cart Drawer */
.rfg-mini-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 420px);
  background-color: var(--rfg-pure-white);
  box-shadow: -4px 0 35px rgba(24, 61, 51, 0.18);
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--rfg-transition-base);
  display: flex;
  flex-direction: column;
}

.rfg-mini-cart-drawer.is-open {
  transform: translateX(0);
}

.rfg-mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rfg-light-border);
  background-color: var(--rfg-pure-white);
}

.rfg-mini-cart-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--rfg-font-heading);
  color: var(--rfg-forest-green);
  font-weight: 700;
}

.rfg-mini-cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rfg-mini-cart-body .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex-grow: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {

  .rfg-desktop-nav,
  .rfg-desktop-nav-wrap {
    display: none !important;
  }

  .rfg-mobile-toggle {
    display: inline-flex !important;
  }

  .rfg-hero-grid,
  .rfg-flagship-card,
  .rfg-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .rfg-collection-grid,
  .rfg-pillars-grid,
  .rfg-discovery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rfg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .rfg-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rfg-collection-grid,
  .rfg-pillars-grid,
  .rfg-discovery-grid {
    grid-template-columns: 1fr;
  }

  .rfg-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rfg-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .rfg-value-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Learning Journal Editorial Redesign
   ========================================================================== */
.rfg-journal-container {
  max-width: var(--rfg-content-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rfg-single-post-meta .rfg-meta-sep:last-child,
.rfg-single-post-meta:not(:has(.wp-block-post-author-name)) .rfg-meta-sep {
  display: none;
}

.rfg-journal-body {
  padding-top: 2.75rem;
  padding-bottom: 5rem;
}

/* Neutralize accidental WordPress wpautop linebreaks inside shortcode markup */
.rfg-journal-hero br,
.rfg-journal-topics br,
.rfg-topic-pill br,
.rfg-journal-card-thumb br,
.rfg-journal-meta br,
.rfg-journal-card-footer br,
.rfg-journal-card-thumb p:empty {
  display: none !important;
}

.rfg-journal-hero {
  background: linear-gradient(180deg, #FDFBF7 0%, var(--rfg-warm-ivory) 100%);
  border-bottom: 1px solid var(--rfg-light-border);
  padding: clamp(2.75rem, 4.5vw, 3.75rem) 1.5rem clamp(2.25rem, 3.5vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rfg-journal-hero .rfg-container {
  max-width: 820px !important;
  margin: 0 auto;
  text-align: center;
}

.rfg-journal-hero .rfg-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--rfg-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rfg-warm-clay);
  background-color: rgba(205, 133, 108, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
  line-height: 1;
}

.rfg-journal-hero .rfg-eyebrow svg {
  flex-shrink: 0;
}

.rfg-journal-hero .rfg-h1 {
  font-family: var(--rfg-font-heading);
  color: var(--rfg-forest-green);
  font-size: clamp(2.125rem, 1.85rem + 1.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 auto 0.875rem;
  text-align: center;
}

.rfg-journal-hero .rfg-lead {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  color: var(--rfg-secondary-text);
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 640px;
  text-align: center;
}

/* Redesigned Journal Category Pills */
.rfg-journal-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.rfg-topic-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px;
  padding: 0 1.25rem !important;
  background-color: var(--rfg-pure-white);
  border: 1.5px solid #DCDAD0;
  border-radius: var(--rfg-radius-pill);
  font-family: var(--rfg-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rfg-primary-text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(24, 61, 51, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1 !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.rfg-topic-pill:hover {
  background-color: #EDF3EE;
  border-color: rgba(47, 91, 77, 0.38);
  color: var(--rfg-forest-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 91, 77, 0.08);
}

.rfg-topic-pill.is-active,
.rfg-topic-pill[aria-current="page"] {
  background-color: var(--rfg-forest-green);
  color: var(--rfg-pure-white);
  border-color: var(--rfg-forest-green);
  box-shadow: 0 6px 16px rgba(47, 91, 77, 0.24);
}

.rfg-topic-pill:focus-visible,
.rfg-journal-readmore:focus-visible,
.rfg-journal-pagination a:focus-visible {
  outline: 2px solid var(--rfg-forest-green);
  outline-offset: 3px;
}

/* Journal Article Grid */
.rfg-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .rfg-journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .rfg-journal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Journal Article Cards */
.rfg-journal-card {
  background-color: var(--rfg-pure-white);
  border: 1px solid #E5E3D8;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  height: 100%;
  box-shadow: 0 6px 22px -6px rgba(24, 61, 51, 0.055);
}

.rfg-journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -8px rgba(24, 61, 51, 0.12);
  border-color: rgba(47, 91, 77, 0.25);
}

/* Crisp Edge-to-Edge Thumbnail Frame */
.rfg-journal-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #F4F1EA;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #F0EDE3;
}

.rfg-journal-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 61, 51, 0) 58%, rgba(24, 61, 51, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

.rfg-journal-card-thumb a,
.rfg-journal-card-thumb picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.rfg-journal-card-thumb img,
.wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  display: block !important;
  margin: 0 !important;
}

.rfg-journal-card:hover .rfg-journal-card-thumb img {
  transform: scale(1.05);
}

/* Floating Reading Time Pill on Thumbnail */
.rfg-journal-reading-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--rfg-primary-text);
  font-family: var(--rfg-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(24, 61, 51, 0.14);
  line-height: 1.1;
  pointer-events: none;
}

.rfg-journal-reading-badge svg {
  color: var(--rfg-forest-green);
  flex-shrink: 0;
}

.rfg-journal-card-body {
  padding: 1.375rem 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rfg-journal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 0.85rem;
}

.rfg-journal-meta .rfg-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.rfg-pill--sage {
  background-color: #EEF4F0 !important;
  color: #244C40 !important;
  border: 1px solid rgba(47, 91, 77, 0.12);
}

.rfg-journal-meta .rfg-pill--clay {
  background-color: #FDF2EC !important;
  color: #B46044 !important;
  border: 1px solid rgba(205, 133, 108, 0.18);
}

.rfg-journal-meta .rfg-pill--butter {
  background-color: #FBF6E2 !important;
  color: #7D6415 !important;
  border: 1px solid rgba(217, 213, 167, 0.45);
}

.rfg-journal-date {
  font-size: 0.8125rem;
  color: var(--rfg-secondary-text);
  font-weight: 600;
  white-space: nowrap;
}

.rfg-journal-title,
.rfg-journal-card h2,
.rfg-journal-card h3 {
  font-family: var(--rfg-font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem 0;
  color: var(--rfg-forest-green);
}

.rfg-journal-title a,
.rfg-journal-card h2 a,
.rfg-journal-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--rfg-transition-fast);
}

.rfg-journal-title a:hover,
.rfg-journal-card h2 a:hover,
.rfg-journal-card h3 a:hover {
  color: var(--rfg-warm-clay);
}

.rfg-journal-card p,
.rfg-journal-excerpt {
  color: var(--rfg-secondary-text);
  font-size: 0.9rem;
  line-height: 1.58;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfg-journal-card-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid #EFECE2;
}

.rfg-journal-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--rfg-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rfg-forest-green);
  text-decoration: none;
  transition: gap var(--rfg-transition-fast), color var(--rfg-transition-fast);
}

.rfg-journal-card:hover .rfg-journal-readmore,
.rfg-journal-readmore:hover {
  color: var(--rfg-warm-clay);
  gap: 0.65rem;
}

.rfg-journal-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--rfg-pure-white);
  border: 1px solid var(--rfg-light-border);
  border-radius: 16px;
  margin: 2rem 0;
}

/* Fallback for core Gutenberg Query Block */
ul.wp-block-post-template.is-layout-grid,
ul.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

ul.wp-block-post-template>li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
}

@media (max-width: 1024px) {

  ul.wp-block-post-template.is-layout-grid,
  ul.wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {

  ul.wp-block-post-template.is-layout-grid,
  ul.wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

/* Journal Pagination */
.rfg-journal-pagination .wp-block-query-pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.rfg-journal-pagination a,
.rfg-journal-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--rfg-radius-button);
  background-color: var(--rfg-pure-white);
  border: 1px solid var(--rfg-light-border);
  font-weight: 600;
  color: var(--rfg-primary-text);
  text-decoration: none;
  transition: all var(--rfg-transition-fast);
}

.rfg-journal-pagination .page-numbers.current,
.rfg-journal-pagination a:hover {
  background-color: var(--rfg-forest-green);
  color: var(--rfg-warm-ivory);
  border-color: var(--rfg-forest-green);
}

/* ==========================================================================
   Product Gallery & Thumbnail Slider (Universal Rules)
   ========================================================================== */

/* Main Gallery Stage */
.woocommerce-product-gallery,
.woocommerce div.product div.images,
.wp-block-woocommerce-product-gallery,
.wc-block-product-gallery,
.wc-block-single-product__gallery {
  position: relative !important;
  margin-bottom: 0 !important;
  float: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery:not(:has(.flex-viewport))>.woocommerce-product-gallery__wrapper,
.wp-block-woocommerce-product-gallery-large-image,
.wc-block-product-gallery-large-image,
.wc-block-product-gallery-large-image-wrapper {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(24, 61, 51, 0.08) !important;
  box-shadow: 0 12px 36px -10px rgba(24, 61, 51, 0.08), 0 2px 8px rgba(24, 61, 51, 0.03) !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.woocommerce-product-gallery .flex-viewport>.woocommerce-product-gallery__wrapper {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  background: transparent !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img,
.wp-block-woocommerce-product-gallery-large-image img,
.wc-block-product-gallery-large-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 560px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
}

/* Thumbnails: FORCED SINGLE-ROW HORIZONTAL SLIDER TRACK */
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
.wp-block-woocommerce-product-gallery-thumbnails,
.wc-block-product-gallery-thumbnails {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* CRITICAL: Never wrap onto row 2 */
  align-items: center !important;
  gap: 12px !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  padding: 6px 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs::-webkit-scrollbar,
.wp-block-woocommerce-product-gallery-thumbnails::-webkit-scrollbar,
.wc-block-product-gallery-thumbnails::-webkit-scrollbar {
  display: none !important;
}

/* Individual Thumbnail Items */
.woocommerce-product-gallery ol.flex-control-thumbs li,
.wp-block-woocommerce-product-gallery-thumbnails img,
.wc-block-product-gallery-thumbnails img,
.wp-block-woocommerce-product-gallery-thumbnails .wc-block-product-gallery-thumbnails__image,
.wc-block-product-gallery-thumbnails .wc-block-product-gallery-thumbnails__image,
.wp-block-woocommerce-product-gallery-thumbnails__thumbnail,
.wc-block-product-gallery-thumbnails__thumbnail {
  flex: 0 0 78px !important;
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 2.5px solid transparent !important;
  box-shadow: 0 2px 8px rgba(24, 61, 51, 0.08) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  opacity: 0.55 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease !important;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img,
.wp-block-woocommerce-product-gallery-thumbnails img,
.wc-block-product-gallery-thumbnails img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
  margin: 0 !important;
}

.woocommerce-product-gallery ol.flex-control-thumbs li:hover,
.wp-block-woocommerce-product-gallery-thumbnails img:hover,
.wc-block-product-gallery-thumbnails img:hover {
  opacity: 0.88 !important;
  border-color: rgba(24, 61, 51, 0.35) !important;
  transform: translateY(-2px) !important;
}

.woocommerce-product-gallery ol.flex-control-thumbs li.rfg-thumb-active,
.woocommerce-product-gallery ol.flex-control-thumbs li:has(img.flex-active),
.wp-block-woocommerce-product-gallery-thumbnails img.is-active,
.wc-block-product-gallery-thumbnails img.is-active,
.wc-block-product-gallery-thumbnails__image.is-active,
.wp-block-woocommerce-product-gallery-thumbnails img.rfg-thumb-active,
.wc-block-product-gallery-thumbnails img.rfg-thumb-active,
.wp-block-woocommerce-product-gallery-thumbnails [aria-current="true"],
.wc-block-product-gallery-thumbnails [aria-current="true"] {
  opacity: 1 !important;
  border-color: var(--rfg-forest-green, #183D33) !important;
  box-shadow: 0 4px 14px rgba(24, 61, 51, 0.25) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active {
  opacity: 1 !important;
}

/* Search Results Cards */
.rfg-search-card {
  background-color: var(--rfg-pure-white);
  border: 1px solid var(--rfg-light-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--rfg-transition-fast), box-shadow var(--rfg-transition-fast);
}

.rfg-search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(24, 61, 51, 0.08);
}

.rfg-search-card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.rfg-search-card-title a {
  color: var(--rfg-forest-green);
  text-decoration: none;
}

.rfg-search-card-title a:hover {
  color: var(--rfg-warm-clay);
}

.rfg-search-card-excerpt {
  color: var(--rfg-secondary-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

/* Contact Page Two-Column Support & Message Center */
.rfg-contact-section {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.rfg-contact-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
}

.rfg-contact-hero .rfg-lead {
  margin: 0.875rem auto 0;
}

.rfg-contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 2rem;
  align-items: start;
}

.rfg-contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rfg-contact-info-card {
  background-color: var(--rfg-pure-white);
  border: 1px solid #E5E3D8;
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 8px 28px -8px rgba(24, 61, 51, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.rfg-contact-card-heading {
  margin: 0;
  font-size: 1.2rem;
  color: var(--rfg-forest-green);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #F0EDE3;
}

.rfg-contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.rfg-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: #EAF2EC;
  color: var(--rfg-forest-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.rfg-contact-icon--warm {
  background-color: #FDF2EC;
  color: var(--rfg-warm-clay);
}

.rfg-contact-channel-body {
  min-width: 0;
  flex: 1;
}

.rfg-contact-channel-title {
  display: block;
  font-family: var(--rfg-font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--rfg-forest-green);
  margin-bottom: 0.2rem;
}

.rfg-contact-channel-body p {
  margin: 0 0 0.35rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--rfg-secondary-text);
}

.rfg-contact-email-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rfg-forest-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rfg-contact-email-link:hover {
  color: var(--rfg-warm-clay);
}

.rfg-contact-quicklinks {
  background-color: #F4F7F4;
  border: 1px solid rgba(47, 91, 77, 0.14);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
}

.rfg-contact-quicklinks-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rfg-forest-green);
  margin-bottom: 0.85rem;
}

.rfg-contact-quicklinks-head i {
  font-size: 1.15rem;
}

.rfg-contact-quicklinks-head h3 {
  margin: 0;
  font-family: var(--rfg-font-heading);
  font-size: 1.025rem;
  color: var(--rfg-forest-green);
}

.rfg-contact-quicklinks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rfg-contact-quicklinks li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rfg-primary-text);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rfg-contact-quicklinks li a:hover {
  background-color: var(--rfg-pure-white);
  color: var(--rfg-forest-green);
}

/* Right Column: Message Form Card */
.rfg-contact-form-card {
  background-color: var(--rfg-pure-white);
  border: 1px solid #E5E3D8;
  border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 12px 34px -10px rgba(24, 61, 51, 0.08);
  box-sizing: border-box;
}

.rfg-contact-form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F0EDE3;
}

.rfg-contact-form-header h2 {
  margin: 0 0 0.3rem 0;
  font-size: 1.35rem;
  color: var(--rfg-forest-green);
}

.rfg-contact-form-header p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--rfg-secondary-text);
}

.rfg-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rfg-contact-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.rfg-contact-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rfg-primary-text);
  margin-bottom: 0.45rem;
}

.rfg-req {
  color: #C64737;
}

.rfg-contact-field input,
.rfg-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1.5px solid #DCDAD0;
  background-color: #FCFBF8;
  padding: 0.75rem 1rem;
  font-family: var(--rfg-font-body);
  font-size: 0.96875rem;
  color: var(--rfg-primary-text);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rfg-contact-field input {
  min-height: 48px;
}

.rfg-contact-field textarea {
  resize: vertical;
  min-height: 136px;
}

.rfg-contact-field input:focus,
.rfg-contact-field textarea:focus {
  outline: none;
  background-color: var(--rfg-pure-white);
  border-color: var(--rfg-forest-green);
  box-shadow: 0 0 0 3px rgba(47, 91, 77, 0.14);
}

.rfg-contact-submit-wrap {
  margin-top: 0.35rem;
}

.rfg-contact-submit-wrap .rfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
}

@media (max-width: 900px) {
  .rfg-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .rfg-contact-row-2 {
    grid-template-columns: 1fr;
  }

  .rfg-contact-info-card,
  .rfg-contact-form-card {
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
  }
}

/* Store & Legal Policy Documents */
.rfg-policy-doc {
  max-width: 820px;
  margin: 0 auto 2rem;
  background-color: var(--rfg-pure-white);
  border: 1px solid #E5E3D8;
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 8px 28px -8px rgba(24, 61, 51, 0.06);
  color: var(--rfg-primary-text);
  line-height: 1.75;
}

.rfg-policy-meta-banner {
  background-color: var(--rfg-ivory-light);
  border: 1px solid #E5E3D8;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}

.rfg-policy-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.rfg-policy-intro {
  margin: 0 0 0.625rem 0;
  color: var(--rfg-primary-text);
  font-size: 1rem;
  line-height: 1.65;
}

.rfg-policy-meta-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rfg-secondary-text);
}

.rfg-policy-doc h2 {
  font-family: var(--rfg-font-heading);
  font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.45rem);
  color: var(--rfg-forest-green);
  margin: 2rem 0 0.75rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid #F0EDE3;
}

.rfg-policy-doc .rfg-policy-meta-banner+h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.rfg-policy-doc h3 {
  font-family: var(--rfg-font-heading);
  font-size: 1.0625rem;
  color: var(--rfg-forest-green);
  margin: 1.25rem 0 0.5rem 0;
}

.rfg-policy-doc p {
  color: var(--rfg-secondary-text);
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

.rfg-policy-doc ul,
.rfg-policy-doc ol {
  margin: 0 0 1.25rem 1.35rem;
  color: var(--rfg-secondary-text);
  font-size: 1rem;
  line-height: 1.7;
}

.rfg-policy-doc li {
  margin-bottom: 0.55rem;
}

.rfg-policy-doc a {
  color: var(--rfg-forest-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rfg-policy-doc a:hover {
  color: var(--rfg-warm-clay);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}