/* 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); }

