/* Floating image-only promo FAB + centered modal */

.promo-fab {
  position: fixed;
  right: 1.25rem;
  left: auto;
  bottom: 1.25rem;
  z-index: 80;
  display: block;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  box-shadow:
    0 10px 28px rgba(26, 92, 58, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.65);
  animation: promo-float-glow 2.5s ease-in-out infinite;
}

/* Stack above Messenger FAB when both are on the page */
body.has-messenger-fab .promo-fab {
  bottom: 5.35rem;
}

.promo-fab--image {
  width: 168px;
  height: 168px;
  /* Keep fixed from .promo-fab — do not set position:relative (it overrides fixed and drops the card to the left). */
}

.promo-fab__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f1f5f9;
  border-radius: inherit;
  overflow: hidden;
}

.promo-fab__seasonal-icon {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 2;
  font-size: 1.35rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.promo-fab.is-paused,
.promo-fab--paused {
  animation-play-state: paused;
}

.promo-fab:hover {
  filter: brightness(1.04);
}

@keyframes promo-float-glow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 28px rgba(26, 92, 58, 0.35),
      0 0 0 3px rgba(255, 255, 255, 0.65);
  }
  50% {
    transform: translateY(-6px) scale(1.04);
    box-shadow:
      0 14px 32px rgba(26, 92, 58, 0.5),
      0 0 0 4px rgba(26, 92, 58, 0.15),
      0 0 0 3px rgba(255, 255, 255, 0.65);
  }
}

/* Framer Motion owns transform on SPA fab — glow only */
.promo-fab.promo-fab--image[style*="transform"] {
  animation-name: promo-pulse-ring;
}

@keyframes promo-pulse-ring {
  0%,
  100% {
    box-shadow:
      0 10px 28px rgba(26, 92, 58, 0.35),
      0 0 0 3px rgba(255, 255, 255, 0.65);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(26, 92, 58, 0.5),
      0 0 0 4px rgba(26, 92, 58, 0.15),
      0 0 0 3px rgba(255, 255, 255, 0.65);
  }
}

/* Centered modal (home CSS) */
.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-out;
}

.promo-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.promo-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 91;
  display: flex;
  flex-direction: column;
  width: min(780px, 95vw);
  max-height: 90vh;
  overflow: visible;
  background: transparent;
  border-radius: 22px;
  box-shadow: none;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s ease-out,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.promo-modal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  outline: 2px solid rgba(251, 191, 36, 0.35);
}

.promo-modal__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  outline: 2px solid rgba(26, 92, 58, 0.2);
}

/* Seasonal modal frame + decorations */
.promo-modal__seasonal-deco {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.promo-modal__corner {
  position: absolute;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: promo-corner-bob 2.8s ease-in-out infinite;
}

.promo-modal__corner--tl {
  top: 0.65rem;
  left: 0.65rem;
}

.promo-modal__corner--tr {
  top: 0.65rem;
  right: 3rem;
  animation-delay: 0.4s;
}

.promo-modal__corner--bl {
  bottom: 0.85rem;
  left: 0.75rem;
  animation-delay: 0.8s;
}

.promo-modal__corner--br {
  bottom: 0.85rem;
  right: 0.75rem;
  animation-delay: 1.2s;
}

.promo-modal__flake {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #e2eef8 70%, transparent 100%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  opacity: 0.85;
  animation: promo-modal-snow linear infinite;
}

@keyframes promo-corner-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-4px) rotate(6deg);
  }
}

@keyframes promo-modal-snow {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) translateX(18px);
    opacity: 0.15;
  }
}

.promo-modal--christmas .promo-modal__shell,
.promo-modal--christmas.promo-modal__shell {
  outline: 3px solid rgba(196, 30, 58, 0.55);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(22, 91, 51, 0.35),
    inset 0 0 40px rgba(196, 30, 58, 0.06);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 45%, #f7fbf8 100%);
}

.promo-modal--christmas .promo-modal__eyebrow {
  color: #b91c1c;
}

