/* ==========================================================================
   Formal Letter Templates — Custom Design System
   Overrides Astra theme defaults for professional, trust-building design
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --flt-navy: #0F172A;
  --flt-navy-light: #1E293B;
  --flt-slate: #334155;
  --flt-gray: #475569;
  --flt-gray-light: #64748B;
  --flt-border: #E2E8F0;
  --flt-bg: #F8FAFC;
  --flt-white: #FFFFFF;
  --flt-emerald: #047857; /* 2026-08-04 overhaul: darkened from #059669 for WCAG AA on white */
  --flt-emerald-dark: #065f46;
  --flt-emerald-light: #D1FAE5;
  --flt-blue: #2563EB;
  --flt-blue-light: #DBEAFE;
  --flt-amber: #F59E0B;
  --flt-red: #DC2626;
  --flt-radius: 12px;
  --flt-radius-sm: 8px;
  --flt-shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
  --flt-shadow-md: 0 4px 6px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.06);
  --flt-shadow-lg: 0 10px 15px rgba(15,23,42,0.1), 0 4px 6px rgba(15,23,42,0.05);
  --flt-shadow-xl: 0 20px 25px rgba(15,23,42,0.1), 0 8px 10px rgba(15,23,42,0.04);
  --flt-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base / Body ---------- */
body {
  background: var(--flt-bg) !important;
  color: var(--flt-navy) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Astra Overrides ---------- */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background: var(--flt-white) !important;
  border-radius: var(--flt-radius) !important;
  box-shadow: var(--flt-shadow) !important;
  border: 1px solid var(--flt-border) !important;
  padding: 0 !important;
  overflow: hidden;
}

.ast-separate-container .entry-content {
  padding: 0 !important;
}

.ast-separate-container .ast-article-single .entry-header {
  display: none !important;
}

.site-content > .ast-container {
  max-width: 1200px !important;
  padding: 0 20px !important;
}

/* Hide default Astra page title on front page and template pages */
.ast-page-builder-template .entry-header,
.page .entry-header .entry-title {
  display: none !important;
}

/* ---------- Header ---------- */
.ast-primary-header-bar,
.ast-primary-header {
  background: var(--flt-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.ast-primary-header .site-title a,
.ast-primary-header .ast-site-title-wrap a {
  color: var(--flt-white) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  letter-spacing: -0.02em !important;
}

.main-header-menu > .menu-item > a,
.ast-header-break-point .ast-button-wrap .menu-toggle {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

.main-header-menu > .menu-item > a:hover {
  color: var(--flt-white) !important;
}

.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--flt-emerald-light) !important;
}

/* ---------- Trust Bar (injected via mu-plugin) ---------- */
.flt-trust-bar {
  background: var(--flt-navy-light);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.flt-trust-bar span {
  display: inline-block;
  margin: 0 16px;
}

.flt-trust-bar .flt-stars {
  color: var(--flt-amber);
  letter-spacing: 1px;
}

.flt-trust-bar .flt-check {
  color: var(--flt-emerald);
}

/* ---------- Full-width breakout from Astra container ---------- */
.flt-hero,
.flt-proof-strip,
.flt-cta-banner,
.flt-fullwidth {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: none !important;
}

/* Fix Astra entry-content container to not clip full-width sections */
.entry-content.clear {
  overflow: visible !important;
}

.ast-separate-container .entry-content > p:empty {
  display: none !important;
}

/* ---------- Hero Section ---------- */
.flt-hero {
  background: linear-gradient(135deg, var(--flt-navy) 0%, #1a2744 50%, var(--flt-navy-light) 100%);
  color: var(--flt-white);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.flt-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(5,150,105,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(37,99,235,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.flt-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.flt-hero h1 {
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
  margin-bottom: 20px !important;
  color: var(--flt-white) !important;
}

.flt-hero .flt-hero-sub {
  font-size: clamp(17px, 2.5vw, 21px);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.flt-hero .flt-hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.flt-hero .flt-hero-proof .flt-stars {
  color: var(--flt-amber);
}

/* ---------- Buttons ---------- */
.flt-btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: var(--flt-radius-sm);
  transition: var(--flt-transition);
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.flt-btn-primary {
  background: var(--flt-emerald) !important;
  color: var(--flt-white) !important;
  box-shadow: 0 4px 14px rgba(5,150,105,0.4);
}

.flt-btn-primary:hover {
  background: var(--flt-emerald-dark) !important;
  color: var(--flt-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,150,105,0.5);
}

.flt-btn-secondary {
  background: var(--flt-white) !important;
  color: var(--flt-navy) !important;
  box-shadow: var(--flt-shadow);
  border: 1px solid var(--flt-border);
}

.flt-btn-secondary:hover {
  background: var(--flt-bg) !important;
  color: var(--flt-navy) !important;
  transform: translateY(-1px);
  box-shadow: var(--flt-shadow-md);
}

.flt-btn-outline {
  background: transparent !important;
  color: var(--flt-white) !important;
  border: 2px solid rgba(255,255,255,0.3);
}

.flt-btn-outline:hover {
  border-color: var(--flt-white);
  color: var(--flt-white) !important;
  background: rgba(255,255,255,0.1) !important;
}

.flt-btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.flt-btn-lg {
  padding: 18px 44px;
  font-size: 18px;
}

/* ---------- Social Proof Strip ---------- */
.flt-proof-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 28px 24px;
  background: var(--flt-white);
  border-bottom: 1px solid var(--flt-border);
}

.flt-proof-item {
  text-align: center;
}

.flt-proof-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--flt-navy);
  display: block;
  letter-spacing: -0.02em;
}

.flt-proof-label {
  font-size: 13px;
  color: var(--flt-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Template Cards Grid ---------- */
.flt-grid {
  display: grid;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0 auto;
  max-width: 1000px;
}

.flt-grid > br,
.flt-grid > p,
.flt-cat-card > br,
.flt-card > br,
.flt-features > br,
.flt-features > p,
.flt-proof-strip > br,
.flt-proof-strip > p,
.flt-pricing-grid > br,
.flt-pricing-grid > p {
  display: none;
}

.flt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.flt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.flt-grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.flt-card {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius);
  padding: 28px;
  transition: var(--flt-transition);
  position: relative;
}

.flt-card:hover {
  border-color: var(--flt-emerald);
  box-shadow: var(--flt-shadow-lg);
  transform: translateY(-3px);
}

.flt-card a {
  text-decoration: none !important;
  color: inherit !important;
}

.flt-card-icon {
  width: 48px;
  height: 48px;
  background: var(--flt-emerald-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.flt-card h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: var(--flt-navy) !important;
  line-height: 1.3 !important;
}

.flt-card p {
  font-size: 15px;
  color: var(--flt-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

.flt-card .flt-card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--flt-gray-light);
  transition: var(--flt-transition);
  font-size: 18px;
}

.flt-card:hover .flt-card-arrow {
  color: var(--flt-emerald);
  transform: translateX(3px);
}

/* Template preview cards (with image) */
.flt-tpl-card {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius);
  overflow: hidden;
  transition: var(--flt-transition);
}

.flt-tpl-card:hover {
  border-color: var(--flt-emerald);
  box-shadow: var(--flt-shadow-lg);
  transform: translateY(-3px);
}

.flt-tpl-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.flt-tpl-card .flt-tpl-thumb {
  background: var(--flt-bg);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--flt-border);
}

.flt-tpl-card .flt-tpl-thumb img {
  max-height: 200px;
  width: auto;
  box-shadow: var(--flt-shadow-md);
  border-radius: 4px;
}

.flt-tpl-card .flt-tpl-info {
  padding: 20px;
}

.flt-tpl-card .flt-tpl-info h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 0 6px !important;
  color: var(--flt-navy) !important;
}

.flt-tpl-card .flt-tpl-info p {
  font-size: 14px;
  color: var(--flt-gray);
  margin: 0;
}

/* ---------- Category Cards ---------- */
.flt-cat-card {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius);
  padding: 32px 28px;
  transition: var(--flt-transition);
  text-decoration: none !important;
  display: block;
}

.flt-cat-card:hover {
  border-color: var(--flt-emerald);
  box-shadow: var(--flt-shadow-lg);
  transform: translateY(-3px);
}

.flt-cat-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.flt-cat-card h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--flt-navy) !important;
  margin-bottom: 8px !important;
}

