/* ==========================================================================
   LunarPay Store — tema custom (Ereemby > Customização > Scripts globais > CSS)
   Ganchos estáveis usados: #__ecommerce_v1, header, footer, .product_card,
   .product_info, .home (grid). Classes "sc-*" do Ereemby mudam a cada deploy
   deles e NUNCA são usadas aqui. Classes lp-* são criadas pelo theme.js.
   ========================================================================== */
:root {
  --lp-pink: #c0006a;
  --lp-pink-2: #ff2d8f;
  --lp-deep: #8b0045;
  --lp-bg: #08080a;
  --lp-card: #0f0f14;
  --lp-line: rgba(255, 255, 255, 0.08);
  --lp-text: #f5f5f7;
  --lp-muted: #9a9aa8;
  --lp-radius: 18px;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--lp-bg) !important;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(192, 0, 106, 0.18), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(139, 0, 69, 0.12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
  background-size: auto, auto, 44px 44px, 44px 44px !important;
  background-attachment: fixed !important;
}

::selection {
  background: var(--lp-pink);
  color: #fff;
}

/* ---------- Header: vidro ---------- */
#__ecommerce_v1 header {
  background: rgba(8, 8, 10, 0.72) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--lp-line) !important;
}

/* ---------- HERO (injetado pelo theme.js) ---------- */
.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 32px;
  align-items: center;
  margin: 8px 0 16px;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid var(--lp-line);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(192, 0, 106, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(20, 20, 28, 0.92), rgba(10, 10, 14, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  color: var(--lp-text);
}

.lp-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 143, 0.25), transparent 65%);
  pointer-events: none;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffd1e6;
  background: rgba(192, 0, 106, 0.16);
  border: 1px solid rgba(255, 45, 143, 0.35);
}

.lp-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.lp-hero h2 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.lp-hero h2 span {
  background: linear-gradient(90deg, #ff2d8f, #ff7ab8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero p.lp-sub {
  margin: 0 0 22px;
  max-width: 520px;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.lp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s var(--lp-ease), box-shadow .2s var(--lp-ease), background .2s;
}

.lp-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.lp-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--lp-pink-2), var(--lp-pink) 55%, var(--lp-deep));
  box-shadow: 0 10px 30px rgba(192, 0, 106, 0.45);
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(192, 0, 106, 0.6);
}

.lp-btn-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lp-line);
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: var(--lp-muted);
  font-size: 13px;
}

.lp-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-trust svg {
  width: 16px;
  height: 16px;
  color: var(--lp-pink-2);
}

.lp-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.lp-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none !important;
  color: var(--lp-text) !important;
  background: rgba(15, 15, 20, 0.8);
  border: 1px solid var(--lp-line);
  transition: transform .25s var(--lp-ease), border-color .25s, background .25s;
}

.lp-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 143, 0.5);
  background: rgba(192, 0, 106, 0.1);
}

.lp-tile .lp-ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 45, 143, 0.25), rgba(139, 0, 69, 0.25));
  border: 1px solid rgba(255, 45, 143, 0.35);
}

.lp-tile .lp-ic svg {
  width: 20px;
  height: 20px;
  color: #ff7ab8;
}

.lp-tile b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.lp-tile small {
  display: block;
  font-size: 12px;
  color: var(--lp-muted);
  line-height: 1.35;
}

/* ---------- Carrossel de banners (hero) ---------- */
.lp-carousel {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 143, 0.25);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(192, 0, 106, 0.18);
}

.lp-track,
.lp-slide {
  position: absolute;
  inset: 0;
}

.lp-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s var(--lp-ease), transform 1.2s var(--lp-ease);
  pointer-events: none;
}

.lp-slide.lp-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s, background .2s;
}

.lp-prev {
  left: 12px;
}

.lp-next {
  right: 12px;
}

.lp-carousel:hover .lp-arrow {
  opacity: 1;
}

.lp-arrow:hover {
  background: rgba(192, 0, 106, 0.75);
}

.lp-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lp-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
}

.lp-dot i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 4px;
}

.lp-dot.lp-on i {
  animation: lpFill 5.5s linear forwards;
}

.lp-carousel.lp-paused .lp-dot.lp-on i {
  animation-play-state: paused;
}

