* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f2f2f2;
  color: #333;
  font-size: 15px;
}

/* =======================
   TOP BAR
======================= */

.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  background: #0060a8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* İKON BOYUTLARI EŞİTLENDİ (Share) */
.top-actions i,
.share-btn {
  color: white;
  font-size: 22px !important;
  cursor: pointer;
}

/* =======================
   CONTENT
======================= */

.main-content {
    padding: 50px 0 100px;
}

/* =======================
   CATEGORY
======================= */

.category-path {
  background: #fff;
  padding: 12px 10px; /* Sola yanaştı */
  font-size: 13px;
  color: #0060a8;
  margin-bottom: 2px;
}

/* =======================
   GALLERY
======================= */

.gallery {
  position: relative; /* önemli */
  background: #fff;
}
.main-photo {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.photo-indicator {
  position: absolute;
  bottom: 10px;        /* en alt */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* =======================
   PRICE
======================= */

.price-block {
  background: #fff;
  padding: 16px; 
  margin-bottom: 8px; /* Altındaki başlıkla veya tablarla arasına mesafe koyar */
  border-bottom: 1px solid #f0f0f0;
}

.price {
  font-size: 26px;
  font-weight: 700;
  color: #0060a8;
  margin-bottom: 6px;
}

.ad-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  margin-bottom: 30px;
}


/* TAB CONTAINER */
.tabs {
  display: flex;
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #ffc107; /* alttaki sarı çizgi */
}

/* TAB BUTTON */
.tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  background: #fff;
  color: #000;
}

/* AKTİF TAB */
.tab.active {
  background: #ffc107;
  color: #000;
  border: 1px solid #ffc107;
  border-bottom: none;
}
/* TAB BAR */


/* Konumu sekmesi aktifken görünür yap */
#location.tab-content.active {
    display: block !important;
    visibility: visible !important;
}

.map-container {
    width: 100%;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* =======================
   DETAILS
======================= */

.details table {
  width: 100%;
}

.details td {
  padding: 10px 0;
}

.details td:first-child {
  padding-left: 0;
}

.details td:last-child {
  text-align: right;
  padding-right: 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.detail-row span:first-child {
  color: #777;
}

.detail-row span:last-child {
  font-weight: 500;
  color: #222;
}
/* =======================
   DESCRIPTION
======================= */

.description {
  font-size: 14px;
}
.description-box {
  margin-bottom: 20px;
}

#descText {
  max-height: 60px;
  overflow: hidden;
  transition: 0.3s ease;
  font-size: 14px;
  color: #444;
}

#descText.expanded {
  max-height: 500px;
}

.desc-toggle {
  background: none;
  border: none;
  color: #0060a8;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
  cursor: pointer;
}
/* =======================
   QNA
======================= */

.qna h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.qna-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

/* =======================
   SELLER
======================= */

.seller-card {
  background: #fff;
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seller-btn {
  border: 1px solid #0060a8;
  color: #0060a8;
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}

/* =======================
   FAVORITE
======================= */

/* İKON BOYUTLARI EŞİTLENDİ (Fav) */
.favorite-icon {
  color: #fff;
  font-size: 22px !important;
  cursor: pointer;
}

.favorite-icon.active {
  color: #ffc107 !important;
}

/* =======================
   BOTTOM BAR
======================= */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  z-index: 200;
}