.flt-cat-card p {
  font-size: 15px;
  color: var(--flt-gray);
  margin-bottom: 12px;
}

.flt-cat-count {
  font-size: 13px;
  color: var(--flt-emerald);
  font-weight: 600;
}

/* ---------- Section Headings ---------- */
.flt-section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.flt-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.flt-section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px) !important;
  font-weight: 800 !important;
  color: var(--flt-navy) !important;
  letter-spacing: -0.02em;
  margin-bottom: 12px !important;
}

.flt-section-header p {
  font-size: 17px;
  color: var(--flt-gray);
  max-width: 600px;
  margin: 0 auto;
}

.flt-overline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flt-emerald);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Feature Grid ---------- */
.flt-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.flt-feature {
  text-align: center;
  padding: 32px 20px;
}

.flt-feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.flt-feature h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: var(--flt-navy) !important;
}

.flt-feature p {
  font-size: 15px;
  color: var(--flt-gray);
  line-height: 1.6;
}

/* ---------- Guarantee / Trust Box ---------- */
.flt-guarantee {
  background: var(--flt-emerald-light);
  border: 2px solid var(--flt-emerald);
  border-radius: var(--flt-radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.flt-guarantee-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.flt-guarantee h3 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--flt-navy) !important;
  margin-bottom: 8px !important;
}

.flt-guarantee p {
  color: var(--flt-slate);
  max-width: 500px;
  margin: 0 auto;
  font-size: 15px;
}

/* ---------- FAQ / Accordion ---------- */
.flt-faq {
  max-width: 720px;
  margin: 0 auto;
}

.flt-faq details {
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius-sm);
  margin-bottom: 12px;
  background: var(--flt-white);
  overflow: hidden;
}

.flt-faq details[open] {
  border-color: var(--flt-emerald);
}

.flt-faq summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: var(--flt-navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flt-faq summary::-webkit-details-marker { display: none; }

.flt-faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--flt-gray-light);
  transition: var(--flt-transition);
}

.flt-faq details[open] summary::after {
  content: '\2212';
  color: var(--flt-emerald);
}

.flt-faq .flt-faq-answer {
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--flt-gray);
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.flt-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.flt-testimonial {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius);
  padding: 28px;
}

.flt-testimonial .flt-stars {
  color: var(--flt-amber);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.flt-testimonial blockquote {
  font-size: 15px;
  color: var(--flt-slate);
  line-height: 1.7;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  font-style: normal;
}

.flt-testimonial cite {
  font-size: 14px;
  font-weight: 600;
  color: var(--flt-navy);
  font-style: normal;
}

.flt-testimonial cite span {
  font-weight: 400;
  color: var(--flt-gray);
}

/* ---------- Template Page Layout ---------- */
.flt-tpl-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.flt-tpl-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--flt-bg);
  border-bottom: 1px solid var(--flt-border);
  font-size: 13px;
  color: var(--flt-gray);
}

.flt-tpl-trust-strip .flt-stars {
  color: var(--flt-amber);
}

.flt-tpl-hero {
  padding: 40px 32px;
  text-align: center;
  border-bottom: 1px solid var(--flt-border);
}

.flt-tpl-hero h1 {
  font-size: clamp(26px, 4vw, 36px) !important;
  font-weight: 800 !important;
  color: var(--flt-navy) !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.02em;
}

.flt-tpl-hero .flt-tpl-tagline {
  font-size: 17px;
  color: var(--flt-gray);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.flt-tpl-preview {
  background: var(--flt-bg);
  padding: 32px;
  text-align: center;
  border-bottom: 1px solid var(--flt-border);
}

.flt-tpl-preview img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  box-shadow: var(--flt-shadow-xl);
  border-radius: 6px;
  border: 1px solid var(--flt-border);
}

.flt-tpl-content {
  padding: 40px 32px;
}

.flt-tpl-content h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--flt-navy) !important;
  margin-top: 36px !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--flt-emerald-light);
}

.flt-tpl-content p {
  font-size: 16px;
  color: var(--flt-slate);
  line-height: 1.75;
  margin-bottom: 16px;
}

.flt-tpl-content ul,
.flt-tpl-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.flt-tpl-content li {
  font-size: 15px;
  color: var(--flt-slate);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}

.flt-tpl-content ul li::marker {
  color: var(--flt-emerald);
}

/* Sticky bottom CTA on template pages */
.flt-sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--flt-white);
  border-top: 1px solid var(--flt-border);
  padding: 16px 24px;
  text-align: center;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(15,23,42,0.08);
}

.flt-sticky-cta .flt-btn {
  width: 100%;
  max-width: 400px;
}

/* ---------- CTA Banner Section ---------- */
.flt-cta-banner {
  background: linear-gradient(135deg, var(--flt-navy) 0%, var(--flt-navy-light) 100%);
  color: var(--flt-white);
  padding: 60px 24px;
  text-align: center;
  border-radius: var(--flt-radius);
  margin: 40px 0;
}

.flt-cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 34px) !important;
  font-weight: 800 !important;
  color: var(--flt-white) !important;
  margin-bottom: 12px !important;
}

.flt-cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Pricing Box ---------- */
.flt-pricing {
  background: var(--flt-white);
  border: 2px solid var(--flt-emerald);
  border-radius: var(--flt-radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.flt-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--flt-emerald);
  color: var(--flt-white);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flt-pricing .flt-price {
  font-size: 56px;
  font-weight: 800;
  color: var(--flt-navy);
  line-height: 1;
  margin: 20px 0 4px;
}

.flt-pricing .flt-price-sub {
  font-size: 15px;
  color: var(--flt-gray);
  margin-bottom: 24px;
}

.flt-pricing .flt-price-per {
  font-size: 14px;
  color: var(--flt-gray-light);
  margin-bottom: 6px;
}

.flt-pricing ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.flt-pricing li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--flt-slate);
  border-bottom: 1px solid var(--flt-border);
  padding-left: 28px;
  position: relative;
}

.flt-pricing li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--flt-emerald);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.ast-footer-overlay {
  background: var(--flt-navy) !important;
}

.site-footer,
.ast-small-footer {
  background: var(--flt-navy) !important;
  color: rgba(255,255,255,0.85) !important;
}

.site-footer a,
.ast-small-footer a {
  color: rgba(255,255,255,0.8) !important;
}

.site-footer a:hover {
  color: var(--flt-emerald) !important;
}

/* ---------- Breadcrumbs ---------- */
.flt-breadcrumbs {
  padding: 12px 24px;
  font-size: 13px;
  color: var(--flt-gray);
  max-width: 1100px;
  margin: 0 auto;
}

.flt-breadcrumbs a {
  color: var(--flt-gray);
  text-decoration: none;
}

.flt-breadcrumbs a:hover {
  color: var(--flt-emerald);
}

.flt-breadcrumbs .flt-sep {
  margin: 0 8px;
  color: var(--flt-gray-light);
}

/* ---------- WooCommerce Overrides ---------- */
.woocommerce .button,
.woocommerce-page .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--flt-emerald) !important;
  color: var(--flt-white) !important;
  border-radius: var(--flt-radius-sm) !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border: none !important;
  transition: var(--flt-transition) !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--flt-emerald-dark) !important;
  color: var(--flt-white) !important;
}

/* Edit Cart link */
.flt-edit-cart {
  display: block;
  text-align: right;
  padding: 16px 28px 0;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--flt-blue) !important;
  text-decoration: none;
}

.flt-edit-cart:hover {
  text-decoration: underline;
  color: var(--flt-navy) !important;
}

/* Order review wrapper */
.woocommerce-checkout #order_review_heading {
  background: var(--flt-white) !important;
  color: var(--flt-navy) !important;
  margin: 0 !important;
  padding: 24px 28px 0 !important;
  border-radius: var(--flt-radius) var(--flt-radius) 0 0 !important;
  border: 1px solid var(--flt-border) !important;
  border-bottom: none !important;
  font-size: 1.3em !important;
  font-weight: 700 !important;
}

