:root {
  --pp-violet: #6c47e8;
  --pp-violet-dark: #2b136b;
  --pp-violet-ink: #1e0b4d;
  --pp-lavender: #f3f0ff;
  --pp-lavender-2: #e9e2ff;
  --pp-ink: #101014;
  --pp-muted: #68666f;
  --pp-line: rgba(16, 16, 20, 0.1);
  --pp-white: #fff;
  --pp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pp-shadow: 0 24px 70px rgba(43, 19, 107, 0.11);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body.ppx-enhanced {
  --bg: #fff;
  --bg-soft: #f8f6ff;
  --ink: var(--pp-ink);
  --text: var(--pp-ink);
  --text-2: #595665;
  --text-dim: #85818f;
  --line: rgba(43, 19, 107, 0.11);
  --violet: var(--pp-violet);
  --violet-2: #4f2fc9;
  --violet-deep: var(--pp-violet-dark);
  --violet-soft: var(--pp-lavender);
  --green: #5ec8a6;
  --gold: #f2b631;
  color: var(--pp-ink);
  background:
    radial-gradient(circle at 6% 20%, rgba(108, 71, 232, 0.055), transparent 26rem),
    #fff;
}

html.motion-ready body {
  opacity: 0;
  transform: translateY(6px);
}

html.motion-ready.page-entered body {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.7s var(--pp-ease);
}

html.page-leaving body {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ppx-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 20000;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pp-violet), #9f7cff);
  box-shadow: 0 0 14px rgba(108, 71, 232, 0.6);
}

[data-pp-reveal] {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--pp-ease),
    transform 0.95s var(--pp-ease),
    filter 0.85s var(--pp-ease);
  transition-delay: var(--pp-delay, 0ms);
}

[data-pp-reveal="left"] { transform: translateX(-38px); }
[data-pp-reveal="right"] { transform: translateX(38px); }