.bottom-bar button {
  flex: 1;
  height: 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.ara-btn {
  background: #0060a8;
  color: #fff;
  border: none;
}

.soru-btn {
  background: #0060a8;
  color: #fff;
  border: none;
}

.satinal-btn {
  background: #00bfa5;
  color: #fff;
  border: none;
}

.slider {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
}

.slide {
  min-width: 100%;
  height: 420px;
  object-fit: cover;
  scroll-snap-align: start;
}

.slider {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;

  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE */
}

.slider::-webkit-scrollbar {
  display: none;              /* Chrome, Safari */
}

.location-centered {
  background: #fff;
  padding: 14px 10px; /* Sola yanaştı */
  text-align: center;
  font-size: 14px;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.order-card,
.info-card,
.purchase-card {
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
}

.order-title {
  font-size: 14px;
  margin-bottom: 12px;
}

.order-product {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.order-product img {
  width: 70px;
  border-radius: 6px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.order-row.total {
  font-weight: 700;
  border-top: 1px solid #eee;
  margin-top: 6px;
  padding-top: 10px;
}


.info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-title {
  font-weight: 600;
  font-size: 14px;
}

.info-text {
  font-size: 13px;
  color: #666;
}


.payment-section {
  margin: 16px 0;
}

.iban-box {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
}

.iban-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

#ibanText {
  flex: 1;
  word-break: break-all;
  font-weight: 600;
  font-size: 13px;
}

#copyIbanBtn {
  background: #20c997;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}


.odeme-btn,
.complete-btn {
  width: 100%;
  height: 48px;
  background: #00bfa5;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

.share-btn {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
}



.tabs {
  display: flex;
  gap: 6px;
  padding: 0 6px;
  background: #fff;
  border-bottom: 2px solid #ffc107;
}

.tab {
  flex: 1;
  height: 42px;              /* daha estetik yükseklik */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  font-weight: 600;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #fff;
  color: #000;
  border-radius: 8px 8px 0 0;
  transition: 0.2s ease;
}

/* Hover efekti */
.tab:not(.active):hover {
  background: #f7f7f7;
}

/* Aktif */
.tab.active {
  background: #ffc107;
  border: 1px solid #ffc107;
  border-bottom: none;
  color: #000;
}


.purchase-card input,
.purchase-card textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.purchase-card label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}



/* =======================
   BÜTÜN BLOKLARI SOLA YANAŞTIRMA (16px'ten 10px'e düştü)
======================= */
.category-path,
.tab-content,
.location-centered,
.seller-card,
.order-card,
.info-card,
.purchase-card {
  padding-left: 10px !important; 
  padding-right: 16px;
}

.gallery {
  position: relative;
}

.secure-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;

  background: rgba(0, 191, 165, 0.35); /* su yeşili */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;
  font-size: 12px;
  font-weight: 600;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =======================
   GALERİ DÜZELTME (yatay thumbnail + ortada 1/3)
======================= */
.slider {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider::-webkit-scrollbar { display: none; }

.slide {
  min-width: 100%;
  height: 420px;
  object-fit: contain;
  scroll-snap-align: start;
}

.photo-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
}

/* 3 bölüm arası 10px boşluk */
.description,
.seller-card,
.qna {
    margin-bottom: 10px;
}

/* Satıcı kartı sola yaklaştır + siyah yuvarlak profil */
.seller-card {
    display: flex;
    align-items: center;
    padding: 16px 16px 16px 10px !important; /* sola yaklaştırdık */
    background: #fff;
    border-bottom: 1px solid #eee;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #111;
    margin-right: 12px;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-left {
    flex: 1;
}

.seller-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.seller-info {
    font-size: 13px;
    color: #666;
}

.seller-btn {
    border: 1px solid #0060a8;
    color: #0060a8;
    background: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Param Güvende ile Satıcı Kartı arası 12px boşluk */
.description {
    margin-bottom: 12px;
}

/* =======================
   BOŞLUK DÜZELTMESİ
======================= */

/* Param Güvende ile Satıcı Kartı arası 20px boşluk */
.description {
    margin-bottom: 20px !important;
}

/* Satıcı Kartı ile Soru-Cevap arası 20px boşluk */
.seller-card {
    margin-bottom: 20px !important;
}

.modal-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: white;
    width: 80%;
    max-width: 320px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #e6fffb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.modal-card h3 { color: #333; margin-bottom: 10px; }
.modal-card p { color: #666; font-size: 14px; margin-bottom: 20px; }

.modal-btn {
    background: #00bfa5;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
}

/* Klasik tab gizleme/gösterme */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* Adres yazısının stili (Sayfanın ortasındaki link) */
.location-centered {
    background: #fff;
    padding: 15px 10px !important; /* Sola Yanaştı */
    text-align: center;
    border-bottom: 1px solid #eee;
}

.location-centered a {
    color: #0060a8;
    text-decoration: none;
    font-size: 14px;
}

/* TÜM BLOKLARI AYNI BEYAZ YAP */
.price-block, 
.tab-content, 
.seller-card, 
.category-path, 
.location-centered {
    background-color: #ffffff !important; /* Tertemiz beyaz */
    border: none;
    margin-bottom: 0; /* Aradaki boşlukları aşağıda body ile yöneteceğiz */
}

/* SAYFA ARKALARINI HAFİF GRİ YAP (Bloklar öne çıksın) */
body {
    background-color: #f2f2f2;
}

/* İLAN DETAY ÇİZGİLERİ (Sahibinden Tarzı) */
.details {
    margin-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0; /* İşte o ince çizgi */
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none; /* En alttaki çizgiyi kaldır */
}

.detail-row span:first-child {
    color: #888; /* Sol taraf gri */
}


/* SATICI KARTI DÜZELTME */
.seller-card {
    padding: 20px 10px !important; /* Sola Yanaştı */
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 10px 0; /* Satıcı kartını biraz ayır ki belirgin olsun */
}

/* Konum linki */
.location-centered a {
    color: #0060a8;
    text-decoration: underline;
    font-weight: 500;
}

/* Harita kutusu */
.location-box {
    margin-top: 12px;
    padding: 0 16px;
}

.location-box iframe {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Konumu sekmesi açıldığında daha iyi görünsün */
#location {
    padding-bottom: 20px;
}

/* TAB İÇERİKLERİ - GÖRÜNÜRLÜK DÜZELTMESİ */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* Konum sekmesi için ekstra boşluk ve görünürlük */
#location {
    padding: 15px 0 30px;
    background: #fff;
}

/* =======================
   FİYAT + BAŞLIK - price-block içinde estetik hizalama
======================= */

.price-block {
    background: #fff;
    padding: 16px 16px 8px 10px !important;   /* SOLA YANAŞTI */
    border-bottom: 1px solid #f0f0f0;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #0060a8;   /* Sahibinden mavisi */
    margin-bottom: 8px;
    line-height: 1;
}

.ad-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    width: 100%;
}


#ilanDesc {
    font-size: 14px;
    color: #444;
}


/* --- YENİ DÜZELTMELER --- */
body {
    font-family: Arial, sans-serif; /* Sahibinden fontuna çok daha yakın */
}

/* Fiyat ve Başlık Boşlukları */
.price {
    font-size: 22px; /* Öküz gibi değil, daha estetik */
    font-weight: bold;
    color: #0060a8;
    margin-bottom: 10px !important; /* BAŞLIKLA ARASI AÇILDI */
}

.ad-title {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px; /* Açıklama ile arası 8px */
}

/* Açıklama Kutusu */
.description-box {
    margin-top: 10px; /* EŞİTLENDİ */
    margin-bottom: 8px; /* Detaylar ile arası 8px */
}

#ilanDesc {
    font-size: 14px;
    color: #444;
}

.desc-toggle {
    font-size: 13px;
    margin-top: 4px;
}

/* Kategori Yolu Sahibinden Link Stili */
.category-path a {
    color: #0060a8;
    text-decoration: none;
    font-size: 12px;
}
.category-path a:hover {
    text-decoration: underline;
}

.info-card {
  background: #fff;
  padding: 16px 10px; /* Sola yanaşık */
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.info-title {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.info-text {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* =======================
   ÜRÜN BİLGİLERİ VE SATIN AL SAYFALARI İÇİN ANA SAYFA İLE AYNI ÜST BAR
======================= */

/* =======================
   GERİ TUŞU - KALIN VE BÜYÜK (index.html gibi)
======================= */

/* =======================
   GERİ TUŞU - EN BASİT VE KESİN ÇALIŞAN HALİ
======================= */

.top-bar .back-link {
    color: white;
    font-size: 32px;
    font-weight: bold;
    padding: 10px;
    margin-left: -10px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.top-bar .back-link i {
    font-size: 32px;
    color: white;
}

.top-bar .back-link {
    color: white !important;
    font-size: 32px !important;
    font-weight: bold !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 50px !important;
    height: 50px !important;
}

.top-bar .back-link i {
    font-size: 32px !important;
    color: white !important;
    font-weight: 900 !important;
}

/* İLAN NO SOLUK KIRMIZI */
.detail-row span.ilan-no {
    color: #d65955 !important; 
    font-weight: 700 !important;
}

/* Diğer normal detayların sağ tarafı siyah kalsın */
.detail-row span:last-child:not(.ilan-no) {
    color: #333 !important;
    font-weight: 500 !important;
}

#ibanContainer {
    margin-top: 10px;
}
.copy-dynamic-btn:hover {
    opacity: 0.8;
}

/* İlan No'nun DEĞERİ (numara) kırmızı olsun */
.ilan-no {
    color: #d65955 !important; /* Sahibinden kırmızısı */
    font-weight: 700 !important;
}
