/* BFF custom overrides for the static lift. */

/* Framer Motion scroll-reveal elements are stuck at their initial hidden state
   (opacity:0 + translateY) because the app JS doesn't run in the lifted theme.
   Force them visible. Targets only the motion pattern, not the decorative
   opacity:0.6 particle dots. */
/* WooCommerce's `.woocommerce img{height:auto}` out-specifies Tailwind .h-8 and blows up
   the nav/footer brand logo on shop/product/cart pages. Constrain it back. */
.fixed.top-0 a[href="/"] img,
.woocommerce .fixed.top-0 a[href="/"] img,
footer a[href="/"] img,
.woocommerce footer a[href="/"] img { height: 2rem !important; width: auto !important; max-width: none !important; }

/* Same WooCommerce img{height:auto} override shrinks product images inside aspect-square
   containers so the vial doesn't fill. Force fill. */
.aspect-square img { width: 100% !important; height: 100% !important; object-fit: cover !important; max-width: none !important; }

/* Product page: the gap-10 between image + details columns wasn't applying (columns flush,
   title crowded the image). Force a clean gap. */
.bff-atc > .grid { gap: 3rem !important; }
@media (min-width: 1024px) { .bff-atc > .grid { column-gap: 3.5rem !important; } }

/* Homepage hero: pull content up to reduce the gap under "Premium AMO Research". */
.hero-gradient .flex-1.justify-center { justify-content: flex-start !important; padding-top: 1.5rem !important; }

