/* Anasayfa kampanya popup — geçişli vitrin */

body.pf-km-popup-open {
  overflow: hidden;
}

.pf-km-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.65rem, env(safe-area-inset-top)) 0.75rem max(0.65rem, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/*
 * `.pf-km-popup { display:flex }` UA `[hidden]{display:none}` kuralını ezer.
 * Kapalıyken is-active kart `visibility/pointer-events` ile deler → mobil menü
 * tıklamaları (Restoran Programı vb.) popup görsellerine gider.
 */
.pf-km-popup[hidden] {
  display: none !important;
}

.pf-km-popup:not(.is-visible),
.pf-km-popup:not(.is-visible) * {
  pointer-events: none !important;
}

.pf-km-popup:not(.is-visible) .pf-km-card--announce.is-active {
  visibility: hidden;
  pointer-events: none !important;
}

.pf-km-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pf-km-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 48, 36, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pf-km-popup__dialog {
  --pf-km-popup-fg: #1a2230;
  --pf-km-popup-muted: #5b6578;
  --pf-km-popup-border: rgba(58, 48, 36, 0.14);
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  max-height: min(86vh, 40rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid var(--pf-km-popup-border);
  color: var(--pf-km-popup-fg);
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 255, 255, 0.7), transparent 58%),
    linear-gradient(180deg, #f7f2ea 0%, #f3eee6 52%, #ebe4d8 100%);
  box-shadow:
    0 28px 64px rgba(58, 48, 36, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-km-popup.is-visible .pf-km-popup__dialog {
  transform: none;
}

.pf-km-popup__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pf-km-popup-border, rgba(58, 48, 36, 0.14));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--pf-km-popup-fg, #1a2230);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
}

.pf-km-popup__close:hover,
.pf-km-popup__close:focus-visible {
  background: rgba(var(--pf-brand-rgb), 0.12);
  border-color: rgba(var(--pf-brand-rgb), 0.45);
  color: var(--pf-brand-dark, #c9322e);
  outline: none;
  transform: scale(1.04);
}

.pf-km-popup__close svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.pf-km-popup__title--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pf-km-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 2.55rem 1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.pf-km-popup__carousel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
}

.pf-km-popup .pf-km-panels {
  position: relative;
  min-height: 0;
}

.pf-km-popup .pf-km-card--announce {
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
}

.pf-km-popup .pf-km-card--announce.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}

.pf-km-popup__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.1rem 0 0.15rem;
}

