/* =====================================================================
   Pristine Aminos — SITE-WIDE "edgy biotech" theme
   ---------------------------------------------------------------------
   Loaded on EVERY page (see functions.php). Brings the homepage look to
   the whole store: light ice background, vibrant cyan/blue accents,
   glass cards, transparent product cut-outs, light page banners.
   Strategy: remap the base theme's design tokens so existing components
   re-skin automatically, then a few targeted overrides.
   The homepage keeps its hero/scatter extras in home-futuristic.css.
   Reversible: remove the enqueue lines in functions.php.
   ===================================================================== */

/* 1) Remap base palette tokens (teal accent -> vibrant biotech blue) ── */
body {
  --accent:      #00c2dd;   /* was teal #00A3C4 — now electric cyan      */
  --accent-dark: #0a6cd6;   /* hover / deep accent                       */
  --accent-pale: #e4f7fb;   /* light accent wash                         */
  --navy-pale:   #eef3fb;   /* light surface (used by cards/totals)      */
  /* --navy / --navy-mid / --navy-light kept for headings (brand)        */
}

/* 2) Global light background + ambient vibrant glows (matches homepage) */
body {
  background: linear-gradient(180deg,#f3f7fb 0%,#e6eef6 100%);
  color: #46566c;
}
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(46% 42% at 80% 8%,  rgba(0,210,221,.16), transparent 60%),
    radial-gradient(40% 40% at 6% 22%,  rgba(31,78,143,.16), transparent 60%),
    radial-gradient(50% 50% at 92% 78%, rgba(255,54,192,.10), transparent 60%),
    radial-gradient(46% 46% at 18% 92%, rgba(47,107,255,.12), transparent 60%);
}

/* 3) Header → light glass; announce bar → vibrant gradient ──────────── */
#site-header {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(12,31,63,.08);
  box-shadow: 0 6px 26px rgba(20,40,80,.08);
}
#announce-bar {
  background: linear-gradient(90deg,#00c2dd,#2f6bff 50%,#ff36c0);
  background-size: 200% 100%; color:#fff; border:none;
  animation: pa-irid-slide 8s linear infinite;
}
#announce-bar strong, #announce-bar a { color:#fff; }

/* 4) Buttons → vibrant gradient (base versions use the remapped accent) */
.btn-primary, .btn-navy {
  background: linear-gradient(135deg,#00c2dd 0%,#2f6bff 60%,#7b5cff 100%) !important;
  color:#fff !important; border:none !important;
  box-shadow: 0 10px 26px rgba(47,107,255,.40);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover, .btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(47,107,255,.55);
}

/* 5) Product cards (shop, category, related, upsell) → glass + cut-outs */
.woocommerce ul.products li.product {
  background: rgba(255,255,255,.62) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(12,31,63,.10) !important;
  box-shadow: 0 14px 38px rgba(20,40,80,.12) !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(0,194,221,.45) !important;
  box-shadow: 0 24px 58px rgba(20,40,80,.22) !important;
}
/* Show the transparent cut-outs cleanly (no pale photo box) */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  background: transparent !important;
}
.woocommerce ul.products li.product .price { color: var(--accent-dark) !important; }

/* 6) Page banners (About / Contact / shop title) → light + dark text ── */
.page-hero, .pa-page-hero {
  background: transparent !important;
  padding: 60px 0 20px !important;
  text-align: center;
}
.page-hero h1, .pa-page-hero h1 { color: var(--navy) !important; }
.page-hero p, .pa-page-hero p   { color: #46566c !important; }
.breadcrumb a, .woocommerce-breadcrumb a { color: var(--accent-dark); }

/* 7) Single product accents ─────────────────────────────────────────── */
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--accent-dark) !important; }
.single-product .woo-main {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(12,31,63,.08);
  border-radius: 18px; padding: 28px;
}

/* 8) Cart totals card (cart page only) */
.woocommerce-cart .cart_totals {
  background: rgba(255,255,255,.7) !important;
  border: 1px solid rgba(12,31,63,.10) !important;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* Checkout: inner sections sit FLAT inside the single summary card (no nested borders) */
.woocommerce-checkout #order_review,
.woocommerce form.checkout #payment {
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 0 !important;
}

/* Keyframe used by the announce bar */
@keyframes pa-irid-slide { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

@media (prefers-reduced-motion: reduce) {
  #announce-bar { animation: none !important; }
}

/* =====================================================================
   CHECKOUT — themed glass layout (desktop + mobile)
   ===================================================================== */
.pa-checkout-wrap { max-width: 1120px; margin: 0 auto; }
.pa-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 30px; align-items: start;
}
/* Billing / shipping → glass section cards */
.pa-co-section {
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(12,31,63,.10);
  border-radius: 16px; padding: 24px 26px; margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(20,40,80,.08);
}
/* Order summary → clean borderless light-grey card */
.pa-co-summary-box {
  background: #f6f8fb;
  border: none;
  border-radius: 18px; padding: 26px;
  box-shadow: 0 10px 34px rgba(20,40,80,.07);
  position: sticky; top: 92px;
}
.pa-co-summary-title {
  font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 700;
  color: var(--navy); margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(12,31,63,.10);
}
/* Place-order button → vibrant gradient to match the site */
.woocommerce-checkout #payment #place_order, #place_order {
  background: linear-gradient(135deg,#00c2dd 0%,#2f6bff 60%,#7b5cff 100%) !important;
  border: none !important; border-radius: 12px !important;
  font-weight: 700 !important; letter-spacing: .2px !important;
  box-shadow: 0 10px 26px rgba(47,107,255,.42) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.woocommerce-checkout #payment #place_order:hover, #place_order:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(47,107,255,.55) !important;
}
/* =====================================================================
   BLOCK CHECKOUT (WooCommerce Cart & Checkout blocks) — wider + themed
   Targets the .wc-block-* markup (different from the classic checkout above).
   ===================================================================== */
