/* =============================================
   PRINT STYLES - gaGa Burdur Menü
   A4 Kağıt: 2 sayfa (arkalı önlü)
   A3 Kağıt: 1 sayfa
   ============================================= */

@media print {
  /* Sayfa kenar boşlukları */
  @page {
    margin: 7mm 8mm;
  }

  /* Global max-width sıfırlama */
  *,
  *::after,
  *::before {
    max-width: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* ============================================
     GİZLENECEK ELEMANLAR
     ============================================ */

  /* Hero / Landing bölümü */
  .land,
  .land + br {
    display: none !important;
  }

  /* Yukarı çık butonu */
  #goTop {
    display: none !important;
  }

  /* Üst navbar */
  #navbar {
    display: none !important;
  }

  /* "Yeni Gelenler" / "Sadece Pazar Günleri" giriş bölümü */
  #newcomers,
  #newcomers + .menu {
    display: none !important;
  }

  /* Üstteki tekrar eden kahve bölümü (içeceklerde zaten var) */
  #coffee,
  #coffee + .menu {
    display: none !important;
  }

  /* Navigasyon bölümleri */
  .nav {
    display: none !important;
  }

  /* Bölüm ayırıcı hr elemanları (ID'li olanlar) */
  hr[id] {
    display: none !important;
  }

  /* Link URL'lerini yazdırma */
  a[href]::after {
    content: none !important;
  }

  /* Lightbox overlay */
  .lb-outerContainer,
  .lightbox,
  .lb-overlay,
  .lightboxOverlay {
    display: none !important;
  }

  /* ============================================
     ANA LAYOUT
     ============================================ */

  body {
    background: white !important;
    background-image: none !important;
    color: #000 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 8pt !important;
    /*
      column-width ile otomatik sütun sayısı:
      A4 dikey (~194mm kullanılabilir) → 2 sütun
      A3 yatay (~404mm kullanılabilir) → 4 sütun
      A3 dikey (~281mm kullanılabilir) → 3 sütun
    */
    column-width: 90mm !important;
    column-gap: 5mm !important;
    column-rule: 0.4pt solid #ccc !important;
    orphans: 3;
    widows: 3;
  }

  /* ============================================
     MENÜ BÖLÜMLERİ
     ============================================ */

  .menu {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
  }

  .menu h3 {
    font-size: 9pt !important;
    font-weight: 900 !important;
    margin: 2.5mm 0 1mm 0 !important;
    padding: 0.5mm 0 !important;
    text-align: center !important;
    border-bottom: 0.7pt solid #000 !important;
    break-after: avoid !important;
    letter-spacing: 0.5pt !important;
    line-height: 1.3 !important;
  }

  /* h3 içindeki br etkisini kaldır (Wrap ve Quesedilla başlığı) */
  .menu h3 br {
    content: "" !important;
    display: inline !important;
  }
  .menu h3 br::after {
    content: " ";
  }

  .menu h5 {
    font-size: 6.5pt !important;
    font-weight: 500 !important;
    margin: 0 0 1mm 0 !important;
    text-align: center !important;
    font-style: italic !important;
  }

  /* ============================================
     ÜRÜN SATIRLARI
     ============================================ */

  .urun {
    font-size: 7pt !important;
    margin: 0.3mm 1mm !important;
    padding: 0.3mm 0 !important;
    break-inside: avoid !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    line-height: 1.35 !important;
  }

  .urun .content {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .urun .content .name {
    font-size: 7pt !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  .urun .content .desc {
    font-size: 5.5pt !important;
    font-weight: 300 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    color: #333 !important;
  }

  /* Boş açıklama alanlarını gizle */
  .urun .content .desc:empty {
    display: none !important;
  }

  /* Açıklamalardaki satır kırılmalarını kaldır */
  .urun .content .desc br {
    display: none !important;
  }

  /* Açıklamalardaki küçük ikonlar */
  .urun .content .desc img {
    height: 5.5pt !important;
    width: auto !important;
  }

  .urun .price {
    font-size: 7pt !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-align: right !important;
    padding-left: 2mm !important;
    flex-shrink: 0 !important;
  }

  /* ============================================
     BÖLÜM İÇİ AYIRICILAR
     ============================================ */

  .menu hr {
    display: block !important;
    height: 0 !important;
    border: none !important;
    border-top: 0.3pt solid #aaa !important;
    margin: 0.8mm 0 !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
  }

  /* ============================================
     İKON & LOGO AYARLARI
     ============================================ */

  .logo,
  .gagaSpecial,
  .descLogo,
  .navLogo {
    filter: none !important;
    -webkit-filter: none !important;
  }

  .gagaSpecial {
    height: 8pt !important;
  }

  .descLogo {
    height: 5.5pt !important;
  }

  /* ============================================
     APARATİF EKSTRA SATIRLAR
     ============================================ */

  .adet {
    font-size: 6.5pt !important;
    margin-top: 0.5mm !important;
    margin-bottom: 0 !important;
  }

  .underlined {
    padding-left: 8px !important;
    padding-right: 5px !important;
    font-size: 6.5pt !important;
  }

  .dortlu {
    padding-right: 14px !important;
  }

  /* ============================================
     SAYFA KIRILMA İPUÇLARI
     ============================================ */

  /* İçecekler bölümünü yeni sütundan başlat
     (A4'te 2. sayfaya geçişi kolaylaştırır) */
  #hotdrinks + .menu {
    break-before: column !important;
  }
}

