/* ============================================================
   Lumera Labs · Pro polish CSS
   Animations, micro-interactions, e-commerce UI
   Loaded after styles.min.css
   ============================================================ */

/* ---------- Scroll reveal ---------- */
.ll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.ll-reveal.ll-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children when section reveals */
.section.ll-revealed > * { animation: ll-stagger 0.7s ease-out both; }
.section.ll-revealed > *:nth-child(1) { animation-delay: 0s; }
.section.ll-revealed > *:nth-child(2) { animation-delay: 0.06s; }
.section.ll-revealed > *:nth-child(3) { animation-delay: 0.12s; }
.section.ll-revealed > *:nth-child(4) { animation-delay: 0.18s; }
.section.ll-revealed > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes ll-stagger { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Buttons: magnetic hover + glow ---------- */
.btn, button.btn, .btn-blue {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.18s ease;
  position: relative;
}
.btn-blue:hover {
  box-shadow: 0 14px 40px rgba(28, 105, 212, 0.42), 0 0 0 1px rgba(28, 105, 212, 0.15);
}
.btn-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn-blue:hover::after {
  opacity: 1;
  animation: ll-shine 1.4s ease;
}
@keyframes ll-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- Product cards: lift + image zoom ---------- */
.prov-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
}
.prov-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(28, 105, 212, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.prov-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(28, 105, 212, 0.2);
}
.prov-card:hover::before { opacity: 1; }
.prov-card img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prov-card:hover img {
  transform: scale(1.04);
}

