/* PhoneYa2 performance layer: preserve the design while prioritising scroll responsiveness. */
html,body{scroll-behavior:auto!important}
/* Do not freeze every animation during scroll: that can leave animated gradients stuck on a dark frame. */
img,video{max-width:100%}
@media(max-width:768px){
  /* Blurring large fixed layers is expensive on mid-range mobile GPUs. Keep their solid styling. */
  body>.top-header,body>header,body>header.top,body>nav.py2-quick-tabs,
  .bottom-nav,.mobile-bottom-nav,.top-header,.site-header{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  /* Static luminous deal frames while scrolling; the animated deal treatment resumes at rest. */
    /* Decorative ambient watermarks do not need to animate on small screens. */
  .py2-page-logo-ambient,.phoneya2-home-intro::before{
    animation:none!important;will-change:auto!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{scroll-behavior:auto!important}
}


/* Mobile scroll optimisation: keep banners consistent, but stop costly rotating card-frame filters. */
@media(max-width:768px){
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.pc-orig),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.price-drop-banner),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.drop-banner),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.prod-save),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.pcard-save),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.py2-selling-savings){
    animation:none!important;
    filter:none!important;
  }
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.pc-orig),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.price-drop-banner),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.drop-banner),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.prod-save),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.pcard-save),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.py2-selling-savings){
    box-shadow:0 0 0 1px rgba(0,145,255,.15),0 3px 12px rgba(25,65,120,.10)!important;
  }
}


/* PhoneYa2 stable background + mobile rendering guard (2026-10-20).
   Keep the page canvas explicitly light and stop animated watermark/filter layers
   from repainting the entire viewport during long scrolls. */
html, body {
  background-color: #f2f5f9 !important;
  background-image: none !important;
  scroll-behavior: auto !important;
}
body {
  color: #17243a;
  background: #f2f5f9 !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
body::before, body::after {
  animation: none !important;
  transition: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  will-change: auto !important;
}
@media (max-width: 768px) {
  /* Avoid animated full-viewport logo layers and GPU-heavy moving card frames on phones. */
  body::before, body::after { opacity: 0 !important; }
  .pcard.py2-discount-card,
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.pc-orig),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.price-drop-banner),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.drop-banner),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.prod-save),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.pcard-save),
  :is(.pcard,.pc,.py2-product-card,.side-prod):has(.py2-selling-savings) {
    animation: none !important;
    filter: none !important;
    will-change: auto !important;
  }
  .pcard.py2-discount-card {
    background: #fff !important;
    border: 1px solid #dce7f3 !important;
    box-shadow: 0 3px 12px rgba(25,65,120,.10) !important;
  }
}


/* FINAL mobile + desktop scroll background guard.
   Use a bright page canvas behind all homepage sections, not a viewport-dependent
   dark gradient. Keep actual cards opaque white so text never sits on water. */
