/* ============================================================
   SYNTH STORE — Custom Theme  (Blue Edition)
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--cl-accent-rgb), 0.45);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--cl-accent-rgb), 0.8);
}

/* ── Background layer & animated glow orbs ────────────────── */
.hero-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--cl-accent-rgb), 0.04);
  z-index: -2;
  pointer-events: none;
}

/* Primary drifting glow */
.bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 35%, rgba(var(--cl-accent-rgb), 0.18), transparent 65%);
  z-index: -1;
  pointer-events: none;
  filter: blur(90px);
  animation: glowDrift 14s ease-in-out infinite alternate;
}

/* Secondary ambient orb */
.hero-bg-layer::before {
  content: '';
  position: absolute;
  top: 55%;
  right: 10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--cl-accent-rgb), 0.10), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

/* Tertiary ambient orb — bottom-left */
.hero-bg-layer::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(var(--cl-accent-rgb), 0.08), transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  animation: orbFloat 22s ease-in-out 4s infinite alternate;
  pointer-events: none;
}

@keyframes glowDrift {
  0%   { background-position: 40% 35%; transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.08); opacity: 0.85; }
  100% { background-position: 60% 55%; transform: scale(1.04); opacity: 1; }
}

@keyframes orbFloat {
  0%   { transform: translate(0,   0)   scale(1);    opacity: 0.8; }
  33%  { transform: translate(30px,-20px) scale(1.1); opacity: 1;   }
  66%  { transform: translate(-20px,15px) scale(0.95); opacity: 0.7; }
  100% { transform: translate(15px, 25px) scale(1.05); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .hero-bg-layer::before,
  .hero-bg-layer::after { animation: none; filter: blur(60px); }
}

/* ── Scroll-reveal entrance animations ────────────────────── */
.synth-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.synth-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.synth-reveal-delay-1 { transition-delay: 0.1s; }
.synth-reveal-delay-2 { transition-delay: 0.2s; }
.synth-reveal-delay-3 { transition-delay: 0.3s; }

/* ── Typography ───────────────────────────────────────────────
   Body text uses the font picked in the SellAuth dashboard.
   Headings use Sora (--font-display) for a distinct display voice. */
h1, h2, h3, h4, h5,
.center-title,
.global-title,
.section-title h1,
.section-title h2,
.hero .content h1,
.cta-title,
.title-purge,
.navbar-brand,
.btn,
.hero-btn,
.cta-btn,
.stat-card .value {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

body {
  font-family: var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Uppercase labels get spacing back, not negative tracking */
.page-badge,
.pln-main-badge,
.feat-badge,
.footer h5,
.cta-text-image .content .subtitle,
.cta-text-center .content .subtitle {
  letter-spacing: 0.06em;
}

/* Numbers line up in columns */
.stat-card .value,
.price-btn,
.products .card .info .price,
.variants .variant .price {
  font-variant-numeric: tabular-nums;
}

/* ── Typography helpers ───────────────────────────────────── */
.center-title {
  width: 100% !important;
  text-align: center !important;
  font-size: 3.8rem !important;
  font-weight: 900 !important;
  margin: 0 auto 4rem auto !important;
  padding: 0 !important;
  display: block !important;
  background: linear-gradient(135deg,
    #ffffff 0%,
    rgba(var(--cl-accent-rgb), 0.9) 50%,
    rgba(var(--cl-accent-rgb), 0.6) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.global-title {
  font-size: 3.8rem;
  font-weight: 900;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(var(--cl-accent-rgb), 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .center-title  { font-size: 2.8rem !important; margin-bottom: 3rem !important; }
  .global-title  { font-size: 2.6rem; }
}
@media (max-width: 480px) {
  .center-title  { font-size: 2.2rem !important; }
  .global-title  { font-size: 2rem; }
}

/* ── Badges ───────────────────────────────────────────────── */
.page-badge,
.pln-main-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(var(--cl-accent-rgb), 0.12);
  border: 1px solid rgba(var(--cl-accent-rgb), 0.35);
  border-radius: 9999px;
  color: rgba(var(--cl-accent-rgb), 1);
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.page-badge:hover,
.pln-main-badge:hover {
  background: rgba(var(--cl-accent-rgb), 0.20);
  border-color: rgba(var(--cl-accent-rgb), 0.6);
  box-shadow: 0 0 18px rgba(var(--cl-accent-rgb), 0.25);
}
.page-badge svg,
.pln-main-badge svg { width: 20px; height: 20px; }

/* Feature badge — keep it blue, not purple */
.feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(var(--cl-accent-rgb), 0.12);
  border: 1px solid rgba(var(--cl-accent-rgb), 0.35);
  border-radius: 9999px;
  color: rgba(var(--cl-accent-rgb), 1);
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

/* ── Card background ──────────────────────────────────────── */
.card-bg-color {
  background: linear-gradient(180deg,
    rgba(var(--cl-accent-rgb), 0.00),
    rgba(var(--cl-accent-rgb), 0.18));
}

/* ── Enhanced button glow effects ────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--cl-accent-rgb), 0.45) !important;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(var(--cl-accent-rgb), 0.35) !important;
}

/* ── Product cards — enhanced glow on hover ───────────────── */
.product-card-purge {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.product-card-purge:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 36px rgba(var(--cl-accent-rgb), 0.22) !important;
  border-color: rgba(var(--cl-accent-rgb), 0.55) !important;
}

/* Buy-now button glow */
.buy-now-btn {
  background: linear-gradient(135deg,
    rgba(var(--cl-accent-rgb), 0.55),
    rgba(var(--cl-accent-rgb), 0.25)) !important;
  transition: background 0.25s, box-shadow 0.25s !important;
}
.buy-now-btn:hover {
  background: rgba(var(--cl-accent-rgb), 1) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(var(--cl-accent-rgb), 0.6) !important;
}

.price-btn {
  background: rgba(var(--cl-accent-rgb), 0.15) !important;
  transition: background 0.25s, color 0.25s !important;
}
.price-btn:hover {
  background: rgba(var(--cl-accent-rgb), 0.35) !important;
  color: #fff !important;
}

/* ── Feature section ─────────────────────────────────────── */
.feat-wrapper { padding: 5rem 1rem; color: white; }
.feat-container { max-width: 1400px; margin: 0 auto; }
.feat-header { text-align: center; margin-bottom: 4rem; }

/* ── Feature cards hover ─────────────────────────────────── */
.features .list .feature {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  border: 1px solid transparent;
}
.features .list .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(var(--cl-accent-rgb), 0.18);
  border-color: rgba(var(--cl-accent-rgb), 0.3);
}

/* ── Modal backdrop ─────────────────────────────────────── */
.modal-content {
  background: linear-gradient(
    160deg,
    rgba(var(--cl-accent-rgb), 0.5) 0%,
    #000000 100%
  );
  border: 1px solid rgba(var(--cl-accent-rgb), 0.25);
  backdrop-filter: blur(20px);
}

/* ── Dropdown fix (was red — now correct blue theme) ─────── */
.choices .choices__list--dropdown {
  background: linear-gradient(
    160deg,
    rgba(var(--cl-accent-rgb), 0.18) 0%,
    rgba(0, 0, 0, 0.92) 100%
  ) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--cl-accent-rgb), 0.2) !important;
}
.choices .choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: rgba(var(--cl-accent-rgb), 0.3) !important;
  color: #fff !important;
}

/* ── Hero CTA buttons — ensure they use the accent ──────── */
.hero-btn-primary {
  background: linear-gradient(
    135deg,
    rgba(var(--cl-accent-rgb), 1) 0%,
    rgba(var(--cl-accent-rgb), 0.55) 100%
  ) !important;
  box-shadow: 0 6px 24px rgba(var(--cl-accent-rgb), 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.hero-btn-primary:hover {
  box-shadow: 0 10px 36px rgba(var(--cl-accent-rgb), 0.65) !important;
}

/* ── Stat cards — accent glow ────────────────────────────── */
.stat-card {
  background: linear-gradient(
    135deg,
    rgba(var(--cl-accent-rgb), 0.35) 0%,
    rgba(var(--cl-accent-rgb), 0.12) 100%
  ) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.stat-card:hover {
  box-shadow: 0 10px 28px rgba(var(--cl-accent-rgb), 0.35) !important;
}

/* ── Navbar pulsing underline on active link ─────────────── */
.navbar.component .nav-item a.nav-link.active {
  color: rgba(var(--cl-accent-rgb), 1) !important;
  border-color: rgba(var(--cl-accent-rgb), 0.6) !important;
  background: rgba(var(--cl-accent-rgb), 0.12) !important;
}

/* ── Testimonial / feedback cards ───────────────────────── */
.testimonial {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(var(--cl-accent-rgb), 0.2);
}

/* ── Pulsating indicator ─────────────────────────────────── */
@keyframes synthPulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--cl-accent-rgb), 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(var(--cl-accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--cl-accent-rgb), 0); }
}
.synth-pulse { animation: synthPulse 2s infinite; }

/* ── Notification popup — slide-in from left ─────────────── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.notification-content {
  animation: slideInLeft 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  border: 1px solid rgba(var(--cl-accent-rgb), 0.2) !important;
}

/* ── Feedback slider fade-mask ───────────────────────────── */
.feedback-slider-wrapper.second-row.fade-mask { padding-top: 20px; }

/* ── Links ───────────────────────────────────────────────── */
a { text-decoration: none !important; }

/* ── Accordion active — blue glow ────────────────────────── */
.faq .accordion-button:not(.collapsed) {
  box-shadow: 0 0 0 2px rgba(var(--cl-accent-rgb), 0.25) inset !important;
}

/* ── Cart form panel ─────────────────────────────────────── */
.cart .form {
  background: rgba(var(--cl-accent-rgb), 0.10) !important;
  border: 1px solid rgba(var(--cl-accent-rgb), 0.2);
  border-radius: var(--bs-border-radius);
}

/* ── Scroll-to-top button ────────────────────────────────── */
.scroll-to-top-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.scroll-to-top-btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 20px rgba(var(--cl-accent-rgb), 0.5) !important;
}

/* ── Shimmer loading effect (applied to skeleton loaders) ─── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.synth-skeleton {
  background: linear-gradient(
    90deg,
    rgba(var(--cl-accent-rgb), 0.06) 25%,
    rgba(var(--cl-accent-rgb), 0.12) 50%,
    rgba(var(--cl-accent-rgb), 0.06) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--bs-border-radius);
}

/* ── Floating label / input focus glow ───────────────────── */
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(var(--cl-accent-rgb), 0.2),
              0 0 12px rgba(var(--cl-accent-rgb), 0.15) !important;
}

/* ── Section divider line ────────────────────────────────── */
.synth-divider {
  height: 1px;
  border: none;
  background: linear-gradient(
    to right,
    transparent,
    rgba(var(--cl-accent-rgb), 0.5) 40%,
    rgba(var(--cl-accent-rgb), 0.5) 60%,
    transparent
  );
  margin: 0;
}

/* ── Inline JS-powered scroll-reveal initialisation ─────── */
/* Applied automatically when the page loads via the inline script below.
   Add class="synth-reveal" to any element to animate it in on scroll. */