/* ---------- Cart icon pulse ---------- */
@keyframes ll-cart-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.96); }
}
.ll-cart-pulse {
  animation: ll-cart-pulse 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-cart-link {
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-cart-link:hover {
  border-color: var(--b-blue, #1C69D4) !important;
  color: var(--b-blue, #1C69D4);
}

/* ---------- Skeleton loaders ---------- */
.ll-skeleton {
  background: linear-gradient(90deg, #1a1a22 0%, #25252e 50%, #1a1a22 100%);
  background-size: 200% 100%;
  animation: ll-skeleton-shine 1.4s linear infinite;
  border-radius: 4px;
}
@keyframes ll-skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Recently viewed bar ---------- */
.ll-recently-viewed {
  border-top: 1px solid var(--b-border, #2a2a36);
  padding: 24px 0;
  margin: 64px 0 0;
}
.ll-recently-viewed h3 {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--b-meta, #8a8a96);
  margin: 0 0 16px;
}
.ll-recently-viewed-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}
.ll-recently-viewed-row a {
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  display: block;
}
.ll-recently-viewed-row img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.ll-recently-viewed-row a:hover img {
  transform: translateY(-3px);
}

/* ---------- Live order ticker / social proof popup ---------- */
.ll-social-proof {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 10, 15, 0.95);
  color: #fff;
  border: 1px solid rgba(28, 105, 212, 0.3);
  border-left: 3px solid var(--b-blue, #1C69D4);
  border-radius: 4px;
  padding: 14px 18px 14px 14px;
  font-size: 13px;
  max-width: 320px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 9997;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(8px);
}
.ll-social-proof.ll-show {
  transform: translateY(0);
}
.ll-social-proof img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}
.ll-social-proof-text {
  line-height: 1.4;
}
.ll-social-proof-text strong {
  color: var(--b-blue, #1C69D4);
  font-weight: 700;
}
.ll-social-proof-meta {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.ll-social-proof-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: 0;
  color: inherit;
  opacity: 0.4;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.ll-social-proof-close:hover { opacity: 1; }
@media (max-width: 600px) {
  .ll-social-proof { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Free shipping progress ---------- */
.ll-ship-progress {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(28, 105, 212, 0.06);
  border-left: 3px solid var(--b-blue, #1C69D4);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
}
.ll-ship-progress-bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.ll-ship-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--b-blue, #1C69D4), #5a8fe8);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Stock indicator ---------- */
.ll-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 8px 0;
}
.ll-stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ll-stock.in-stock { color: #2ECC71; }
.ll-stock.in-stock::before { background: #2ECC71; box-shadow: 0 0 6px #2ECC71; animation: ll-pulse-dot 1.5s ease-in-out infinite; }
.ll-stock.low-stock { color: #f5a623; }
.ll-stock.low-stock::before { background: #f5a623; box-shadow: 0 0 6px #f5a623; animation: ll-pulse-dot 1.5s ease-in-out infinite; }
@keyframes ll-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Wishlist heart ---------- */
.ll-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.ll-wishlist-btn:hover {
  background: rgba(28, 105, 212, 0.8);
  transform: scale(1.1);
}
.ll-wishlist-btn.is-saved {
  background: var(--b-blue, #1C69D4);
  animation: ll-heart-pop 0.4s cubic-bezier(0.5, 1.6, 0.4, 1);
}
@keyframes ll-heart-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---------- Exit-intent / newsletter modal ---------- */
.ll-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ll-modal-overlay.ll-show { display: flex; opacity: 1; }
.ll-modal {
  background: linear-gradient(180deg, #14141c 0%, #0a0a0f 100%);
  color: #fff;
  border: 1px solid rgba(28, 105, 212, 0.3);
  border-radius: 6px;
  padding: 48px 40px;
  max-width: 480px;
  width: calc(100% - 32px);
  position: relative;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(28, 105, 212, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ll-modal-overlay.ll-show .ll-modal { transform: scale(1); }
.ll-modal h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.ll-modal p { color: #8a8a96; margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.ll-modal input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.ll-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #8a8a96;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.ll-modal-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- Trust mini-bar ---------- */
.ll-trust-mini {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px;
  background: rgba(28, 105, 212, 0.04);
  border-top: 1px solid rgba(28, 105, 212, 0.15);
  border-bottom: 1px solid rgba(28, 105, 212, 0.15);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--b-meta, #8a8a96);
}
.ll-trust-mini span { display: inline-flex; align-items: center; gap: 8px; }
.ll-trust-mini svg { width: 14px; height: 14px; opacity: 0.7; }

/* ---------- Page transition ---------- */
.ll-page-fade {
  animation: ll-page-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes ll-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero atmosphere ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

/* Behind-everything radial blue glow */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 105, 212, 0.22) 0%, rgba(28, 105, 212, 0.06) 35%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ll-ambient 10s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes ll-ambient {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  100% { transform: translate(-46%, -54%) scale(1.18); opacity: 1; }
}

/* Vignette to sink the product image bg into the gradient */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(180deg, rgba(10, 10, 18, 0) 0%, rgba(10, 10, 18, 0.55) 80%, rgba(10, 10, 18, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Watermark hex logo: sits behind text, low opacity, drifts gently */
.hero-mark {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: clamp(420px, 55vw, 900px);
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  filter: blur(0.5px) drop-shadow(0 0 80px rgba(28, 105, 212, 0.4));
  animation: ll-mark-drift 14s ease-in-out infinite alternate;
}
.hero-mark img {
  width: 100%;
  height: auto;
  display: block;
  /* mask edges into the background */
  mask-image: radial-gradient(circle at center, #000 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 85%);
}
@keyframes ll-mark-drift {
  0% { transform: translateY(-50%) translateX(0) rotate(0deg); }
  100% { transform: translateY(-48%) translateX(-10px) rotate(1deg); }
}

@media (max-width: 720px) {
  .hero-mark {
    right: -25%;
    opacity: 0.12;
    width: 80vw;
  }
}

/* Hero text content sits above everything */
.hero-inner {
  position: relative;
  z-index: 2;
}

/* Inline tiny logo before eyebrow */
.hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow-mark {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(28, 105, 212, 0.6));
  vertical-align: middle;
}

/* Hide the old centered hero-logo image (replaced by watermark + eyebrow mark) */
.hero-logo { display: none !important; }

/* ---------- Reduce motion fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  .ll-reveal, .ll-reveal.ll-revealed,
  .section.ll-revealed > *,
  .btn-blue::after,
  .hero::before,
  .ll-skeleton,
  .ll-cart-pulse,
  .ll-stock::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
