/* Idadi'ye özel düzenlemeler. Mojuri'nin app.css dosyası değiştirilmez; üzerine yazılan her şey burada. */

:root {
  --idadi-gold: #cb8161;
  --idadi-dark: #000;
  --idadi-whatsapp: #25d366;
  color-scheme: light;
}

/* Şablon açık temaya göre tasarlandı; karanlık modlu tarayıcılarda zemin siyah çizilmesin. */
html,
body {
  background-color: #fff;
}

/* Geçici yazı logosu (gerçek logo gelene kadar) */
.idadi-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: #000;
  text-decoration: none;
}

.idadi-wordmark:hover,
.idadi-wordmark:focus {
  color: var(--idadi-gold);
}

.idadi-wordmark-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 8px;
  margin-right: -8px; /* letter-spacing'in sağda bıraktığı boşluğu dengeler */
}

.idadi-wordmark-sub {
  font-family: "Lato", sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  margin-top: 4px;
  margin-right: -5px;
}

@media (max-width: 991px) {
  .idadi-wordmark-name {
    font-size: 26px;
    letter-spacing: 6px;
    margin-right: -6px;
  }

  .idadi-wordmark-sub {
    font-size: 8px;
    letter-spacing: 4px;
    margin-right: -4px;
  }
}

/* Ürün kartı: fiyat ve sepet yerine "Bilgi Al" */
.products-entry .products-content,
.products-entry .product-content {
  text-align: center;
}

.products-entry .product-title {
  margin-bottom: 8px;
}

.product-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--idadi-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.product-inquiry:hover,
.product-inquiry:focus {
  color: var(--idadi-gold);
}

.product-inquiry .fa-whatsapp {
  font-size: 16px;
}

/* Boş kategori/koleksiyon */
.empty-listing {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #ddd;
}

/* Sabit WhatsApp butonu */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--idadi-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  transform: scale(1.08);
}

/* "Yukarı çık" butonu WhatsApp butonunun üstünde dursun */
.back-top {
  bottom: 92px;
  right: 30px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    right: 15px;
    bottom: 15px;
  }

  .back-top {
    bottom: 75px;
    right: 20px;
  }
}

/* --- Ürün detay sayfası --- */
.product-detail-page .main-image img {
  width: 100%;
  height: auto;
}

.product-detail-page .idadi-lightbox {
  display: block;
  cursor: zoom-in;
}

.product-specs {
  width: 100%;
  margin: 20px 0 25px;
  border-collapse: collapse;
}

.product-specs th,
.product-specs td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 15px;
}

.product-specs th {
  width: 40%;
  font-weight: 400;
  color: #868686;
}

.product-specs td {
  color: #000;
}

.product-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.idadi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--idadi-dark);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.idadi-btn-whatsapp {
  background: var(--idadi-dark);
  color: #fff;
}

.idadi-btn-whatsapp:hover,
.idadi-btn-whatsapp:focus {
  background: var(--idadi-whatsapp);
  border-color: var(--idadi-whatsapp);
  color: #fff;
}

.idadi-btn-outline {
  background: #fff;
  color: var(--idadi-dark);
}

.idadi-btn-outline:hover,
.idadi-btn-outline:focus {
  background: var(--idadi-dark);
  color: #fff;
}

.product-detail-page .product-meta .posted-in {
  display: block;
  margin-bottom: 6px;
}

.product-section-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.product-description p {
  margin-bottom: 12px;
}

/* --- Hızlı bakış --- */
.idadi-quickview-popup .quickview-close {
  background: transparent;
  padding: 0;
}

.idadi-quickview-popup .quickview-container {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.idadi-quickview-images img {
  width: 100%;
  height: auto;
}

.idadi-quickview-popup .product-inquiry-actions {
  margin-top: 20px;
}

.idadi-quickview-sku {
  color: #868686;
}

@media (max-width: 767px) {
  .idadi-quickview-popup .img-quickview,
  .idadi-quickview-popup .quickview-single-info {
    width: 100%;
  }

  .idadi-quickview-popup .quickview-single-info {
    padding: 20px;
  }
}

/* --- Büyük görsel (lightbox) --- */
.idadi-lightbox-dialog {
  border: 0;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  background: #fff;
}

.idadi-lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.idadi-lightbox-dialog img {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
}

.idadi-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Footer: site ayarlarından gelen kısa yazı ve sosyal medya ikonları */
.idadi-footer-text { margin-bottom: 15px; line-height: 1.7; }
.idadi-social { display: flex; gap: 10px; padding: 0; margin: 15px 0 0; list-style: none; }
.idadi-social li { margin: 0; }
.idadi-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; font-size: 16px; }
.idadi-social a:hover { opacity: .7; }

/* Dil değiştirici (TR | EN): header'ın sağ sütunu, masaüstü ve mobil */
.idadi-lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

.idadi-lang a {
  display: inline-flex;
  align-items: center;
  color: #000;
  opacity: 0.5;
  padding: 4px 2px;
  transition: opacity 0.2s;
}

.idadi-lang a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 8px 0 6px;
  opacity: 0.5;
}

.idadi-lang a:hover,
.idadi-lang a:focus-visible,
.idadi-lang a.active {
  opacity: 1;
}

.idadi-lang a.active {
  font-weight: 700;
}

.header-mobile .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
