/* customCSS */
/* ==========================================================================
   1. FontAwesome Kaynak Tanımı (404 Hatasını Önleme)
   ========================================================================== */
@font-face {
  font-family: 'FontAwesome';
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. YouTube Shorts ve Dikey Video Kapsayıcısı
   ========================================================================== */
.short-video-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.short-video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   3. Blog Tarih Rozetlerini Gizleme
   ========================================================================== */
.journal-blog-posts .post-date,
.blog-posts .post-date,
.p-date,
.p-date-image {
  display: none !important;
}

/* ==========================================================================
   4. Slider ve Banner Alanları (CLS Koruması)
   ========================================================================== */
.journal-slider, 
.module-banners,
.banners-grid {
  width: 100%;
  min-height: 480px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .journal-slider, 
  .module-banners,
  .banners-grid {
    min-height: auto;
    aspect-ratio: 900 / 700;
  }
}

/* ==========================================================================
   5. Ürün Kartları ve Görsel Alanları
   ========================================================================== */
.product-thumb .image a,
.product-layout .image a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  background-color: #f8f8f8;
  overflow: hidden;
}

.product-thumb .image img,
.product-layout .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ekran dışı kartların çizim maliyetini azaltma (Render İyileştirmesi) */
.product-card,
.product-layout {
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
}

/* ==========================================================================
   6. Header ve Mobil Tavan Boşluğu Düzenlemeleri
   ========================================================================== */
.header-compact, 
.journal-header {
  min-height: 120px;
}

@media (max-width: 768px) {
  .header-compact, 
  .journal-header,
  .mobile-header {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Slider ve üst kapsayıcının tavan boşluğunu sıfırlama */
  .journal-slider,
  .journal-slider .slider-wrapper,
  .journal-row:first-of-type,
  #content > .journal-slider:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ==========================================================================
   7. Mobil Dokunma Alanları (Touch Target - 48px Kuralı)
   ========================================================================== */
.swiper-button-prev,
.swiper-button-next,
.scroll-top,
.mobile-trigger,
.block-expand,
.admin-edit {
  min-width: 48px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   8. Google Translate Kaynaklı Boşluk ve CLS Kaymalarını Önleme
   ========================================================================== */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body {
  top: 0px !important;
}

/* Başlık etiketi değiştirilirse Journal modül stilini koruma */
h2.title.module-title,
div.title.module-title {
  font-size: 16px; /* Sitenizdeki mevcut h3 boyutuyla eşitleyin */
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   Erişilebilirlik (A11y) Kontrast Düzeltmeleri
   ========================================================================== */

/* 1. Ürün Başlıkları ve Açıklamaları (Koyu Gri / Siyah) */
.product-thumb .caption .name a,
.product-layout .caption .name a,
.product-details .product-title {
  color: #1a1a1a !important; /* Yüksek kontrastlı net siyah */
}

/* 2. Fiyat Metinleri (Normal ve İndirimli Fiyatlar) */
.product-thumb .price,
.product-layout .price,
.product-thumb .price-new,
.product-layout .price-new,
.product-thumb .price-normal,
.product-layout .price-normal {
  color: #111111 !important; /* Beyaz zemin üzerinde 4.5:1 üstü tam okunabilirlik */
  font-weight: 700;
}

/* 3. Eski / Üstü Çizili Fiyatlar (Varsa çok açık gri yerine koyulaştırma) */
.product-thumb .price-old,
.product-layout .price-old {
  color: #595959 !important; /* Açık gri yerine okunabilir koyu gri */
}

/* 4. "Uusi" (Yeni) ve İndirim Rozetleri */
/* Açık renk rozetlerin zeminini koyulaştırma veya yazı rengini netleştirme */
.journal-badge,
.product-thumb .badge,
.product-layout .badge,
.badge-new {
  background-color: #0d0d0d !important; /* Koyu zemin */
  color: #ffffff !important;           /* Beyaz yazı */
}

/* 5. Modül Başlıkları (UUDET TUOTTEET vb.) */
.module-title,
.journal-title,
.title.module-title {
  color: #1a1a1a !important;
}

/* 6. Alt Bilgi / Kategori Açıklamaları */
.product-thumb .caption .description,
.product-layout .caption .description {
  color: #4a4a4a !important;
}