/* =============================================
   responsive-fix.css — Tüm sayfalar için mobil düzeltmeler
   Son yüklenen CSS olmalı (diğer CSS'lerden sonra)
   ============================================= */

/* ── DETAY SAYFALARI — HERO / GRID ── */
@media (max-width: 768px) {

  /* PAY-MAIN KARANLIK ARKA PLAN GİZLE */
  .pay-main { display: none !important; }

  /* HERO BAND */
  .hero-band {
    border-radius: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .hero-ic {
    padding: 0 12px !important;
    width: 100% !important;
  }

  /* HERO GRID — TEK KOLON */
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: unset !important;
    grid-template-columns: unset !important;
  }

  .hero-galeri-col {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
  }

  .hero-ana-img {
    height: 260px !important;
  }

  .hero-bilgi-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    border-right: none !important;
    overflow: hidden !important;
  }

  /* FİRMA KOLONU — MOBİL */
  .hero-firma-col {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-top: 1.5px solid var(--sinir) !important;
    margin-top: 4px !important;
  }

  /* METİN TAŞMA FİX */
  .hb-ad {
    font-size: 1.2rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hb-aciklama {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .hb-fiyat-rakam { font-size: 1.4rem !important; }
  .hb-chips { flex-wrap: wrap !important; }
  .hb-stat-bar { flex-wrap: wrap !important; }

  .hb-stat {
    flex: 1 1 50% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--sinir) !important;
  }

  /* DETAY WRAP */
  .detay-wrap { padding: 0 12px 60px !important; }

  .d-panel {
    padding: 16px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* SEKME NAV */
  .d-sekme-nav {
    flex-wrap: wrap !important;
    overflow-x: unset !important;
  }

  .d-sekme-btn {
    flex: 1 1 33% !important;
    text-align: center !important;
    padding: 10px 8px !important;
    font-size: .72rem !important;
    border-bottom: 1px solid var(--sinir) !important;
    white-space: normal !important;
  }

  /* SPEC GRID */
  .spec-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .spec-kart.wide { grid-column: 1 / -1 !important; }
  .spec-kart.w2   { grid-column: 1 / -1 !important; }

  /* TİCARİ HIGHLIGHT */
  .ticari-highlight {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
  }

  .th-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    padding: 8px !important;
  }

  /* TABLOLAR */
  .d-ftablo {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
  }

  .d-panel table { min-width: 500px !important; }

  .d-info-tablo tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border-bottom: 1px solid #f0f2f8 !important;
    padding: 8px 0 !important;
  }

  .d-info-tablo td {
    padding: 4px 8px !important;
    font-size: .8rem !important;
  }

  /* DOSYA */
  .dosya-item {
    padding: 10px 12px !important;
    font-size: .78rem !important;
  }

  /* HEROWrap */
  #heroWrap {
    overflow: hidden !important;
    width: 100% !important;
  }

  /* detailWrap — ms-5/me-5 override */
  #detailWrap {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  /* TEKNİK TABLO GRID */
  .pd-teknik-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .pd-hero {
    padding: 24px 16px !important;
  }

}

@media (max-width: 480px) {
  .spec-grid { grid-template-columns: 1fr !important; }
  .ticari-highlight { grid-template-columns: 1fr !important; }
  .d-sekme-btn { flex: 1 1 50% !important; }
  .hb-ad { font-size: 1.1rem !important; }
  .hb-fiyat-rakam { font-size: 1.2rem !important; }
  .hero-thumb { width: 44px !important; height: 44px !important; }
  .pd-teknik-grid { grid-template-columns: 1fr !important; }

  #detailWrap {
    margin-left: 6px !important;
    margin-right: 6px !important;
  }
}

/* ── İLANLAR SAYFASI — KONTROL / FİLTRE ── */
@media (max-width: 768px) {
  .sag-kontroller {
    flex-direction: row !important;
    gap: 6px !important;
  }

  .filtre-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
}

/* ── İLAN-BASVURU — TAŞMA / FORM ── */
@media (max-width: 768px) {
  .ilan-basvuru-form,
  .basvuru-container,
  .form-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .basvuru-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── ÜRÜN KARTLARI — HİZALI GÖRÜNÜM ── */
.urun-kart {
  height: 100%;
}

.urun-kart-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.urun-ad {
  -webkit-line-clamp: 2 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.urun-kart-alt {
  margin-top: auto;
}

/* ── REKLAM / HABER / SATILIK / KIRALIK KARTLARI — HİZALI GÖRÜNÜM ── */
.rkl-baslik {
  -webkit-line-clamp: 2 !important;
  flex-shrink: 0;
}

.rkl-aciklama {
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  flex-shrink: 0;
}

.rkl-icerik > .rkl-kart-fiyat-blok {
  flex-shrink: 0;
}

.rkl-icerik > div:last-child {
  margin-top: auto !important;
}

.sts-kart .rkl-kart-fiyat-blok {
  justify-content: center !important;
}

/* ── PERSONEL / FİRMA İŞ İLANI KARTLARI — HİZALI GÖRÜNÜM ── */
.personel-kart {
  height: 100%;
}

/* ── KART ÜSTÜ ROZETLER — MOBİL ── */
@media (max-width: 480px) {
  .rkl-tur-rozet {
    font-size: 9px !important;
    padding: 2px 7px !important;
    bottom: 6px !important;
    right: 6px !important;
    letter-spacing: 0.5px !important;
  }

  .rkl-premium-rozet {
    font-size: 9px !important;
    padding: 2px 7px !important;
    top: 6px !important;
    left: 6px !important;
  }

  .favori-btn,
  .uk-favori-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    top: 6px !important;
    right: 6px !important;
  }

  .rkl-gorsel-wrap {
    height: 130px !important;
  }

  .urun-kart-resim-wrap,
  .uk-carousel {
    height: 130px !important;
    min-height: 130px !important;
  }

  .uk-kat-rozet { display: none !important; }

  .uk-alt-kat-rozet,
  .uk-sektor-rozet,
  .urun-kat-badge,
  .urun-stok-badge {
    font-size: 8px !important;
    padding: 2px 6px !important;
  }
}

/* ── NAVBAR HAMBURGER MENÜ ── */
@media (max-width: 991px) {
  .navbar-brand {
    margin-left: 12px !important;
  }

  .navbar-collapse {
    background: var(--brand-navy, #0b2447) !important;
    padding: 16px !important;
    border-top: 1px solid rgba(255,255,255,.07) !important;
  }

  .navbar-nav .nav-link {
    padding: 12px 14px !important;
  }
}

