/* ==========================================================================
   Lursan New Year theme — namespace .lursan-ny*
   Kill-switch: system/config/lursan_ny.php → enabled => false
   Brand #4998fd + deep red / gold / soft snow
   ========================================================================== */

body.lursan-ny {
  --lursan-ny-brand: #4998fd;
  --lursan-ny-brand-deep: #2f74d8;
  --lursan-ny-brand-soft: rgba(73, 152, 253, 0.16);
  --lursan-ny-red: #9e2a2b;
  --lursan-ny-red-bright: #c62828;
  --lursan-ny-gold: #c9a227;
  --lursan-ny-gold-soft: rgba(201, 162, 39, 0.22);
  --lursan-ny-snow: #f4f8fc;
  --lursan-ny-green: #1f6b3a;
}

/* ---- Header garland (richer) ---- */
body.lursan-ny .site-header {
  position: relative;
}

body.lursan-ny .lursan-ny-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
  background: url(/image/catalog/lursan/ny/garland.svg) center top / 100% 28px no-repeat;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(15, 40, 70, 0.12));
}

body.lursan-ny .lursan-ny-garland__twinkle {
  position: absolute;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff8d6;
  box-shadow: 0 0 8px 2px rgba(201, 162, 39, 0.75);
  animation: lursan-ny-twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lursan-ny-twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

body.lursan-ny .site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 21;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--lursan-ny-brand) 0%,
    var(--lursan-ny-gold) 28%,
    var(--lursan-ny-red-bright) 55%,
    var(--lursan-ny-brand) 100%
  );
  opacity: 0.95;
}

body.lursan-ny .lursan-ny-corner {
  position: absolute;
  top: 14px;
  width: 56px;
  height: 56px;
  z-index: 19;
  pointer-events: none;
  background: url(/image/catalog/lursan/ny/corner.svg) no-repeat center / contain;
  opacity: 0.85;
}

body.lursan-ny .lursan-ny-corner--left {
  left: 4px;
}

body.lursan-ny .lursan-ny-corner--right {
  right: 4px;
  transform: scaleX(-1);
}

@media (max-width: 991px) {
  body.lursan-ny .lursan-ny-garland {
    height: 16px;
    background-size: 180% 16px;
    opacity: 0.8;
  }

  body.lursan-ny .lursan-ny-corner {
    display: none;
  }

  body.lursan-ny .lursan-ny-garland__twinkle {
    top: 4px;
    width: 3px;
    height: 3px;
  }
}

@media (min-width: 992px) {
  body.lursan-ny .site-header > .top-menu {
    padding-top: 16px;
  }
}

/* Soft festive tint behind header block */
body.lursan-ny .site-header > .container:first-of-type {
  position: relative;
}

body.lursan-ny .header-block {
  position: relative;
}

body.lursan-ny .header-block::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(73, 152, 253, 0.06), transparent 65%);
  z-index: 0;
}

/* ---- Snow ---- */
body.lursan-ny .lursan-ny-snow {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

body.lursan-ny .lursan-ny-snow__flake {
  position: absolute;
  top: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(73, 152, 253, 0.3);
  animation-name: lursan-ny-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

body.lursan-ny .lursan-ny-snow__flake--star {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  background-image: url(/image/catalog/lursan/ny/star.svg);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.65;
}

body.lursan-ny .lursan-ny-snow__flake--crystal {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  background-image: url(/image/catalog/lursan/ny/snowflake.svg);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
}

@keyframes lursan-ny-fall {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(18px, 108vh, 0) rotate(120deg);
    opacity: 0.12;
  }
}

/* ---- One-shot confetti ---- */
body.lursan-ny .lursan-ny-confetti {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

body.lursan-ny .lursan-ny-confetti__piece {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.9;
  animation-name: lursan-ny-confetti-fall;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-fill-mode: forwards;
}

@keyframes lursan-ny-confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--ny-drift, 20px), 72vh, 0) rotate(var(--ny-rot, 180deg));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lursan-ny .lursan-ny-snow,
  body.lursan-ny .lursan-ny-snow__flake,
  body.lursan-ny .lursan-ny-confetti,
  body.lursan-ny .lursan-ny-garland__twinkle {
    display: none !important;
  }

  body.lursan-ny .lursan-ny-banner::after,
  body.lursan-ny .lursan-ny-section__shine,
  body.lursan-ny .site-promo-strip.lursan-ny-strip::after {
    animation: none !important;
  }
}

