/*!
 * NZ UST DUGMELER — Giris Yap / Hesabim + Sepetim (2026-09-21)
 * Logo renkleri: lacivert #003D75 (koyu #00264D), turuncu #FE5C00. Simgeler canvas ile cizilir (nz-ust.js).
 * #cart > button ve #cart-total kimlikleri eklentiler (ajax sepet, hizli bakis) icin korunur; secicilerin
 * ozgullugu temanin eski #cart kurallarini (#cart > .btn ...) ezecek sekilde secildi.
 */
.nz-ust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px;
  margin: 24px 0 8px; font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}
.nz-ust *, .nz-ust *::before, .nz-ust *::after { box-sizing: border-box; }
.nz-ust-tuval { display: block; flex: 0 0 42px; width: 42px; height: 42px; }

/* ortak kart */
.nz-ust-dugme {
  position: relative; display: flex; align-items: center; gap: 10px; height: 56px; padding: 6px 14px 6px 6px;
  border-radius: 16px; text-decoration: none !important; line-height: 1.15; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.nz-ust-yazi { display: flex; flex-direction: column; min-width: 0; }
.nz-ust-yazi small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .75; }
.nz-ust-yazi b { font-size: 15px; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- GIRIS YAP (misafir): beyaz kart, lacivert yazi, turuncu Kayit Ol */
.nz-ust-giris { background: #fff; border: 1px solid #E3E8EF; box-shadow: 0 2px 10px rgba(0, 38, 77, .06); padding-right: 8px; }
.nz-ust-giris:hover, .nz-ust-giris:focus-within { border-color: #C9D5E2; box-shadow: 0 8px 22px rgba(0, 38, 77, .12); transform: translateY(-1px); }
#ust .nz-ust-giris-ana { display: flex; align-items: center; gap: 10px; height: 100%; color: #00264D; text-decoration: none; }
#ust .nz-ust-giris-ana:hover { color: #003D75; }
.nz-ust-giris-ana .nz-ust-yazi small { color: #6B7888; opacity: 1; }
#ust .nz-ust-kayit {
  display: inline-flex; align-items: center; height: 34px; margin-left: 4px; padding: 0 12px; border-radius: 11px;
  border: 1.5px solid #FE5C00; color: #FE5C00; font-size: 13px; font-weight: 700; text-decoration: none; background: #fff;
  transition: background .15s, color .15s;
}
#ust .nz-ust-kayit:hover, #ust .nz-ust-kayit:focus { background: #FE5C00; color: #fff; }

/* ---------------- HESABIM (uye): lacivert yumusak kart + acilir menu */
.nz-ust-hesap { position: relative; }
#ust .nz-ust-uye { background: #fff; border: 1px solid #E3E8EF; color: #00264D; box-shadow: 0 2px 10px rgba(0, 38, 77, .06); }
#ust .nz-ust-uye:hover, #ust .nz-ust-hesap.open .nz-ust-uye { border-color: #C9D5E2; box-shadow: 0 8px 22px rgba(0, 38, 77, .12); transform: translateY(-1px); color: #003D75; }
.nz-ust-uye .nz-ust-yazi small { color: #6B7888; opacity: 1; }
#ust .nz-ust-ok { margin-left: 2px; font-size: 16px; color: #6B7888; transition: transform .2s; }
.nz-ust-hesap.open .nz-ust-ok { transform: rotate(180deg); }
.nz-ust-menu.dropdown-menu { min-width: 220px; margin-top: 8px; padding: 6px; border: 1px solid #E3E8EF; border-top: 3px solid #FE5C00; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 38, 77, .16); }
.nz-ust-menu.dropdown-menu > li > a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #1F2B38; font-size: 14px; }
.nz-ust-menu.dropdown-menu > li > a .fa { width: 18px; text-align: center; color: #003D75; }
.nz-ust-menu.dropdown-menu > li > a:hover, .nz-ust-menu.dropdown-menu > li > a:focus { background: #F4F7FA; color: #00264D; }
.nz-ust-menu .divider { margin: 4px 0; }
.nz-ust-menu a.nz-ust-cikis, .nz-ust-menu a.nz-ust-cikis .fa { color: #B42020 !important; }

/* ---------------- SEPETIM: lacivert gradyan kart, turuncu canvas simge, turuncu sayac */
.nz-ust-sepet { position: relative; }
.nz-ust #cart { margin: 0 !important; width: auto; display: block; }
.nz-ust #cart > .btn.nz-sepet-dugme {
  position: relative; display: flex; align-items: center; gap: 10px; width: auto; min-width: 150px; height: 56px; margin: 0; padding: 6px 18px 6px 6px;
  border: 0; border-radius: 16px; background: linear-gradient(135deg, #0A4A8A 0%, #003D75 45%, #00264D 100%);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.15; text-align: left; text-shadow: none;
  box-shadow: 0 6px 18px rgba(0, 38, 77, .28), inset 0 1px 0 rgba(255, 255, 255, .12); outline: 0; transition: transform .18s ease, box-shadow .18s ease;
}
.nz-ust #cart > .btn.nz-sepet-dugme:hover, .nz-ust #cart > .btn.nz-sepet-dugme:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(254, 92, 0, .28), 0 4px 12px rgba(0, 38, 77, .25); color: #fff; }
.nz-ust #cart.open > .btn.nz-sepet-dugme { background: linear-gradient(135deg, #00264D 0%, #001A36 100%); color: #fff; box-shadow: 0 4px 12px rgba(0, 38, 77, .3); }
.nz-ust #cart > .btn.nz-sepet-dugme:focus-visible { box-shadow: 0 0 0 3px rgba(254, 92, 0, .45), 0 6px 18px rgba(0, 38, 77, .28); }
/* temanin #cart > .btn span kurallarini sifirla */
.nz-ust #cart > .btn.nz-sepet-dugme span { position: static; display: flex; height: auto; padding: 0; border-radius: 0; color: #fff; font-size: inherit; font-weight: inherit; text-shadow: none; background: none; box-shadow: none; }
.nz-ust #cart > .btn.nz-sepet-dugme .nz-ust-yazi { flex-direction: column; }
.nz-ust #cart > .btn.nz-sepet-dugme .nz-ust-yazi small { display: block; color: #BFD3EA; opacity: 1; font-size: 11px; font-weight: 500; }
.nz-ust #cart > .btn.nz-sepet-dugme .nz-ust-yazi b { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.nz-ust #cart > .btn.nz-sepet-dugme .nz-sepet-sayi {
  position: absolute; top: -7px; right: -7px; display: flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px;
  border: 2px solid #fff; border-radius: 12px; background: #FE5C00; color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
  box-shadow: 0 3px 8px rgba(254, 92, 0, .45); transition: transform .2s;
}
/* sepet bosken sayac gizli (#cart-total eklentiler icin DOMda kalir); urun eklenince zipla animasyonuyla belirir */
.nz-ust #cart > .btn.nz-sepet-dugme .nz-sepet-sayi.nz-bos { visibility: hidden !important; opacity: 0; transform: scale(0); box-shadow: none; }
.nz-ust #cart > .btn.nz-sepet-dugme .nz-sepet-sayi.nz-zipla { animation: nz-sepet-zipla .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes nz-sepet-zipla { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.nz-ust #cart > .btn.nz-sepet-dugme.nz-yukleniyor { opacity: .92; cursor: progress; }
.nz-ust #cart > .btn.nz-sepet-dugme > .fa { display: none; }

/* sepet acilir listesi: marka renkleri */
.nz-ust #cart .dropdown-menu { margin-top: 10px; padding: 6px; border: 1px solid #E3E8EF; border-top: 3px solid #FE5C00; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 38, 77, .18); overflow: hidden; }
.nz-ust #cart .dropdown-menu::before { border-bottom-color: #FE5C00; }
.nz-ust #cart .dropdown-menu .table { margin-bottom: 6px; }
.nz-ust #cart .dropdown-menu .btn-primary { background: #003D75; border-color: #003D75; border-radius: 10px; }
.nz-ust #cart .dropdown-menu .btn-primary:hover { background: #00264D; }
.nz-ust #cart .dropdown-menu a[href*="checkout"] .btn, .nz-ust #cart .dropdown-menu a[href*="checkout/checkout"] { border-radius: 10px; }

/* orta genislik (992-1199 px): sutun dar, ikinci satirlar gizlenir */
@media (max-width: 1199px) {
  .nz-ust { gap: 6px; margin-top: 18px; }
  .nz-ust-yazi small { display: none; }
  .nz-ust #cart > .btn.nz-sepet-dugme .nz-ust-yazi small { display: none; }
  .nz-ust-dugme, .nz-ust #cart > .btn.nz-sepet-dugme { height: 50px; }
  .nz-ust #cart > .btn.nz-sepet-dugme { min-width: 0; padding-right: 14px; }
  .nz-ust-yazi b { max-width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .nz-ust-dugme, .nz-ust #cart > .btn.nz-sepet-dugme { transition: none; }
  .nz-ust #cart > .btn.nz-sepet-dugme .nz-sepet-sayi.nz-zipla { animation: none; }
}
@media print { .nz-ust { display: none !important; } }

/* ================================================================ NZ MOBIL HESAP PENCERESI (2026-09-22)
   Telefon + tablet (<992 px). Tema .login-block kurallarinin (top:-200%, display:table, yesil/pembe dugmeler)
   uzerine yazar. z-index alt sabit menunun (99999999) HEMEN altinda: alttaki "Hesabim" simgesi pencere
   acikken de tiklanabilir kalir. Kapaliyken visibility:hidden -> klavye ile gizli alanlara odak gitmez. */
.login-block.nz-mhesap {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch;
  z-index: 99999998; padding: 16px 16px 72px; background: rgba(0, 26, 54, .55);
  opacity: 0; visibility: hidden; transform: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}
.login-active .login-block.nz-mhesap { top: 0; opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s linear 0s; }
.login-block.nz-mhesap .login-inner { display: block; width: 100%; max-width: 440px; margin: auto 0; }
.nz-mhesap-kart {
  position: relative; background: #fff; border-radius: 18px; padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(0, 26, 54, .35); border-top: 4px solid #FE5C00;
  transform: translateY(14px); transition: transform .22s ease;
}
.login-active .nz-mhesap-kart { transform: none; }
.nz-mhesap-kapat {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: #F4F7FA; color: #00264D; font-size: 24px; line-height: 38px; text-align: center; cursor: pointer; padding: 0;
}
.nz-mhesap-kapat:hover, .nz-mhesap-kapat:focus { background: #E3E8EF; outline: 0; }
.nz-mhesap-bas { display: flex; align-items: center; gap: 12px; margin: 0 44px 18px 0; }
.nz-mhesap-ikon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #0A4A8A, #003D75 55%, #00264D); color: #fff; font-size: 20px;
  box-shadow: 0 0 0 3px rgba(254, 92, 0, .25);
}
.nz-mhesap-bas b { display: block; font-size: 17px; line-height: 1.25; color: #00264D; }
.nz-mhesap-bas small { display: block; margin-top: 2px; font-size: 12.5px; color: #6B7888; line-height: 1.4; }
.login-block.nz-mhesap label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #1F2B38; }
.login-block.nz-mhesap input.form-control {
  width: 100%; height: 48px; margin: 0 0 14px; padding: 0 14px; border: 1.5px solid #D5DEE8; border-radius: 12px;
  background: #fff; color: #1F2B38; font-size: 16px; /* 16px: iOS'ta odaklaninca yakinlastirmayi onler */
  box-shadow: none; -webkit-appearance: none; appearance: none;
}
.login-block.nz-mhesap input.form-control:focus { border-color: #003D75; box-shadow: 0 0 0 3px rgba(0, 61, 117, .15); outline: 0; }
.login-block.nz-mhesap .nz-mhesap-unuttum { display: inline-block; margin: -6px 0 16px; font-size: 13px; font-weight: 600; color: #003D75; }
.nz-mhesap-ana, .nz-mhesap-ikincil {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; text-decoration: none !important; cursor: pointer;
}
.nz-mhesap-ana { border: 0; background: #FE5C00; color: #fff; box-shadow: 0 6px 18px rgba(254, 92, 0, .32); }
.nz-mhesap-ana:hover, .nz-mhesap-ana:focus { background: #E04A00; color: #fff; outline: 0; }
.nz-mhesap-ikincil { border: 1.5px solid #003D75; background: #fff; color: #003D75 !important; }
.nz-mhesap-ikincil:hover, .nz-mhesap-ikincil:focus { background: #003D75; color: #fff !important; }
.nz-mhesap-ayrac { position: relative; margin: 18px 0 14px; text-align: center; font-size: 12.5px; color: #6B7888; }
.nz-mhesap-ayrac::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #E3E8EF; }
.nz-mhesap-ayrac span { position: relative; padding: 0 10px; background: #fff; }
.nz-mhesap-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nz-mhesap-izgara a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid #E3E8EF; border-radius: 12px;
  background: #fff; color: #00264D !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important;
}
.nz-mhesap-izgara a .fa { flex: 0 0 20px; text-align: center; font-size: 16px; color: #FE5C00; }
.nz-mhesap-izgara a:hover, .nz-mhesap-izgara a:focus { border-color: #003D75; background: #F4F7FA; }
.nz-mhesap-izgara a.nz-mhesap-cikis, .nz-mhesap-izgara a.nz-mhesap-cikis .fa { color: #B42020 !important; }
@media (min-width: 768px) {
  .login-block.nz-mhesap { align-items: center; padding-top: 24px; }
  .nz-mhesap-kart { padding: 28px 28px 24px; }
  .nz-mhesap-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) { .login-block.nz-mhesap { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .login-block.nz-mhesap, .nz-mhesap-kart { transition: none; } }
@media print { .login-block.nz-mhesap { display: none !important; } }