html.py2-water-enabled {
  background: linear-gradient(145deg,#f8fcff 0%,#eaf8fc 48%,#e1f4fa 100%) !important;
  background-color: #eef9fd !important;
}
body.py2-water-page {
  background-color: transparent !important;
  background-image: none !important;
}
body.py2-water-page .section-card,
body.py2-water-page .side-card,
body.py2-water-page .howto-section,
body.py2-water-page .cat-showcase,
body.py2-water-page .trust-item,
body.py2-water-page .pcard,
body.py2-water-page .pc,
body.py2-water-page .product-card {
  background-color: #fff !important;
  color: #17243a !important;
}
@media (max-width: 768px) {
  html.py2-water-enabled {
    background: linear-gradient(160deg,#f8fcff 0%,#eaf8fc 52%,#e1f4fa 100%) !important;
  }
}


/* Final background authority: do not let the scroll-performance layer replace
   the water experience with a pale or dark fallback between product sections. */
html.py2-water-enabled {
  background-color: #087c9b !important;
  background-image: linear-gradient(145deg,#087c9b 0%,#119bb5 28%,#087f9f 57%,#043d61 100%) !important;
  background-attachment: fixed !important;
}
body.py2-water-page {
  background: transparent !important;
}
body.py2-water-page.shop-page :is(main,.main-wrap,.shop-main,.page-content,.products-section,.products-grid,.products-container,.products-wrap,.endless-products-section,.search-bar,.filter-bar,.trust-strip,.shop-content) {
  background-color: transparent !important;
  background-image: none !important;
}
body.py2-water-page.shop-page :is(.pcard,.product-card,.product-item,.skel-card) {
  background: #fff !important;
  color: #17243a !important;
}
@media (max-width: 768px) {
  html.py2-water-enabled {
    background-image: linear-gradient(160deg,#087c9b 0%,#119bb5 28%,#087f9f 57%,#043d61 100%) !important;
  }
}


/* SHOP ONLY — clean white canvas and stronger, layered product-card depth.
   Hide the decorative water canvases on Shop; keep the water experience on other pages. */
html.py2-water-enabled:has(body.shop-page),
html.py2-water-enabled:has(body.shop-page) body,
html.py2-water-enabled body.shop-page {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
body.shop-page #py2-water-surface,
body.shop-page #py2-water-interaction-surface {
  display: none !important;
}
body.shop-page :is(.shop-hero + .trust-strip,.trust-strip,.search-bar,.howto-mini,.filter-bar,.shop-topbar,.products-section,.products-grid,.products-section > *) {
  background-color: #ffffff !important;
  background-image: none !important;
}
body.shop-page .pcard,
body.shop-page .products-grid > .pcard {
  background: #ffffff !important;
  border: 1px solid #e2eaf3 !important;
  border-radius: 16px !important;
  box-shadow:
    0 2px 5px rgba(20,45,75,.05),
    0 8px 18px rgba(20,45,75,.10),
    0 16px 30px rgba(20,45,75,.07) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
@media (hover:hover) {
  body.shop-page .pcard:hover,
  body.shop-page .products-grid > .pcard:hover {
    transform: translateY(-4px) !important;
    border-color: #b8d7f4 !important;
    box-shadow:
      0 4px 8px rgba(20,45,75,.06),
      0 14px 28px rgba(20,45,75,.14),
      0 24px 42px rgba(20,45,75,.10) !important;
  }
}
body.shop-page .pcard-img {
  background: linear-gradient(145deg,#fbfdff,#f0f5fa) !important;
}
@media (max-width: 768px) {
  body.shop-page .pcard,
  body.shop-page .products-grid > .pcard {
    box-shadow: 0 2px 4px rgba(20,45,75,.05),0 6px 15px rgba(20,45,75,.10),0 12px 22px rgba(20,45,75,.06) !important;
  }
}


/* SITE-WIDE WHITE CANVAS + PRODUCT DEPTH (2026-10-20).
   Apply the Shop's clean white background and stronger product-card separation across the site. */
html, html.py2-water-enabled,
html.py2-water-enabled:has(body),
html.py2-water-enabled body,
body, body.py2-water-page {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
body #py2-water-surface,
body #py2-water-interaction-surface {
  display: none !important;
}
body :is(.pcard,.py2-product-card,.product-card,.product-item,.side-prod) {
  background-color: #ffffff !important;
  border: 1px solid #e2eaf3 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 5px rgba(20,45,75,.05), 0 8px 18px rgba(20,45,75,.10), 0 16px 30px rgba(20,45,75,.07) !important;
}
@media (hover:hover) {
  body :is(.pcard,.py2-product-card,.product-card,.product-item,.side-prod):hover {
    transform: translateY(-3px);
    border-color: #b8d7f4 !important;
    box-shadow: 0 4px 8px rgba(20,45,75,.06), 0 14px 28px rgba(20,45,75,.14), 0 24px 42px rgba(20,45,75,.10) !important;
  }
}
@media (max-width:768px) {
  body :is(.pcard,.py2-product-card,.product-card,.product-item,.side-prod) {
    box-shadow: 0 2px 4px rgba(20,45,75,.05), 0 6px 15px rgba(20,45,75,.10), 0 12px 22px rgba(20,45,75,.06) !important;
  }
}

/* Match the price-drop badge to the homepage endless-scroll product cards everywhere. */
:is(.price-drop-banner,.drop-banner) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  min-height: 0 !important;
  padding: 5px 10px !important;
  margin-bottom: 8px !important;
  border: 1px solid #fed7aa !important;
  border-radius: 7px !important;
  background: #fff7ed !important;
  background-image: none !important;
  color: #b45309 !important;
  -webkit-text-fill-color: #b45309 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-shadow: none !important;
  box-shadow: none !important;
  animation: none !important;
  overflow: visible !important;
  isolation: auto !important;
}
:is(.price-drop-banner,.drop-banner) i,
:is(.price-drop-banner,.drop-banner) i::before {
  color: #b45309 !important;
  -webkit-text-fill-color: #b45309 !important;
  filter: none !important;
}
:is(.price-drop-banner,.drop-banner)::before { content: none !important; display: none !important; }

/* Specificity guard: replace older Shop-only rainbow badge overrides with the homepage endless-scroll badge. */
.shop-page .price-drop-banner,
.shop-page .drop-banner {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;
  min-height:0!important;padding:5px 10px!important;margin-bottom:8px!important;
  border:1px solid #fed7aa!important;border-radius:7px!important;background:#fff7ed!important;background-image:none!important;
  color:#b45309!important;-webkit-text-fill-color:#b45309!important;font-size:11px!important;font-weight:600!important;
  line-height:1.35!important;letter-spacing:normal!important;text-align:left!important;text-shadow:none!important;
  box-shadow:none!important;animation:none!important;overflow:visible!important;isolation:auto!important;
}
.shop-page .price-drop-banner i,.shop-page .price-drop-banner i::before,
.shop-page .drop-banner i,.shop-page .drop-banner i::before {color:#b45309!important;-webkit-text-fill-color:#b45309!important;filter:none!important}
.shop-page .price-drop-banner::before,.shop-page .drop-banner::before {content:none!important;display:none!important}


/* Price-drop offer: blue edge glow, while retaining the homepage's warm deal badge. */
.price-drop-banner,
.drop-banner,
body.shop-page .price-drop-banner,
body.shop-page .drop-banner {
  border: 1px solid #60a5fa !important;
  box-shadow: 0 0 0 1px rgba(59,130,246,.30), 0 0 8px rgba(37,99,235,.45), 0 0 16px rgba(37,99,235,.24) !important;
}


/* FINAL BLOG HERO OVERRIDE — loaded last to defeat earlier light-gradient theme rules. */
body.py2-blog-page.py2-blog-redesigned .blog-page-intro,
body.py2-blog-page.py2-blog-redesigned .py2-brand-splash{
  color:#f7fbff!important;
  background:linear-gradient(120deg,#06152d 0%,#0a2850 38%,#102f61 68%,#07152d 100%)!important;
  border:1px solid #285c96!important;
  box-shadow:0 18px 42px rgba(3,13,31,.38),inset 0 1px 0 rgba(255,255,255,.10)!important;
}
body.py2-blog-page.py2-blog-redesigned .blog-page-intro:after,
body.py2-blog-page.py2-blog-redesigned .py2-brand-splash:before{
  background:radial-gradient(ellipse at 16% 15%,rgba(48,139,255,.22),transparent 43%),radial-gradient(ellipse at 84% 24%,rgba(93,94,255,.17),transparent 44%),linear-gradient(115deg,transparent 0%,rgba(255,255,255,.045) 48%,transparent 72%)!important;
}
body.py2-blog-page.py2-blog-redesigned .blog-page-intro .blog-eyebrow,
body.py2-blog-page.py2-blog-redesigned .blog-page-intro h1,
body.py2-blog-page.py2-blog-redesigned .blog-page-intro h1 span,
body.py2-blog-page.py2-blog-redesigned .blog-page-intro .blog-intro-text,
body.py2-blog-page.py2-blog-redesigned .py2-brand-splash-slogan,
body.py2-blog-page.py2-blog-redesigned .py2-brand-splash-description{
  color:#f4f8ff!important;
  -webkit-text-fill-color:#f4f8ff!important;
  text-shadow:0 1px 3px rgba(0,0,0,.28)!important;
}
body.py2-blog-page.py2-blog-redesigned .blog-page-intro .blog-eyebrow{color:#8bc7ff!important;-webkit-text-fill-color:#8bc7ff!important}
body.py2-blog-page.py2-blog-redesigned .blog-page-intro h1 span{color:#8fc5ff!important;-webkit-text-fill-color:#8fc5ff!important}
body.py2-blog-page.py2-blog-redesigned .blog-page-intro .blog-business-link{
  background:#f8fbff!important;color:#102849!important;border-color:#91bce9!important;
  box-shadow:0 8px 22px rgba(0,0,0,.24)!important;
}
body.py2-blog-page.py2-blog-redesigned .blog-page-intro .blog-business-link :is(strong,span,p){
  color:#18395f!important;-webkit-text-fill-color:#18395f!important;
}
body.py2-blog-page.py2-blog-redesigned .py2-brand-splash-topics span{
  color:#eaf4ff!important;background:rgba(2,15,35,.72)!important;border-color:#426fa7!important;
}

/* SITE-WIDE BACKGROUND STANDARD — match Shop's plain white canvas everywhere.
   This deliberately overrides every legacy water/blue/seasonal page-canvas rule. */
html, html.py2-water-enabled, html.py2-xmas, html[class*="py2-season-"],
body, body.py2-water-page, body.shop-page,
html.py2-xmas body, html[class*="py2-season-"] body {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
html.py2-water-enabled::before,
body.py2-water-page::before,
body::before#py2-water-surface,
body #py2-water-surface,
body #py2-water-interaction-surface {
  display: none !important;
  content: none !important;
}
