/* ==========================================================================
   BuyVCC global styling — applies to every front-end page.
   - Forces header/footer to show everywhere
   - Polishes header navigation
   - Polishes footer typography & links
   - Standardises WooCommerce product-loop styling
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  body * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ── User-supplied WooCommerce rules ─────────────────────────────────────── */
.woocommerce ul.products li.owp-content-center .product-inner {
  text-align: center;
  margin-bottom: 20px;
}
.woocommerce ul.products li.product li.title h2,
.woocommerce ul.products li.product li.title a {
  color: #ffffff;
}
.woocommerce table.shop_attributes th {
  color: #ffffff;
}

/* OceanWP's default header is now replaced by our custom .bvc-header,
 * so this stylesheet no longer forces #site-header visibility.
 * The hide rule lives in chrome.css. */

/* ── Footer polish ──────────────────────────────────────────────────────── */
/* Catch every theme variation: <footer>, #footer, #colophon, .site-footer */
body > footer,
body footer.site-footer,
#footer,
#colophon,
.site-footer {
  display: block !important;
  visibility: visible !important;
  background: #0a0c1a !important;
  border-top: 1px solid #2a2f52;
  position: relative;
  overflow: hidden;
  color: #94a3b8;
}

/* Subtle radial glow at the top of the footer */
body > footer::before,
#footer::before,
#colophon::before,
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 200px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

body > footer #footer-widgets,
body > footer #footer-bottom,
#footer #footer-widgets,
#footer #footer-bottom,
.site-footer .footer-widgets,
.site-footer .footer-bottom {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

body > footer #footer-widgets,
#footer #footer-widgets {
  padding: 64px 0 48px !important;
}

body > footer .footer-widget-title,
body > footer h2,
body > footer h3,
body > footer h4,
#footer .footer-widget-title,
#footer h2,
#footer h3,
#footer h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #a855f7 !important;
  margin-bottom: 18px !important;
}

body > footer p,
body > footer li,
body > footer .widget-text,
#footer p,
#footer li,
#footer .widget-text {
  color: #94a3b8 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

body > footer a,
#footer a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.22s ease;
}
body > footer a:hover,
#footer a:hover { color: #a855f7 !important; }

body > footer ul,
#footer ul {
  padding: 0 !important;
  list-style: none !important;
}
body > footer li,
#footer li {
  padding: 6px 0 !important;
  border: none !important;
}

/* Footer brand block (first widget) */
body > footer .widget_text strong,
#footer .widget_text strong,
body > footer .footer-text strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e2e8f0;
}

/* Social icons */
body > footer .ocean-social-menu li a,
body > footer .footer-social a,
#footer .ocean-social-menu li a,
#footer .footer-social a {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(124, 58, 237, 0.12) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  border-radius: 50% !important;
  color: #a855f7 !important;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, color 0.22s ease;
}
body > footer .ocean-social-menu li a:hover,
body > footer .footer-social a:hover,
#footer .ocean-social-menu li a:hover,
#footer .footer-social a:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Footer bottom (copyright) */
body > footer #footer-bottom,
#footer #footer-bottom {
  padding: 22px 0 !important;
  border-top: 1px solid rgba(124, 58, 237, 0.12) !important;
  font-size: 13px !important;
  color: #64748b !important;
}

/* Newsletter / email input if present */
body > footer input[type="email"],
body > footer input[type="text"],
#footer input[type="email"],
#footer input[type="text"] {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid #2a2f52 !important;
  border-radius: 10px !important;
  color: #e2e8f0 !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  transition: border-color 0.22s ease, background 0.22s ease;
}
body > footer input[type="email"]:focus,
body > footer input[type="text"]:focus,
#footer input[type="email"]:focus,
#footer input[type="text"]:focus {
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.06) !important;
  outline: none !important;
}
body > footer button[type="submit"],
#footer button[type="submit"] {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 11px 20px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
body > footer button[type="submit"]:hover,
#footer button[type="submit"]:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ── WooCommerce product-loop polish (anywhere it appears) ──────────────── */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price bdi {
  color: #a855f7 !important;
  font-weight: 800;
}

