/**
 * Fırsatlar — açık tema mockup yerleşimi (ortak header/footer korunur)
 */
.page-firsatlar-kp #main-content {
  /* Mobil fixed header boşluğu portal.css'te; burada ezme */
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1024px) {
  .page-firsatlar-kp #main-content {
    padding-top: 12px;
  }
}

.fp-wrap {
  padding-bottom: 28px;
  font-family: var(--font);
  overflow-x: clip;
}

.fp-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.fp-wrap *,
.fp-wrap *::before,
.fp-wrap *::after {
  box-sizing: border-box;
}

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

/* ── Hero banner ── */
.fp-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 14px;
  margin: 0 0 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff5f7 0%, #fff 48%, #fffafb 100%);
  border: 1px solid #fce4ec;
  box-shadow: 0 4px 20px rgba(209, 0, 36, 0.06);
  overflow: visible;
}

.fp-hero__left {
  flex: 1 1 auto;
  min-width: 0;
}

.fp-hero__title {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 2.8vw + 0.4rem, 1.5rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--hdr-navy, #001a33);
  word-break: break-word;
}

.fp-hero__accent {
  color: var(--primary);
}

.fp-hero__lead {
  margin: 0 0 12px;
  font-size: clamp(0.72rem, 1.6vw + 0.35rem, 0.86rem);
  line-height: 1.45;
  color: var(--text-mid);
  max-width: 38ch;
}

.fp-hero__quick {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.fp-hero__btn--red {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(209, 0, 36, 0.28);
}

.fp-hero__btn--red:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.fp-hero__btn--ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text-dark);
}

.fp-hero__btn--ghost:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
  color: var(--text-dark);
}

.fp-hero__art {
  flex: 0 0 clamp(88px, 26vw, 148px);
  width: clamp(88px, 26vw, 148px);
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
}

.fp-hero__bag {
  width: 82%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(209, 0, 36, 0.18));
}

.fp-hero__float {
  position: absolute;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  animation: fpFloat 3s ease-in-out infinite;
  pointer-events: none;
}

.fp-hero__float--1 { top: 6%; right: 0; animation-delay: 0s; }
.fp-hero__float--2 { top: 38%; left: -2%; animation-delay: 0.5s; }
.fp-hero__float--3 { bottom: 10%; right: 6%; animation-delay: 1s; }
.fp-hero__float--4 {
  top: 14%;
  left: 4%;
  font-size: 0.58rem;
  font-weight: 900;
  color: var(--accent);
  background: #fff;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  animation-delay: 0.8s;
}

@keyframes fpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Mobil: dikey akış, illüstrasyon altta — taşma/kesilme yok */
@media (max-width: 639px) {
  .fp-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px 14px;
    gap: 14px;
  }

  .fp-hero__left {
    order: 1;
  }

  .fp-hero__art {
    order: 2;
    align-self: center;
    flex: none;
    width: min(140px, 52vw);
    margin: 0 auto;
  }

  .fp-hero__float--1,
  .fp-hero__float--2 {
    display: none;
  }

  .fp-hero__title {
    font-size: clamp(0.95rem, 4.8vw, 1.12rem);
    margin-bottom: 8px;
  }

  .fp-hero__lead {
    margin-bottom: 12px;
    max-width: none;
  }

  .fp-hero__quick {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-hero__btn {
    width: 100%;
    flex: none;
    padding: 12px 14px;
  }

  .fp-near {
    padding-left: 2px;
    padding-right: 2px;
    scroll-padding-inline: 16px;
  }

  .fp-ncard {
    flex: 0 0 min(78vw, 280px);
  }
}

/* Tablet+ : web mockup — yan yana butonlar, geniş hero */
@media (min-width: 640px) {
  .fp-hero {
    padding: 20px 22px 18px;
    gap: 20px 28px;
  }

  .fp-hero__quick {
    flex-direction: row;
  }

  .fp-hero__btn {
    flex: 0 1 auto;
    min-width: 128px;
  }

  .fp-hero__lead {
    max-width: 42ch;
    margin-bottom: 14px;
  }
}

@media (min-width: 1024px) {
  .fp-hero {
    padding: 22px 28px 20px;
  }

  .fp-hero__art {
    flex-basis: 150px;
    width: 150px;
  }
}

/* ── Categories ── */
.fp-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 4px 18px;
  margin: 0 -4px;
  overscroll-behavior-x: contain;
}

.fp-cats::-webkit-scrollbar {
  display: none;
}

.fp-cat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  width: 62px;
}

.fp-cat__ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--text-mid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.fp-cat:hover .fp-cat__ico {
  transform: translateY(-2px);
}

.fp-cat.is-active .fp-cat__ico {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(209, 0, 36, 0.3);
}

.fp-cat__lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.15;
}

.fp-cat.is-active .fp-cat__lbl {
  color: var(--primary);
}

/* ── Section header ── */
.fp-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 12px;
}

.fp-sec-h h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.fp-sec-h__link {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.fp-sec-h__link:hover {
  color: var(--primary);
}

.fp-sec-h__link i {
  font-size: 0.65rem;
}

/* ── Featured carousel ── */
.fp-featured {
  margin-bottom: 6px;
}

.fp-featured__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 14px;
  padding: 2px 0 4px;
}

.fp-featured__viewport::-webkit-scrollbar {
  display: none;
}

.fp-featured__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}

.fp-fcard {
  display: grid;
  grid-template-columns: 44% 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 26, 46, 0.08);
  min-height: 210px;
}

.fp-fcard__img-wrap {
  position: relative;
  min-height: 100%;
  background: #f1f5f9;
}