.woocommerce-checkout #order_review {
  background: var(--flt-white) !important;
  border-radius: 0 0 var(--flt-radius) var(--flt-radius) !important;
  border: 1px solid var(--flt-border) !important;
  border-top: none !important;
  padding: 0 28px 28px !important;
  box-shadow: var(--flt-shadow-md) !important;
}

.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 20px !important;
  border-top: 1px solid var(--flt-border) !important;
  padding-top: 20px !important;
}

/* ---------- Checkout Form Readability ---------- */
.woocommerce-checkout,
.woocommerce-checkout .woocommerce {
  background: #EAEFF5 !important;
  color: var(--flt-navy) !important;
}

.woocommerce-checkout form.woocommerce-checkout {
  color: var(--flt-navy) !important;
}

.woocommerce-checkout .col2-set {
  background: var(--flt-white) !important;
  border-radius: var(--flt-radius) !important;
  border: 1px solid var(--flt-border) !important;
  box-shadow: var(--flt-shadow-md) !important;
  padding: 28px !important;
  margin-bottom: 24px !important;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  color: var(--flt-navy) !important;
}

.woocommerce-checkout h3,
.woocommerce-checkout h4,
.woocommerce-checkout label {
  color: var(--flt-navy) !important;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection,
.woocommerce-checkout .input-text {
  background: #F1F5F9 !important;
  color: var(--flt-navy) !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--flt-radius-sm) !important;
  padding: 10px 12px !important;
}

.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder {
  color: var(--flt-gray) !important;
}

.woocommerce-checkout .select2-container .select2-selection__rendered {
  color: var(--flt-navy) !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  color: var(--flt-navy) !important;
  border-color: var(--flt-border) !important;
  padding: 14px 0 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
  background: var(--flt-white) !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  font-size: 1.15em !important;
  font-weight: 700 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text p,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p,
.woocommerce-checkout .place-order p,
.woocommerce-checkout #payment .place-order p {
  color: var(--flt-slate) !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .place-order a,
.woocommerce-checkout #payment .place-order a {
  color: var(--flt-blue) !important;
}

.woocommerce-checkout .woocommerce-input-wrapper .description,
.woocommerce-checkout .woocommerce-validated .select2-container,
.woocommerce-checkout abbr {
  color: var(--flt-navy) !important;
}

.woocommerce-checkout #payment .payment_methods,
.woocommerce-checkout #payment .payment_methods li {
  background: var(--flt-white) !important;
  color: var(--flt-navy) !important;
  border-color: var(--flt-border) !important;
}

.woocommerce-checkout #payment .payment_methods li label {
  color: var(--flt-navy) !important;
}

.woocommerce-checkout #payment .payment_box {
  background: var(--flt-bg) !important;
  color: var(--flt-slate) !important;
}

.woocommerce-checkout #payment .payment_box p,
.woocommerce-checkout #payment .payment_box span,
.woocommerce-checkout #payment .payment_box label,
.woocommerce-checkout #payment .payment_box div {
  color: var(--flt-slate) !important;
}

/* Stripe / Credit Card iframes & fields */
.woocommerce-checkout #payment .payment_box input,
.woocommerce-checkout #payment .payment_box .wc-stripe-elements-field,
.woocommerce-checkout #payment .payment_box .StripeElement,
.woocommerce-checkout #payment .payment_box input[type="text"],
.woocommerce-checkout #payment .payment_box input[type="number"],
.woocommerce-checkout #payment .payment_box input[type="tel"] {
  background: var(--flt-white) !important;
  color: var(--flt-navy) !important;
  border: 1px solid var(--flt-border) !important;
  border-radius: var(--flt-radius-sm) !important;
}

/* WooCommerce Payments / Stripe card wrapper */
.woocommerce-checkout .wc-payment-form .form-row,
.woocommerce-checkout .wc-stripe-elements-field,
.woocommerce-checkout .wc-block-gateway-container {
  background: var(--flt-white) !important;
  color: var(--flt-navy) !important;
}

/* Generic payment field inputs inside payment box */
.woocommerce-checkout #payment .payment_box fieldset,
.woocommerce-checkout #payment .payment_box fieldset legend {
  background: transparent !important;
  color: var(--flt-navy) !important;
  border-color: var(--flt-border) !important;
}

/* Stripe Elements iframe containers */
.woocommerce-checkout .wc-stripe-elements-field iframe,
.woocommerce-checkout .StripeElement iframe {
  background: var(--flt-white) !important;
}

/* Ensure card input wrappers are light */
.woocommerce-checkout #wc-stripe-card-element,
.woocommerce-checkout #wc-stripe-exp-element,
.woocommerce-checkout #wc-stripe-cvc-element,
.woocommerce-checkout #stripe-card-element,
.woocommerce-checkout #stripe-exp-element,
.woocommerce-checkout #stripe-cvc-element,
.woocommerce-checkout .wc-stripe-elements-field {
  background: var(--flt-white) !important;
  border: 1px solid var(--flt-border) !important;
  border-radius: var(--flt-radius-sm) !important;
  padding: 10px 12px !important;
}

/* ---------- WooCommerce Product Page ---------- */
.single-product .site-content,
.single-product .entry-content,
.single-product .product,
.single-product .summary,
.single-product .woocommerce-tabs,
.single-product #reviews,
.single-product .woocommerce-Reviews {
  color: var(--flt-navy) !important;
}

.single-product .product_title,
.single-product .price,
.single-product .woocommerce-product-details__short-description,
.single-product .product_meta,
.single-product .product_meta span,
.single-product .product_meta a {
  color: var(--flt-navy) !important;
}

.single-product .product_meta a {
  color: var(--flt-blue) !important;
}

.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb a {
  color: var(--flt-gray) !important;
}

.single-product .woocommerce-breadcrumb a:hover {
  color: var(--flt-blue) !important;
}

.single-product .woocommerce-tabs .tabs li a,
.single-product .woocommerce-Reviews-title,
.single-product #reply-title,
.single-product .comment-reply-title {
  color: var(--flt-navy) !important;
}

.single-product #reviews p,
.single-product #reviews label,
.single-product #reviews span,
.single-product .woocommerce-noreviews {
  color: var(--flt-navy) !important;
}

.single-product #reviews input[type="text"],
.single-product #reviews input[type="email"],
.single-product #reviews textarea,
.single-product #reviews select {
  background: #F1F5F9 !important;
  color: var(--flt-navy) !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--flt-radius-sm) !important;
  padding: 10px 12px !important;
}

.single-product #reviews input::placeholder,
.single-product #reviews textarea::placeholder {
  color: var(--flt-gray) !important;
}

.single-product #review_form .comment-form-cookies-consent label {
  color: var(--flt-slate) !important;
}

.single-product .related.products h2,
.single-product .related.products .product .woocommerce-loop-product__title {
  color: var(--flt-navy) !important;
}

.single-product .related.products .product .price {
  color: var(--flt-navy) !important;
}

.single-product .related.products .product a {
  color: var(--flt-navy) !important;
}

.single-product .quantity .qty {
  background: #F1F5F9 !important;
  color: var(--flt-navy) !important;
  border: 1px solid #CBD5E1 !important;
}

/* WooCommerce product loop (shop, related, category pages) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
  color: var(--flt-navy) !important;
}

.woocommerce ul.products li.product a {
  color: var(--flt-navy) !important;
}

/* ---------- Floating Cart Button ---------- */
.flt-floating-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--flt-emerald);
  color: var(--flt-white) !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(5,150,105,0.4);
  transition: var(--flt-transition);
  text-decoration: none !important;
}

.flt-floating-cart:hover {
  background: var(--flt-emerald-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(5,150,105,0.5);
}

.flt-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--flt-red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.flt-cart-count:empty,
.flt-cart-count[data-count="0"] {
  display: none;
}

/* ---------- Product Page Trust Signals ---------- */
.flt-product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  background: var(--flt-bg);
  border-radius: var(--flt-radius-sm);
  border: 1px solid var(--flt-border);
}

.flt-product-trust-item {
  font-size: 14px;
  color: var(--flt-slate);
  font-weight: 500;
}