/* Wider, centered wrapper (override Gutenberg's narrow content-size constraint) */
.woocommerce-checkout .container,
.woocommerce-checkout .pa-wc-page { max-width: 1280px !important; margin-inline: auto !important; }
.wp-block-woocommerce-checkout,
.wc-block-checkout { max-width: 1280px !important; width: 100% !important; margin-inline: auto !important; }

/* FORCE side-by-side on desktop (don't rely on WooCommerce's .is-large toggle) */
@media (min-width: 881px) {
  .wc-block-checkout {
    display: flex !important; flex-wrap: nowrap !important;
    gap: 40px !important; align-items: flex-start !important;
  }
  .wc-block-checkout__main {
    flex: 1 1 0% !important; max-width: none !important; width: auto !important; min-width: 0 !important;
  }
  .wc-block-checkout__sidebar {
    flex: 0 0 430px !important; width: 430px !important; max-width: 430px !important;
  }
}

/* Form step panels → light glass cards */
.wc-block-checkout__main .wc-block-components-checkout-step {
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(12,31,63,.10);
  border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(20,40,80,.07);
}
.wc-block-components-checkout-step__title { color: var(--navy) !important; }

/* Order summary → sticky frosted card */
.wc-block-checkout__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar > .is-sidebar,
.wc-block-checkout__sidebar {
  position: sticky; top: 92px;
}
.wc-block-checkout__sidebar .wc-block-components-sidebar {
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(12,31,63,.10);
  border-radius: 18px; padding: 26px 24px;
  box-shadow: 0 18px 50px rgba(20,40,80,.14);
}

/* "Illuminate" the product cut-outs in the order summary */
.wc-block-components-order-summary-item__image {
  width: 66px !important; height: 66px !important;
  background: #ffffff !important;
  border: 1px solid rgba(12,31,63,.10) !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 6px 16px rgba(20,40,80,.12) !important;
  overflow: hidden;
}
.wc-block-components-order-summary-item__image img {
  width: 100% !important; height: 100% !important; object-fit: contain !important;
  mix-blend-mode: normal !important; background: transparent !important;
}
.wc-block-components-order-summary-item { padding: 14px 0 !important; gap: 14px !important; }
.wc-block-components-order-summary-item__quantity {
  background: var(--accent-dark) !important; color: #fff !important;
  border-color: var(--accent-dark) !important;
}
/* Hide the long marketing description in order-summary line items
   (keeps the product name, variation/amount, and price) */
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description,
.wc-block-components-order-summary .wc-block-components-product-metadata__description {
  display: none !important;
}

/* Totals + place-order accents */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item { color: var(--navy) !important; }
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
  background: linear-gradient(135deg,#00c2dd 0%,#2f6bff 60%,#7b5cff 100%) !important;
  border: none !important; border-radius: 12px !important; font-weight: 700 !important;
  box-shadow: 0 10px 26px rgba(47,107,255,.42) !important;
}

/* Block checkout on mobile: single column, full-width sidebar (no overflow) */
@media (max-width: 880px) {
  .wc-block-checkout__sidebar,
  .wc-block-checkout.is-large .wc-block-checkout__sidebar {
    flex: 1 1 auto !important; width: 100% !important; max-width: 100% !important;
    position: static !important;
  }
  .wc-block-checkout { gap: 24px !important; }
  .wc-block-checkout__main .wc-block-components-checkout-step { padding: 18px 16px; }
}

/* =====================================================================
   CLASSIC CHECKOUT (kept for environments using the shortcode template)
   ===================================================================== */
/* Inputs already themed by base + token remap; give focus the accent ring */
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,194,221,.18) !important;
}

/* =====================================================================
   MOBILE polish (≤768px)
   ===================================================================== */