.fp-fcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 210px;
}

.fp-fcard__img--ph {
  min-height: 210px;
  background: linear-gradient(160deg, var(--primary-light), #fff);
}

.fp-fcard__hex {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 58px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 4px 12px rgba(209, 0, 36, 0.35);
  padding: 4px;
}

.fp-fcard__heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
}

.fp-fcard__body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fp-fcard__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.fp-fcard__tit {
  margin: 0 0 5px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--text-dark);
}

.fp-fcard__desc {
  margin: 0 0 10px;
  font-size: 0.72rem;
  line-height: 1.42;
  color: var(--text-mid);
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.fp-fcard__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-soft);
}

.fp-fcard__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-fcard__meta i {
  color: var(--primary);
  width: 12px;
  text-align: center;
  font-size: 0.62rem;
}

.fp-fcard__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.fp-fcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.fp-fcard__btn--ghost {
  background: #fff;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}

.fp-fcard__btn--ghost:hover {
  border-color: #cbd5e1;
  color: var(--text-dark);
}

.fp-fcard__btn--red {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(209, 0, 36, 0.25);
}

.fp-fcard__btn--red:hover {
  background: var(--primary-dark);
  color: #fff;
}

.fp-fcard__btn--red:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fp-fcard__kod {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green);
  text-align: center;
}

.fp-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 20px;
}

.fp-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #dde1ea;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.fp-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

/* ── Near deals ── */
.fp-near {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0 22px;
  margin: 0 -2px;
}

.fp-near::-webkit-scrollbar {
  display: none;
}

.fp-ncard {
  flex: 0 0 clamp(168px, 44vw, 220px);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.06);
}

.fp-ncard__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 112px;
  background: linear-gradient(145deg, var(--primary-light), #f1f5f9);
  overflow: hidden;
}

.fp-ncard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fp-ncard__cover--ph,
.fp-ncard__cover-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 108px;
  font-size: 2rem;
  color: var(--text-soft);
}

.fp-ncard__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 6px 11px 6px 9px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  border-radius: 0 0 12px 0;
  max-width: 80px;
  text-align: center;
}

.fp-ncard__ribbon--o { background: #ff9800; }
.fp-ncard__ribbon--g { background: var(--green); }
.fp-ncard__ribbon--p { background: #9c27b0; }
.fp-ncard__ribbon--b { background: #1976d2; }

.fp-ncard__heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  box-shadow: var(--shadow-sm);
}

.fp-ncard__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.fp-ncard__name {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.45em;
}

.fp-ncard__loc {
  margin: 5px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
}

.fp-ncard__btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-full);
  border: 1.5px solid;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.fp-ncard__btn--o { border-color: #ff9800; color: #e65100; }
.fp-ncard__btn--g { border-color: var(--green); color: var(--green); }
.fp-ncard__btn--p { border-color: #9c27b0; color: #7b1fa2; }
.fp-ncard__btn--b { border-color: #1976d2; color: #1565c0; }

.fp-ncard__btn:hover {
  background: #fafbfc;
}

.fp-ncard__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── CTA banner ── */
.fp-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  margin-top: 2px;
  background: linear-gradient(135deg, #fff0f3 0%, #fff5f8 100%);
  border: 1px solid #fce4ec;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(209, 0, 36, 0.05);
}

.fp-cta__icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(209, 0, 36, 0.12));
}

.fp-cta__txt strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
}

.fp-cta__txt small {
  display: block;
  font-size: 0.66rem;
  color: var(--text-mid);
  margin-top: 3px;
  line-height: 1.35;
}

.fp-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.fp-cta__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Empty ── */
.fp-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.5;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.fp-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text-soft);
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .fp-inner {
    padding: 0 20px;
  }

  .fp-cats {
    overflow: visible;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding-bottom: 20px;
  }

  .fp-cat {
    flex: 1 1 0;
    width: auto;
    min-width: 62px;
    max-width: 80px;
  }

  .fp-cat__ico {
    width: 58px;
    height: 58px;
  }

  .fp-featured__slide {
    flex: 0 0 100%;
  }

  .fp-fcard {
    grid-template-columns: 38% 1fr;
    min-height: 230px;
  }

  .fp-fcard__img,
  .fp-fcard__img--ph {
    min-height: 230px;
  }

  .fp-near {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 14px;
    margin: 0;
  }

  .fp-ncard {
    flex: none;
    width: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .fp-featured__slide {
    flex: 0 0 100%;
  }

  .fp-near {
    gap: 12px;
  }

  .fp-ncard {
    flex: 0 0 clamp(160px, 22vw, 180px);
  }
}

@media (max-width: 767px) {
  .fp-fcard {
    grid-template-columns: 38% 1fr;
    min-height: 200px;
  }

  .fp-fcard__img,
  .fp-fcard__img--ph {
    min-height: 200px;
  }

  .fp-fcard__hex {
    width: 50px;
    height: 56px;
    font-size: 0.52rem;
  }

  .fp-fcard__tit {
    font-size: 0.8rem;
  }

  .fp-fcard__desc {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }

  .fp-fcard__btn {
    font-size: 0.6rem;
    padding: 9px 6px;
  }
}

@media (max-width: 360px) {
  .fp-fcard__actions {
    grid-template-columns: 1fr;
  }

  .fp-fcard__btn {
    font-size: 0.65rem;
  }
}

@media (max-width: 520px) {
  .fp-cta {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .fp-cta__btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero__float {
    animation: none;
  }

  .fp-featured__viewport {
    scroll-behavior: auto;
  }
}