/* ---------- Cart Page Styles ---------- */
.woocommerce-cart,
.woocommerce-cart .woocommerce {
  color: var(--flt-navy) !important;
}

.woocommerce-cart .site-content {
  background: #EAEFF5 !important;
}

.woocommerce-cart .woocommerce-cart-form {
  background: var(--flt-white);
  border-radius: var(--flt-radius);
  border: 1px solid var(--flt-border);
  box-shadow: var(--flt-shadow-md);
  padding: 24px;
  margin-bottom: 24px;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  color: var(--flt-navy) !important;
  border-color: var(--flt-border) !important;
  padding: 16px 12px !important;
  vertical-align: middle !important;
}

.woocommerce-cart table.cart thead,
.woocommerce table.shop_table thead {
  background: var(--flt-bg) !important;
  background-color: var(--flt-bg) !important;
}

.woocommerce-cart table.cart th {
  font-weight: 700 !important;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--flt-slate) !important;
  background: var(--flt-bg) !important;
}

.woocommerce-cart .product-name a {
  color: var(--flt-navy) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.woocommerce-cart .product-name a:hover {
  color: var(--flt-blue) !important;
}

.woocommerce-cart .product-remove a {
  color: var(--flt-red) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.flt-qty-fixed {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--flt-navy);
  text-align: center;
  min-width: 40px;
}

.woocommerce-cart .quantity .qty {
  background: #F1F5F9 !important;
  color: var(--flt-navy) !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--flt-radius-sm) !important;
  width: 60px !important;
  text-align: center !important;
  padding: 8px !important;
}

.woocommerce-cart .cart-collaterals {
  background: var(--flt-white);
  border-radius: var(--flt-radius);
  border: 1px solid var(--flt-border);
  box-shadow: var(--flt-shadow-md);
  padding: 24px;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart_totals > h2,
.cart_totals > h2 {
  color: var(--flt-navy) !important;
  font-size: 1.3em !important;
  font-weight: 700 !important;
  margin: 0 0 16px 0 !important;
  background: none !important;
  background-color: transparent !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid var(--flt-border) !important;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  color: var(--flt-navy) !important;
  border-color: var(--flt-border) !important;
  padding: 14px 0 !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 1.2em !important;
  font-weight: 700 !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--flt-emerald) !important;
  color: var(--flt-white) !important;
  border-radius: var(--flt-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 16px 28px !important;
  display: block !important;
  text-align: center !important;
  width: 100% !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--flt-emerald-dark) !important;
}

.woocommerce-cart .coupon input {
  background: #F1F5F9 !important;
  color: var(--flt-navy) !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--flt-radius-sm) !important;
  padding: 10px 12px !important;
}

.woocommerce-cart .cart-empty {
  color: var(--flt-navy) !important;
  background: var(--flt-white) !important;
  border-radius: var(--flt-radius) !important;
  padding: 40px !important;
  text-align: center;
}

.woocommerce-cart .return-to-shop a {
  background: var(--flt-emerald) !important;
  color: var(--flt-white) !important;
  border-radius: var(--flt-radius-sm) !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
}

/* ---------- WooCommerce Cross-sells (Cart page) ---------- */
.woocommerce-cart .cross-sells {
  background: var(--flt-white) !important;
  border-radius: var(--flt-radius) !important;
  border: 1px solid var(--flt-border) !important;
  box-shadow: var(--flt-shadow-md) !important;
  padding: 24px !important;
  margin-top: 30px !important;
}

.woocommerce-cart .cross-sells > h2,
.cross-sells > h2 {
  color: var(--flt-navy) !important;
  font-size: 1.3em !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  background: none !important;
  background-color: transparent !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--flt-border) !important;
}

.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
  color: var(--flt-navy) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.woocommerce-cart .cross-sells ul.products li.product .price {
  color: var(--flt-navy) !important;
  font-weight: 700 !important;
}

.woocommerce-cart .cross-sells ul.products li.product a {
  color: var(--flt-navy) !important;
}

/* Fix light category text under product images on cart/shop */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .ast-woo-shop-product-categories a {
  color: var(--flt-slate) !important;
  opacity: 1 !important;
}

/* Fix Astra dark background on cross-sells/upsells headings globally */
.cross-sells,
.up-sells {
  background: var(--flt-white) !important;
  border-color: var(--flt-border) !important;
}

/* ---------- WooCommerce Notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  color: var(--flt-navy) !important;
  background: var(--flt-white) !important;
  border-radius: var(--flt-radius-sm) !important;
}

.woocommerce-message {
  border-top-color: var(--flt-emerald) !important;
}

.woocommerce-message a.button {
  background: var(--flt-emerald) !important;
  color: var(--flt-white) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .flt-hero {
    padding: 50px 20px 40px;
  }

  .flt-section {
    padding: 40px 16px;
  }

  .flt-proof-strip {
    gap: 24px;
    padding: 20px 16px;
  }

  .flt-tpl-hero {
    padding: 28px 20px;
  }

  .flt-tpl-content {
    padding: 28px 20px;
  }

  .flt-tpl-preview {
    padding: 20px;
  }

  .flt-grid-3,
  .flt-grid-4 {
    grid-template-columns: 1fr;
  }

  .flt-grid-2 {
    grid-template-columns: 1fr;
  }

  .flt-cta-banner {
    padding: 40px 20px;
    border-radius: 0;
    margin: 40px -20px;
  }

  .flt-pricing {
    margin: 0 auto;
  }

  .flt-testimonials {
    grid-template-columns: 1fr;
  }

  .flt-trust-bar span {
    margin: 2px 8px;
  }
}

@media (max-width: 480px) {
  .flt-hero .flt-hero-proof {
    flex-direction: column;
    gap: 8px;
  }

  .flt-btn-lg {
    padding: 16px 28px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
}

/* ---------- Pricing Grid (multi-tier) ---------- */
.flt-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.flt-pricing-card {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.flt-pricing-card.flt-featured {
  border: 2px solid var(--flt-emerald);
}

/* ---------- Utilities ---------- */
.flt-text-center { text-align: center; }
.flt-mt-0 { margin-top: 0 !important; }
.flt-mb-0 { margin-bottom: 0 !important; }
.flt-mb-sm { margin-bottom: 16px; }
.flt-mb-md { margin-bottom: 32px; }
.flt-mb-lg { margin-bottom: 48px; }
.flt-pt-0 { padding-top: 0 !important; }
.flt-hidden { display: none !important; }

/* Remove Astra default spacing that conflicts */
.ast-page-builder-template .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ---------- Template Preview Section ---------- */
/* -- Template Preview: inline full-size display -- */
.flt-preview-section {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.flt-preview-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--flt-navy);
  margin-bottom: 8px;
}
.flt-preview-note {
  font-size: 0.85rem;
  color: var(--flt-gray);
  margin-bottom: 16px;
}
.flt-preview-wrap {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
}
.flt-preview-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}
.flt-enlarge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--flt-emerald);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.flt-enlarge-btn:hover {
  background: var(--flt-emerald-dark);
}
.flt-enlarge-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Lightbox Modal ---------- */
.flt-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
.flt-lightbox img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  background: white;
  padding: 16px;
  cursor: zoom-out;
}
.flt-lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
  line-height: 1;
  font-weight: 300;
}
.flt-lightbox-close:hover {
  color: #ccc;
}

@media (max-width: 768px) {
  .flt-preview-section {
    padding: 0 16px;
  }
  .flt-lightbox img {
    max-width: 95%;
    padding: 8px;
  }
  .flt-lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

/* ── Prevent phantom scroll overflow ── */
#page { overflow: clip !important; }

/* ── Site Footer ───────────────────────────────── */
.flt-site-footer {
  background: var(--flt-navy);
  color: rgba(255,255,255,0.8);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
}
.flt-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.flt-footer-inner p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.8);
}
.flt-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.flt-footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.flt-footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* ── Hide all review elements ── */
.woocommerce-Reviews,
#tab-reviews,
.woocommerce-review-link,
#reviews,
.comment-form-rating,
li.reviews_tab {
  display: none !important;
}

