
/* ============================================================
   DBT LABS — PREMIUM THEME OVERHAUL
   High-end pharma meets tech startup aesthetic
   ============================================================ */

/* ---- SMOOTH SCROLL + SELECTION COLOR ---- */
html {
  scroll-behavior: smooth;
}
::selection {
  background: rgba(51, 79, 180, 0.4);
  color: #fff;
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #09090F; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #334FB4, #1e3285);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #4a6fd4; }

/* ---- LOADING PROGRESS BAR ---- */
@keyframes progressLoad {
  0% { width: 0%; opacity: 1; }
  85% { width: 90%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #334FB4, #6b8fff, #334FB4);
  background-size: 200% 100%;
  animation: progressLoad 1.5s ease forwards, shimmerBar 2s linear infinite;
  z-index: 99999;
  border-radius: 0 2px 2px 0;
}
@keyframes shimmerBar {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- HERO SECTION ANIMATIONS ---- */
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(51, 79, 180, 0.3); }
  50% { box-shadow: 0 0 40px rgba(51, 79, 180, 0.7), 0 0 80px rgba(51, 79, 180, 0.2); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(51, 79, 180, 0.4); box-shadow: 0 0 15px rgba(51, 79, 180, 0.2); }
  50% { border-color: rgba(107, 143, 255, 0.8); box-shadow: 0 0 30px rgba(51, 79, 180, 0.5); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmerBtn {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Hero heading — gradient text */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-group h1,
.wp-block-heading.is-style-large,
.hero-title,
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2 {
  background: linear-gradient(135deg, #ffffff 0%, #a8c0ff 40%, #334FB4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite, fadeSlideUp 0.9s ease both;
  letter-spacing: -0.02em;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(51, 79, 180, 0.3));
}

/* Hero subtext animation */
.wp-block-cover__inner-container p,
.wp-block-cover p {
  animation: fadeSlideUp 1s ease 0.3s both;
  opacity: 0.85;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

/* Hero badge/label */
.wp-block-cover__inner-container > *:first-child,
.wp-block-cover .wp-block-paragraph:first-child {
  animation: fadeIn 0.8s ease 0.1s both;
}

/* Hero buttons */
.wp-block-cover__inner-container .wp-block-buttons {
  animation: fadeSlideUp 1s ease 0.5s both;
}

/* ---- NAVIGATION ---- */
.wp-block-navigation-item__content {
  position: relative;
  transition: color 0.3s ease;
}
.wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #334FB4, #6b8fff);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}
.wp-block-navigation-item:hover .wp-block-navigation-item__content::after {
  width: 100%;
}
.wp-block-navigation-item:hover .wp-block-navigation-item__content {
  color: #6b8fff !important;
}

/* Site header */
.wp-block-template-part[data-slug="header"],
header.wp-block-template-part {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 15, 0.85) !important;
  border-bottom: 1px solid rgba(51, 79, 180, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ---- BUTTONS ---- */
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart-collaterals .cart_totals .checkout-button,
.woocommerce-page .woocommerce a.button,
.single_add_to_cart_button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.05em;
}
.wp-block-button__link::before,
.woocommerce a.button::before,
.woocommerce button.button::before,
.single_add_to_cart_button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transition: left 0.5s ease;
}
.wp-block-button__link:hover::before,
.woocommerce a.button:hover::before,
.woocommerce button.button:hover::before,
.single_add_to_cart_button:hover::before {
  left: 100%;
}
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 79, 180, 0.5) !important;
}

/* Primary blue button */
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button__link[style*="background"],
a.wp-block-button__link {
  background: linear-gradient(135deg, #334FB4 0%, #1e3285 100%) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(51, 79, 180, 0.3);
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: linear-gradient(135deg, #4a6fd4 0%, #334FB4 100%) !important;
}

/* ---- PRODUCT CARDS — GLASSMORPHISM ---- */
.woocommerce ul.products li.product,
.wc-block-grid__products .wc-block-grid__product,
.woocommerce-loop-product {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 79, 180, 0.2) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}
.woocommerce ul.products li.product::before,
.wc-block-grid__product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 143, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(107, 143, 255, 0.6) !important;
  box-shadow: 
    0 20px 60px rgba(51, 79, 180, 0.3),
    0 0 0 1px rgba(107, 143, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  background: rgba(51, 79, 180, 0.07) !important;
}
.woocommerce ul.products li.product:hover::before {
  opacity: 1;
}

/* Product image zoom */
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease !important;
  border-radius: 10px !important;
}
.woocommerce ul.products li.product:hover img,
.wc-block-grid__product:hover img {
  transform: scale(1.08) !important;
  filter: brightness(1.05) !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: color 0.3s ease;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: #6b8fff !important;
}

/* Price badge */
.woocommerce ul.products li.product .price,
.woocommerce-Price-amount,
.wc-block-grid__product-price .price {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #6b8fff !important;
  background: rgba(51, 79, 180, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(51, 79, 180, 0.3);
}

/* Add to cart on product cards */
.woocommerce ul.products li.product .button {
  background: rgba(51, 79, 180, 0.2) !important;
  border: 1px solid rgba(51, 79, 180, 0.5) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  padding: 10px 20px !important;
  width: 100%;
  margin-top: 12px;
}
.woocommerce ul.products li.product .button:hover {
  background: #334FB4 !important;
  border-color: #4a6fd4 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(51, 79, 180, 0.4) !important;
}

/* ---- TYPOGRAPHY IMPROVEMENTS ---- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 { letter-spacing: -0.03em; font-weight: 800; }
h2 { letter-spacing: -0.02em; }

/* Section headings with subtle glow */
.wp-block-group h2,
.wp-block-group h3 {
  text-shadow: 0 0 40px rgba(51, 79, 180, 0.3);
}

/* ---- SECTION DIVIDERS ---- */
.wp-block-separator,
hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(51, 79, 180, 0.6), transparent) !important;
  margin: 40px auto !important;
}

/* ---- INPUTS / FORM FIELDS ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select,
.woocommerce-input-wrapper input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(51, 79, 180, 0.3) !important;
  border-radius: 10px !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  padding: 12px 16px !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #334FB4 !important;
  box-shadow: 0 0 0 3px rgba(51, 79, 180, 0.25), 0 0 20px rgba(51, 79, 180, 0.15) !important;
  background: rgba(51, 79, 180, 0.08) !important;
}

/* ---- FOOTER ---- */
footer.wp-block-template-part,
.wp-block-template-part[data-slug="footer"] {
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, rgba(51, 79, 180, 0.08), transparent) !important;
  position: relative;
}
footer.wp-block-template-part::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 79, 180, 0.7), #6b8fff, rgba(51, 79, 180, 0.7), transparent);
  animation: borderGlow 3s ease infinite;
}