/* Particle background off on phones (battery/scroll perf; JS also skips it) */
@media (max-width: 768px) { #pa-particles { display: none !important; } }

/* Mobile-menu chrome: hidden on desktop, shown only inside the slide-in panel */
.pa-menu-head, .pa-menu-close { display: none; }
#pa-menu-overlay {
  position: fixed; inset: 0; background: rgba(12,31,63,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  z-index: 1100;
}
#pa-menu-overlay.active { opacity: 1; visibility: visible; }
@media (min-width: 769px) { #pa-menu-overlay { display: none; } }
body.pa-menu-open { overflow: hidden; }
/* The nav lives inside the sticky header (its own stacking layer). Raise the
   header above the overlay when the menu is open so the panel — not the
   overlay — receives taps and scrolls, and stays fully opaque. */
body.pa-menu-open #site-header { z-index: 1200; }

@media (max-width: 768px) {
  /* ── Mobile nav = full slide-in panel from the RIGHT (login pinned bottom).
     !important overrides the base theme's #primary-nav.open {position:absolute;
     left:0;right:0} which was anchoring the panel to the left. ── */
  #primary-nav {
    display: flex !important; flex-direction: column !important;
    position: fixed !important; top: 0 !important; right: 0 !important; left: auto !important;
    width: min(84vw, 380px) !important; height: 100vh !important; height: 100dvh !important;
    max-height: none !important;
    background: #ffffff !important;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -14px 0 50px rgba(12,31,63,.22);
    z-index: 1200; overflow-y: auto; padding: 0 !important;
    -webkit-overflow-scrolling: touch;
  }
  #primary-nav.open { transform: translateX(0) !important; }

  /* Panel header: hamburger icon on top, then "MENU" + divider */
  .pa-menu-head {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 24px 26px 18px; border-bottom: 1px solid #edf0f4; margin-bottom: 8px;
  }
  .pa-menu-close {
    background: none; border: none; font-size: 26px; line-height: 1;
    color: #1f2937; cursor: pointer; padding: 0;
  }
  .pa-menu-label { font-weight: 600; letter-spacing: 2px; font-size: 13px; color: #9aa6b6; }

  /* The link list fills the panel; login sits at the very bottom */
  #primary-nav > ul {
    display: flex !important; flex-direction: column; flex: 1 1 auto;
    align-items: stretch !important; /* override desktop's centered nav */
    gap: 2px; padding: 4px 14px 16px; margin: 0; list-style: none;
  }
  #primary-nav > ul > li { width: 100%; }
  #primary-nav > ul > li > a {
    display: block; text-align: left; padding: 12px 14px; font-size: 16px; font-weight: 500;
    color: #2a3340; border-radius: 12px; transition: background .15s;
  }
  #primary-nav > ul > li > a:hover,
  #primary-nav > ul > li.current > a { background: #eef1f4; }

  /* Categories COLLAPSED by default — only the accordion toggle opens them.
     !important defeats the desktop "li:hover > ul" rule, which a tap/hover on
     mobile was triggering and auto-opening all the categories. */
  #primary-nav .sub-menu {
    display: none !important; position: static !important;
    flex-direction: column; min-width: 0 !important;
    box-shadow: none !important; border: none !important;
    background: transparent !important; padding: 2px 0 8px 18px !important;
  }
  #primary-nav .menu-has-children.submenu-open > .sub-menu { display: flex !important; }
  #primary-nav .sub-menu a { padding: 10px 10px !important; font-size: 14px !important; }
  #primary-nav .nav-arrow {
    display: inline-block; float: right; transition: transform .2s ease; color: #9aa6b6;
  }
  #primary-nav .menu-has-children.submenu-open > a .nav-arrow { transform: rotate(180deg); }

  /* Log In pinned to the bottom of the panel */
  #primary-nav .pa-mobile-login {
    display: block !important;          /* override the desktop "display:none" */
    margin-top: auto; border-top: 1px solid #edf0f4;
    padding: 18px 20px 22px;
  }
  /* Keep the header Log In button visible (to the LEFT of the cart button) */
  #header-actions .btn-login { display: inline-flex !important; }
  #primary-nav .pa-mobile-login a {
    display: flex; align-items: center; gap: 10px;
    color: var(--accent-dark); font-weight: 600; font-size: 15px;
  }
  #primary-nav .pa-mobile-login a::before {
    content: "⇥"; display: inline-flex; align-items: center; justify-content: center;
    width: 27px; height: 27px; border: 2px solid var(--accent-dark);
    border-radius: 8px; font-size: 14px; line-height: 1;
  }

  /* Header actions stay compact */
  #header-actions { gap: 8px; }
  .btn-header.btn-login { padding: 8px 11px; font-size: 13px; }

  /* Homepage hero: shorter + smaller type on phones */
  body.home #hero { min-height: auto; padding: 44px 0 52px; }
  body.home #hero h1 { font-size: 2.05rem; letter-spacing: -.5px; }
  body.home #hero p { font-size: 1rem; }

  /* Checkout: collapse the 2-column grid so the form and order summary
     stack instead of overlapping (this file loads last, so it wins) */
  .pa-checkout-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .pa-co-summary-box { position: static !important; margin-top: 0; }
  .pa-co-section, .pa-co-summary-box { padding: 18px 16px; }
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100% !important; float: none !important; margin-right: 0 !important;
  }
  /* Reduce top spacing + remove the double side-padding so nothing spills
     off the right edge on phones */
  .pa-checkout-wrap { padding: 14px 0 56px !important; }
  .pa-checkout-research-bar { margin-bottom: 18px; font-size: 12.5px; padding: 11px 14px; }
  .pa-steps-nav { margin: 0 auto 18px; }
  .pa-checkout-wrap, .pa-checkout-grid, .pa-checkout-left, .pa-checkout-right,
  .pa-step, .pa-step-actions, .pa-co-section, .pa-co-summary-box {
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  .pa-step-actions { flex-wrap: wrap; }
  .pa-step-actions .pa-step-next { flex: 1 1 100%; width: 100%; }
  .pa-checkout-wrap .btn-lg { padding: 14px 16px; font-size: 15px; }
}

/* Safety: never allow sideways scroll from off-canvas elements (clip keeps sticky working) */
body { overflow-x: clip; }

/* Tighter, more compact mobile rhythm */
@media (max-width: 768px) {
  .section { padding: 46px 0 !important; }
  .section-header { margin-bottom: 22px !important; }
  .section-title { font-size: 26px !important; }
  .section-sub { font-size: 14px !important; }
  #announce-bar { font-size: 11px !important; padding: 7px 12px !important; line-height: 1.5; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .cat-grid, .trust-grid { gap: 12px !important; }
  body.home #hero { padding: 38px 0 44px !important; }
  body.home #hero h1 { font-size: 1.95rem !important; }
  .pa-products-grid, .woocommerce ul.products { gap: 12px !important; }
}
@media (max-width: 400px) {
  body.home #hero h1 { font-size: 1.8rem !important; }
  .cat-grid { gap: 10px !important; }
}

/* Cart table → stacked cards on small screens (avoids horizontal overflow) */
@media (max-width: 600px) {
  .woocommerce-cart table.cart thead { display: none; }
  .woocommerce-cart table.cart tr {
    display: block; margin-bottom: 14px; padding: 6px 10px;
    border: 1px solid rgba(12,31,63,.10); border-radius: 12px;
    background: rgba(255,255,255,.6);
  }
  .woocommerce-cart table.cart td {
    display: flex; justify-content: space-between; align-items: center;
    border: none !important; padding: 8px 4px !important; text-align: right;
  }
  .woocommerce-cart table.cart td::before {
    content: attr(data-title); font-weight: 600; color: var(--navy); text-align: left;
  }
  .woocommerce-cart table.cart td.product-remove { justify-content: flex-end; }
}

/* =====================================================================
   CHECKOUT RESTYLE — clean white-card style (block checkout)
   Overrides the earlier glass styling above with a crisp, modern look.
   ===================================================================== */
