/* BiDavetiye ek stiller: footer, üyelik modali, yıldızlar, ödeme, mobil uyum */

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--brand-blue, #202c59);
  color: #cbd2e8;
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-baslik {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-aciklama { font-size: 0.85rem; line-height: 1.6; }
.footer-satir { font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-link {
  display: block;
  color: #cbd2e8;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link:hover { color: var(--brand-gold, #b98f4f); transform: translateX(3px); }
.footer-link-vurgu { color: var(--brand-gold, #b98f4f); font-weight: 600; }
.footer-alt {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.5rem 0;
  text-align: center;
  color: #8f99c0;
}
.footer-logo { height: 48px; border-radius: 6px; margin-bottom: 0.6rem; }
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== ÜYELİK BUTONU (sağ üst) ===== */
.auth-giris-btn {
  background: transparent;
  border: 1.5px solid var(--brand-blue, #202c59);
  color: var(--brand-blue, #202c59);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.auth-giris-btn:hover {
  background: var(--brand-blue, #202c59);
  color: #fff;
}
.auth-uye-kutusu { display: flex; align-items: center; gap: 0.5rem; }
.auth-uye-adi {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue, #202c59);
}
.auth-cikis-btn {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.auth-cikis-btn:hover { background: #fecaca; }

/* ===== ÜYELİK MODALİ ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}
.auth-overlay.acik { opacity: 1; visibility: visible; }
.auth-kart {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.auth-overlay.acik .auth-kart { transform: translateY(0); }
.auth-kart h3 { color: var(--brand-blue, #202c59); font-weight: 700; margin-bottom: 0.25rem; }
.auth-alt { color: #6b7280; font-size: 0.85rem; margin-bottom: 1.25rem; }
.auth-kapat {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #9ca3af;
  line-height: 1;
}
.auth-kapat:hover { color: #111; }
.auth-kart label { font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 0.25rem; display: block; }
.auth-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.2s ease;
}
.auth-input:focus { outline: none; border-color: var(--brand-gold, #b98f4f); }
.auth-btn-buyuk {
  width: 100%;
  background: var(--brand-blue, #202c59);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  transition: background 0.2s ease;
}
.auth-btn-buyuk:hover { background: var(--brand-blue-hover, #161f40); }
.auth-linkler {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}
.auth-linkler a { color: var(--brand-gold, #b98f4f); font-weight: 600; text-decoration: none; }
.auth-linkler a:hover { text-decoration: underline; }
.auth-linkler span { color: #d1d5db; }
.auth-mesaj { display: none; border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.83rem; margin-bottom: 1rem; }
.auth-mesaj-hata { background: #fee2e2; color: #991b1b; }
.auth-mesaj-ok { background: #d1fae5; color: #065f46; }
.auth-yerel-not {
  margin-top: 0.6rem;
  background: #fff7e6;
  border: 1px dashed #d4a017;
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.78rem;
  word-break: break-all;
}

/* ===== YILDIZ PUANLAMA ===== */
.yildiz-goster { color: #d4a017; font-size: 1rem; letter-spacing: 2px; }
.yildiz-goster .bos { color: #e5e7eb; }
.yildiz-secim { display: flex; gap: 6px; font-size: 1.9rem; cursor: pointer; }
.yildiz-secim span { color: #e5e7eb; transition: color 0.15s ease, transform 0.15s ease; }
.yildiz-secim span.aktif { color: #d4a017; }
.yildiz-secim span:hover { transform: scale(1.15); }
.yorum-kart {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  height: 100%;
}
.yorum-kart .yorum-isim { font-weight: 700; color: var(--brand-blue, #202c59); font-size: 0.95rem; }
.yorum-kart .yorum-tarih { font-size: 0.75rem; color: #9ca3af; }
.yorum-kart .yorum-metin { font-size: 0.88rem; color: #4b5563; margin-top: 0.5rem; }

/* ===== İLETİŞİM ===== */
.harita-kapsayici {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}
.harita-kapsayici iframe { width: 100%; height: 420px; border: 0; display: block; }
.iletisim-kart {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.4rem;
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iletisim-kart:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.iletisim-kart i { font-size: 1.8rem; color: var(--brand-gold, #b98f4f); }
.iletisim-kart h6 { margin: 0.7rem 0 0.3rem; color: var(--brand-blue, #202c59); font-weight: 700; }
.iletisim-kart p, .iletisim-kart a { font-size: 0.88rem; color: #4b5563; margin: 0; }

/* ===== ÖDEME SAYFASI ===== */
.odeme-not {
  background: #fff7e6;
  border: 1px dashed #d4a017;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: #7a5b00;
}
.siparis-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 0.9rem;
}

/* ===== ÜRÜN SAYFASI: MİKTAR NOTU + İNDİRİM ===== */
.miktar-notu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #fdf6ec, #fff);
  border: 1px solid rgba(185, 143, 79, 0.35);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  color: #8a6a2f;
  margin-top: 0.6rem;
}
.miktar-notu i { color: var(--brand-gold, #b98f4f); }
.indirim-bilgi {
  font-size: 0.78rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}
.urun-img-alan { height: 270px; }

/* ===== KENDİN TASARLA: RENK & FONT ===== */
.renk-hazir { display: flex; gap: 6px; }
.renk-hazir span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #d1d5db;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.renk-hazir span:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--brand-gold, #b98f4f); }

/* ===== MOBİL KATEGORİ BUTONU (üç nokta) ===== */
.cat-mobil-toggle { display: none; }

/* ===== MOBİL UYUM (≤767px) ===== */
@media (max-width: 767px) {
  /* Üst bilgi barı ve header sadeleşir */
  .top-info-bar { font-size: 0.68rem; padding: 0.3rem 0; }
  .site-logo-img { height: 38px !important; }
  header .btn { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .auth-giris-btn { padding: 0.28rem 0.7rem; font-size: 0.75rem; }
  .header-cart-btn { font-size: 0.78rem; padding: 0.3rem 0.6rem; }

  /* Kategori menüsü: üç nokta ile açılır */
  .cat-nav-wrapper { flex-wrap: wrap; padding: 0.45rem 0; gap: 0.5rem; }
  .cat-mobil-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-blue, #202c59);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.35rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
  }
  .category-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    order: 3;
    padding: 0.25rem 0 0.5rem;
  }
  .category-nav-list.mobil-acik { display: flex; }
  .category-nav-item { width: 100%; }
  .category-nav-link {
    display: block;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.88rem;
  }
  .arrow-icon { display: none; }
  .cat-dropdown-menu, .mega-menu {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 1rem !important;
    min-width: 0 !important;
    background: transparent !important;
  }
  .cat-dropdown-menu a, .mega-menu a {
    font-size: 0.8rem;
    padding: 0.32rem 0;
    color: #6b7280;
  }

  /* Hero slider küçülür */
  .hero-slider-item { min-height: 300px !important; height: 42vh !important; }
  .hero-slider-overlay .display-4 { font-size: 1.5rem !important; }
  .hero-slider-overlay .lead { font-size: 0.85rem !important; }
  .hero-slider-overlay .btn { font-size: 0.8rem; padding: 0.5rem 1rem !important; }

  /* Ürün kartları: yan yana 2 adet, kompakt */
  .urun-img-alan { height: 165px !important; }
  .product-card .p-4 { padding: 0.75rem !important; }
  .product-card h5, .product-card .h5 { font-size: 0.88rem; line-height: 1.25; }
  .product-card .fs-4 { font-size: 1rem; }
  .product-card p.small, .product-card .text-muted.small { font-size: 0.7rem !important; }
  .product-card .badge { font-size: 0.6rem; padding: 0.3rem 0.5rem; }
  .product-card .p-2.rounded-3 { padding: 0.4rem !important; }

  /* Bölüm başlıkları */
  .serif-font.display-4 { font-size: 1.6rem; }
  h3.serif-font { font-size: 1.3rem; }

  /* Footer mobilde tek sütun, kompakt */
  .site-footer { padding: 2rem 0 0; }
  .footer-grid { gap: 1.25rem; }

  /* Ürün detay sayfası */
  .thumb-gallery { gap: 6px; }
  .image-nav-buttons .btn-nav-prev, .image-nav-buttons .btn-nav-next { width: 34px; height: 34px; }
}

/* ===== v4: HEADER BÜYÜT / KATEGORİ BARİ İNCELT ===== */
header.shadow-sm > .container { padding-top: 0.9rem !important; padding-bottom: 0.9rem !important; }
.site-logo-img { height: 60px !important; }
.category-subnav { padding: 5px 0 !important; }

/* ===== v4: FOOTER AKORDİYON (mobil) ===== */
.footer-baslik { user-select: none; }
@media (max-width: 767px) {
  .footer-baslik {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .footer-baslik::after { content: '▾'; font-size: 0.75rem; opacity: 0.7; transition: transform 0.2s ease; }
  .footer-col.acik .footer-baslik::after { transform: rotate(180deg); }
  .footer-col .footer-link, .footer-col .footer-aciklama, .footer-col .footer-satir { display: none; }
  .footer-col.acik .footer-link, .footer-col.acik .footer-aciklama, .footer-col.acik .footer-satir { display: block; }
  .footer-grid { gap: 0.25rem; }
  .site-footer { padding: 1.75rem 0 0; }
}

/* ===== v4: MOBİL SLİDER DÜZELTME (resim düzgün, yazılar ortalı, efekt hafif) ===== */
@media (max-width: 767px) {
  .hero-slider-item {
    min-height: 330px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  .hero-slider-overlay {
    min-height: 330px !important;
    background: rgba(18, 24, 45, 0.42) !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-slider-overlay .container { text-align: center !important; }
  .hero-slider-overlay h1.display-4, .hero-slider-overlay h2.display-4 { font-size: 1.35rem !important; }
  .hero-slider-overlay .lead { font-size: 0.82rem !important; margin-left: auto !important; margin-right: auto !important; }
  .carousel-control-prev, .carousel-control-next {
    width: 36px !important;
    height: 36px !important;
    opacity: 0.65;
    top: auto !important;
    bottom: 14px !important;
  }
  .carousel-indicators { bottom: 2px !important; margin-bottom: 0 !important; }
}

/* ===== v4: MOBİL HEADER DÜZENİ ===== */
@media (max-width: 767px) {
  header.shadow-sm > .container {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
  .site-logo-img { height: 46px !important; }
  header .btn, header .header-cart-btn {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.6rem !important;
  }
  header .d-flex.gap-2 { flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem !important; }
}

/* ===== v4: MOBİL KATEGORİ MENÜSÜ KAYDIRMA + MEGA MENÜ DÜZELTME ===== */
@media (max-width: 767px) {
  .category-nav-list.mobil-acik {
    max-height: 62vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex-wrap: nowrap !important;
  }
  .category-nav-list.mobil-acik .category-nav-item { flex-shrink: 0; width: 100%; }
  .mega-menu {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 0 0 1rem !important;
  }
  .mega-menu a { display: block; padding: 0.3rem 0 !important; font-size: 0.8rem !important; }
}

/* ===== v5: MOBİL NAVBAR TİTREME DÜZELTMESİ + HİZALAMA ===== */
@media (max-width: 767px) {
  /* sticky mobilde titreme yapıyor: sabit konum kaldırıldı */
  .category-subnav { position: static !important; }
  /* Kategoriler/Sepet butonları üstteki butonlarla aynı kenar hizasında */
  .cat-nav-wrapper { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  /* Slider okları dikeyde ortalı */
  .carousel-control-prev, .carousel-control-next {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: 34px !important;
    height: 34px !important;
    opacity: 0.7;
  }
  /* Kendin Tasarla: mobilde butonla açılır */
  .tasarimci-toggle { display: inline-flex !important; align-items: center; }
  #tasarimciIcerik { display: none !important; }
  #tasarimciIcerik.acik { display: flex !important; }
  /* Önizleme kartı mobilde üstte dursun */
  #tasarimciIcerik .col-lg-5 { order: -1; }
}

/* Masaüstünde toggle butonu gizli, içerik her zaman açık */
.tasarimci-toggle { display: none; }

/* ===== CANLI ARAMA ÖNERİLERİ ===== */
.arama-oneri {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 10045; overflow: hidden; display: none;
}
.arama-oneri.acik { display: block; }
.arama-oneri-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  color: #111827; text-decoration: none; font-size: .9rem; border-bottom: 1px solid #f3f4f6;
}
.arama-oneri-link:last-child { border-bottom: 0; }
.arama-oneri-link:hover { background: #f8f9fa; }
.arama-oneri-link span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arama-oneri-link small { color: #9ca3af; }