/* ---- Promo strip under menu (festive) ---- */
body.lursan-ny .site-promo-strip.lursan-ny-strip,
body.lursan-ny .site-promo-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    100deg,
    #1e5bb8 0%,
    #2f74d8 28%,
    #4998fd 55%,
    #3a7fd4 78%,
    #c9a227 100%
  );
  box-shadow:
    0 3px 14px rgba(47, 116, 216, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

body.lursan-ny .site-promo-strip::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background: url(/image/catalog/lursan/ny/snowflake.svg) center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
  filter: brightness(2);
}

body.lursan-ny .site-promo-strip::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -25%;
  width: 35%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: lursan-ny-shine 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lursan-ny-shine {
  0%,
  50% {
    left: -30%;
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  78% {
    left: 115%;
    opacity: 0;
  }
  100% {
    left: 115%;
    opacity: 0;
  }
}

body.lursan-ny .site-promo-strip__badge {
  background: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 140, 0.45),
    0 0 10px rgba(201, 162, 39, 0.25);
}

body.lursan-ny .site-promo-strip__cta {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.lursan-ny .site-promo-strip__link:hover .site-promo-strip__cta {
  background: rgba(255, 255, 255, 0.34);
}

body.lursan-ny .site-promo-strip__meta {
  background: rgba(201, 162, 39, 0.35);
}

/*
 * Catalog clearance for strip copy lives in myCustom.css
 * (flex gutter = --lursan-home-cat-w). Do NOT padding-left: 25% here —
 * that % is of the full-bleed strip (≈viewport), not the container.
 */
@media (min-width: 992px) {
  body.lursan-ny:has(.home-page) .site-promo-strip::before {
    /* Decorative flake: sit just after catalog gutter inside centered container */
    left: calc((100% - min(100%, 1500px)) / 2 + var(--lursan-home-cat-w, 25%) + 28px);
  }
}

@media (max-width: 991px) {
  body.lursan-ny .site-promo-strip::before {
    display: none;
  }
}

/* ---- Homepage NY section (always when theme on) ---- */
body.lursan-ny .lursan-ny-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  /* Lives inside .home-hero-block; horizontal insets set in myCustom.css to match hero banners */
  margin-top: 0;
  margin-bottom: 16px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 22px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(73, 152, 253, 0.14) 0%, rgba(255, 255, 255, 0.96) 40%, rgba(201, 162, 39, 0.14) 100%),
    var(--lursan-ny-snow);
  border: 1px solid rgba(73, 152, 253, 0.32);
  box-shadow:
    0 10px 28px rgba(26, 60, 110, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

body.lursan-ny .lursan-ny-section__ornament {
  position: absolute;
  width: 64px;
  height: 64px;
  pointer-events: none;
  background: url(/image/catalog/lursan/ny/corner.svg) no-repeat center / contain;
  opacity: 0.55;
}

body.lursan-ny .lursan-ny-section__ornament--tl {
  top: 4px;
  left: 4px;
}

body.lursan-ny .lursan-ny-section__ornament--br {
  right: 4px;
  bottom: 4px;
  transform: scale(-1);
}

body.lursan-ny .lursan-ny-section__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.lursan-ny .lursan-ny-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lursan-ny-red);
}

body.lursan-ny .lursan-ny-section__eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url(/image/catalog/lursan/ny/star.svg) center / contain no-repeat;
}

body.lursan-ny .lursan-ny-section__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #14324f;
}

body.lursan-ny .lursan-ny-section__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5a6d80;
}

body.lursan-ny .lursan-ny-section__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--lursan-ny-brand) 0%, var(--lursan-ny-brand-deep) 100%);
  box-shadow: 0 6px 16px rgba(47, 116, 216, 0.35);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.lursan-ny .lursan-ny-section__cta:hover,
body.lursan-ny .lursan-ny-section__cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 116, 216, 0.45);
  outline: none;
}

@media (max-width: 767px) {
  body.lursan-ny .lursan-ny-section {
    grid-template-columns: 1fr;
    padding: 16px;
    text-align: left;
  }

  body.lursan-ny .lursan-ny-section__title {
    font-size: 18px;
  }

  body.lursan-ny .lursan-ny-section__cta {
    justify-content: center;
    width: 100%;
  }

  body.lursan-ny .lursan-ny-section__ornament {
    width: 44px;
    height: 44px;
    opacity: 0.35;
  }
}

/* Legacy slim banner (if used) */
body.lursan-ny .lursan-ny-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: #1a2b3c !important;
  background:
    linear-gradient(105deg, rgba(73, 152, 253, 0.16) 0%, rgba(255, 255, 255, 0.95) 42%, rgba(201, 162, 39, 0.16) 100%),
    var(--lursan-ny-snow);
  border: 1px solid rgba(73, 152, 253, 0.35);
  box-shadow: 0 8px 22px rgba(26, 60, 110, 0.08);
}

