/* HA UX pass 2026-10-07 — tek dosya, geri alma: _head.tpl'deki <link>'i sil.
   Kapsam: çerez bandı, mobil ilk ekran, afiş kartı metni, filtre çipleri, fırsat şeridi rozeti. */

/* ---------- Çerez bandı: kompakt (kütüphane CSS'i sonradan yüklenir → özgüllük yüksek) ---------- */
#cc-main .cm.cm--box { border-radius: 14px; }
#cc-main .cm .cm__btn + .cm__btn,
#cc-main .cm .cm__btn-group + .cm__btn-group { margin: 0; }
@media (max-width: 767.98px) {
  #cc-main .cm.cm--box {
    left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: auto; max-width: none;
    box-shadow: 0 -2px 18px rgba(15,23,42,.18);
  }
  #cc-main .cm .cm__body { padding: 0; }
  #cc-main .cm .cm__texts { padding: 12px 14px 4px; }
  #cc-main .cm .cm__title { font-size: 14px; margin: 0 0 4px; }
  #cc-main .cm .cm__desc { font-size: 12.5px; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #cc-main .cm .cm__btns { padding: 8px 14px 12px; gap: 6px; }
  #cc-main .cm.cm--box .cm__btn-group { display: flex !important; flex-direction: row !important; gap: 8px; margin: 0 !important; }
  #cc-main .cm.cm--box .cm__btn { flex: 1 1 0 !important; }
  #cc-main .cm.cm--box .cm__btn-group + .cm__btn-group { margin-top: 4px !important; }
  #cc-main .cm .cm__btn { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  #cc-main .cm .cm__btn-group:last-child .cm__btn { background: transparent; border: 0; color: #64748b; text-decoration: underline; min-height: 32px; font-weight: 500; }
}
@media (min-width: 768px) {
  #cc-main .cm.cm--box { max-width: 360px; }
  #cc-main .cm .cm__desc { font-size: 13px; line-height: 1.45; }
  #cc-main .cm .cm__btns { gap: 6px; }
  #cc-main .cm .cm__btn-group { grid-auto-flow: column; gap: 8px; }
  #cc-main .cm .cm__btn { min-height: 38px; padding: 6px 10px; font-size: 13px; }
  #cc-main .cm .cm__btn-group:last-child .cm__btn { background: transparent; border: 0; color: #64748b; text-decoration: underline; min-height: 30px; font-weight: 500; }
}

/* ---------- Mobil ilk ekran: ürüne daha hızlı ulaş ---------- */
@media (max-width: 767.98px) {
  .ha-hero { padding: 10px 14px !important; margin-bottom: 8px !important; }
  .ha-hero h1, .ha-hero h2 { font-size: 1rem !important; line-height: 1.25; }
  .ha-hero .ha-hero-sub { display: none; }
  .ha-hero-search .form-control { font-size: 14px; }
  .ha-trust-line { font-size: 11px !important; line-height: 1.35; margin-bottom: 8px !important; }
}

/* ---------- Afiş kartları: başlık 2 satır, tarih kesilmesin ---------- */
.ha-brochure-tile .ha-brochure-title {
  white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3; min-height: 2.6em;
}
.ha-brochure-tile .ha-brochure-dates {
  white-space: normal; font-size: 11px; line-height: 1.3;
}