.pa-checkout-sub { margin-top: 6px; color: #6b7a90 !important; font-size: 16px; }

/* Step panels → solid white cards with numbered badges */
.wc-block-checkout__main { counter-reset: pa-step; }
.wc-block-checkout__main .wc-block-components-checkout-step {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid #eef1f5 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 30px rgba(20,40,80,.07) !important;
  padding: 26px 28px !important;
  margin-bottom: 20px !important;
  counter-increment: pa-step;
}
.wc-block-components-checkout-step__title {
  display: flex !important; align-items: center; gap: 12px;
  color: var(--navy) !important; font-weight: 700 !important;
}
.wc-block-components-checkout-step__title::before {
  content: counter(pa-step);
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Inputs → filled light-grey, rounded */
.wc-block-components-text-input input,
.wc-block-components-checkout select,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-address-form input,
.wc-block-components-address-form select {
  background: #f3f5f8 !important;
  border: 1px solid #f3f5f8 !important;
  border-radius: 12px !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-address-form input:focus,
.wc-block-components-checkout select:focus {
  background: #fff !important; border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,194,221,.18) !important;
}

/* Order summary → soft grey card */
.wc-block-checkout__sidebar .wc-block-components-sidebar {
  background: #f6f8fb !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid #eef1f5 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 30px rgba(20,40,80,.06) !important;
  padding: 26px 24px !important;
}
.wc-block-components-order-summary-item__image {
  width: 64px !important; height: 64px !important; background: #fff !important;
  border: 1px solid #eef1f5 !important; border-radius: 12px !important;
  padding: 6px !important; box-shadow: 0 4px 12px rgba(20,40,80,.08) !important;
}
/* Total emphasis */
.wc-block-components-totals-footer-item { font-size: 1.25rem !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--accent-dark) !important; font-weight: 800 !important;
}

/* Place Order → navy→blue gradient pill */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
  background: linear-gradient(90deg,#0e2a5e 0%,#1f7fd0 100%) !important;
  border: none !important; border-radius: 999px !important;
  padding: 16px 28px !important; font-weight: 700 !important; font-size: 16px !important;
  box-shadow: 0 12px 28px rgba(31,127,208,.35) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.contained:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 38px rgba(31,127,208,.45) !important;
}

/* Make ALL block-checkout text inputs match the filled style (robust selectors) */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="number"],
.wc-block-checkout input[type="password"] {
  background: #f3f5f8 !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 12px !important;
}
.wc-block-checkout input[type="text"]:focus,
.wc-block-checkout input[type="email"]:focus,
.wc-block-checkout input[type="tel"]:focus,
.wc-block-checkout input[type="number"]:focus {
  background: #fff !important; border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,194,221,.18) !important;
}

/* =====================================================================
   CUSTOM ORDER SUMMARY (classic checkout review-order.php override)
   ===================================================================== */
.pa-summary { position: relative; }
.pa-summary.pa-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* Line items */
.pa-summary-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pa-sitem {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  align-items: start; padding: 14px 0; border-bottom: 1px solid #eef1f5;
}
.pa-sitem:last-child { border-bottom: none; }
.pa-sitem-thumb {
  width: 64px; height: 64px; background: #fff; border: 1px solid #eef1f5;
  border-radius: 12px; padding: 6px; box-shadow: 0 4px 12px rgba(20,40,80,.08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pa-sitem-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pa-sitem-name { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.3; }
.pa-sitem-var { color: #7385a0; font-size: 12.5px; margin-top: 2px; }
.pa-sitem-var p { margin: 0; }
.pa-sitem-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pa-sitem-price { font-weight: 800; color: var(--navy); font-size: 15px; white-space: nowrap; }
.pa-sitem-remove {
  background: none; border: none; cursor: pointer; padding: 0;
  color: #94a3b8; font-size: 12.5px; text-decoration: underline; transition: color .15s;
}
.pa-sitem-remove:hover { color: #ef4444; }

/* Quantity stepper */
.pa-qty {
  display: inline-flex; align-items: center; gap: 0; margin-top: 10px;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden;
}
.pa-qty-btn {
  width: 30px; height: 30px; border: none; background: #fff; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--navy); transition: background .15s;
}
.pa-qty-btn:hover { background: var(--navy-pale); }
.pa-qty-num { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; color: var(--navy); }

/* Totals table */
.pa-co-totals { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.pa-co-totals th, .pa-co-totals td {
  padding: 9px 0; font-size: 14px; color: #475569; font-weight: 500; text-align: left; border: none;
}
.pa-co-totals td { text-align: right; font-weight: 700; color: var(--navy); }
.pa-co-totals tr + tr th, .pa-co-totals tr + tr td { border-top: 1px solid #eef1f5; }
.pa-co-totals .order-total th { font-size: 18px; font-weight: 800; color: var(--navy); padding-top: 14px; }
.pa-co-totals .order-total td { font-size: 20px; font-weight: 800; color: var(--accent-dark); padding-top: 14px; }
.pa-co-totals .order-total th, .pa-co-totals .order-total td { border-top: 2px solid #e2e8f0; }

/* Promo box (below total) */
.pa-summary-promo { display: flex; gap: 8px; margin-top: 16px; }
.pa-promo-input {
  flex: 1 1 auto; min-width: 0; background: #fff !important; border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important; padding: 11px 14px !important; font-size: 14px !important;
}
.pa-promo-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0,194,221,.18) !important; }
.pa-promo-apply {
  flex: 0 0 auto; border: none; cursor: pointer; border-radius: 10px;
  padding: 11px 20px; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg,#00c2dd,#2f6bff);
}
.pa-promo-msg { font-size: 12.5px; margin-top: 8px; color: #16a34a; min-height: 16px; }
.pa-promo-msg.is-error { color: #ef4444; }

/* Trust badges */
.pa-summary-trust {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid #eef1f5;
}
.pa-summary-trust span { font-size: 11.5px; color: #7385a0; font-weight: 600; }

@media (max-width: 480px) {
  .pa-sitem { grid-template-columns: 54px 1fr auto; gap: 10px; }
  .pa-sitem-thumb { width: 54px; height: 54px; }
}

/* Bacteriostatic Water add-on widget (checkout summary) */
.pa-upsell {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px dashed #cdd8e4; border-radius: 14px;
  padding: 12px 14px; margin: 4px 0 18px;
}
.pa-upsell-img { width: 52px; height: 52px; object-fit: contain; }
.pa-upsell-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pa-upsell-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--accent-dark); }
.pa-upsell-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.pa-upsell-meta { font-size: 12.5px; color: #7385a0; }
.pa-upsell-add {
  border: none; cursor: pointer; border-radius: 10px; padding: 9px 16px;
  font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg,#00c2dd,#2f6bff);
}
.pa-upsell-add:hover { filter: brightness(1.05); }

/* =====================================================================
   PAYMENT STEP (multi-step checkout, step 3)
   ===================================================================== */
.pa-secure-note { display:flex; align-items:center; gap:6px; color:#7385a0; font-size:13px; margin:-6px 0 18px; }

/* Payment method — clean, roomy bordered card (neutral border, no bright highlight) */
.woocommerce-checkout #payment ul.payment_methods {
  border: 1.5px solid #d9e1ea !important; border-radius: 16px !important;
  background: #fff !important; padding: 0 !important; margin: 0 0 8px !important;
  list-style: none !important; overflow: visible !important;
  box-shadow: 0 4px 14px rgba(20,40,80,.05) !important;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  display: flex !important; flex-wrap: wrap !important; align-items: center !important;
  gap: 16px !important; padding: 26px 32px !important; border: none !important; margin: 0 !important;
}
/* radio "bubble" — force it visible (WC hides it for a single gateway) and enlarge */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
  display: inline-block !important; opacity: 1 !important; position: static !important;
  width: 24px !important; height: 24px !important; min-width: 24px !important; margin: 0 !important;
  accent-color: var(--accent); flex: 0 0 auto; cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
  display: flex !important; align-items: center !important; gap: 12px !important;
  flex: 1 1 auto !important; margin: 0 !important; padding: 0 !important;
  font-weight: 700 !important; color: var(--navy) !important; font-size: 16px !important; line-height: 1.3 !important;
}
/* brand icons — vertically centered, spaced off the right border */
.pa-pay-icons { display: inline-flex !important; align-items: center !important; gap: 9px !important; margin-left: auto !important; }
.pa-pay-icons svg { display: block !important; width: 46px !important; height: 30px !important; }
/* "Secure checkout" subtext aligned under the title */
.woocommerce-checkout #payment .payment_box {
  flex: 1 1 100% !important; background: transparent !important; color: #7385a0 !important;
  font-size: 13.5px !important; padding: 6px 0 0 40px !important; margin: 0 !important;
}
.woocommerce-checkout #payment .payment_box::before { display: none !important; }

/* Review & Place Order */
.pa-review-place { margin-top: 22px; }
.pa-review-title { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.pa-confirm-21 {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  font-size: 13.5px; line-height: 1.5; color: var(--navy);
}
.pa-confirm-21 input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.pa-confirm-msg { color: #ef4444; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }

/* Place-order button locked state */
.woocommerce-checkout #place_order.pa-btn-locked,
.woocommerce-checkout #place_order:disabled {
  background: #c3ccd8 !important; box-shadow: none !important; cursor: not-allowed !important; transform: none !important;
}
.pa-pay-note { text-align: center; color: #94a3b8; font-size: 12.5px; margin: 12px 0 0; }

/* =====================================================================
   BLOG listing + single post
   ===================================================================== */
.pa-page-sub { color: #46566c; font-size: 16px; max-width: 600px; margin: 10px auto 0; }

/* Featured (first) post */
.pa-blog-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  background: #fff; border: 1px solid #eef1f5; border-radius: 20px; overflow: hidden;
  box-shadow: 0 14px 44px rgba(20,40,80,.10); color: inherit; margin-bottom: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pa-blog-featured:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(20,40,80,.16); }
.pa-blog-featured .pa-blog-cover { min-height: 320px; }
.pa-blog-featured-body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; }
.pa-blog-featured-title { font-family: 'Inter', sans-serif; font-size: 30px; line-height: 1.15; color: var(--navy); margin: 10px 0 14px; }

/* Card grid */
.pa-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pa-blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #eef1f5;
  border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(20,40,80,.07);
  transition: transform .2s ease, box-shadow .2s ease; color: inherit;
}
.pa-blog-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(20,40,80,.16); }
.pa-blog-card .pa-blog-cover { aspect-ratio: 16 / 10; }

/* Cover (featured image OR branded gradient) + category tag */
.pa-blog-cover { position: relative; overflow: hidden; background: var(--navy-pale); }
.pa-blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-blog-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(10,22,38,.78); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3px; padding: 5px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pa-cover-gen { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#1e3a5f,#2f6bff); }
.pa-cover-icon { font-size: 56px; opacity: .92; filter: drop-shadow(0 6px 16px rgba(0,0,0,.18)); }
.pa-cover-science  { background: linear-gradient(135deg,#0e7490,#2f6bff); }
.pa-cover-quality  { background: linear-gradient(135deg,#0d9488,#16a34a); }
.pa-cover-guide    { background: linear-gradient(135deg,#7c3aed,#2f6bff); }
.pa-cover-company  { background: linear-gradient(135deg,#1e3a5f,#0e7490); }
.pa-cover-logistics{ background: linear-gradient(135deg,#0891b2,#22d3ee); }

.pa-blog-body { padding: 20px 22px 24px; }
.pa-blog-date { font-size: 12.5px; color: var(--accent-dark); font-weight: 600; }
.pa-blog-title { font-family: 'Inter', sans-serif; font-size: 18px; color: var(--navy); margin: 6px 0 8px; line-height: 1.3; }
.pa-blog-excerpt { color: #5b6b80; font-size: 14px; line-height: 1.6; }
.pa-blog-more { display: inline-block; margin-top: 12px; color: var(--accent-dark); font-weight: 700; font-size: 14px; }
.pa-blog-pagination { margin-top: 40px; text-align: center; }
.pa-blog-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: var(--navy); text-decoration: none; }
.pa-blog-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Single post */
.pa-post-img { border-radius: 16px; overflow: hidden; margin-bottom: 28px; box-shadow: 0 14px 40px rgba(20,40,80,.12); }
.pa-post-img img { width: 100%; height: auto; display: block; }
.pa-post-content { font-size: 16.5px; line-height: 1.8; color: var(--gray-800); }
.pa-post-content h2, .pa-post-content h3 { font-family: 'Inter', sans-serif; color: var(--navy); margin: 28px 0 12px; }
.pa-post-content p { margin-bottom: 18px; }
.pa-post-content img { border-radius: 12px; max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .pa-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pa-blog-featured { grid-template-columns: 1fr; }
  .pa-blog-featured .pa-blog-cover { min-height: 220px; }
  .pa-blog-featured-body { padding: 28px 24px; }
  .pa-blog-featured-title { font-size: 24px; }
}
@media (max-width: 600px) { .pa-blog-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Affiliate area (SliceWP) — forms + dashboard
   ===================================================================== */
.pa-affiliate .page-content { max-width: 680px; margin: 0 auto; }
.pa-affiliate .slicewp-notice, .pa-affiliate .slicewp-message, .slicewp-notice {
  background: var(--accent-pale); border: 1px solid rgba(0,194,221,.35);
  border-radius: 12px; padding: 14px 18px; color: var(--navy); margin-bottom: 24px;
}
.pa-affiliate .slicewp-errors, .slicewp-notice-error { background: #fdecec; border-color: rgba(239,68,68,.4); color: #b91c1c; }
.pa-affiliate .page-content label { display: block; font-weight: 600; color: var(--navy); margin: 0 0 6px; font-size: 14px; }
.pa-affiliate .page-content input[type="text"],
.pa-affiliate .page-content input[type="email"],
.pa-affiliate .page-content input[type="url"],
.pa-affiliate .page-content input[type="password"],
.pa-affiliate .page-content input[type="number"],
.pa-affiliate .page-content textarea,
.pa-affiliate .page-content select {
  width: 100%; box-sizing: border-box; background: #f3f5f8; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--navy); margin-bottom: 18px;
}
.pa-affiliate .page-content input:focus,
.pa-affiliate .page-content textarea:focus,
.pa-affiliate .page-content select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,194,221,.18); outline: none;
}
.pa-affiliate .page-content input[type="submit"],
.pa-affiliate .page-content button[type="submit"],
.pa-affiliate .page-content .slicewp-button,
.pa-affiliate .page-content button {
  background: linear-gradient(135deg,#00c2dd,#2f6bff); color: #fff !important; border: none;
  border-radius: 12px; padding: 13px 30px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .18s ease; width: auto;
}
.pa-affiliate .page-content input[type="submit"]:hover,
.pa-affiliate .page-content button[type="submit"]:hover { transform: translateY(-2px); }
/* Dashboard (once enrolled): tabs + tables */
.slicewp-tab-links, .slicewp-tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.slicewp-tab-links a, .slicewp-tabs-nav a { padding: 10px 16px; color: var(--gray-600); font-weight: 600; text-decoration: none; }
.slicewp-tab-links a.slicewp-active, .slicewp-tabs-nav a.active { color: var(--accent-dark); border-bottom: 2px solid var(--accent); }
.slicewp table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(20,40,80,.06); margin-bottom: 20px; }
.slicewp table th { background: var(--navy-pale); color: var(--navy); text-align: left; padding: 12px 14px; font-size: 13px; }
.slicewp table td { padding: 12px 14px; border-top: 1px solid #eef1f5; font-size: 14px; color: var(--gray-800); }
.pa-upsell-add { text-decoration: none; display: inline-flex; align-items: center; }
.pa-upsell-cart { max-width: 520px; margin: 18px 0 8px; }

/* Product-page Bacteriostatic Water add-on (with image) */
.pa-pdp-addon {
  display: grid; grid-template-columns: 22px 46px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px dashed #cdd8e4; border-radius: 12px;
  padding: 12px 14px; margin: 6px 0 16px; cursor: pointer;
}
.pa-pdp-addon input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent-dark); }
.pa-addon-img { width: 46px; height: 46px; object-fit: contain; }
.pa-addon-text { font-weight: 700; color: var(--navy); font-size: 14px; display: flex; flex-direction: column; line-height: 1.3; }
.pa-addon-text small { font-weight: 500; color: #7385a0; font-size: 12px; }
.pa-pdp-addon .pa-addon-price { font-weight: 800; color: var(--accent-dark); white-space: nowrap; }

/* =====================================================================
   MULTI-STEP CHECKOUT (Shipping → Delivery → Payment)
   ===================================================================== */
.pa-steps-nav { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 560px; margin: 0 auto 28px; }
.pa-step-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #94a3b8; font-size: 12.5px; font-weight: 600; }
.pa-step-dot .pa-dot-num {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #e2e8f0; color: #64748b; font-weight: 700; font-size: 15px; transition: all .2s;
}
.pa-step-dot.active { color: var(--navy); }
.pa-step-dot.active .pa-dot-num { background: linear-gradient(135deg,#00c2dd,#2f6bff); color: #fff; box-shadow: 0 6px 16px rgba(47,107,255,.35); }
.pa-step-dot.done .pa-dot-num { background: var(--navy); color: #fff; }
.pa-step-dot.done { cursor: pointer; }
.pa-step-line { flex: 1 1 40px; height: 2px; background: #e2e8f0; max-width: 80px; }

.pa-step-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.pa-step-actions .pa-step-next { flex: 1 1 auto; }
.pa-step-back { background: none; border: none; cursor: pointer; color: #64748b; font-weight: 600; font-size: 14px; padding: 8px 4px; }
.pa-step-back:hover { color: var(--navy); }
.pa-co-section-title { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 16px; }

/* Delivery (shipping) options */
.pa-ship-method {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.pa-ship-method:hover { border-color: var(--accent); }
.pa-ship-method.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,194,221,.18); }
.pa-ship-method input { accent-color: var(--accent-dark); width: 18px; height: 18px; }
.pa-ship-name { flex: 1 1 auto; font-weight: 600; color: var(--navy); }
.pa-ship-cost { font-weight: 800; color: var(--accent-dark); }
.pa-ship-note { color: #64748b; font-size: 14px; }

/* Invalid-field highlight when advancing past step 1 */
.pa-multistep .validate-required.pa-invalid input,
.pa-multistep .validate-required.pa-invalid select {
  border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
}

@media (max-width: 600px) {
  .pa-step-dot .pa-dot-label { display: none; }
  .pa-steps-nav { gap: 4px; }
}

/* =====================================================================
   MY ACCOUNT PAGE — style WooCommerce's default (was unstyled plain text)
   ===================================================================== */
/* Grid only when LOGGED IN (nav present) — not on the login/register screen */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 0 64px;
}
/* Navigation → card with stacked links */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0;
  background: #fff; border: 1px solid rgba(12,31,63,.10); border-radius: 16px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(20,40,80,.06); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid rgba(12,31,63,.07); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 13px 18px; color: var(--navy);
  font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--navy-pale); }
.woocommerce-MyAccount-navigation li.is-active a {
  background: linear-gradient(135deg,#00c2dd,#2f6bff); color: #fff; }
/* Content panel → glass card */
.woocommerce-MyAccount-content {
  background: rgba(255,255,255,.7); border: 1px solid rgba(12,31,63,.10);
  border-radius: 16px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(20,40,80,.06);
  color: #2a3a52; line-height: 1.7; }
.woocommerce-MyAccount-content a { color: var(--accent-dark); }
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button {
  background: linear-gradient(135deg,#00c2dd,#2f6bff) !important; color: #fff !important;
  border: none !important; border-radius: 10px !important; padding: 11px 20px !important;
  font-weight: 700 !important; }

/* ── LOGGED-OUT: Login + Register screen ── */
.woocommerce-account #customer_login.col2-set {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 900px; margin: 34px auto 64px;
}
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  background: #fff; border: 1px solid rgba(12,31,63,.10);
  border-radius: 16px; padding: 28px 26px; box-shadow: 0 10px 30px rgba(20,40,80,.06);
  width: auto; float: none;
}
.woocommerce-account #customer_login h2 {
  font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 18px;
}
.woocommerce-account .woocommerce-form .form-row { display: block; margin: 0 0 14px; padding: 0; }
.woocommerce-account .woocommerce-form label { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 600; font-size: 14px; }
.woocommerce-account .woocommerce-form input.input-text,
.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: 15px; background: #fff; box-sizing: border-box;
}
.woocommerce-account .woocommerce-form input.input-text:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,194,221,.18); outline: none;
}
/* Remember-me on its own line, then a full-width blue button */
.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 14px; color: #46566c;
}
.woocommerce-account #customer_login .button,
.woocommerce-account .woocommerce-form .button,
.woocommerce-account .woocommerce-form button[type="submit"] {
  display: block; width: 100%; text-align: center; float: none !important;
  background: linear-gradient(135deg,#00c2dd,#2f6bff) !important; color: #fff !important;
  border: none !important; border-radius: 10px !important; padding: 13px 20px !important;
  font-weight: 700 !important; font-size: 15px !important; cursor: pointer; margin-top: 4px;
}
.woocommerce-account .woocommerce-LostPassword { margin: 12px 0 0; font-size: 13.5px; }
.woocommerce-account .woocommerce-LostPassword a { color: var(--accent-dark); }
.woocommerce-account #customer_login .woocommerce-privacy-policy-text p { font-size: 12.5px; color: #6b7a90; line-height: 1.6; }

@media (max-width: 768px) {
  .woocommerce-account #customer_login.col2-set { grid-template-columns: 1fr; gap: 16px; margin: 22px auto 48px; }
  /* Stack nav over content; keep My Account usable on phones */
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 48px; }
  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; }
  .woocommerce-MyAccount-navigation li { border-bottom: none; flex: 1 1 auto; }
  .woocommerce-MyAccount-navigation li a { text-align: center; padding: 11px 12px; }
}

/* =====================================================================
   CART PAGE — make each row wrap cleanly on phones (controls stay tappable)
   ===================================================================== */
@media (max-width: 600px) {
  .pa-cart-row { flex-wrap: wrap; row-gap: 10px; }
  .pa-cart-row-info { flex: 1 1 100%; order: 3; width: 100%; }
  .pa-cart-row-img { order: 1; }
  .pa-cart-row-price { order: 2; }
  .pa-cart-row-actions { justify-content: space-between; width: 100%; }
}

/* =====================================================================
   WOOCOMMERCE NOTICES — clean banner rows (message left, button right).
   Fixes the messy "added to cart / View cart" pile-up on the account page.
   ===================================================================== */
.woocommerce-notices-wrapper { display: block; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-info,
.woocommerce-account .woocommerce > .woocommerce-error {
  grid-column: 1 / -1; /* span both account columns if rendered as a grid child */
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex !important; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff !important;
  border: 1px solid rgba(12,31,63,.10) !important;
  border-left: 4px solid var(--accent) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  margin: 0 0 12px !important;
  box-shadow: 0 6px 18px rgba(20,40,80,.06) !important;
  color: var(--navy) !important;
  font-size: 14px !important; line-height: 1.5 !important;
  list-style: none !important;
}
.woocommerce-message { border-left-color: #16a34a !important; }
.woocommerce-error   { border-left-color: #e53e3e !important; }
/* Hide WooCommerce's absolutely-positioned check/info icon (the colored left
   border already conveys status) so nothing overlaps the text */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none !important; display: none !important; }
/* "View cart" button → compact, pinned to the right, never floated/overlapping */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-account .woocommerce-message .button {
  margin: 0 0 0 auto !important;
  float: none !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  white-space: nowrap;
  background: linear-gradient(135deg,#00c2dd,#2f6bff) !important;
  color: #fff !important; border: none !important;
}
@media (max-width: 600px) {
  .woocommerce-message, .woocommerce-info, .woocommerce-error { font-size: 13px !important; }
  .woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
    margin-left: 0 !important; width: 100%; text-align: center;
  }
}

/* =====================================================================
   SHOP SIDEBAR → horizontal scrolling category pills on mobile
   (was a tall vertical list that took over the screen)
   ===================================================================== */
@media (max-width: 768px) {
  .pa-shop-wrapper { padding: 18px 16px 56px !important; gap: 16px !important; }
  /* min-width:0 lets the columns shrink below the pills' width so the page
     doesn't overflow — without it the non-wrapping pills blow out the layout */
  .pa-shop-sidebar, .pa-shop-main { min-width: 0; max-width: 100%; }
  .pa-shop-sidebar .pa-sidebar-block { min-width: 0; }
  .pa-shop-sidebar {
    background: transparent !important; border: none !important;
    border-radius: 0 !important; padding: 0 !important; position: static !important;
  }
  /* keep products at two tidy columns */
  .pa-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* hide everything except the category list (price slider/title/reset) */
  .pa-shop-sidebar .pa-sidebar-title,
  .pa-shop-sidebar .pa-reset-btn { display: none !important; }
  .pa-shop-sidebar .pa-sidebar-block + .pa-sidebar-block { display: none !important; }
  .pa-cat-list {
    flex-direction: row !important; flex-wrap: nowrap;
    overflow-x: auto; gap: 8px; padding: 2px 0 8px; min-width: 0; max-width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pa-cat-list::-webkit-scrollbar { display: none; }
  .pa-cat-item { flex: 0 0 auto; }
  .pa-cat-item a {
    white-space: nowrap; border: 1.5px solid var(--gray-200);
    border-radius: 999px; padding: 9px 16px; background: #fff; font-weight: 600;
  }
  .pa-cat-item.active a {
    background: var(--navy); color: #fff; border-color: var(--navy);
  }
  .pa-cat-radio, .pa-cat-count { display: none !important; } /* compact pills */
}

/* =====================================================================
   CHECKOUT — tighter top spacing (smaller hero/title, less padding)
   ===================================================================== */
body.woocommerce-checkout .page-hero { padding: 30px 0 10px !important; }
body.woocommerce-checkout .page-hero h1 { font-size: 32px; }
body.woocommerce-checkout .page-hero + .container { padding-top: 16px !important; }
@media (max-width: 600px) {
  body.woocommerce-checkout .page-hero { padding: 16px 0 4px !important; }
  body.woocommerce-checkout .page-hero h1 { font-size: 24px; }
  body.woocommerce-checkout .page-hero + .container { padding-top: 6px !important; }
}

/* =====================================================================
   LEGAL PAGES (Terms of Service / Research Policy) — clean readable doc
   ===================================================================== */
.pa-legal-wrap { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.pa-legal-body { color: #3a4a61; font-size: 15.5px; line-height: 1.8; }
.pa-legal-body h2 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid rgba(12,31,63,.08);
}
.pa-legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.pa-legal-body h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 22px 0 8px; }
.pa-legal-body p { margin: 0 0 16px; }
.pa-legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.pa-legal-body li { margin-bottom: 8px; }
.pa-legal-body a { color: var(--accent-dark); }
@media (max-width: 600px) {
  .pa-legal-wrap { padding: 26px 18px 56px; }
  .pa-legal-body { font-size: 14.5px; }
  .pa-legal-body h2 { font-size: 18px; }
}

/* =====================================================================
   DEFAULT WOOCOMMERCE CART (fallback when the custom cart template
   isn't used, e.g. on hosts running the block/plugin cart) — on-brand
   ===================================================================== */
.woocommerce-cart .woocommerce { max-width: 1180px; margin: 0 auto; }
.woocommerce-cart table.shop_table {
  border: 1px solid rgba(12,31,63,.10) !important; border-radius: 14px !important;
  border-collapse: separate !important; overflow: hidden; background: #fff;
}
.woocommerce-cart table.shop_table th {
  background: #f6f8fb; color: var(--navy); font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 13px; padding: 14px 16px; border: none;
}
.woocommerce-cart table.shop_table td {
  border-top: 1px solid rgba(12,31,63,.07) !important; padding: 16px; vertical-align: middle; color: #3a4a61;
}
.woocommerce-cart table.shop_table img { width: 60px !important; border-radius: 10px; border: 1px solid rgba(12,31,63,.08); }
.woocommerce-cart .product-remove a.remove {
  color: #ef4444 !important; font-weight: 700; border: 1px solid rgba(239,68,68,.3);
  width: 26px; height: 26px; line-height: 24px; border-radius: 50%;
}
.woocommerce-cart .product-remove a.remove:hover { background: #ef4444 !important; color: #fff !important; }
.woocommerce-cart .quantity input.qty {
  border: 1px solid #e2e8f0 !important; border-radius: 8px; padding: 8px; width: 64px;
}
/* Cart totals → frosted summary card */
.woocommerce-cart .cart-collaterals .cart_totals {
  background: #f6f8fb; border: 1px solid rgba(12,31,63,.10); border-radius: 16px;
  padding: 24px; box-shadow: 0 10px 30px rgba(20,40,80,.06);
}
.woocommerce-cart .cart_totals h2 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.woocommerce-cart .cart_totals table { border: none; }
.woocommerce-cart .cart_totals th, .woocommerce-cart .cart_totals td { border-top: 1px solid rgba(12,31,63,.08); padding: 12px 0; color: var(--navy); }
.woocommerce-cart .cart_totals .order-total .amount { color: var(--accent-dark); font-size: 20px; }
/* Coupon + checkout buttons (brand blue is handled by the global .button rule) */
.woocommerce-cart .coupon input[type="text"], .maef-coupon-wrap input[type="text"] {
  border: 1px solid #e2e8f0 !important; border-radius: 10px !important; padding: 11px 14px !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  font-size: 16px !important; padding: 16px !important; border-radius: 10px !important;
}
