/* =====================================================================
   LaserLand «Поп-апы» — оверлей картинки. Scoped под .llpop-*.
   Тело акции стилизует llpe-public.css (каталог «Акции и события»).
   ===================================================================== */

.llpop-root { display: none !important; }

/* ---------------- оверлей ---------------- */
.llpop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.llpop-overlay[hidden] { display: none; }

.llpop-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 14, 30, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: llpop-fade .18s ease;
}

.llpop-overlay__dialog {
  position: relative;
  z-index: 1;
  max-width: min(520px, 92vw);
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  animation: llpop-pop .22s cubic-bezier(.2, .9, .3, 1.2);
  background: #0c1f38;
}
.llpop-overlay[data-llpop-theme="light"] .llpop-overlay__dialog { background: #ffffff; }

.llpop-overlay__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .4);
  transition: background .15s ease, transform .15s ease;
}
.llpop-overlay__close:hover { background: rgba(0, 0, 0, .62); transform: scale(1.06); }
.llpop-overlay[data-llpop-theme="light"] .llpop-overlay__close { color: #00244A; background: rgba(0, 36, 74, .1); }
.llpop-overlay[data-llpop-theme="light"] .llpop-overlay__close:hover { background: rgba(0, 36, 74, .2); }

.llpop-overlay__stage { display: block; line-height: 0; }

/* ---------------- картинка ---------------- */
.llpop-image { display: block; }
.llpop-image__link {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  line-height: 0;
}
.llpop-image__link[href], .llpop-image--none .llpop-image__link { cursor: auto; }
.llpop-image[data-llpop-action="link"] .llpop-image__link,
.llpop-image[data-llpop-action="promo"] .llpop-image__link { cursor: pointer; }
.llpop-image__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}
.llpop-image__ph {
  display: block;
  width: 480px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #12324f, #0a1c30);
}

/* ---------------- компактная карточка акции ---------------- */
.llpop-cardpop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.llpop-cardpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 14, 30, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: llpop-fade .18s ease;
}
.llpop-cardpop__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(420px, 92vw);
  animation: llpop-pop .22s cubic-bezier(.2, .9, .3, 1.2);
  /* карточка каталога сама тянется на всю ширину контейнера */
  --llpe-visible: 1;
  --llpe-gap: 0px;
}
/* карточка каталога внутри оверлея — на всю ширину, без hover-подъёма */
.llpop-cardpop__inner .llpe-card { flex: 1 1 100%; max-width: 100%; }
.llpop-cardpop__inner .llpe-card:hover { transform: none; }
.llpop-cardpop__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  transition: background .15s ease, transform .15s ease;
}
.llpop-cardpop__close:hover { background: rgba(0, 0, 0, .66); transform: scale(1.06); }

/* ---------------- ошибка ---------------- */
.llpop-detail--error {
  padding: 28px;
  text-align: center;
  color: #fff;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@keyframes llpop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes llpop-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .llpop-overlay { padding: 14px; }
  .llpop-overlay__dialog { max-width: 96vw; }
}
