/* ═══════════════════════════════════════════════════════════
   PY INTERIORS — offer-popup.css
   First-visit offer popup. Images come from CMS > Offers.
═══════════════════════════════════════════════════════════ */
body.offer-open { overflow: hidden; }

.offer-popup {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 18, 8, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease, ease), visibility 0.45s;
}
.offer-popup.is-open { opacity: 1; visibility: visible; }

.offer-box {
  position: relative;
  width: min(92vw, 520px);
  max-height: 90vh;
  background: var(--dark, #1a1208);
  border: 1px solid rgba(201, 169, 110, 0.55);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(26px) scale(0.96);
  transition: transform 0.55s var(--ease, ease);
  overflow: hidden;
}
.offer-popup.is-open .offer-box { transform: none; }

.offer-track { display: flex; transition: transform 0.5s var(--ease, ease); }
.offer-slide { flex: 0 0 100%; min-width: 0; display: block; line-height: 0; }
.offer-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: var(--dark2, #241a0e);
}
a.offer-slide { cursor: pointer; }

.offer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201, 169, 110, 0.7);
  border-radius: 50%;
  background: rgba(26, 18, 8, 0.82);
  color: var(--gold, #c9a96e);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.offer-close:hover, .offer-close:focus-visible {
  background: var(--gold, #c9a96e);
  color: var(--dark, #1a1208);
  transform: rotate(90deg);
}

.offer-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 18, 8, 0.7);
  color: var(--ivory, #f5ede4);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.offer-nav:hover, .offer-nav:focus-visible { background: var(--gold, #c9a96e); color: var(--dark, #1a1208); }
.offer-nav.prev { left: 10px; }
.offer-nav.next { right: 10px; }

.offer-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.offer-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 237, 228, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.offer-dots button.active { background: var(--gold, #c9a96e); transform: scale(1.3); }

@media (max-width: 480px) {
  .offer-popup { padding: 14px; }
  .offer-box { width: 94vw; }
}
@media (prefers-reduced-motion: reduce) {
  .offer-popup, .offer-box, .offer-track { transition: none; }
}