/* Cart + checkout: clear the fixed nav + brand container */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce,
.woocommerce-cart #main, .woocommerce-checkout #main,
.woocommerce-order-received #main { padding-top: 6rem; max-width: 1100px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* Crypto coin selector */
.bff-coins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.bff-coin { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; cursor: pointer; font-size: 13px; transition: border-color .15s; }
.bff-coin:hover { border-color: var(--primary, #14b8a6); }
.bff-coin input { accent-color: #14b8a6; }
.bff-coin-sym { margin-left: auto; font-family: monospace; font-size: 11px; color: #64748b; }
.bff-pay-instructions { background: #f7f9fb; border: 1px solid #e3e9ef; padding: 20px 24px; border-radius: 10px; margin-top: 18px; }
.bff-wallet { margin-top: 12px; padding: 12px; background: #eef3f7; border-radius: 8px; }
.bff-wallet-label { display:block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color:#64748b; margin-bottom:4px; }
.bff-wallet code { word-break: break-all; font-size: 13px; }
.woocommerce #payment .payment_methods li img { display:inline; }

/* Brand-teal WooCommerce buttons */
.woocommerce #place_order, .woocommerce button.button, .woocommerce a.button,
.woocommerce .button, .woocommerce input.button {
  background: rgb(36,157,168) !important; color: #fff !important; border-radius: 6px !important; }
.woocommerce #place_order:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  background: rgb(28,132,142) !important; }

/* Cart count badge */
.bff-cart-count { position: absolute; top: -8px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px;
  background: rgb(36,157,168); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1; }

/* Toast */
.bff-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgb(36,157,168); color: #fff; padding: 12px 22px; border-radius: 8px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; transition: all .3s; z-index: 9999; }
.bff-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Featured carousel */
.bff-carousel { position: relative; margin-top: 2.5rem; }
.bff-carousel-viewport { overflow: hidden; padding: 20px 0; }
.bff-carousel-track { display: flex; gap: 24px; transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.bff-slide { flex: 0 0 320px; max-width: 320px; opacity: .5; transform: scale(.9); transition: all .4s; }
.bff-slide.is-active { opacity: 1; transform: scale(1); }
.bff-slide .bff-featured-badge, .bff-slide .bff-fcta { opacity: 0; transition: opacity .3s; }
.bff-slide.is-active .bff-featured-badge, .bff-slide.is-active .bff-fcta { opacity: 1; }
.bff-slide.is-active .bff-fcard { border: 2px solid rgb(36,157,168); box-shadow: 0 20px 50px rgba(30,140,145,.18); }
.bff-carousel-prev, .bff-carousel-next { position: absolute; top: 45%; width: 44px; height: 44px; border-radius: 999px;
  background: rgb(36,157,168); color: #fff; border: 0; cursor: pointer; z-index: 5; font-size: 18px; }
.bff-carousel-prev { left: -8px; } .bff-carousel-next { right: -8px; }
.bff-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.bff-dot { width: 8px; height: 8px; border-radius: 999px; background: #cbd5e1; border: 0; cursor: pointer; padding: 0; transition: all .2s; }
.bff-dot.is-active { width: 26px; background: rgb(36,157,168); }
@media (max-width: 640px){ .bff-slide{ flex-basis: 78vw; max-width: 78vw; } }

/* Checkout wizard */
.bff-checkout .bff-f:focus { outline: none; border-color: rgb(36,157,168); }
.bff-checkout .hidden { display: none; }

/* Thank-you / order-received page — match BFF style */
.woocommerce-order { font-size: 14px; }
.woocommerce-thankyou-order-received { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.woocommerce-order-overview.woocommerce-thankyou-order-details { list-style: none; display: flex; flex-wrap: wrap; gap: 2.5rem; padding: 1.25rem 1.75rem; margin: 0 0 2rem; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: #fff; }
.woocommerce-order-overview li { border: 0 !important; font-family: monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.woocommerce-order-overview li strong { display: block; font-size: 15px; text-transform: none; letter-spacing: 0; color: inherit; font-family: 'DM Sans', sans-serif; margin-top: 4px; }
.woocommerce-order h2, .woocommerce-column__title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin: 2rem 0 1rem; }
.woocommerce-table--order-details, .woocommerce-order table.shop_table { border: 1px solid rgba(0,0,0,.08) !important; border-radius: 12px !important; overflow: hidden; border-collapse: separate !important; }
.woocommerce-order table.shop_table th { background: #f7f9fb; font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.woocommerce-order table.shop_table td, .woocommerce-order table.shop_table th { padding: 14px 18px; }
.woocommerce-customer-details address { border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 1rem 1.25rem; font-style: normal; }
.woocommerce-order .bff-pay-instructions { border: 1px solid rgba(36,157,168,.28); background: rgba(36,157,168,.05); border-radius: 14px; padding: 24px 28px; }
.bff-pay-instructions h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; margin-bottom: .6rem; }
.bff-wallet { background: #fff; border: 1px solid rgba(36,157,168,.2); }

/* FAQ native <details> accordion */
.bff-faq-item summary { list-style: none; }
.bff-faq-item summary::-webkit-details-marker { display: none; }
.bff-faq-item[open] .bff-chev { transform: rotate(180deg); }

/* Fixed nav (h-16) overlaps content on non-home pages — clear it. */
body:not(.home) #main,
body:not(.home).woocommerce .content-area,
body:not(.home) main { padding-top: 6rem; }
.woocommerce ul.products li.product { text-align: center; }

[style*="opacity: 0; transform: translate"],
[style*="opacity:0;transform:translate"],
[style*="opacity: 0; transform: scale"],
[style*="opacity:0;transform:scale"] {
	opacity: 1 !important;
	transform: none !important;
}

/* Homepage SEO content block (editable page injected before Featured Compounds) */
.bff-seo .bff-seo-eyebrow { text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary, rgb(36,157,168)); margin: 0 0 .9rem; }
.bff-seo h2 { text-align: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--foreground, #1f2a2e); margin: 0 0 1.6rem; }
.bff-seo p { font-family: 'DM Sans', sans-serif; color: var(--muted-foreground, #5b6b70); font-size: 1.02rem; line-height: 1.85; margin: 0 0 1.15rem; }
.bff-seo p:last-child { margin-bottom: 0; }
.bff-seo a { color: var(--primary, rgb(36,157,168)); font-weight: 600; }
.bff-seo ul { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.bff-seo li { font-family: 'DM Sans', sans-serif; color: var(--muted-foreground, #5b6b70); line-height: 1.8; }
.bff-seo strong { color: var(--foreground, #1f2a2e); }

/* ==================================================================
   Forest-green rebrand + homepage/blog/page polish  (2026-08)
   ================================================================== */
:root{ --primary: 138 55% 34%; --primary-foreground: 0 0% 100%; }

.gradient-text{ background:linear-gradient(120deg,#14532d,#1f9d4a 55%,#3fbf5f)!important; -webkit-background-clip:text!important; background-clip:text!important; -webkit-text-fill-color:transparent!important; color:transparent!important; }
.hero-gradient{ background:linear-gradient(160deg,#dff2e0,#e9f5e2 35%,#eef6e3,#f2f7e6)!important; }

/* ---- Hero banner (art-directed: landscape desktop / portrait mobile, natural fit, no crop) ---- */
.bff-hero-banner{ position:relative; overflow:hidden; background:#eaf4e6; line-height:0; }
.bff-hero-banner picture{ display:block; }
.bff-hero-banner .bff-hero-img{ display:block; width:100%; height:auto; }
.bff-hero-banner .bff-hero-actions{ position:absolute; left:0; right:0; bottom:0; z-index:3; display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; padding:0 1.5rem 4%; line-height:normal; }
.bff-hero-cta{ display:inline-flex; align-items:center; gap:.5rem; font-weight:600; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; padding:1rem 2rem; border-radius:9999px; text-decoration:none; transition:all .2s; }
.bff-hero-cta-primary{ background:hsl(var(--primary)); color:#fff; box-shadow:0 12px 30px -10px rgba(0,0,0,.5); }
.bff-hero-cta-primary:hover{ filter:brightness(1.08); }
.bff-hero-cta-ghost{ background:rgba(255,255,255,.94); color:hsl(142 55% 26%); border:2px solid #fff; }
.bff-hero-cta-ghost:hover{ background:#fff; }

/* ---- Featured carousel: recolor teal chrome to forest green ---- */
.bff-slide.is-active .bff-fcard{ border:2px solid hsl(var(--primary))!important; box-shadow:0 20px 50px hsl(var(--primary) / .18)!important; }
.bff-dot.is-active{ background:hsl(var(--primary))!important; }
.bff-carousel-prev, .bff-carousel-next{ background:hsl(var(--primary))!important; color:#fff!important; }
.bff-featured-badge{ background:hsl(var(--primary))!important; }

/* ---- COA library: recolor blue Verify buttons to forest green ---- */
.bg-blue-600{ background-color:hsl(var(--primary))!important; }
.hover\:bg-blue-700:hover{ background-color:hsl(142 55% 26%)!important; }
.text-blue-500, .text-blue-600, .text-blue-700{ color:hsl(var(--primary))!important; }
.border-blue-200{ border-color:hsl(var(--primary) / .3)!important; }
.ring-blue-500, .ring-blue-600{ --tw-ring-color:hsl(var(--primary))!important; }
.from-blue-600{ --tw-gradient-from:hsl(var(--primary)) var(--tw-gradient-from-position)!important; }
.to-blue-700{ --tw-gradient-to:hsl(142 55% 26%) var(--tw-gradient-to-position)!important; }

/* ---- Shop All Products cards (scoped to grid; prebuilt-tailwind-safe) ---- */
#shop-all .bff-fcard{ background:#fff; border:1px solid rgba(0,0,0,.06); box-shadow:0 10px 26px -16px rgba(0,0,0,.22); display:flex; flex-direction:column; transition:box-shadow .2s, transform .2s; }
#shop-all .bff-fcard:hover{ box-shadow:0 18px 40px -18px rgba(0,0,0,.28); transform:translateY(-3px); }
#shop-all .bff-fcard .bff-fimg{ position:relative; display:flex; align-items:center; justify-content:center; height:210px; background:#fff; overflow:hidden; border-bottom:1px solid rgba(0,0,0,.05); }
#shop-all .bff-fcard .bff-fimg img{ max-height:180px; width:auto; max-width:80%; object-fit:contain; }
#shop-all .bff-fcard .bff-fsale{ position:absolute; top:.75rem; left:.75rem; background:hsl(var(--primary)); color:#fff; font-size:10px; font-weight:700; letter-spacing:.1em; padding:.15rem .5rem; border-radius:9999px; }
#shop-all .bff-fcard .bff-fbody{ padding:1rem 1.1rem 1.15rem; display:flex; flex-direction:column; flex:1; }
#shop-all .bff-fcard .bff-ftitle{ font-size:.9rem; font-weight:700; line-height:1.35; margin:0 0 .3rem; }
#shop-all .bff-fcard .bff-ftitle a{ color:#1f2a2e; text-decoration:none; }
#shop-all .bff-fcard .bff-ftitle a:hover{ color:hsl(var(--primary)); }
#shop-all .bff-fcard .bff-fprice{ color:hsl(var(--primary)); font-weight:600; font-size:.9rem; margin-bottom:.85rem; }
#shop-all .bff-fcard .bff-fprice del{ color:#98a4a8; font-weight:400; margin-right:.35rem; }
#shop-all .bff-fcard .bff-fadd{ margin-top:auto; display:inline-flex; align-items:center; justify-content:center; text-align:center; gap:.4rem; background:hsl(var(--primary)); color:#fff; font-family:'DM Sans',sans-serif; font-weight:600; text-transform:uppercase; font-size:.74rem; letter-spacing:.03em; line-height:1.15; padding:.72rem 1rem; border-radius:9999px; text-decoration:none; transition:filter .15s; }
#shop-all .bff-fcard .bff-fadd:hover{ filter:brightness(1.08); }

/* ---- Two-image promo cards (uploaded images + button) ---- */
.bff-promo{ position:relative; display:flex; align-items:flex-end; min-height:300px; border-radius:1.5rem; overflow:hidden; box-shadow:0 20px 44px -20px rgba(0,0,0,.32); text-decoration:none; }
.bff-promo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.bff-promo:hover img{ transform:scale(1.04); }
.bff-promo .bff-promo-btn{ position:relative; z-index:2; margin:0 0 1.75rem 1.75rem; display:inline-flex; align-items:center; gap:.5rem; background:#fff; color:hsl(142 55% 26%); font-weight:700; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; padding:.8rem 1.6rem; border-radius:9999px; box-shadow:0 8px 20px -8px rgba(0,0,0,.35); }
/* On mobile show the FULL promo image (no side-crop) + button below */
@media(max-width:767px){
  .bff-promo{ min-height:0; flex-direction:column; align-items:stretch; background:#eef6e3; }
  .bff-promo img{ position:static; width:100%; height:auto; object-fit:contain; }
  .bff-promo .bff-promo-btn{ margin:1rem auto 1.25rem; }
}

/* ---- Blog / news cards ---- */
.bff-news-card{ display:flex; flex-direction:column; background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:1rem; overflow:hidden; text-decoration:none; box-shadow:0 10px 26px -16px rgba(0,0,0,.2); transition:box-shadow .2s, transform .2s; }
.bff-news-card:hover{ box-shadow:0 20px 44px -20px rgba(0,0,0,.28); transform:translateY(-3px); }
.bff-news-thumb{ position:relative; height:200px; overflow:hidden; background:linear-gradient(150deg,#dff2e0,#eef6e3); }
.bff-news-img{ width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.bff-news-card:hover .bff-news-img{ transform:scale(1.05); }
.bff-news-fallback{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.bff-news-fallback img{ height:90px; width:auto; opacity:.5; }
.bff-news-cat{ position:absolute; top:.85rem; left:.85rem; background:hsl(var(--primary)); color:#fff; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:.2rem .6rem; border-radius:9999px; }
.bff-news-body{ padding:1.35rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.bff-news-date{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:hsl(var(--primary)); opacity:.85; margin:0 0 .5rem; }
.bff-news-title{ font-size:1.1rem; font-weight:700; line-height:1.3; color:#1f2a2e; margin:0 0 .6rem; }
.bff-news-card:hover .bff-news-title{ color:hsl(var(--primary)); }
.bff-news-excerpt{ font-size:.87rem; line-height:1.65; color:#5b6b70; margin:0 0 1rem; flex:1; }
.bff-news-more{ color:hsl(var(--primary)); font-weight:600; font-size:.82rem; letter-spacing:.04em; }

/* ---- Pagination ---- */
.bff-pagination{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-top:3.5rem; }
.bff-pagination .page-numbers{ display:inline-flex; align-items:center; justify-content:center; min-width:2.5rem; height:2.5rem; padding:0 .9rem; border-radius:9999px; border:1px solid rgba(0,0,0,.1); color:#334155; font-size:.85rem; font-weight:600; text-decoration:none; background:#fff; }
.bff-pagination .page-numbers.current{ background:hsl(var(--primary)); color:#fff; border-color:transparent; }
.bff-pagination a.page-numbers:hover{ border-color:hsl(var(--primary)); color:hsl(var(--primary)); }

/* ---- Prose (single post + generic page content) ---- */
.bff-prose{ font-family:'DM Sans',sans-serif; color:#3d4b50; font-size:1.02rem; line-height:1.85; }
.bff-prose>*+*{ margin-top:1.15rem; }
.bff-prose h1,.bff-prose h2{ font-family:'Playfair Display',serif; font-weight:700; color:#1f2a2e; }
.bff-prose h2{ font-size:1.7rem; margin-top:2.2rem; }
.bff-prose h3{ font-family:'Playfair Display',serif; font-weight:700; font-size:1.3rem; color:#1f2a2e; margin-top:1.8rem; }
.bff-prose a{ color:hsl(var(--primary)); font-weight:600; text-decoration:underline; }
.bff-prose ul,.bff-prose ol{ padding-left:1.4rem; }
.bff-prose li{ margin-top:.5rem; }
.bff-prose img{ border-radius:.75rem; max-width:100%; height:auto; }
.bff-prose blockquote{ border-left:3px solid hsl(var(--primary)); padding-left:1.1rem; color:#5b6b70; font-style:italic; }
.bff-prose strong{ color:#1f2a2e; }

/* ---- Order-tracking + generic WooCommerce form on page.php ---- */
.bff-page-content .woocommerce{ max-width:none; }
.bff-page-content form.woocommerce-form-track-order p:first-child{ color:#5b6b70; margin-bottom:1.5rem; line-height:1.7; }
.bff-page-content form label{ display:block; font-size:.8rem; font-weight:600; color:#1f2a2e; margin-bottom:.4rem; }
.bff-page-content form input[type=text],.bff-page-content form input[type=email]{ width:100%; padding:.8rem 1rem; border:1px solid rgba(0,0,0,.12); border-radius:.6rem; font-size:.9rem; }
.bff-page-content form input:focus{ outline:none; border-color:hsl(var(--primary)); box-shadow:0 0 0 3px hsl(var(--primary) / .18); }
.bff-page-content form .form-row{ margin-bottom:1.25rem; }
.bff-page-content form button{ background:hsl(var(--primary)); color:#fff; border:0; padding:.85rem 2rem; border-radius:9999px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; font-size:.8rem; cursor:pointer; margin-top:.5rem; }
.bff-page-content form button:hover{ filter:brightness(1.08); }