/* ---------- Header Search Bar ---------- */
.flt-header-search {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 20px 10px;
  background: var(--flt-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.flt-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.flt-search-input {
  width: 100%;
  padding: 9px 42px 9px 16px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  transition: var(--flt-transition);
  -webkit-appearance: none;
  appearance: none;
}

.flt-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.flt-search-input:focus {
  border-color: rgba(255,255,255,0.35) !important;
  background: rgba(255,255,255,0.12) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25) !important;
}

.flt-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 6px 8px !important;
  display: flex;
  align-items: center;
  transition: var(--flt-transition);
}

.flt-search-btn:hover {
  color: #fff;
}

/* Mobile: slightly smaller */
@media (max-width: 768px) {
  .flt-header-search {
    padding: 6px 12px 8px;
  }
  .flt-search-form {
    max-width: 100%;
  }
  .flt-search-input {
    font-size: 13px !important;
    padding: 8px 40px 8px 14px !important;
  }
}

/* ---------- Testimonials ---------- */
.flt-testimonial-card {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--flt-transition);
}
.flt-testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.flt-stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.flt-testimonial-text {
  color: var(--flt-dark);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.flt-testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flt-testimonial-author strong {
  color: var(--flt-navy);
  font-size: 15px;
}
.flt-testimonial-author span {
  color: var(--flt-gray);
  font-size: 13px;
}


/* ---------- Template Preview Grid ---------- */
.flt-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.flt-preview-card {
  background: var(--flt-white);
  border: 1px solid var(--flt-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--flt-transition);
}
.flt-preview-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.flt-preview-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}
.flt-preview-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.flt-preview-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flt-preview-info strong {
  color: var(--flt-navy);
  font-size: 14px;
}
.flt-preview-info span {
  color: var(--flt-gray);
  font-size: 12px;
}

@media (max-width: 900px) {
  .flt-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .flt-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .flt-preview-info {
    padding: 10px 12px;
  }
  .flt-preview-info strong {
    font-size: 13px;
  }
}


/* ---------- Blog Layout ---------- */
.flt-blog-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}
.flt-blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--flt-border);
  flex-wrap: wrap;
}
.flt-blog-cat {
  background: #ECFDF5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.flt-blog-date, .flt-blog-read {
  font-size: 14px;
  color: var(--flt-gray);
}
.flt-blog-content {
  padding: 40px 32px;
}
.flt-blog-content h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--flt-navy) !important;
  margin-top: 36px !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid #ECFDF5;
}
.flt-blog-content h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--flt-navy) !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
}
.flt-blog-content p {
  font-size: 16px;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 16px;
}
.flt-blog-content ul, .flt-blog-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.flt-blog-content li {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}
.flt-blog-content ul li::marker {
  color: var(--flt-emerald);
}
.flt-blog-cta {
  background: linear-gradient(135deg, var(--flt-navy) 0%, #1E293B 100%);
  color: var(--flt-white);
  padding: 40px 32px;
  text-align: center;
  border-radius: var(--flt-radius);
  margin: 40px 0 0;
}
.flt-blog-cta h3 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--flt-white) !important;
  margin-bottom: 12px !important;
}
.flt-blog-cta p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Archive */
.blog .ast-article-post,
.archive .ast-article-post {
  background: var(--flt-white) !important;
  border: 1px solid var(--flt-border) !important;
  border-radius: var(--flt-radius) !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  transition: var(--flt-transition);
}
.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
  border-color: var(--flt-emerald);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.blog .entry-title a,
.archive .entry-title a {
  color: var(--flt-navy) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--flt-emerald) !important;
}
.blog .entry-meta, .archive .entry-meta {
  color: var(--flt-gray) !important;
  font-size: 14px;
}

@media (max-width: 768px) {
  .flt-blog-content { padding: 28px 20px; }
  .flt-blog-meta { padding: 16px 20px; }
  .flt-blog-cta { padding: 32px 20px; }
}

/* ---------- Thank-You Page Upsell ---------- */
.flt-thankyou-upsell {
  max-width: 700px;
  margin: 30px auto;
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius);
  overflow: hidden;
  background: var(--flt-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.flt-thankyou-header {
  text-align: center;
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--flt-border);
}
.flt-thankyou-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #ECFDF5;
  color: var(--flt-emerald);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.flt-thankyou-header h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--flt-navy) !important;
  margin: 0 0 8px !important;
}
.flt-thankyou-header p {
  color: var(--flt-gray);
  font-size: 15px;
  margin: 0;
}
.flt-thankyou-upgrade {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, var(--flt-bg) 0%, var(--flt-white) 100%);
}
.flt-thankyou-upgrade h3 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--flt-navy) !important;
  margin: 8px 0 12px !important;
}
.flt-thankyou-upgrade > p {
  color: #475569;
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.flt-thankyou-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.flt-thankyou-stats div {
  text-align: center;
}
.flt-thankyou-stats strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--flt-navy);
}
.flt-thankyou-stats span {
  font-size: 13px;
  color: var(--flt-gray);
}
@media (max-width: 480px) {
  .flt-thankyou-stats { gap: 20px; }
  .flt-thankyou-upgrade { padding: 24px 16px; }
  .flt-thankyou-header { padding: 24px 16px 20px; }
}
/* ---------- Hide Astra Default Footer (duplicate) ---------- */
footer.site-footer#colophon {
  display: none !important;
}

/* ============================================================
   FLT Competitive Comparison Section
   ============================================================ */
