/* Anasayfa kampanya popup — kompakt sekmeli 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.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pf-km-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pf-km-popup__dialog {
  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 rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(36, 44, 58, 0.65), transparent 58%),
    linear-gradient(180deg, #1a2030 0%, var(--pf-bg-card, #151922) 55%, #10141c 100%);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) 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 rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.72);
  color: #f2f4f8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pf-km-popup__close:hover,
.pf-km-popup__close:focus-visible {
  background: rgba(239, 81, 76, 0.22);
  border-color: rgba(var(--pf-brand-rgb), 0.55);
  outline: none;
  transform: scale(1.04);
}

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

.pf-km-popup__head {
  flex: 0 0 auto;
  padding: 1.1rem 2.9rem 0 1.1rem;
  text-align: center;
}

.pf-km-popup__title {
  margin: 0;
  font-family: var(--pf-font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

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

.pf-km-popup .pf-km-tabs {
  margin: 0 0 1.05rem;
  gap: 0.5rem;
}

.pf-km-popup .pf-km-tabs__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  color: #fff !important;
  background: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  min-height: 2.35rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="startup"] {
  background: linear-gradient(135deg, #ef514c 0%, #c93a36 100%);
  box-shadow: 0 8px 18px rgba(239, 81, 76, 0.28);
}

.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="web"] {
  background: linear-gradient(135deg, #6ea2df 0%, #4f86c6 100%);
  box-shadow: 0 8px 18px rgba(79, 134, 198, 0.26);
}

.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="device"] {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="startup"].is-active,
.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="startup"][aria-selected="true"] {
  box-shadow: 0 12px 28px rgba(239, 81, 76, 0.4);
}

.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="web"].is-active,
.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="web"][aria-selected="true"] {
  box-shadow: 0 12px 28px rgba(79, 134, 198, 0.4);
}

.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="device"].is-active,
.pf-km-popup .pf-km-tabs__btn[data-km-popup-tab="device"][aria-selected="true"] {
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.4);
}

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

.pf-km-popup .pf-km-card--announce {
  padding: 0;
}

.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;
}

.pf-km-popup .pf-km-announce__title-line {
  padding-bottom: 0.1em;
}

/* Üç 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;
}

.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;
  animation: none !important;
  overflow: visible;
}

.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;
}

.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 rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.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__head {
    padding: 0.95rem 2.7rem 0 0.85rem;
  }

  .pf-km-popup__title {
    font-size: clamp(1.1rem, 4.6vw, 1.3rem);
  }

  .pf-km-popup__body {
    padding: 0.8rem 0.7rem 0.4rem;
  }

  .pf-km-popup .pf-km-tabs {
    margin-bottom: 0.9rem;
    flex-direction: column;
    align-items: stretch;
  }

  .pf-km-popup .pf-km-tabs__btn {
    width: 100%;
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.62rem 0.8rem;
    min-height: 2.4rem;
    text-align: center;
  }

  .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-tabs__btn {
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.25;
  }

  .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%);
  }
}

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

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