@keyframes lpFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ---------- Vitrine em movimento (2 fileiras de produtos reais) ---------- */
.lp-marquee {
  margin: 0 0 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lp-mq-row {
  overflow: hidden;
  padding: 6px 0;
}

.lp-mq-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.lp-mq-l {
  animation: lpMqL 55s linear infinite;
}

.lp-mq-r {
  animation: lpMqR 55s linear infinite;
}

.lp-marquee:hover .lp-mq-inner {
  animation-play-state: paused;
}

@keyframes lpMqL {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes lpMqR {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.lp-mq-item {
  flex: none;
  width: 170px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  background: #111;
  transition: transform .25s var(--lp-ease), border-color .25s;
}

.lp-mq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 143, 0.6);
}

.lp-mq-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Atalhos de categoria ---------- */
.lp-chips {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 26px;
  padding: 10px 2px;
}

.lp-chips::-webkit-scrollbar {
  display: none;
}

.lp-chip {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-text);
  cursor: pointer;
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid var(--lp-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, transform .2s;
}

.lp-chip:hover,
.lp-chip.lp-active {
  border-color: var(--lp-pink-2);
  background: rgba(192, 0, 106, 0.22);
  transform: translateY(-1px);
}

/* ---------- Banner da loja vira fundo suave do topo (marcado pelo theme.js) ---------- */
#__ecommerce_v1 .lp-banner img {
  opacity: .12 !important;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .45) 35%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .45) 35%, transparent 72%);
}

/* ---------- Títulos de categoria ---------- */
.lp-cat-title-wrap {
  display: flex !important;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 34px 0 18px !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

.lp-cat-title-wrap::before,
.lp-cat-title-wrap::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lp-line);
}

.lp-cat-title-wrap::before {
  background: linear-gradient(90deg, transparent, var(--lp-line) 30%, var(--lp-line) calc(100% - 10px), var(--lp-pink-2) calc(100% - 10px));
}

.lp-cat-title-wrap::after {
  background: linear-gradient(90deg, var(--lp-pink-2) 10px, var(--lp-line) 10px, var(--lp-line) 70%, transparent);
}

h1.lp-cat-title {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff !important;
  text-shadow: 0 0 24px rgba(255, 45, 143, 0.35);
}

/* ---------- Cards de produto ---------- */
#__ecommerce_v1 .product_card {
  position: relative;
  border-radius: var(--lp-radius) !important;
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.95), rgba(12, 12, 16, 0.98)) !important;
  border: 1px solid var(--lp-line) !important;
  overflow: hidden;
  transition: transform .3s var(--lp-ease), border-color .3s, box-shadow .3s var(--lp-ease);
}

#__ecommerce_v1 .product_card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 143, 0.55) !important;
  box-shadow: 0 18px 45px rgba(192, 0, 106, 0.28), 0 0 0 1px rgba(255, 45, 143, 0.15);
}

#__ecommerce_v1 .product_card img {
  transition: transform .5s var(--lp-ease), filter .3s;
}

#__ecommerce_v1 .product_card:hover img {
  transform: scale(1.06);
  filter: saturate(1.15);
}

#__ecommerce_v1 .product_info>span:first-child {
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -0.01em;
}

#__ecommerce_v1 .product_info button {
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--lp-pink-2), var(--lp-pink) 60%, var(--lp-deep)) !important;
  box-shadow: 0 8px 22px rgba(192, 0, 106, 0.35);
  transition: transform .2s var(--lp-ease), box-shadow .2s;
}

#__ecommerce_v1 .product_info button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(192, 0, 106, 0.55);
}

/* entrada suave (só quando o theme.js ativa; sem JS fica tudo visível) */
.lp-anim .product_card.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.lp-anim .product_card.lp-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--lp-ease), transform .6s var(--lp-ease);
}

/* ---------- Rodapé ---------- */
#__ecommerce_v1 footer {
  border-top: 1px solid var(--lp-line) !important;
  background: rgba(8, 8, 10, 0.9) !important;
}

/* ---------- Voltar ao topo ---------- */
.lp-top {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--lp-line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--lp-pink), var(--lp-deep));
  box-shadow: 0 10px 26px rgba(192, 0, 106, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--lp-ease);
}

.lp-top.lp-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lp-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    border-radius: 22px;
    gap: 22px;
  }

  .lp-tiles {
    grid-template-columns: 1fr;
  }

  .lp-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .lp-mq-item {
    width: 136px;
    height: 78px;
  }
}