[data-pp-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

body.ppx-enhanced:not(.ppx-home) > :is(.ann, .announce, .ppx-global-announcement) {
  position: relative;
  z-index: 110;
  color: #fff;
  background:
    radial-gradient(circle at 75% -100%, rgba(173, 143, 255, 0.7), transparent 38%),
    linear-gradient(90deg, #140727, var(--pp-violet-dark) 55%, #5d3ed4);
  letter-spacing: 0.045em;
}

.ppx-global-announcement {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  padding: 8px 20px;
  text-align: center;
  font-size: 12.5px;
}

.ppx-global-announcement span + span::before {
  margin-right: clamp(18px, 4vw, 58px);
  color: #bdaaff;
  content: '✦';
}

.ppx-global-announcement strong {
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

body.ppx-enhanced:not(.ppx-home) > header {
  top: 12px;
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid rgba(43, 19, 107, 0.1);
  border-radius: 999px;
  box-shadow: 0 14px 45px rgba(43, 19, 107, 0.08);
  background: rgba(255, 255, 255, 0.88);
  overflow: visible;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

body.ppx-enhanced:not(.ppx-home) > header .nav {
  border-radius: inherit;
}

body.ppx-enhanced:not(.ppx-home) > header .brand-mark {
  color: #fff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(145deg, #8d68f5, #4f2fc9 70%);
  box-shadow: 0 8px 22px rgba(79, 47, 201, 0.28);
}

body.ppx-enhanced:not(.ppx-home) > header :is(.header-cta, .nav-cta .cart) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(100deg, var(--pp-violet), #825cef) !important;
  box-shadow: 0 9px 24px rgba(108, 71, 232, 0.22);
}

body.ppx-enhanced:not(.ppx-home) > :is(.hero, .page-hero),
body.ppx-enhanced:not(.ppx-home) main > :is(.hero, .page-hero) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  padding-top: clamp(74px, 8vw, 118px);
  padding-bottom: clamp(58px, 7vw, 96px);
  border-bottom: 1px solid rgba(43, 19, 107, 0.08);
  background:
    radial-gradient(circle at 82% 18%, rgba(142, 104, 245, 0.22), transparent 23rem),
    radial-gradient(circle at 12% 85%, rgba(108, 71, 232, 0.1), transparent 22rem),
    linear-gradient(145deg, #fff 4%, #faf8ff 54%, #eee8ff 100%);
}

body.ppx-enhanced:not(.ppx-home) > :is(.hero, .page-hero)::after,
body.ppx-enhanced:not(.ppx-home) main > :is(.hero, .page-hero)::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(32vw, 440px);
  aspect-ratio: 1;
  right: -8%;
  bottom: -72%;
  border: 1px solid rgba(108, 71, 232, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(108, 71, 232, 0.035),
    0 0 0 96px rgba(108, 71, 232, 0.025);
}

body.ppx-enhanced:not(.ppx-home) > :is(.hero, .page-hero) :is(h1, .title),
body.ppx-enhanced:not(.ppx-home) main > :is(.hero, .page-hero) :is(h1, .title) {
  max-width: 980px;
  margin-inline: auto;
  color: var(--pp-ink);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body.ppx-enhanced:not(.ppx-home) :is(.eyebrow, .kicker, .overline) {
  color: var(--pp-violet);
  border: 1px solid rgba(108, 71, 232, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 25px rgba(43, 19, 107, 0.06);
}

body.ppx-enhanced:not(.ppx-home) > :is(.hero, .page-hero) :is(.lead, .subtitle, p),
body.ppx-enhanced:not(.ppx-home) main > :is(.hero, .page-hero) :is(.lead, .subtitle, p) {
  max-width: 700px;
  margin-inline: auto;
  color: var(--pp-muted);
  text-wrap: balance;
}

body.ppx-enhanced:not(.ppx-home) :is(
  .process-card,
  .method-card,
  .tool-card,
  .guide-card,
  .gh-card,
  .cat-card,
  .review-card,
  .related-card,
  .kit-card,
  .blog-card,
  .calc-card,
  .tip-card,
  .profile-card,
  .faq-item,
  .lot-row,
  .contact-card
) {
  border-color: rgba(43, 19, 107, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 42px rgba(43, 19, 107, 0.06);
  transform: translateZ(0);
  transition:
    transform 0.5s var(--pp-ease),
    box-shadow 0.5s var(--pp-ease),
    border-color 0.35s ease;
}

body.ppx-enhanced:not(.ppx-home) :is(
  .process-card,
  .method-card,
  .tool-card,
  .guide-card,
  .gh-card,
  .cat-card,
  .review-card,
  .related-card,
  .kit-card,
  .blog-card,
  .calc-card,
  .tip-card,
  .profile-card,
  .faq-item,
  .contact-card
):hover {
  transform: translateY(-6px);
  border-color: rgba(108, 71, 232, 0.32);
  box-shadow: var(--pp-shadow);
}

body.ppx-enhanced:not(.ppx-home) :is(
  .stats-section,
  .lots-section,
  .articles,
  .calc-section,
  .tips,
  .methods,
  .process,
  .hours,
  .faq-mini,
  .timeline-section,
  .comparison-section,
  .specs-section,
  .reviews-section
) {
  border-color: rgba(43, 19, 107, 0.08);
}

body.ppx-enhanced:not(.ppx-home) :is(
  .stats-section,
  .lots-section,
  .articles,
  .calc-section,
  .hours,
  .comparison-section,
  .reviews-section
) {
  background-color: #f8f6ff;
  background-image: radial-gradient(circle at 88% 8%, rgba(108, 71, 232, 0.08), transparent 24rem);
}

body.ppx-enhanced:not(.ppx-home) :is(input, select, textarea) {
  border-color: rgba(43, 19, 107, 0.14);
  border-radius: 13px;
  background-color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.ppx-enhanced:not(.ppx-home) :is(input, select, textarea):focus {
  border-color: var(--pp-violet);
  box-shadow: 0 0 0 4px rgba(108, 71, 232, 0.11);
  outline: none;
}

body.ppx-enhanced:not(.ppx-home) > footer {
  color: rgba(255, 255, 255, 0.74);
  border-top: 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(108, 71, 232, 0.27), transparent 27rem),
    #0d0b12;
}

body.ppx-enhanced:not(.ppx-home) > footer :is(h2, h3, h4, strong, .brand, .footer-brand) {
  color: #fff;
}

body.ppx-enhanced:not(.ppx-home) > footer a {
  color: rgba(255, 255, 255, 0.72);
}

body.ppx-enhanced:not(.ppx-home) > footer a:hover {
  color: #fff;
}

body.ppx-enhanced.ppx-product-page :is(.product-gallery, .product-visual, .gallery-main, .product-image) {
  border-color: rgba(43, 19, 107, 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, #f7f4ff, #fff);
}

body.ppx-enhanced.ppx-product-page .product-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(142, 104, 245, 0.17), transparent 27rem),
    linear-gradient(145deg, #fff 12%, #faf8ff 58%, #f0ebff 100%);
}

body.ppx-enhanced.ppx-product-page .product-info h1 {
  color: var(--pp-ink);
  letter-spacing: -0.055em;
}

body.ppx-enhanced .pp-cart-panel {
  border-left: 1px solid rgba(108, 71, 232, 0.13) !important;
  border-radius: 28px 0 0 28px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(108, 71, 232, 0.1), transparent 18rem),
    #fff !important;
  box-shadow: -28px 0 80px rgba(30, 11, 77, 0.2) !important;
}

body.ppx-enhanced .pp-cart-head {
  min-height: 82px;
  border-color: rgba(43, 19, 107, 0.1) !important;
}

body.ppx-enhanced .pp-cart-head h3 {
  font-size: 21px !important;
  letter-spacing: -0.035em !important;
}

body.ppx-enhanced :is(.pp-cart-foot, .pp-cart-list) {
  border-color: rgba(43, 19, 107, 0.1) !important;
  background: transparent !important;
}

body.ppx-enhanced .pp-cart-thumb {
  border: 1px solid rgba(108, 71, 232, 0.11);
  border-radius: 15px !important;
  background: linear-gradient(145deg, #f5f1ff, #fff) !important;
}

body.ppx-enhanced .pp-cart-checkout {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(100deg, var(--pp-violet), #8c64f2) !important;
  box-shadow: 0 14px 32px rgba(108, 71, 232, 0.24);
}

body.ppx-enhanced.ppx-blog-page :is(.article-wrap, article) {
  color: #242129;
}

body.ppx-enhanced.ppx-blog-page :is(.article-wrap, article) h2 {
  letter-spacing: -0.025em;
}

/* Every solid violet action keeps accessible white copy. */
body.ppx-enhanced :is(
  .ppx-button-primary,
  .btn-primary,
  .btn.primary,
  .header-cta,
  .nav-cta .cart,
  .buy-btn,
  .add-btn,
  .submit-btn,
  .auth-submit,
  .btn-pay,
  .fav-add,
  .wish-add,
  .qs-addall,
  .lot-dl,
  .btn-cta,
  .tg-qr-btn,
  .checkout-btn,
  .pp-cart-empty .cta
) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ppx-enhanced :is(.btn-primary, .header-cta, .nav-cta .cart, .buy-btn, .add-btn, .cta, button, [role="button"]) {
  transition:
    transform 0.3s var(--pp-ease),
    box-shadow 0.3s var(--pp-ease),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

body.ppx-enhanced :is(.btn-primary, .header-cta, .nav-cta .cart, .buy-btn, .add-btn, .cta):hover {
  box-shadow: 0 13px 32px rgba(108, 71, 232, 0.27);
}

body.ppx-enhanced :is(.opep, .product-card, .related-card, .kit-card, .blog-card, .cat-card) {
  transform: translateZ(0);
  transition:
    transform 0.5s var(--pp-ease),
    box-shadow 0.5s var(--pp-ease),
    border-color 0.35s ease;
}

body.ppx-enhanced :is(.opep, .product-card, .related-card, .kit-card, .blog-card, .cat-card):hover {
  transform: translateY(-7px);
  border-color: rgba(108, 71, 232, 0.35);
  box-shadow: var(--pp-shadow);
}

body.ppx-enhanced img {
  transition: transform 0.8s var(--pp-ease), filter 0.6s ease;
}

body.ppx-enhanced :is(.opep, .product-card, .related-card, .kit-card, .blog-card, .cat-card):hover img {
  transform: scale(1.025);
}

.ppx-back-top {
  position: fixed;
  z-index: 9998;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: var(--pp-ink);
  box-shadow: 0 12px 32px rgba(16, 16, 20, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
}

.ppx-back-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ppx-back-top:hover {
  background: var(--pp-violet);
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .ppx-global-announcement {
    min-height: 34px;
    justify-content: center;
    font-size: 10.5px;
  }

  .ppx-global-announcement span:not(:last-child) {
    display: none;
  }

  .ppx-global-announcement span + span::before {
    content: none;
  }

  body.ppx-enhanced:not(.ppx-home) > header {
    top: 7px;
    width: calc(100% - 14px);
  }

  body.ppx-enhanced:not(.ppx-home) > :is(.hero, .page-hero),
  body.ppx-enhanced:not(.ppx-home) main > :is(.hero, .page-hero) {
    min-height: 280px;
    padding-top: 64px;
    padding-bottom: 58px;
  }

  body.ppx-enhanced:not(.ppx-home) > :is(.hero, .page-hero) :is(h1, .title),
  body.ppx-enhanced:not(.ppx-home) main > :is(.hero, .page-hero) :is(h1, .title) {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  body.ppx-enhanced .pp-cart-panel {
    border-radius: 20px 0 0 20px !important;
  }

  [data-pp-reveal],
  [data-pp-reveal="left"],
  [data-pp-reveal="right"] {
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.motion-ready body,
  html.motion-ready.page-entered body,
  html.page-leaving body,
  [data-pp-reveal],
  [data-pp-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