/* ---- SCROLL-TRIGGERED SECTION ANIMATIONS ---- */
/* Sections fade in as they come into view */
.wp-block-group,
.wp-block-columns,
.wp-block-cover {
  animation: fadeSlideUp 0.8s ease both;
}

/* Stagger animations for grid items */
.woocommerce ul.products li.product:nth-child(1) { animation: fadeSlideUp 0.6s ease 0.1s both; }
.woocommerce ul.products li.product:nth-child(2) { animation: fadeSlideUp 0.6s ease 0.2s both; }
.woocommerce ul.products li.product:nth-child(3) { animation: fadeSlideUp 0.6s ease 0.3s both; }
.woocommerce ul.products li.product:nth-child(4) { animation: fadeSlideUp 0.6s ease 0.4s both; }
.woocommerce ul.products li.product:nth-child(5) { animation: fadeSlideUp 0.6s ease 0.5s both; }
.woocommerce ul.products li.product:nth-child(6) { animation: fadeSlideUp 0.6s ease 0.6s both; }

/* ---- GLOBAL GLOW AMBIANCE on hero sections ---- */
.wp-block-cover {
  position: relative;
  overflow: hidden;
}
.wp-block-cover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(51, 79, 180, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

/* Animated gradient border on featured sections */
.wp-block-group.has-global-padding {
  position: relative;
}

/* ---- CARD HOVER: Animated corner accent ---- */
.woocommerce ul.products li.product::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(51, 79, 180, 0.3) 50%);
  border-radius: 0 0 16px 0;
  transition: all 0.4s ease;
  opacity: 0;
}
.woocommerce ul.products li.product:hover::after {
  opacity: 1;
  width: 60px; height: 60px;
}