.pf-km-popup__dot {
  appearance: none;
  -webkit-appearance: none;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(58, 48, 36, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.pf-km-popup__dot:hover,
.pf-km-popup__dot:focus-visible {
  background: rgba(58, 48, 36, 0.4);
  outline: none;
  transform: scale(1.08);
}

.pf-km-popup__dot.is-active,
.pf-km-popup__dot[aria-selected="true"] {
  width: 1.35rem;
  background: var(--pf-brand, #ef514c);
}

.pf-km-popup .pf-km-announce {
  max-width: none;
  width: 100%;
  gap: 0.75rem;
  padding: 0;
}

.pf-km-popup .pf-km-announce__title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 0 0 0.15rem;
  max-width: 38ch;
  line-height: 1.28;
  color: var(--pf-km-popup-fg, #1a2230);
}

.pf-km-popup .pf-km-announce__title-line {
  padding-bottom: 0.1em;
  border-bottom-color: rgba(58, 48, 36, 0.28);
}

.pf-km-popup .pf-km-announce__title-line--soft::after {
  background: linear-gradient(
    90deg,
    rgba(239, 81, 76, 0.12) 0%,
    rgba(239, 81, 76, 0.55) 22%,
    rgba(239, 81, 76, 0.85) 50%,
    rgba(239, 81, 76, 0.55) 78%,
    rgba(239, 81, 76, 0.12) 100%
  );
  box-shadow: 0 0 10px rgba(239, 81, 76, 0.22);
}

.pf-km-popup .pf-km-announce__title-line--blue::after {
  background: linear-gradient(
    90deg,
    rgba(79, 134, 198, 0.12) 0%,
    rgba(110, 162, 223, 0.7) 22%,
    rgba(79, 134, 198, 0.9) 50%,
    rgba(110, 162, 223, 0.7) 78%,
    rgba(79, 134, 198, 0.12) 100%
  );
  box-shadow: 0 0 10px rgba(110, 162, 223, 0.28);
}

.pf-km-popup .pf-km-announce__title-line--teal::after {
  background: linear-gradient(
    90deg,
    rgba(15, 118, 110, 0.12) 0%,
    rgba(20, 148, 136, 0.7) 22%,
    rgba(15, 118, 110, 0.9) 50%,
    rgba(20, 148, 136, 0.7) 78%,
    rgba(15, 118, 110, 0.12) 100%
  );
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.25);
}

/* Üç vitrin: ortak kompakt ölçü */
.pf-km-popup .pf-km-stage--print,
.pf-km-popup .pf-km-stage--hardware,
.pf-km-popup .pf-km-stage--device {
  min-height: 16.75rem;
  max-height: 16.75rem;
  height: 16.75rem;
  margin-inline: auto;
  width: 100%;
  max-width: 42rem;
  padding: 0.7rem 0.8rem 0.75rem;
  outline-offset: 3px;
  box-sizing: border-box;
  align-items: center;
  overflow: hidden;
}

.pf-km-popup .pf-km-stage__system > img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 8.25rem;
  object-fit: contain;
  margin-inline: auto;
}

.pf-km-popup .pf-km-stage--print .pf-km-stage__system > img {
  max-height: 8.25rem;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__system > img {
  max-height: 6.25rem;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__system > img {
  max-height: 7.75rem;
}

.pf-km-popup .pf-km-stage--hardware {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center !important;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  grid-template-columns: none !important;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__duo {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center !important;
  justify-content: center;
  align-content: center;
  align-self: center !important;
  gap: 0.35rem 0.5rem;
  width: auto;
  min-width: 0;
  height: 100% !important;
  min-height: 0;
  padding: 0;
  margin: 0;
  grid-template-columns: none !important;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__system--tile {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: auto !important;
  padding: 0;
  margin: 0;
  transform-origin: center bottom;
  will-change: transform;
}

.pf-km-popup .pf-km-card--announce.is-active .pf-km-stage--hardware .pf-km-stage__system--tile:nth-child(1) {
  animation: pf-km-popup-pop 2.8s ease-in-out infinite;
}

.pf-km-popup .pf-km-card--announce.is-active .pf-km-stage--hardware .pf-km-stage__system--tile:nth-child(3) {
  animation: pf-km-popup-pop 2.8s 0.35s ease-in-out infinite;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__plus--duo {
  align-self: center !important;
  flex: 0 0 auto;
  transform: none !important;
  margin: 0;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__aside {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  align-self: center !important;
  flex: 0 1 10.5rem;
  width: auto;
  max-width: 11rem;
  height: auto;
  max-height: 100%;
  gap: 0.28rem;
  min-height: 0;
  opacity: 1 !important;
  overflow: visible;
  transform-origin: center center;
  will-change: transform;
}

.pf-km-popup .pf-km-card--announce.is-active .pf-km-stage--hardware .pf-km-stage__aside {
  animation: pf-km-popup-pop-gift 3.1s 0.55s ease-in-out infinite;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift-panel {
  padding: 0.55rem 0.4rem 0.4rem;
  gap: 0.12rem;
  border-radius: 0.85rem;
  min-height: 0;
  box-shadow: 0 10px 22px rgba(15, 18, 24, 0.22);
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift-panel img {
  width: min(100%, 4.6rem);
  max-height: 4.6rem;
  height: auto;
  object-fit: contain;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift {
  font-size: 0.78rem !important;
  padding: 0.2rem 0.45rem !important;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift-value {
  font-size: 0.68rem !important;
  margin: 0;
  line-height: 1.2;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift-note {
  font-size: 0.62rem !important;
  margin: 0;
  line-height: 1.2;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__deal-badge {
  top: -0.45rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.58rem;
}

.pf-km-popup .pf-km-stage--hardware .pf-km-stage__foot {
  font-size: 0.66rem !important;
  padding: 0.28rem 0.45rem !important;
  line-height: 1.25;
  max-width: 11rem;
  margin: 0;
  flex-shrink: 0;
}

.pf-km-popup .pf-km-stage__label {
  font-size: 0.78rem !important;
  margin-top: 0.2rem !important;
}

.pf-km-popup .pf-km-stage__price {
  font-size: 0.92rem !important;
}

.pf-km-popup .pf-km-stage__gift {
  font-size: 0.95rem !important;
  padding: 0.35rem 0.7rem !important;
}

.pf-km-popup .pf-km-stage__foot {
  font-size: 0.78rem !important;
  padding: 0.35rem 0.55rem !important;
  max-width: 22rem;
}

.pf-km-popup .pf-km-stage--print .pf-km-stage__card img {
  max-height: 5.5rem;
  width: auto;
  object-fit: contain;
}

.pf-km-popup .pf-km-stage--print .pf-km-stage__card figcaption {
  font-size: 0.72rem;
}

.pf-km-popup .pf-km-stage--print .pf-km-stage__print--hero {
  gap: 0.45rem;
}

/* Device: deal + foot üst üste binmesin; sabit yükseklik foot’u kesmesin */
.pf-km-popup .pf-km-stage--device {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__aside {
  display: grid !important;
  gap: 0.7rem !important;
  padding: 0;
  justify-items: center;
  width: 100%;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__eyebrow {
  font-size: 0.68rem;
  margin: 0;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__gift {
  font-size: 0.88rem !important;
  padding: 0.4rem 0.65rem !important;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__deal--hero {
  margin: 0;
  padding: 0.45rem;
  gap: 0.35rem;
  border-radius: 0.85rem;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__deal-box {
  min-height: 0;
  padding: 0.55rem 0.45rem 0.5rem;
  border-radius: 0.7rem;
  gap: 0.15rem;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__deal-box span {
  font-size: 0.68rem !important;
  line-height: 1.25;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__deal-box strong {
  font-size: 0.92rem !important;
  line-height: 1.2;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__arrow {
  font-size: 1.15rem;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__deal-badge {
  top: -0.4rem;
  right: 0.4rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.58rem !important;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__deal-box--new {
  animation: none !important;
}

.pf-km-popup .pf-km-stage--device .pf-km-stage__foot {
  margin: 0.15rem auto 0 !important;
  padding: 0.7rem 0.8rem !important;
  max-width: 18.5rem;
  font-size: 0.74rem !important;
  line-height: 1.45 !important;
  text-align: center;
  box-sizing: border-box;
}

.pf-km-popup__foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0.7rem 1rem 0.95rem;
  border-top: 1px solid var(--pf-km-popup-border, rgba(58, 48, 36, 0.12));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(235, 228, 216, 0.9));
}

.pf-km-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 12rem);
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--pf-brand) 0%, var(--pf-brand-dark) 100%);
  color: #fff;
  font-family: Outfit, var(--pf-font-display), sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(var(--pf-brand-rgb), 0.28);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.pf-km-popup__cta:hover,
.pf-km-popup__cta:focus-visible {
  filter: brightness(1.06);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--pf-brand-rgb), 0.42);
  color: #fff;
}

@media (max-width: 820px) {
  .pf-km-popup {
    padding: max(0.35rem, env(safe-area-inset-top)) 0.4rem max(0.35rem, env(safe-area-inset-bottom));
    align-items: flex-end;
  }

  .pf-km-popup__dialog {
    width: 100%;
    max-height: min(94vh, 100%);
    border-radius: 1.05rem 1.05rem 0.8rem 0.8rem;
  }

  .pf-km-popup__body {
    padding: 2.35rem 0.7rem 0.35rem;
  }

  .pf-km-popup .pf-km-announce {
    gap: 0.65rem;
  }

  .pf-km-popup .pf-km-announce__title {
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    max-width: none;
  }

  .pf-km-popup .pf-km-stage--print,
  .pf-km-popup .pf-km-stage--hardware,
  .pf-km-popup .pf-km-stage--device {
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 0.85rem 0.75rem 0.9rem;
  }

  /* Hardware: desktop flex-row !important → mobilde dikey yığ */
  .pf-km-popup .pf-km-stage--hardware {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__duo {
    width: 100%;
    height: auto !important;
    flex: 0 0 auto;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__aside {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift-panel {
    width: min(100%, 16rem);
    margin-inline: auto;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__foot {
    max-width: 18rem;
  }

  .pf-km-popup .pf-km-stage--device .pf-km-stage__deal--hero {
    grid-template-columns: 1fr;
  }

  .pf-km-popup .pf-km-stage--device .pf-km-stage__arrow {
    transform: rotate(90deg);
  }

  .pf-km-popup .pf-km-stage__system > img,
  .pf-km-popup .pf-km-stage--print .pf-km-stage__system > img,
  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__system > img,
  .pf-km-popup .pf-km-stage--device .pf-km-stage__system > img {
    width: auto !important;
    max-width: min(100%, 14rem);
    max-height: 8rem;
    height: auto !important;
    object-fit: contain;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__gift-panel img {
    width: min(100%, 6.5rem);
    max-height: 6.5rem;
  }

  .pf-km-popup .pf-km-stage--print .pf-km-stage__print--hero {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pf-km-popup .pf-km-stage--print .pf-km-stage__card img {
    max-height: 7rem;
  }

  .pf-km-popup__foot {
    padding: 0.65rem 0.75rem max(0.85rem, env(safe-area-inset-bottom));
  }

  .pf-km-popup__cta {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .pf-km-popup__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.05rem;
    height: 2.05rem;
  }

  .pf-km-popup .pf-km-stage__system > img,
  .pf-km-popup .pf-km-stage--device .pf-km-stage__system > img {
    max-height: 7rem;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__duo {
    flex-direction: column !important;
    gap: 0.45rem;
  }

  .pf-km-popup .pf-km-stage--hardware .pf-km-stage__plus--duo {
    transform: rotate(90deg) !important;
  }
}

/* Kısa ekran / landscape: sabit vitrin yüksekliği taşırmasın */
@media (max-height: 720px) {
  .pf-km-popup .pf-km-stage--print,
  .pf-km-popup .pf-km-stage--hardware,
  .pf-km-popup .pf-km-stage--device {
    min-height: 0;
    max-height: none;
    height: auto;
  }

  .pf-km-popup__dialog {
    max-height: min(96vh, 100%);
  }
}

@keyframes pf-km-popup-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.045);
  }
}

@keyframes pf-km-popup-pop-gift {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 14px rgba(15, 18, 24, 0.18));
  }
  50% {
    transform: translateY(-6px) scale(1.07);
    filter: drop-shadow(0 16px 24px rgba(15, 18, 24, 0.28));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-km-popup,
  .pf-km-popup__dialog,
  .pf-km-popup__cta,
  .pf-km-popup__close,
  .pf-km-popup .pf-km-card--announce,
  .pf-km-popup__dot {
    transition: none;
  }

  .pf-km-popup.is-visible .pf-km-popup__dialog,
  .pf-km-popup .pf-km-card--announce {
    transform: none;
  }

  .pf-km-popup .pf-km-card--announce.is-active .pf-km-stage--hardware .pf-km-stage__system--tile,
  .pf-km-popup .pf-km-card--announce.is-active .pf-km-stage--hardware .pf-km-stage__aside {
    animation: none;
  }
}