/* Two-button action stack on every product card — centered, vertically stacked */
.woocommerce ul.products li.product .bvc-loop-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Both buttons share the pill shape and width */
.woocommerce ul.products li.product .bvc-loop-add,
.woocommerce ul.products li.product .bvc-loop-buy-now {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  min-width: 160px !important;
  border-radius: 12px !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease !important;
}

/* Add to cart — outlined secondary style */
.woocommerce ul.products li.product .bvc-loop-add {
  background: rgba(124, 58, 237, 0.10) !important;
  border: 1px solid rgba(124, 58, 237, 0.40) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.woocommerce ul.products li.product .bvc-loop-add:hover {
  background: rgba(124, 58, 237, 0.22) !important;
  border-color: rgba(124, 58, 237, 0.70) !important;
  transform: translateY(-1px) !important;
}
/* "Added to cart" feedback state */
.woocommerce ul.products li.product .bvc-loop-add.added::after {
  content: ' ✓';
  margin-left: 4px;
}

/* Buy Now — primary gradient style */
.woocommerce ul.products li.product .bvc-loop-buy-now {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.30) !important;
}
.woocommerce ul.products li.product .bvc-loop-buy-now:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45) !important;
  filter: brightness(1.06);
}

/* Outline variant for "Select options" (variable products) */
.woocommerce ul.products li.product .bvc-loop-buy-now--select {
  background: rgba(124, 58, 237, 0.10) !important;
  border: 1px solid rgba(124, 58, 237, 0.40) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.woocommerce ul.products li.product .bvc-loop-buy-now--select:hover {
  background: rgba(124, 58, 237, 0.22) !important;
  border-color: rgba(124, 58, 237, 0.65) !important;
}

/* Hide the default WC "View cart" link that appears after AJAX add */
.woocommerce ul.products li.product a.added_to_cart {
  display: none !important;
}

/* Hide third-party "Buy Now" buttons that conflict with our single CTA on loops.
 * The SBW plugin renders an extra .buy_now_button anchor that goes to
 * /checkout/?buy-now=ID — it lands users on an empty checkout because it
 * doesn't add the product to the cart first. Our own .bvc-loop-buy-now
 * adds-to-cart then redirects to checkout, so we hide the conflict here. */
a.buy_now_button:not(.bvc-loop-buy-now),
li.product a.buy_now_button,
.products li.product a.buy_now_button,
.related.products li.product a.buy_now_button,
li.product a.sbw-buy-now-btn,
li.product a.sbw_wc_buy_now_btn,
li.product a.buy-now-button {
  display: none !important;
}

/* ── Cap any OceanWP fixed-width bars so they don't cause horizontal scroll on mobile ── */
#top-bar-inner,
#site-header-inner,
.top-bar-inner-wrap,
#owp-promo-popup,
.owp-promo-popup-wrap {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Belt-and-braces: prevent any horizontal scroll site-wide */
html, body { overflow-x: hidden !important; }

/* ── Cart toast (after AJAX add-to-cart) ───────────────────────────────── */
.bvc-cart-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(18, 21, 43, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.40);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  max-width: calc(100vw - 48px);
  min-width: 320px;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.bvc-cart-toast.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bvc-cart-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.40);
}
.bvc-cart-toast__icon svg { width: 18px; height: 18px; }

.bvc-cart-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.bvc-cart-toast__title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.005em;
}
.bvc-cart-toast__name {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bvc-cart-toast__btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.30);
}
.bvc-cart-toast__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.45);
}

.bvc-cart-toast__close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.22s ease;
}
.bvc-cart-toast__close:hover { color: #ffffff; }

@media (max-width: 600px) {
  .bvc-cart-toast {
    top: auto;
    bottom: 96px;
    left: 16px;
    right: 16px;
    min-width: 0;
  }
}

/* ── Selection colour brand-aligned everywhere ──────────────────────────── */
::selection { background: rgba(124, 58, 237, 0.55); color: #fff; }