@media (max-width: 520px) {
  .lp-hero h2 {
    font-size: 30px;
  }

  .lp-tile {
    padding: 13px 14px;
  }

  .lp-btn {
    flex: 1;
    justify-content: center;
  }

  .lp-trust {
    gap: 10px;
    font-size: 12px;
  }

  h1.lp-cat-title {
    font-size: 19px !important;
  }

  .lp-cat-title-wrap {
    gap: 10px;
    margin: 24px 0 14px !important;
  }
}

/* ---------- Popup de boas-vindas (1x a cada 7 dias por visitante) ---------- */
.lp-welcome {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 4, 6, 0.78);
  animation: lpFadeIn .35s var(--lp-ease) both;
}

.lp-welcome.lp-out {
  animation: lpFadeOut .25s ease both;
}

.lp-welcome-card {
  position: relative;
  width: min(440px, 100%);
  padding: 32px 28px 26px;
  border-radius: 24px;
  text-align: center;
  color: var(--lp-text);
  background:
    radial-gradient(420px 220px at 50% -40px, rgba(192, 0, 106, 0.35), transparent 70%),
    linear-gradient(180deg, #15151c, #0c0c10);
  border: 1px solid rgba(255, 45, 143, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(192, 0, 106, 0.2);
  animation: lpPop .45s var(--lp-ease) both;
}

.lp-welcome-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 45, 143, 0.6);
  box-shadow: 0 0 30px rgba(255, 45, 143, 0.35);
}

.lp-welcome-card h3 {
  margin: 14px 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.lp-welcome-card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-muted);
}

.lp-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-welcome-actions .lp-btn {
  justify-content: center;
}

.lp-welcome-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.lp-welcome-x:hover {
  background: rgba(192, 0, 106, 0.4);
}

@keyframes lpFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lpFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes lpPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Popup de busca: vidro escuro em vez do rosa sólido ---------- */
div:has(> div > .InputSearchHome) {
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.98), rgba(12, 12, 16, 0.98)) !important;
  border: 1px solid rgba(255, 45, 143, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(192, 0, 106, 0.18) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

div:has(> div > .InputSearchHome) .InputSearchHome {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

/* ---------- Faixas de aviso do topo e barra do cabeçalho: escuro com toque rosa ---------- */
#__ecommerce_v1>div {
  background: linear-gradient(90deg, rgba(139, 0, 69, 0.28), rgba(192, 0, 106, 0.18) 50%, rgba(139, 0, 69, 0.28)) !important;
  border-bottom: 1px solid rgba(255, 45, 143, 0.22);
}

#__ecommerce_v1>div a,
#__ecommerce_v1>div span {
  color: #ffd1e6 !important;
}

#__ecommerce_v1 header>div {
  background: rgba(14, 14, 20, 0.78) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--lp-line);
  border-top: 0;
}

/* ---------- Painéis (produto/carrinho): vidro escuro em vez do rosa sólido (marcados pelo theme.js) ---------- */
#__ecommerce_v1 .lp-panel {
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(192, 0, 106, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(20, 20, 28, 0.94), rgba(10, 10, 14, 0.96)) !important;
  border: 1px solid var(--lp-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#__ecommerce_v1 .lp-panel .lp-panel {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 45, 143, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: none;
}

#__ecommerce_v1 .lp-panel .lp-buy {
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--lp-pink-2), var(--lp-pink) 55%, var(--lp-deep)) !important;
  box-shadow: 0 10px 28px rgba(192, 0, 106, 0.45);
  transition: transform .2s var(--lp-ease), box-shadow .2s;
}

#__ecommerce_v1 .lp-panel .lp-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(192, 0, 106, 0.6);
}

#__ecommerce_v1 .lp-panel .lp-cart {
  color: #ffd1e6 !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 45, 143, 0.35) !important;
  transition: background .2s, transform .2s var(--lp-ease);
}

#__ecommerce_v1 .lp-panel .lp-cart:hover {
  background: rgba(192, 0, 106, 0.2) !important;
  transform: translateY(-1px);
}

/* seletor de quantidade: botões - / + */
#__ecommerce_v1 .lp-panel button.left,
#__ecommerce_v1 .lp-panel button.right {
  background: rgba(255, 45, 143, 0.16) !important;
  color: #fff !important;
}

#__ecommerce_v1 .lp-panel button.left:hover,
#__ecommerce_v1 .lp-panel button.right:hover {
  background: rgba(255, 45, 143, 0.32) !important;
}