/* Sheen Peptides — motion, atmosphere, logo, polish */

:root {
  --accent: #ff4d8d;
  --accent-glow: rgba(255, 77, 141, 0.4);
}

/* Logo */
.brand-logo,
a.logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo-img,
a.logo img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 12px rgba(255, 77, 141, 0.35));
}
a.logo:hover img,
.brand-logo:hover img {
  transform: scale(1.1) rotate(-4deg);
}

/* Atmosphere on every page */
.lab-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #07070a;
}
.lab-atmosphere::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 45% 40% at 15% 25%, rgba(255, 77, 141, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 45% at 85% 75%, rgba(255, 60, 130, 0.1), transparent 50%),
    radial-gradient(ellipse 35% 30% at 55% 15%, rgba(180, 40, 110, 0.08), transparent 50%),
    radial-gradient(ellipse 25% 25% at 40% 80%, rgba(255, 77, 141, 0.06), transparent 45%);
  animation: atmosphereDrift 22s ease-in-out infinite alternate;
}
.lab-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 77, 141, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 141, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 15%, transparent 70%);
  opacity: 0.55;
  animation: gridPulse 8s ease-in-out infinite alternate;
}
.lab-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite;
}
.lab-orb.o1 { width: 320px; height: 320px; background: rgba(255, 77, 141, 0.28); top: 5%; left: -8%; }
.lab-orb.o2 { width: 240px; height: 240px; background: rgba(255, 40, 120, 0.2); bottom: 10%; right: 0%; animation-delay: -5s; }
.lab-orb.o3 { width: 180px; height: 180px; background: rgba(200, 50, 120, 0.18); top: 45%; left: 45%; animation-delay: -9s; }
.lab-orb.o4 { width: 140px; height: 140px; background: rgba(255, 100, 160, 0.12); top: 20%; right: 20%; animation-delay: -2s; }

@keyframes atmosphereDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, -3%) scale(1.06); }
}
@keyframes gridPulse {
  from { opacity: 0.35; }
  to { opacity: 0.65; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -36px); }
}

header, .top, .shell, .layout, section, main, .wrap, .container, .card, .nav {
  position: relative;
  z-index: 1;
}
header, .top { z-index: 50; }

/* Glass header */
header, .top {
  background: rgba(10, 10, 12, 0.75) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 77, 141, 0.12) !important;
}

/* Buttons */
.btn, button.btn, a.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease !important;
}
.btn:hover, button.btn:hover, a.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn:active { transform: translateY(0) scale(0.96); }

/* Cards */
.catalog-card, .product-card, .tile, .feature, .order-card, .addr-card, .box,
.product-spotlight, .pay-opt {
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), border-color 0.25s ease, box-shadow 0.35s ease !important;
}
.catalog-card:hover, .product-card:hover, .tile:hover, .feature:hover, .product-spotlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 77, 141, 0.15);
  border-color: rgba(255, 77, 141, 0.5) !important;
}
.pay-opt:hover, .pay-opt.active {
  border-color: rgba(255, 77, 141, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(255, 77, 141, 0.25), 0 8px 24px rgba(255, 77, 141, 0.1);
}

/* Nav underline */
.nav-links a { position: relative; transition: color 0.2s ease; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.cart-badge.pop, #cartBadge.pop { animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Toast */
.sheen-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 99999;
  background: linear-gradient(145deg, #16161c, #101014);
  border: 1px solid rgba(255, 77, 141, 0.5);
  color: #f0f0f2;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgba(255, 77, 141, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  max-width: 92vw;
}
.sheen-toast.show { transform: translateX(-50%) translateY(0); }
.sheen-toast .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 1s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Fly particle */
.fly-ghost {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px 6px rgba(255, 77, 141, 0.6);
  opacity: 1;
  will-change: transform, opacity;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.sheen-ready { animation: pageIn 0.4s ease; }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.22) !important;
  outline: none;
}

/* Payment brand row */
.pay-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.pay-brands span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ccc;
}
.pay-brands .visa { color: #1a1f71; background: #fff; }
.pay-brands .mc { color: #eb001b; background: #fff; }
.pay-brands .btc { color: #f7931a; }
.pay-brands .eth { color: #8c8cff; }

/* Hero polish */
.hero {
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 141, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