body.lursan-ny .lursan-ny-banner::before {
  content: "";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: url(/image/catalog/lursan/ny/snowflake.svg) center / contain no-repeat;
}

body.lursan-ny .lursan-ny-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 40%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  animation: lursan-ny-shine 7s ease-in-out infinite;
  pointer-events: none;
}

body.lursan-ny .lursan-ny-banner__title {
  font-size: 16px;
  font-weight: 800;
  color: #16324f;
}

body.lursan-ny .lursan-ny-banner__sub {
  font-size: 12px;
  color: #5a6d80;
}

body.lursan-ny .lursan-ny-banner__cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--lursan-ny-brand) 0%, var(--lursan-ny-brand-deep) 100%);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---- Hero festive frame ---- */
@media (min-width: 992px) {
  body.lursan-ny .home-page .home-hero-block {
    position: relative;
  }

  body.lursan-ny .home-page .home-hero-top {
    position: relative;
    border-radius: 12px;
  }

  body.lursan-ny .home-page .home-hero-top::before,
  body.lursan-ny .home-page .home-hero-top::after {
    content: "";
    position: absolute;
    width: 52px;
    height: 52px;
    z-index: 5;
    pointer-events: none;
    background: url(/image/catalog/lursan/ny/corner.svg) no-repeat center / contain;
    opacity: 0.7;
  }

  body.lursan-ny .home-page .home-hero-top::before {
    top: -2px;
    left: -2px;
  }

  body.lursan-ny .home-page .home-hero-top::after {
    right: -2px;
    bottom: -2px;
    transform: scale(-1);
  }

  body.lursan-ny .home-page .home-hero-top .uni-slideshow_v2 {
    box-shadow:
      0 0 0 2px rgba(201, 162, 39, 0.28),
      0 0 0 4px rgba(73, 152, 253, 0.12);
    border-radius: 10px;
  }
}

body.lursan-ny .home-promo-band__icon {
  color: var(--lursan-ny-brand);
}

body.lursan-ny .home-promo-band {
  position: relative;
}

body.lursan-ny .home-promo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
  background: linear-gradient(90deg, rgba(73, 152, 253, 0.04), transparent 40%, rgba(201, 162, 39, 0.06));
}

/* ---- Product badges: disabled (product_badge => false) ---- */
body.lursan-ny .product-thumb__image::after,
body.lursan-ny .uni-module__image::after,
body.lursan-ny.lursan-ny--badges .product-thumb__image::after,
body.lursan-ny.lursan-ny--badges .uni-module__image::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* ---- Footer ---- */
body.lursan-ny .footer.footer--modern {
  position: relative;
}

body.lursan-ny .footer.footer--modern::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lursan-ny-brand) 15%,
    var(--lursan-ny-gold) 50%,
    var(--lursan-ny-red-bright) 85%,
    transparent 100%
  );
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(73, 152, 253, 0.25);
}

body.lursan-ny .footer__main {
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(73, 152, 253, 0.07), transparent 45%),
    radial-gradient(ellipse at 90% 0%, rgba(201, 162, 39, 0.07), transparent 45%);
}

body.lursan-ny .footer__bottom {
  position: relative;
  background-image: linear-gradient(180deg, rgba(73, 152, 253, 0.07), transparent 70%);
}

body.lursan-ny .footer__bottom::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  background: url(/image/catalog/lursan/ny/snowflake.svg) center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

/* Safety: never block interactive header UI (do NOT force .fly-menu relative — that breaks fixed sticky/bottom bar) */
body.lursan-ny .header-block,
body.lursan-ny .menu,
body.lursan-ny .menu1,
body.lursan-ny .header-search,
body.lursan-ny .header-actions {
  position: relative;
  z-index: 30;
}

body.lursan-ny .fly-block {
  position: fixed;
  z-index: 1061;
}

body.lursan-ny .fly-block__scrollup {
  border-color: var(--lursan-ny-gold, #c9a227);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(201, 162, 39, 0.35),
    0 0 12px rgba(201, 162, 39, 0.28);
}

body.lursan-ny .menu .dropdown-menu,
body.lursan-ny .menu1 .menu__collapse,
body.lursan-ny .header-search .dropdown-menu,
body.lursan-ny .live-search,
body.lursan-ny .header-cart .dropdown-menu {
  z-index: 1050;
}
