/* ==========================================================
   balik.market — Deniz AI sohbet asistanı (assets/js/deniz.js)
   Sol kenardan gözetleyen karakter + tam ekran sohbet
   ========================================================== */
.dz-peek{ position:fixed; z-index:900; left:0; top:52%; width:74px; height:112px; padding:0; border:0; background:none; cursor:pointer;
  transform:translateX(-14px); transition:transform .35s cubic-bezier(.2,.9,.3,1.3); -webkit-tap-highlight-color:transparent; }
.dz-peek:hover, .dz-peek:focus-visible{ transform:translateX(-2px); }
.dz-peek:focus-visible{ outline:none; }
.dz-peek:focus-visible .dz-body{ stroke:#fff; stroke-width:3; }
.dz-peek svg{ position:absolute; left:-46px; top:0; width:112px; height:112px; overflow:visible; filter:drop-shadow(3px 4px 8px rgba(16,30,80,.28)); }
.dz-peek.hide{ transform:translateX(-120px); }
.dz-pupil{ transition:transform .12s ease-out; }
.dz-lid{ transform-box:fill-box; transform-origin:center top; transform:scaleY(0); transition:transform .09s ease-in; }
.dz-blink .dz-lid{ transform:scaleY(1); }
@media (prefers-reduced-motion:reduce){ .dz-peek, .dz-pupil, .dz-lid{ transition:none; } }

/* Merhaba balonu */
.dz-hi{ position:fixed; z-index:901; left:74px; top:calc(52% + 18px); max-width:230px; background:#fff; color:#1b2340; padding:11px 30px 11px 14px;
  border-radius:16px 16px 16px 4px; box-shadow:0 10px 30px rgba(16,30,80,.18); font:500 13.5px/1.45 Poppins, system-ui, sans-serif;
  opacity:0; transform:translateX(-8px) scale(.96); transform-origin:left center; transition:opacity .3s, transform .3s; pointer-events:none; }
.dz-hi.show{ opacity:1; transform:none; pointer-events:auto; cursor:pointer; }
.dz-hi b{ color:#233a95; }
.dz-hi-x{ position:absolute; right:6px; top:6px; width:22px; height:22px; border:0; background:none; color:#8a90a2; font-size:16px; line-height:1; cursor:pointer; border-radius:50%; }
.dz-hi-x:hover{ background:#f0f2f7; color:#1b2340; }

/* Tam ekran sohbet */
.dz{ position:fixed; inset:0; z-index:10050; display:flex; flex-direction:column; background:#f4f7fc; font-family:Poppins, system-ui, sans-serif; color:#1b2340;
  opacity:0; visibility:hidden; transform:scale(.97); transform-origin:left center; transition:opacity .25s, transform .25s, visibility 0s .25s; height:100vh; height:100dvh; }
.dz.open{ opacity:1; visibility:visible; transform:none; transition:opacity .25s, transform .25s; }
html.dz-lock, html.dz-lock body{ overflow:hidden !important; }
.dz-head{ flex:0 0 auto; display:flex; align-items:center; gap:12px; padding:10px 16px; padding-top:calc(10px + env(safe-area-inset-top, 0px));
  background:linear-gradient(120deg,#172766,#233a95 60%,#2f62c8); color:#fff; box-shadow:0 2px 14px rgba(16,30,80,.25); }
.dz-ava{ width:46px; height:46px; flex:0 0 46px; border-radius:50%; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.dz-ava svg{ width:54px; height:54px; margin-left:10px; }
.dz-title{ flex:1; min-width:0; }
.dz-title b{ display:block; font-size:16px; letter-spacing:-.2px; }
.dz-title small{ display:flex; align-items:center; gap:6px; color:#c9d4ff; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dz-title small::before{ content:""; width:7px; height:7px; border-radius:50%; background:#5ee08f; box-shadow:0 0 0 3px rgba(94,224,143,.25); }
.dz-hbtn{ height:38px; padding:0 12px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.08); color:#fff; font:600 12.5px Poppins, sans-serif;
  cursor:pointer; display:inline-flex; align-items:center; gap:6px; border-radius:10px; }
.dz-hbtn:hover{ background:rgba(255,255,255,.18); }
.dz-close{ width:40px; padding:0; justify-content:center; font-size:22px; }
.dz-body{ flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:20px 16px 8px; scroll-behavior:smooth; }
.dz-inner{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.dz-msg{ display:flex; gap:10px; align-items:flex-end; animation:dz-in .28s ease both; }
@keyframes dz-in{ from{ opacity:0; transform:translateY(8px); } }
.dz-msg .dz-mini{ width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:#dfe8ff; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.dz-msg .dz-mini svg{ width:40px; height:40px; margin-left:8px; }
.dz-bub{ max-width:min(620px, 82%); padding:11px 15px; font-size:14.5px; line-height:1.6; border-radius:18px 18px 18px 6px; background:#fff;
  box-shadow:0 2px 8px rgba(16,30,80,.06); word-wrap:break-word; }
.dz-bub p{ margin:0 0 6px; } .dz-bub p:last-child{ margin:0; }
.dz-bub ul{ margin:4px 0 6px; padding-left:18px; } .dz-bub li{ margin:2px 0; }
.dz-bub a{ color:#233a95; font-weight:600; }
.dz-msg.me{ justify-content:flex-end; }
.dz-msg.me .dz-bub{ background:#233a95; color:#fff; border-radius:18px 18px 6px 18px; }
.dz-msg.err .dz-bub{ background:#fff4f2; color:#8f2a1c; }
.dz-col{ display:flex; flex-direction:column; gap:10px; min-width:0; flex:1; }
.dz-typing{ display:inline-flex; gap:5px; padding:15px 16px; }
.dz-typing i{ width:7px; height:7px; border-radius:50%; background:#9aa6c8; animation:dz-dot 1.2s infinite; }
.dz-typing i:nth-child(2){ animation-delay:.15s; } .dz-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes dz-dot{ 0%,60%,100%{ transform:none; opacity:.5; } 30%{ transform:translateY(-5px); opacity:1; } }

/* Ürün kartları */
.dz-prods{ display:flex; gap:10px; overflow-x:auto; padding:2px 2px 8px; scroll-snap-type:x mandatory; max-width:100%; }
.dz-card{ flex:0 0 200px; scroll-snap-align:start; background:#fff; border:1px solid #e3e8f3; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; }
.dz-card-img{ display:block; aspect-ratio:4/3; background:#e8edf6 center/cover no-repeat; position:relative; }
.dz-card-img .dz-ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:30px; }
.dz-card-b{ padding:10px 12px 12px; display:flex; flex-direction:column; gap:4px; flex:1; }
.dz-card-n{ font-size:13px; font-weight:600; line-height:1.35; color:#1b2340; text-decoration:none; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:35px; }
.dz-card-p{ font-size:15px; font-weight:700; } .dz-card-p small{ font-size:11px; font-weight:500; color:#6b7385; }
.dz-card-p s{ font-size:11.5px; color:#9aa0ad; font-weight:500; margin-left:4px; }
.dz-card-u{ font-size:11.5px; color:#6b7385; }
.dz-card-a{ display:flex; gap:6px; margin-top:auto; padding-top:6px; }
.dz-card-a button, .dz-card-a a{ flex:1; height:34px; border-radius:9px; font:600 12px Poppins, sans-serif; cursor:pointer; display:flex; align-items:center; justify-content:center; text-decoration:none; }
.dz-add{ background:#233a95; color:#fff; border:0; }
.dz-add:hover{ background:#172766; }
.dz-add.done{ background:#2e7d32; }
.dz-add:disabled{ background:#c9cfdd; cursor:not-allowed; }
.dz-view{ background:#fff; color:#233a95; border:1px solid #c9d3ef; }

/* Öneri çipleri */
.dz-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.dz-chip{ border:1px solid #c9d3ef; background:#fff; color:#233a95; padding:8px 13px; border-radius:20px; font:500 13px Poppins, sans-serif; cursor:pointer; text-align:left; }
.dz-chip:hover{ background:#233a95; color:#fff; border-color:#233a95; }

/* Yazma alanı */
.dz-foot{ flex:0 0 auto; padding:10px 16px 14px; padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px)); background:#f4f7fc; }
.dz-form{ max-width:820px; margin:0 auto; display:flex; gap:8px; align-items:flex-end; background:#fff; border:1px solid #d5dcec; border-radius:18px; padding:6px 6px 6px 14px;
  box-shadow:0 6px 24px rgba(16,30,80,.08); }
.dz-form:focus-within{ border-color:#233a95; box-shadow:0 6px 24px rgba(35,58,149,.16); }
.dz-in{ flex:1; border:0; outline:0; resize:none; font:16px/1.45 Poppins, system-ui, sans-serif; color:#1b2340; background:none; padding:8px 0; max-height:130px; min-height:24px; }
.dz-send{ width:42px; height:42px; flex:0 0 42px; border:0; border-radius:14px; background:#233a95; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.dz-send:disabled{ background:#c9cfdd; cursor:not-allowed; }
.dz-note{ max-width:820px; margin:6px auto 0; text-align:center; font-size:11px; color:#8a90a2; }

@media (max-width:640px){
  .dz-peek{ top:46%; width:62px; height:96px; transform:translateX(-12px); }
  .dz-peek svg{ width:96px; height:96px; left:-40px; }
  .dz-hi{ left:60px; top:calc(46% + 10px); max-width:200px; font-size:13px; }
  .dz-head{ padding:8px 10px; padding-top:calc(8px + env(safe-area-inset-top, 0px)); gap:10px; }
  .dz-hbtn .dz-hbtn-tx{ display:none; }
  .dz-body{ padding:16px 10px 6px; }
  .dz-bub{ max-width:88%; font-size:14.5px; }
  .dz-msg .dz-mini{ display:none; }
  .dz-card{ flex-basis:168px; }
  .dz-foot{ padding:8px 10px 10px; }
}