.flt-comparison-section {
  background-color: #0F172A !important;
  padding: 60px 32px;
  color: #ffffff !important;
  box-sizing: border-box;
  border-radius: 16px;
  margin: 40px 0;
}
.flt-comparison-section *, .flt-comparison-section *::before, .flt-comparison-section *::after { box-sizing: border-box; }
.flt-comp-container { max-width: 1100px; margin: 0 auto; }
.flt-comp-eyebrow {
  display: inline-block;
  background: rgba(16,185,129,0.12);
  color: var(--flt-emerald, #10b981);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.35);
  margin-bottom: 20px;
}
.flt-comp-headline {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  line-height: 1.15; margin: 0 0 16px 0; color: var(--flt-white, #fff);
}
.flt-comp-headline span { color: var(--flt-emerald, #10b981); }
.flt-comp-subhead {
  font-size: 18px; line-height: 1.6; color: #cbd5e1;
  max-width: 640px; margin: 0 0 56px 0;
}
/* Cost callout strip */
.flt-cost-strip {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px; margin-bottom: 48px;
}
.flt-cost-card {
  background: #131e33; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 28px 20px; text-align: center;
  overflow: visible; min-width: 0;
}
.flt-cost-card--ours {
  border-color: rgba(16,185,129,0.35);
  background: linear-gradient(135deg, rgba(16,185,129,0.07) 0%, #131e33 100%);
  position: relative; overflow: hidden;
}
.flt-cost-card--ours::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #059669, #10b981);
}
.flt-cost-card--theirs {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
}
.flt-cost-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #b0bec9; margin-bottom: 10px;
  word-wrap: break-word; overflow-wrap: break-word;
}
.flt-cost-card--ours .flt-cost-label { color: var(--flt-emerald, #10b981); }
.flt-cost-card--theirs .flt-cost-label { color: #f87171; }
.flt-cost-amount {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1; margin: 0 0 6px 0;
}
.flt-cost-card--ours .flt-cost-amount { color: var(--flt-emerald, #10b981); }
.flt-cost-card--theirs .flt-cost-amount { color: #f87171; }
.flt-cost-period { font-size: 13px; color: #cbd5e1; line-height: 1.4; }
.flt-cost-vs {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--flt-gray, #94a3b8); text-align: center;
}
/* Comparison table */
.flt-table-wrap {
  overflow-x: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 48px; -webkit-overflow-scrolling: touch;
}
.flt-comp-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #131e33; }
.flt-comp-table thead tr { background: #0a1020; }
.flt-comp-table thead th {
  padding: 20px 24px; text-align: left; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--flt-gray, #94a3b8); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.flt-comp-table thead th.flt-col-ours {
  background: rgba(16,185,129,0.06); color: var(--flt-emerald, #10b981); position: relative;
}
.flt-comp-table thead th.flt-col-ours::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #059669, #10b981);
}
.flt-comp-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.08); transition: background 0.15s ease;
}
.flt-comp-table tbody tr:last-child { border-bottom: none; }
.flt-comp-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.flt-comp-table tbody tr.flt-row-highlight { background: rgba(16,185,129,0.04); }
.flt-comp-table tbody tr.flt-row-highlight:hover { background: rgba(16,185,129,0.07); }
.flt-comp-table tbody td {
  padding: 18px 24px; font-size: 15px; color: #cbd5e1; vertical-align: middle;
}
.flt-comp-table tbody td:first-child { color: var(--flt-white, #fff); font-weight: 500; font-size: 14px; }
.flt-comp-table td.flt-col-ours {
  background: rgba(16,185,129,0.05); color: var(--flt-white, #fff); font-weight: 600;
}
.flt-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 100px;
}
.flt-badge--good {
  background: rgba(16,185,129,0.15); color: var(--flt-emerald, #10b981);
  border: 1px solid rgba(16,185,129,0.35);
}
.flt-badge--bad {
  background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2);
}
.flt-row-label-sub {
  display: block; font-size: 12px; font-weight: 400;
  color: #b0bec9 !important; margin-top: 3px;
}
.flt-row-total td { padding-top: 22px; padding-bottom: 22px; }
.flt-row-total td:first-child { font-weight: 700; font-size: 15px; }
.flt-total-ours { color: var(--flt-emerald, #10b981) !important; font-size: 20px !important; font-weight: 800 !important; }
.flt-total-theirs { color: #f87171 !important; font-size: 20px !important; font-weight: 800 !important; }
.flt-total-sub { display: block; font-size: 11px; font-weight: 400; color: #b0bec9; margin-top: 3px; }
/* Savings callout */
.flt-savings-callout {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.03) 100%);
  border: 1px solid rgba(16,185,129,0.35); border-radius: 14px;
  padding: 28px 32px; margin-bottom: 48px;
}
.flt-savings-icon { font-size: 40px; flex-shrink: 0; line-height: 1; }
.flt-savings-body strong { display: block; font-size: 22px; font-weight: 800; color: var(--flt-white, #fff); line-height: 1.2; margin-bottom: 6px; }
.flt-savings-body p { font-size: 15px; color: #cbd5e1; margin: 0; line-height: 1.5; }
.flt-savings-body em { color: var(--flt-emerald, #10b981); font-style: normal; font-weight: 600; }
/* Feature checklist grid */
.flt-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 56px; }
.flt-feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #131e33; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px 20px;
}
.flt-feature-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.35);
  color: var(--flt-emerald, #10b981); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.flt-feature-text { font-size: 14px; color: #cbd5e1; line-height: 1.5; }
.flt-feature-text strong { display: block; color: var(--flt-white, #fff); font-weight: 600; margin-bottom: 2px; }
/* CTA block */
.flt-comp-cta {
  text-align: center; background: #0a1020;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 48px 40px; position: relative; overflow: hidden;
}
.flt-comp-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--flt-blue, #0085FF), var(--flt-emerald, #10b981));
}
.flt-cta-headline {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 800;
  color: var(--flt-white, #fff); margin: 0 0 12px 0; line-height: 1.2;
}
.flt-cta-headline span { color: var(--flt-emerald, #10b981); }
.flt-cta-sub {
  font-size: 16px; color: #cbd5e1;
  margin: 0 auto 32px auto; max-width: 480px; line-height: 1.6;
}
.flt-cta-buttons { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.flt-comp-cta .flt-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff; font-size: 16px; font-weight: 700;
  padding: 16px 36px; border-radius: 8px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}
.flt-comp-cta .flt-btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,0.4);
  color: #ffffff; text-decoration: none;
}
.flt-comp-cta .flt-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--flt-gray, #94a3b8);
  font-size: 15px; font-weight: 600; padding: 16px 28px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease;
}
.flt-comp-cta .flt-btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--flt-white, #fff); text-decoration: none; }
.flt-cta-reassurance { font-size: 13px; color: #b0bec9; opacity: 1; }
.flt-cta-reassurance span { margin: 0 10px; opacity: 0.4; }
/* Responsive */
@media (max-width: 768px) {
  .flt-comparison-section { padding: 56px 16px; }
  .flt-cost-strip { grid-template-columns: 1fr; gap: 8px; }
  .flt-cost-vs { text-align: center; padding: 4px 0; }
  .flt-cost-card--ours { order: -1; }
  .flt-feature-grid { grid-template-columns: 1fr; }
  .flt-savings-callout { flex-direction: column; text-align: center; padding: 24px 20px; }
  .flt-comp-cta { padding: 36px 20px; }
  .flt-cta-buttons { flex-direction: column; align-items: stretch; }
  .flt-comp-cta .flt-btn-primary, .flt-comp-cta .flt-btn-secondary { justify-content: center; text-align: center; }
}

/* Fix WordPress wpautop breaking comparison section */
.flt-comparison-section p { color: #cbd5e1; }
.flt-comparison-section .flt-comp-subhead { color: #cbd5e1 !important; }
.flt-comparison-section .flt-cost-period { font-size: 13px; color: #94a3b8; line-height: 1.5; }
.flt-comparison-section .flt-cost-period strong { display: inline; }
.flt-comparison-section .flt-comp-headline { color: #ffffff !important; }
.flt-comparison-section .flt-comp-eyebrow { color: #10b981 !important; }
.flt-comparison-section .flt-savings-body strong { color: #ffffff !important; }
.flt-comparison-section .flt-feature-text strong { color: #ffffff !important; }
.flt-comparison-section .flt-cta-headline { color: #ffffff !important; }
.flt-comparison-section .flt-cta-headline span { color: #10b981 !important; }
/* Ensure table text visible on dark background */
.flt-comp-table thead th { color: #94a3b8 !important; background: #0a1020; }
.flt-comp-table thead th.flt-col-ours { color: #10b981 !important; background: rgba(16,185,129,0.06); }
.flt-comp-table tbody td { color: #cbd5e1 !important; }
.flt-comp-table tbody td:first-child { color: #ffffff !important; }
.flt-comp-table td.flt-col-ours { color: #ffffff !important; }
.flt-comp-table { background: #131e33 !important; }
.flt-table-wrap { border-color: rgba(255,255,255,0.08) !important; background: #131e33; }
.flt-feature-item { background: #131e33 !important; border-color: rgba(255,255,255,0.08) !important; }
.flt-feature-text { color: #cbd5e1 !important; }
.flt-comp-cta { background: #0a1020 !important; border-color: rgba(255,255,255,0.08) !important; }
.flt-cta-sub { color: #cbd5e1 !important; }
.flt-cta-reassurance { color: #b0bec9 !important; }

/* ── FORCE light text in comparison section ── */
.flt-comparison-section,
.flt-comparison-section p,
.flt-comparison-section span,
.flt-comparison-section td,
.flt-comparison-section th,
.flt-comparison-section div {
  color: #e2e8f0 !important;
}
.flt-comparison-section .flt-row-label-sub,
.flt-comparison-section .flt-total-sub,
.flt-comparison-section .flt-cost-period,
.flt-comparison-section .flt-cost-label,
.flt-comparison-section .flt-cta-reassurance {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}
.flt-comparison-section .flt-comp-headline,
.flt-comparison-section .flt-savings-body strong,
.flt-comparison-section .flt-feature-text strong,
.flt-comparison-section .flt-cta-headline,
.flt-comparison-section h2,
.flt-comparison-section h3,
.flt-comparison-section strong {
  color: #ffffff !important;
}
.flt-comparison-section .flt-comp-headline span,
.flt-comparison-section .flt-cta-headline span,
.flt-comparison-section .flt-savings-body em {
  color: #10b981 !important;
}
.flt-comparison-section .flt-badge--good { color: #10b981 !important; }
.flt-comparison-section .flt-badge--bad { color: #f87171 !important; }
.flt-comparison-section .flt-total-ours { color: #10b981 !important; }
.flt-comparison-section .flt-total-theirs { color: #f87171 !important; }
.flt-comparison-section .flt-cost-card--ours .flt-cost-amount { color: #10b981 !important; }
.flt-comparison-section .flt-cost-card--ours .flt-cost-label { color: #34d399 !important; }
.flt-comparison-section .flt-cost-card--theirs .flt-cost-amount { color: #f87171 !important; }
.flt-comparison-section .flt-cost-card--theirs .flt-cost-label { color: #fca5a5 !important; }

/* Fix pricing card buttons - keep text on one line */
.flt-pricing .flt-btn {
  white-space: nowrap;
  padding: 14px 24px;
  font-size: 15px;
}

/* Fix: Force product gallery visible (WC flexslider JS may be deferred) */
.woocommerce-product-gallery {
  opacity: 1 !important;
}

/* ==========================================================================
   2026-08-04 DESIGN OVERHAUL (Phase A) — rollback: delete this block and
   restore --flt-emerald/#059669 + --flt-emerald-dark/#047857 above.
   ========================================================================== */

/* -- (2) Tap targets >= 44px -------------------------------------------- */
.ast-header-break-point .ast-button-wrap .menu-toggle {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.astra-shop-thumbnail-wrap .ast-on-card-button,
a.add_to_cart_button.ast-on-card-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers,
.woocommerce-pagination .page-numbers li > .page-numbers {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.flt-footer-links {
  gap: 4px 16px;
}
.flt-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}

/* -- (3) Product page hierarchy ----------------------------------------- */
.single-product h1.product_title,
.single-product .product_title.entry-title {
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}
.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.single-product form.cart .quantity {
  flex: 0 0 auto;
}
.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 100%;
  width: 100% !important;
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 16px 28px !important;
  min-height: 52px;
  text-align: center;
}
/* Express-pay (Apple Pay / Google Pay) stays BELOW Add to cart and is
   visually secondary — do not touch its internals. */
.single-product .wc-stripe-payment-request-wrapper,
.single-product #wc-stripe-payment-request-wrapper {
  margin-top: 4px;
}

/* -- (4) One action color: underline leak in dark bands ----------------- */
.flt-comp-cta a.flt-btn-primary,
.flt-comp-cta a.flt-btn-secondary,
.flt-cta-banner a.flt-btn,
.flt-hero a.flt-btn {
  text-decoration: none !important;
}

/* -- (5) Line icons replacing emoji ------------------------------------- */
.flt-ic {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.flt-cat-icon,
.flt-feature-icon,
.flt-guarantee-icon,
.flt-savings-icon {
  color: var(--flt-navy);
  line-height: 1;
}
.flt-cat-icon .flt-ic { width: 30px; height: 30px; }
.flt-feature-icon .flt-ic { width: 40px; height: 40px; }
.flt-guarantee-icon .flt-ic { width: 40px; height: 40px; }
.flt-comparison-section .flt-savings-icon { color: #e2e8f0; }
.flt-savings-icon .flt-ic { width: 36px; height: 36px; }
/* Hide the WooCommerce emoji zoom trigger on product galleries */
.woocommerce-product-gallery__trigger { display: none !important; }

/* -- (6) About page: readable centered column --------------------------- */
.page-id-3643 .entry-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 48px !important;
}
.page-id-3643 .entry-content p {
  line-height: 1.7;
  font-size: 16px;
}
.page-id-3643 .flt-page-h1 {
  text-align: left;
  max-width: 680px;
  margin: 36px auto 10px;
  padding: 0 24px;
}

/* -- (7) Writing Guides cards: hide stale dates ------------------------- */
.blog .entry-meta .posted-on,
.archive .entry-meta .posted-on,
.blog .entry-meta .ast-date-meta,
.archive .entry-meta .ast-date-meta {
  display: none !important;
}

/* -- (8) Product card baseline alignment -------------------------------- */
.woocommerce ul.products li.product {
  display: flex !important;
  flex-direction: column;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap > a.button,
.woocommerce ul.products li.product .astra-shop-summary-wrap > .button {
  margin-top: auto !important;
  align-self: flex-start;
}

/* -- (9) Checkout: single centered column, no dead quadrant ------------- */
.woocommerce-checkout .col2-set {
  float: none !important;
  width: 100% !important;
  max-width: 660px;
  margin: 0 auto 24px !important;
}
.woocommerce-checkout form.woocommerce-checkout #order_review_heading,
.woocommerce-checkout form.woocommerce-checkout #order_review {
  float: none !important;
  width: 100% !important;
  max-width: 660px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.woocommerce-checkout .flt-edit-cart {
  max-width: 660px;
  margin: 0 auto;
}
.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message {
  max-width: 660px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* -- (10) Homepage dead band between header and hero -------------------- */
.home .content-area.primary,
.home .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.flt-hero {
  padding-top: 52px;
}

/* -- (12) Mobile text floors + mobile tap/typography -------------------- */
@media (max-width: 768px) {
  body {
    font-size: 16px !important;
  }
  .single-product h1.product_title,
  .single-product .product_title.entry-title {
    font-size: 24px !important;
  }
  .woocommerce-product-details__short-description,
  .woocommerce-product-details__short-description p {
    font-size: 15px !important;
  }
  .flt-product-trust-item { font-size: 14px; }
  .woocommerce-cart table.cart td,
  .woocommerce-cart .product-name,
  .woocommerce ul.products li.product .ast-woo-product-category,
  .woocommerce ul.products li.product .posted_in {
    font-size: 14px !important;
  }
  .flt-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .flt-footer-links a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
}

/* ==========================================================================
   2026-08-04 DESIGN OVERHAUL (Phase B) — homepage category restructure
   ========================================================================== */
.flt-popular-grid {
  max-width: 1180px;
  gap: 18px;
}
.flt-popular-grid .flt-cat-card {
  padding: 24px 22px;
}
.flt-popular-grid .flt-cat-card h3 {
  font-size: 18px !important;
}
.flt-popular-grid .flt-cat-card p {
  font-size: 14px;
  line-height: 1.55;
}
.flt-cat-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.flt-cat-search input[type="search"] {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius-sm);
  background: var(--flt-bg);
  color: var(--flt-navy);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}
.flt-cat-search input[type="search"]:focus {
  outline: none;
  border-color: var(--flt-emerald);
  box-shadow: 0 0 0 3px rgba(4,120,87,0.15);
}
.flt-cat-search .flt-btn {
  padding: 10px 26px;
  font-size: 16px;
  min-height: 48px;
}
.flt-browse-all {
  text-align: center;
  margin: 32px 0 8px;
}
.flt-all-cats {
  max-width: 1180px;
  margin: 18px auto 0;
  border: 1px solid var(--flt-border);
  border-radius: var(--flt-radius-sm);
  background: var(--flt-bg);
}
.flt-all-cats summary {
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--flt-slate);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.flt-all-cats summary::-webkit-details-marker { display: none; }
.flt-all-cats summary::before {
  content: '+';
  margin-right: 10px;
  font-size: 18px;
  color: var(--flt-emerald);
  font-weight: 700;
}
.flt-all-cats[open] summary::before { content: '\2212'; }
.flt-all-cats-list {
  columns: 3;
  column-gap: 24px;
  list-style: none;
  margin: 0 !important;
  padding: 4px 20px 18px !important;
}
.flt-all-cats-list li {
  break-inside: avoid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flt-all-cats-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--flt-slate);
  text-decoration: none;
}
.flt-all-cats-list a:hover {
  color: var(--flt-emerald);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .flt-popular-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .flt-all-cats-list { columns: 2; }
}
@media (max-width: 640px) {
  .flt-popular-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .flt-popular-grid .flt-cat-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 2px 12px;
    padding: 12px 16px;
  }
  .flt-popular-grid .flt-cat-card p { display: none; }
  .flt-popular-grid .flt-cat-card h3 { margin: 0 !important; font-size: 16px !important; }
  .flt-popular-grid .flt-cat-icon { margin: 0; }
  .flt-popular-grid .flt-cat-count { white-space: nowrap; font-size: 12px; }
  .flt-all-cats-list { columns: 1; }
  .flt-cat-search { flex-direction: row; margin-bottom: 24px; }
  .flt-cat-search .flt-btn { padding: 10px 18px; font-size: 15px; }
}

/* ==========================================================================
   2026-08-05 CONTRAST + PALETTE PASS (Phase C)
   Rollback: delete this whole block, restore page 52 from
   ~/flt-backups/contrast-20260805/page52-content-BEFORE.html, and set
   flt-redesign.php enqueue version back to 4.0.0.
   All colors below verified WCAG AA (normal >=4.5:1, large >=3:1).
   ========================================================================== */

/* -- C1. Accessible link blue: #0085FF (3.6:1) -> #0A66C2 (5.7:1 white) --- */
.entry-content p a:not(.flt-btn):not(.button),
.entry-content ul a:not(.flt-btn):not(.button),
.flt-blog-content a,
.woocommerce-Tabs-panel a,
#tab-description a,
.flt-template-disclaimer a,
.single-product .product_meta a,
span.single-product-category a,
.flt-guarantee p a,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers {
  color: #0A66C2 !important;
}
.entry-content p a:not(.flt-btn):not(.button):hover,
.flt-blog-content a:hover,
.woocommerce-Tabs-panel a:hover,
#tab-description a:hover {
  color: #075EB8 !important;
  text-decoration: underline;
}
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current {
  background: #0A66C2 !important;
  color: #FFFFFF !important;
}

/* -- C2. Product-loop buy buttons: navy-on-emerald (3.3:1) -> white ------- */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product .astra-shop-summary-wrap a.button {
  color: #FFFFFF !important;
}

/* -- C3. Trust-bar check: #047857 on navy (2.7:1) -> #34D399 (7.6:1) ------ */
.flt-trust-bar .flt-check { color: #34D399; }

/* -- C4. Overlines: dark-band -> light emerald; light-band -> deep teal --- */
.flt-hero .flt-overline,
.flt-cta-banner .flt-overline { color: #34D399; }
.flt-section .flt-overline,
.flt-section-header .flt-overline { color: #0F766E; }

/* -- C5. Email-capture fine print: #94A3B8 (2.5:1) -> #64748B (4.6:1) ----- */
.flt-email-capture .flt-capture-form p,
.flt-capture-form p { color: #64748B !important; }

/* -- C6. Light-surface placeholders: #9CA3AF (2.5:1) -> #6B7280 (4.8:1) --- */
.entry-content input::placeholder,
.entry-content textarea::placeholder,
.flt-cat-search input::placeholder,
.flt-capture-form input::placeholder { color: #6B7280 !important; }

/* -- C7. Outline button on LIGHT bands (was white-on-white, 1.05:1) ------- */
.flt-btn-outline-light {
  color: #047857 !important;
  border-color: #047857 !important;
}
.flt-btn-outline-light:hover {
  color: #065F46 !important;
  border-color: #065F46 !important;
  background: rgba(4,120,87,0.08) !important;
}

/* -- C8. Breadcrumbs: #777 (4.1:1) -> #5B6470 (5.5:1) --------------------- */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-breadcrumb a { color: #5B6470 !important; }

/* ---------- P. PALETTE ELEVATION (brand blue #0085FF + teal #128188) ----- */

/* -- P1. Hero + dark bands: flat navy -> deep navy->blue-teal gradient ---- */
.flt-hero {
  background: linear-gradient(135deg, #0F172A 0%, #132A46 45%, #0E4A5C 100%);
}
.flt-hero::before {
  background: radial-gradient(ellipse at 22% 0%, rgba(18,129,136,0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 82% 100%, rgba(0,133,255,0.16) 0%, transparent 55%);
}
.flt-cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #16304D 55%, #0E4A5C 100%);
}
.flt-blog-cta {
  background: linear-gradient(135deg, #0F172A 0%, #16304D 60%, #0E4A5C 100%);
}

/* -- P2. Primary CTA: flat emerald -> confident green->teal gradient ------ */
.flt-btn-primary {
  background: linear-gradient(135deg, #047857 0%, #0E7F7A 100%) !important;
  box-shadow: 0 4px 16px rgba(14,127,122,0.40);
}
.flt-btn-primary:hover {
  background: linear-gradient(135deg, #065F46 0%, #0C6B67 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,127,122,0.50);
}

/* -- P3. Accent system: brand teal as the "alive" color ------------------- */
.flt-section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #0A66C2, #128188);
}
.flt-proof-num {
  background: linear-gradient(120deg, #0A66C2, #0F766E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0A66C2; /* fallback */
}
.flt-cat-card, .flt-card, .flt-tpl-card, .flt-preview-card { position: relative; overflow: hidden; }
.flt-cat-card::after, .flt-card::after, .flt-tpl-card::after, .flt-preview-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0085FF, #128188);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.flt-cat-card:hover::after, .flt-card:hover::after,
.flt-tpl-card:hover::after, .flt-preview-card:hover::after { opacity: 1; }
.flt-cat-card:hover, .flt-card:hover, .flt-tpl-card:hover { border-color: #128188; }
.flt-card-icon { background: #E0F2F1; color: #0F766E; }
.flt-cat-count { color: #0F766E; }
.flt-faq details[open] { border-color: #128188; }
.flt-faq details[open] summary::after { color: #0F766E; }
.flt-all-cats summary::before { color: #0F766E; }
.flt-all-cats-list a:hover { color: #0F766E; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: #0F766E !important; }

/* -- P4. Section rhythm on homepage: soft tinted panels ------------------- */
.home .entry-content > .flt-section:not([style]):not(.flt-fullwidth) {
  background: #F2F7FB;
  border-radius: 16px;
}

/* -- P5. Warm amber, VALUE moments only ----------------------------------- */
.flt-pricing-badge { background: #F0A500; color: #0F172A; }
.flt-comparison-section .flt-savings-body em { color: #FBBF24 !important; }
.flt-hero-value-pop { color: #FBBF24; font-weight: 600; }

/* -- C9. Dark-band inline links: keep light (C1 must not leak here) ------- */
.entry-content .flt-cta-banner p a:not(.flt-btn):not(.button),
.entry-content .flt-hero p a:not(.flt-btn):not(.button),
.entry-content .flt-comparison-section p a:not(.flt-btn):not(.button),
.entry-content .flt-blog-cta p a:not(.flt-btn):not(.button) {
  color: #7CC0FF !important;
  text-decoration: underline;
}
.entry-content .flt-cta-banner p a:not(.flt-btn):not(.button):hover,
.entry-content .flt-hero p a:not(.flt-btn):not(.button):hover { color: #A8D4FF !important; }

/* -- C10. Product price-anchor caption: 4.36:1 -> 5.2:1 ------------------- */
.flt-price-anchor, .flt-price-anchor span { color: #5B6470 !important; }

/* ==========================================================================
   2026-08-05 ICON + CARD TACTILITY PASS (Phase D)
   Page 52: all remaining emoji (category grid, Why Choose Us, savings
   callout, guarantee) replaced with Lucide inline SVG (.flt-ic).
   Category cards get resting depth + teal accent + icon chip.
   Rollback: delete this block, restore page 52 from
   ~/flt-backups/iconfix-20260805/page52-content-BEFORE.html, and set
   flt-redesign.php enqueue version back to 4.1.2.
   ========================================================================== */

/* Icon chip: soft teal-tinted rounded square, single-tint brand teal */
.flt-cat-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E7F2F3;
  color: #128188;
  border-radius: 12px;
  margin-bottom: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.flt-cat-icon .flt-ic { width: 24px; height: 24px; }

/* Tactile cards: subtle resting shadow + always-on teal top accent */
.flt-cat-card {
  box-shadow: 0 1px 2px rgba(15,23,42,0.05), 0 4px 12px rgba(15,23,42,0.05);
}
.flt-cat-card::after { opacity: 1; background: #128188; }
.flt-cat-card:hover::after { background: linear-gradient(90deg, #0085FF, #128188); }
.flt-cat-card:hover {
  box-shadow: 0 10px 24px rgba(18,129,136,0.18), 0 3px 8px rgba(15,23,42,0.08);
}
.flt-cat-card:hover .flt-cat-icon { background: #128188; color: #fff; }

/* Mobile compact rows: chip fits the 42px icon column */
@media (max-width: 640px) {
  .flt-popular-grid .flt-cat-icon { width: 38px; height: 38px; border-radius: 10px; }
  .flt-popular-grid .flt-cat-icon .flt-ic { width: 20px; height: 20px; }
}