/* ---- WOOCOMMERCE SINGLE PRODUCT ---- */
.single-product .entry-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(51, 79, 180, 0.2);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}
.single-product .product_title {
  background: linear-gradient(135deg, #ffffff, #a8c0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.single-product .price {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #6b8fff !important;
}
.single-product .woocommerce-tabs .wc-tab {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(51, 79, 180, 0.15);
}

/* ---- NOTIFICATIONS / BADGES ---- */
.woocommerce span.onsale {
  background: linear-gradient(135deg, #334FB4, #6b8fff) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(51, 79, 180, 0.4) !important;
}

/* ---- TABLES ---- */
.woocommerce table {
  border-collapse: collapse;
}
.woocommerce table th,
.woocommerce table td {
  border-color: rgba(51, 79, 180, 0.2) !important;
}
.woocommerce table tbody tr:hover {
  background: rgba(51, 79, 180, 0.05) !important;
}

/* ---- BREADCRUMBS ---- */
.woocommerce .woocommerce-breadcrumb {
  opacity: 0.6;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.woocommerce .woocommerce-breadcrumb a {
  color: #6b8fff !important;
  transition: opacity 0.2s ease;
}
.woocommerce .woocommerce-breadcrumb a:hover { opacity: 0.7; }

/* ---- MINI CART ---- */
.woocommerce-mini-cart {
  background: rgba(9, 9, 15, 0.95) !important;
  border: 1px solid rgba(51, 79, 180, 0.3) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(51, 79, 180, 0.2) !important;
}

/* ---- HERO LABEL / EYEBROW ---- */
.wp-block-cover p[style*="letter-spacing"],
.wp-block-cover p[style*="text-transform"] {
  background: linear-gradient(90deg, rgba(51, 79, 180, 0.3), rgba(107, 143, 255, 0.2));
  border: 1px solid rgba(51, 79, 180, 0.4);
  border-radius: 100px;
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.75rem;
  letter-spacing: 0.15em !important;
  color: #a8c0ff !important;
  animation: fadeIn 0.8s ease 0s both;
}

/* ---- LINKS ---- */
a {
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* ---- PAGE TRANSITIONS ---- */
body {
  animation: fadeIn 0.5s ease both;
}

/* ---- SECTION HIGHLIGHT BARS ---- */
.wp-block-group:not(.wp-block-cover) + .wp-block-group:not(.wp-block-cover) {
  border-top: 1px solid rgba(51, 79, 180, 0.08);
}

/* ---- WOOCOMMERCE CART & CHECKOUT ---- */
.woocommerce-cart-form,
.woocommerce-checkout {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(51, 79, 180, 0.15);
}

/* ---- WC BLOCKS (Gutenberg blocks) ---- */
.wc-block-grid__product {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(51, 79, 180, 0.2) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
}
.wc-block-grid__product:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(107, 143, 255, 0.6) !important;
  box-shadow: 0 20px 60px rgba(51, 79, 180, 0.3) !important;
}

/* ---- ANIMATED BACKGROUND GRID (subtle tech feel) ---- */
body {
  background-image: 
    linear-gradient(rgba(51, 79, 180, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 79, 180, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}

/* ============================================================
   END DBT LABS PREMIUM CSS
   ============================================================ */


/* ============================================================
   DBT LABS — PREMIUM NAV BAR UPGRADE
   ============================================================ */

/* --- Fixed Header + Glassmorphism Base --- */
header.wp-block-template-part {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100% !important;
  z-index: 9999 !important;
  background: rgba(4, 6, 16, 0.78) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18) !important;
  box-shadow: 0 2px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(59,130,246,0.07) !important;
  transition: background 0.45s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.45s cubic-bezier(0.4,0,0.2,1),
              border-color 0.45s ease !important;
}

/* CSS-only scroll detection via animation-timeline */
@keyframes dbt-header-scroll {
  0%   { background: rgba(4,6,16,0.78); border-bottom-color: rgba(59,130,246,0.18); box-shadow: 0 2px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(59,130,246,0.07); }
  100% { background: rgba(2,3,12,0.94); border-bottom-color: rgba(59,130,246,0.32); box-shadow: 0 6px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(59,130,246,0.18), 0 0 80px rgba(59,130,246,0.05); }
}
@supports (animation-timeline: scroll()) {
  header.wp-block-template-part {
    animation: dbt-header-scroll linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 120px;
  }
}

/* JS-class fallback for scrolled state */
header.wp-block-template-part.dbt-scrolled {
  background: rgba(2,3,12,0.94) !important;
  border-bottom-color: rgba(59,130,246,0.32) !important;
  box-shadow: 0 6px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(59,130,246,0.18), 0 0 80px rgba(59,130,246,0.05) !important;
}

/* Push body content below fixed header */
body { padding-top: 78px !important; }
.admin-bar header.wp-block-template-part { top: 32px !important; }
@media screen and (max-width: 782px) {
  .admin-bar header.wp-block-template-part { top: 46px !important; }
  body { padding-top: 66px !important; }
}

/* Header inner vertical rhythm */
header.wp-block-template-part .wp-block-group.alignfull {
  padding-top: 0 !important; padding-bottom: 0 !important;
}
header.wp-block-template-part .wp-block-group.is-content-justification-space-between {
  padding-top: 13px !important; padding-bottom: 13px !important;
  min-height: 68px !important;
  align-items: center !important;
}

/* --- Logo — Blue Gradient Glow --- */
h1.wp-block-site-title a,
.wp-block-site-title a {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #818cf8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  filter: drop-shadow(0 0 12px rgba(96,165,250,0.45)) !important;
  transition: filter 0.35s ease !important;
}
h1.wp-block-site-title a:hover,
.wp-block-site-title a:hover {
  filter: drop-shadow(0 0 22px rgba(96,165,250,0.75)) !important;
}

/* --- Nav Links — Uppercase, Spaced, Animated Underline --- */
nav.wp-block-navigation .wp-block-navigation-item__content,
nav.wp-block-navigation a.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-pages-list__item__link {
  color: rgba(200, 215, 255, 0.80) !important;
  text-decoration: none !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  padding: 8px 13px !important;
  position: relative !important;
  transition: color 0.3s ease !important;
  display: inline-block !important;
}
nav.wp-block-navigation .wp-block-navigation-item__content::after,
nav.wp-block-navigation a.wp-block-navigation-item__content::after,
.wp-block-navigation .wp-block-pages-list__item__link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 3px !important;
  left: 13px !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #3b82f6, #818cf8) !important;
  border-radius: 2px !important;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}
nav.wp-block-navigation .wp-block-navigation-item__content:hover::after,
nav.wp-block-navigation a.wp-block-navigation-item__content:hover::after,
.wp-block-navigation .wp-block-pages-list__item__link:hover::after {
  width: calc(100% - 26px) !important;
}
nav.wp-block-navigation .wp-block-navigation-item__content:hover,
nav.wp-block-navigation a.wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-pages-list__item__link:hover {
  color: #60a5fa !important;
}

/* --- Active / Current Page --- */
.current-menu-item .wp-block-navigation-item__content,
.current_page_item .wp-block-navigation-item__content,
.current-page .wp-block-pages-list__item__link,
.wp-block-pages-list__item.current-page > a {
  color: #3b82f6 !important;
}
.current-menu-item .wp-block-navigation-item__content::after,
.current_page_item .wp-block-navigation-item__content::after,
.current-page .wp-block-pages-list__item__link::after {
  width: calc(100% - 26px) !important;
}

/* --- Hamburger Button --- */
.wp-block-navigation__responsive-container-open {
  background: rgba(59,130,246,0.10) !important;
  border: 1px solid rgba(59,130,246,0.30) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
}
.wp-block-navigation__responsive-container-open:hover {
  background: rgba(59,130,246,0.20) !important;
  border-color: rgba(59,130,246,0.55) !important;
  box-shadow: 0 0 12px rgba(59,130,246,0.25) !important;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-open svg path {
  fill: #60a5fa !important; stroke: #60a5fa !important;
}

/* --- Mobile Menu — Glassmorphism Slide Panel --- */
.wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(3,5,20,0.96) !important;
  backdrop-filter: blur(30px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
  border-bottom: 1px solid rgba(59,130,246,0.22) !important;
  padding: 16px 0 24px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-pages-list__item__link {
  font-size: 0.88rem !important;
  padding: 13px 28px !important;
  border-bottom: 1px solid rgba(59,130,246,0.07) !important;
  display: block !important;
  letter-spacing: 0.12em !important;
}
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-close svg path {
  fill: #60a5fa !important; stroke: #60a5fa !important;
}

/* --- WooCommerce Cart — Blue Pill Badge --- */
.wc-block-mini-cart__button {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
  border-radius: 24px !important;
  padding: 6px 14px !important;
  color: #fff !important;
  border: 1px solid rgba(96,165,250,0.42) !important;
  box-shadow: 0 0 18px rgba(59,130,246,0.35) !important;
  transition: box-shadow 0.3s ease, transform 0.2s ease !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}
.wc-block-mini-cart__button:hover {
  box-shadow: 0 0 30px rgba(59,130,246,0.55) !important;
  transform: translateY(-1px) !important;
}
.wc-block-mini-cart__quantity-badge {
  background: #1e40af !important;
  color: #fff !important;
}
/* END DBT LABS NAV UPGRADE */

/* Legal Disclaimer Border */
.legal-disclaimer {
  border-top: 1px solid rgba(59, 130, 246, 0.3);
}

/* ===== MOBILE OPTIMIZATIONS (added via Cowork) ===== */

/* Keyframes outside media query for broad browser support */
@keyframes mobileCTAPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.55), 0 4px 15px rgba(0,0,0,0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 1), 0 0 70px rgba(59, 130, 246, 0.5), 0 4px 20px rgba(0,0,0,0.3);
  }
}

@media (max-width: 768px) {

  /* ---- PREVENT HORIZONTAL SCROLL ---- */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .wp-site-blocks,
  .entry-content,
  .wp-block-post-content,
  main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }


  /* ---- PROTECT HEADER / SITE TITLE ---- */
  .wp-block-site-title,
  .wp-block-site-title a {
    white-space: nowrap !important;
    font-size: inherit !important;
    overflow: visible !important;
  }
  /* Ensure header nav bar stays as a row */
  header .wp-block-group,
  .wp-block-template-part .wp-block-group {
    flex-wrap: nowrap !important;
  }
  /* ---- HERO SECTION: REDUCE MASSIVE PADDING ---- */
  /* Override inline style padding-top:120px — exclude header template part */
  .entry-content .wp-block-group.has-global-padding.is-layout-constrained,
  main .wp-block-group.has-global-padding.is-layout-constrained {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Slightly tighter for non-hero sections */
  .entry-content .wp-block-group.has-border-color.has-global-padding.is-layout-constrained,
  main .wp-block-group.has-border-color.has-global-padding.is-layout-constrained {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ---- HERO HEADLINE: BIG + BOLD BUT FITS SCREEN ---- */
  .wp-block-group .entry-content h1,
  .wp-block-cover h1,
  .wp-block-cover__inner-container h1,
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }

  /* Hero subtext */
  .wp-block-group > .entry-content > div > p,
  .wp-block-cover p,
  .wp-block-paragraph {
    font-size: 1rem !important;
    max-width: 100% !important;
    line-height: 1.65 !important;
  }

  /* Hide particle canvas if present - kills performance on mobile */
  canvas#particle-canvas,
  canvas.particle-canvas,
  canvas[id*="particle"],
  .particles-js-canvas-el {
    display: none !important;
  }

  /* Subtler ambient glow on mobile */
  .ambient-glow,
  [class*="ambient"],
  [class*="glow-bg"] {
    opacity: 0.3 !important;
    filter: blur(60px) !important;
  }

  /* ---- NAVIGATION ---- */
  /* Ensure hamburger shows */
  .wp-block-navigation__responsive-container-open,
  button.wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  /* ---- BUTTONS: STACK VERTICALLY, FULL WIDTH ---- */
  .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .wp-block-button {
    width: 100% !important;
    margin: 4px 0 !important;
    flex-shrink: 0 !important;
  }
  .wp-block-button__link {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Pulsing blue glow on primary CTA button */
  .wp-block-buttons .wp-block-button:first-child .wp-block-button__link {
    animation: mobileCTAPulse 2.5s ease-in-out infinite !important;
  }

  /* ---- COLUMNS: FORCE STACK (including is-not-stacked-on-mobile) ---- */
  .wp-block-columns,
  .wp-block-columns.is-not-stacked-on-mobile {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
  }
  .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ---- SECTION PADDING (non-global-padding groups, exclude header/footer) ---- */
  .entry-content .wp-block-group:not(.has-global-padding),
  main .wp-block-group:not(.has-global-padding) {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ---- TYPOGRAPHY ---- */
  h2.wp-block-heading {
    font-size: clamp(1.6rem, 6vw, 2.5rem) !important;
    line-height: 1.25 !important;
  }
  h3.wp-block-heading {
    font-size: clamp(1.1rem, 4vw, 1.6rem) !important;
    line-height: 1.3 !important;
  }
  .entry-content p, .entry-content li {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }
  /* No overflow text - targeted */
  p, li, td, th, span:not(.wp-block-site-title span):not(.wp-block-navigation span) {
    overflow-wrap: break-word !important;
  }

  /* ---- PRODUCT CARDS / SHOP GRID: SINGLE COLUMN ---- */
  .wc-block-grid__products,
  ul.products,
  .wp-block-woocommerce-product-collection ul,
  .wc-block-product-template {
    grid-template-columns: 1fr !important;
    columns: 1 !important;
    -webkit-columns: 1 !important;
  }
  .wc-block-grid__product,
  .woocommerce-loop-product,
  li.product {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  .wc-block-grid__product-image img,
  .woocommerce-loop-product img,
  li.product img {
    height: 200px !important;
    object-fit: cover !important;
    width: 100% !important;
  }
  .wc-block-grid__product-title,
  .woocommerce-loop-product__title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  /* ---- VISUAL POP: GRADIENT HEADINGS ---- */
  /* Extend gradient to all section h2 headings on mobile */
  .wp-block-heading {
    background: linear-gradient(135deg, #ffffff 0%, #a8c0ff 40%, #334FB4 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 6s ease infinite !important;
  }

  /* Glassmorphism cards full-width on mobile */
  .wp-block-group.has-border-color .wp-block-column,
  .wp-block-group[class*="glass"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Feature number badges — keep them looking good stacked */
  .wp-block-column .wp-block-heading:first-child {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    margin-bottom: 8px !important;
  }

  /* Prevent images from causing overflow */
  img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
  }
  /* But keep product images their set height */
  .wc-block-grid__product-image img {
    height: 200px !important;
    object-fit: cover !important;
  }

}

/* ===== WOOCOMMERCE CHECKOUT & CART FIX ===== */
.woocommerce-checkout,
.woocommerce-cart,
.woocommerce-account {
  background: #040610 !important;
  color: #e2e8f0 !important;
}

/* Fix all form labels */
.woocommerce-checkout label,
.woocommerce-cart label,
.woocommerce form label {
  color: #cbd5e1 !important;
}

/* Fix form inputs */
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce form input,
.woocommerce form select,
.woocommerce form textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

.woocommerce-checkout input:focus,
.woocommerce form input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

/* Fix headings */
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.woocommerce-checkout h4 {
  color: #f1f5f9 !important;
}

/* Fix order review table */
.woocommerce-checkout-review-order-table,
.woocommerce table.shop_table {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #e2e8f0 !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  color: #e2e8f0 !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

/* Fix the place order button */
#place_order,
.woocommerce #payment #place_order {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

/* Fix payment section */
#payment,
.woocommerce #payment {
  background: rgba(15, 23, 42, 0.7) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.woocommerce #payment ul.payment_methods li label,
.woocommerce #payment div.payment_box {
  color: #cbd5e1 !important;
  background: rgba(15, 23, 42, 0.5) !important;
}

/* Fix page background */
.woocommerce-page .wp-site-blocks,
.woocommerce-page main,
.woocommerce-page .wp-block-post-content {
  background: #040610 !important;
  color: #e2e8f0 !important;
}

/* Fix any white boxes */
.woocommerce-page .woocommerce {
  background: transparent !important;
}

/* Cart totals */
.cart_totals, .woocommerce-cart .cart_totals {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  color: #e2e8f0 !important;
}