/* ---------- Filtre çipleri: buton gibi okunsun, tek satır ---------- */
.ha-intent-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
.ha-intent-chips::-webkit-scrollbar { display: none; height: 0; }
.ha-intent-chips .btn { flex: 0 0 auto; white-space: nowrap; }
.ha-intent-chips .btn-light {
  background: #fff; color: #334155;
  border: 1px solid #e2e8f0; border-radius: 999px;
}
.ha-intent-chips .btn-light:hover,
.ha-intent-chips .btn-light:focus-visible { border-color: #fdba74; color: #c2410c; }
.ha-intent-chips .btn:focus-visible,
.ha-filter-more-toggle:focus-visible { outline: 2px solid #e65100; outline-offset: 2px; }

/* ---------- Fırsat şeridi: indirim rozeti ---------- */
.ha-top-offer-thumb .ha-top-offer-disc {
  position: absolute; top: 6px; left: 6px;
  font-size: 11px; font-weight: 800; line-height: 1.4;
  color: #fff; background: #059669; border-radius: 6px; padding: 1px 6px;
  box-shadow: 0 1px 4px rgba(5,150,105,.35);
}
.ha-top-offer-old { text-decoration: line-through; color: #94a3b8; font-size: 11px; margin-left: 6px; }

/* ================= Ürün detay (classic) ================= */
/* Aksiyon alanı: 2 sütun, eşit yükseklik; ikincil işlemler küçük satır */
.ha-deal-detail .ha-deal-actions {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px;
}
.ha-deal-detail .ha-deal-actions > .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 10px; font-size: 14px; font-weight: 600;
  white-space: nowrap; margin: 0; width: 100%;
}
.ha-deal-detail .ha-deal-actions > .btn:focus-visible { outline: 2px solid #e65100; outline-offset: 2px; }
/* ikincil: bağlantıyı kopyala + yanlış fiyat */
.ha-deal-detail .ha-deal-actions > .btn[data-mode="copy"],
.ha-deal-detail .ha-deal-actions > #ha-report-price-btn {
  min-height: 36px; font-size: 12.5px; font-weight: 500;
}
/* tek başına kalan buton (afiş vb.) tam satır */
.ha-deal-detail .ha-deal-actions > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Alışveriş listesi satırı */
.ha-deal-detail .js_ha-basket-add { min-height: 40px; font-size: 13px; }
.ha-deal-detail .js_ha-basket-add + .btn { min-height: 40px; display: inline-flex; align-items: center; font-size: 13px; }

/* Birincil CTA ("Kaynakta Gör"): mobilde tam genişlik, fiyatın altında */
@media (max-width: 767.98px) {
  .ha-deal-detail .ha-priced-block { display: block !important; }
  .ha-deal-detail .ha-priced-block .btn-offer-block {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 50px; margin-top: 12px; font-size: 16px;
  }
  .ha-deal-detail .ha-detail-photo { max-height: 320px; }
  .ha-deal-detail > .card-body { padding: 14px; }
  .ha-deal-detail h1 { font-size: 1.25rem; line-height: 1.3; }
  /* "Fiyat düşünce haber ver" kutusundaki buton tam genişlik */
  #ha-price-alert-guest .btn { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; }
}

/* Fiyat uyarı kutusu: okunur boyut */
#ha-price-alert-guest, #ha-price-alert-box { border-radius: 12px !important; }
#ha-price-alert-guest .badge { font-size: 12px; font-weight: 500; }
.ha-deal-detail .ha-deal-actions { margin-top: 10px; margin-bottom: 14px !important; }

/* ================= PWA "Yükle" çubuğu: kayan kart, alt gezinmeyi örtmez ================= */
.pwa_install_banner {
  z-index: 1050; /* alt gezinme 1040; çerez bandı daha üstte */
  left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  width: auto; padding: 10px 12px;
  border-radius: 14px; border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15,23,42,.16);
}
.pwa_install_banner .inner { gap: 10px; }
.pwa_install_banner .inner .close {
  order: 3; width: 36px; height: 36px; line-height: 36px; text-align: center;
  color: #94a3b8; cursor: pointer; flex: 0 0 auto;
}
.pwa_install_banner .inner .close:focus-visible { outline: 2px solid #e65100; outline-offset: 2px; border-radius: 50%; }
.pwa_install_banner .inner .logo { width: 44px; flex: 0 0 auto; }
.pwa_install_banner .inner .logo img { width: 44px; border-radius: 10px; }
.pwa_install_banner .inner .name { padding-left: 0; min-width: 0; flex: 1 1 auto; }
.pwa_install_banner .inner .name span.title { font-size: 1rem; line-height: 1.2; }
.pwa_install_banner .inner .name span.description { font-size: 12px; color: #64748b; line-height: 1.3; margin-top: 2px; }
.pwa_install_banner .inner .cta { margin-left: 0; order: 2; flex: 0 0 auto; }
.pwa_install_banner .inner .cta .btn { min-height: 38px; font-size: 14px; font-weight: 700; padding: 6px 16px; }
/* Çerez bandı açıkken üst üste binmesin; onay verilince çıkar */
html.show--consent .pwa_install_banner { display: none !important; }
@media (min-width: 992px) {
  .pwa_install_banner { right: auto; left: 16px; bottom: 16px; width: 380px; }
}