.promo-modal--christmas .promo-modal__countdown-box {
  background: linear-gradient(135deg, #fef2f2 0%, #ecfdf5 100%);
  border: 1px solid rgba(196, 30, 58, 0.15);
}

.promo-modal--christmas .promo-modal__countdown {
  color: #166534;
}

.promo-modal--christmas .promo-modal__cta {
  background: linear-gradient(135deg, #b91c1c 0%, #166534 100%);
}

.promo-modal--christmas .promo-modal__cta:hover {
  background: linear-gradient(135deg, #991b1b 0%, #14532d 100%);
}

.promo-modal__sparkle--snow {
  background: radial-gradient(circle, #fff 0%, #bae6fd 55%, transparent 75%);
  box-shadow: 0 0 10px rgba(186, 230, 253, 0.9);
  border-radius: 50%;
}

.promo-modal--valentines .promo-modal__shell {
  outline: 3px solid rgba(225, 29, 72, 0.45);
  background: linear-gradient(180deg, #fff5f7 0%, #ffffff 100%);
}

.promo-modal--valentines .promo-modal__eyebrow {
  color: #be123c;
}

.promo-modal--halloween .promo-modal__shell {
  outline: 3px solid rgba(234, 88, 12, 0.5);
  background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
  color: #fafaf9;
}

.promo-modal--halloween .promo-modal__title,
.promo-modal--halloween .promo-modal__desc,
.promo-modal--halloween .promo-modal__countdown,
.promo-modal--halloween .promo-modal__countdown-label {
  color: #fafaf9;
}

.promo-modal--halloween .promo-modal__eyebrow {
  color: #fb923c;
}

.promo-modal--halloween .promo-modal__countdown-box {
  background: rgba(0, 0, 0, 0.35);
}

.promo-modal--halloween .promo-modal__later {
  background: #292524;
  border-color: #57534e;
  color: #e7e5e4;
}

.promo-modal--new_year .promo-modal__shell,
.promo-modal--anniversary .promo-modal__shell {
  outline: 3px solid rgba(234, 179, 8, 0.55);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.promo-modal--summer .promo-modal__shell {
  outline: 3px solid rgba(14, 165, 233, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .promo-modal__flake,
  .promo-modal__corner {
    animation: none !important;
  }

  .promo-modal__flake {
    opacity: 0.45;
  }
}

.promo-modal__fw {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 140px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.promo-modal__fw--left {
  left: -56px;
}

.promo-modal__fw--right {
  right: -56px;
}

.promo-modal__fw-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3px;
  border-radius: 50%;
  animation: promo-fw-burst 2.8s ease-out infinite;
}

@keyframes promo-fw-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  30% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy)) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.35), calc(var(--dy) * 1.35))
      scale(0.2);
  }
}

.promo-modal__stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.promo-modal__sticker {
  position: absolute;
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.promo-modal__sticker--best {
  left: -0.35rem;
  top: 1.35rem;
  background: #fbbf24;
  color: #422006;
  transform: rotate(-12deg);
}

.promo-modal__sticker--hot {
  right: -0.25rem;
  top: 4.5rem;
  background: #f43f5e;
  color: #fff;
  transform: rotate(8deg);
  border-radius: 0.5rem;
}

.promo-modal__sticker--limited {
  left: 0.65rem;
  bottom: 42%;
  background: #059669;
  color: #fff;
  border: 2px solid #fff;
  transform: rotate(-6deg);
}

.promo-modal__sticker--star {
  right: 1rem;
  top: 28%;
  font-size: 1.35rem;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.promo-modal__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.promo-modal__sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
  box-shadow: 0 0 8px #f59e0b;
  opacity: 0;
  animation: promo-sparkle 1.1s ease-out forwards;
}

@keyframes promo-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(0);
  }
  40% {
    opacity: 1;
    transform: scale(1.2) translateY(-12px);
  }
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(-28px);
  }
}

.promo-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
}

.promo-modal__body {
  overflow-y: auto;
  flex: 1;
}

.promo-modal__banner {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
  padding: 0.5rem;
}

.promo-modal__content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.promo-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
}

.promo-modal__title {
  margin: 0;
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.promo-modal__price {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f6e2d;
}

.promo-modal__banner-link {
  display: block;
  cursor: pointer;
}

.promo-modal__desc {
  margin: 0.75rem 0 0;
  font-family: var(--font-body, "Montserrat", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #475569;
  white-space: pre-wrap;
}

.promo-modal__countdown-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 16px;
}

.promo-modal__countdown-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-modal__countdown {
  margin: 0.35rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2f6e2d;
}

.promo-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.promo-modal__cta {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: #2f6e2d;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.promo-modal__cta:hover {
  background: #255923;
}

.promo-modal__later {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
}

.promo-modal__later:hover {
  background: #f8fafc;
}

/* Legacy / detail page banners */
.promo-page__banner {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  background: #f1f5f9;
}

.inquiry-card__freebies {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #166534;
}

.inquiry-card__freebies li + li {
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .promo-modal__actions {
    flex-direction: row;
    gap: 0.75rem;
  }

  .promo-modal__cta,
  .promo-modal__later {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .promo-modal {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(760px, 95vw);
    max-height: min(90vh, 100dvh - 2rem);
    transform: translate(-50%, -50%) scale(0.9);
  }

  .promo-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 640px) {
  .promo-modal__fw {
    display: none;
  }

  .promo-modal__sticker--best {
    left: 0.35rem;
    top: 0.75rem;
  }

  .promo-modal__sticker--hot {
    right: 0.35rem;
    top: 3.25rem;
  }
}

@media (max-width: 480px) {
  .promo-fab.promo-fab--image {
    width: 112px;
    height: 112px;
    right: 1rem;
    left: auto;
    bottom: 1rem;
    border-radius: 14px;
  }

  body.has-messenger-fab .promo-fab.promo-fab--image {
    bottom: 4.75rem;
  }

  .promo-modal {
    width: min(95vw, 420px);
    border-radius: 18px;
  }
}
