/* kaancorbaci.com > Ürünler (src/personal/linkSite.js#renderKaanShop, public/js/kaan-urunler.js): tam sayfa 3D oturma odası.
   Yan menü yok; sahne bütün ekranı kaplar, üstte ince şerit (ana sayfa, başlık, dil, sepet), altta görünüm düğmeleri ve ürün çipleri.
   Ürün paneli telefonda alttan açılan sayfa, geniş ekranda sağda kart; sepet telefonda tam ekran, geniş ekranda sağdan çekmece. */
body.kc-shop{height:100%; overflow:hidden; overscroll-behavior:none;}
html:has(body.kc-shop){height:100%; overflow:hidden;}
body.kc-shop::before{display:none;}
.ks{position:fixed; inset:0; overflow:clip; background:#0B0E12; color:var(--kc-text);}
.ks [hidden]{display:none !important;}
.ks button{font:inherit;}

/* Üst şerit */
.ks-top{position:absolute; z-index:6; top:calc(10px + env(safe-area-inset-top)); left:10px; right:10px; display:flex; align-items:center; gap:8px; pointer-events:none;}
.ks-top > *{pointer-events:auto;}
.ks-title{margin-right:auto; min-width:0; padding:5px 12px 6px; border-radius:12px; background:rgba(7,9,12,.5); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border:1px solid var(--kc-line);}
.ks-title h1{margin:0; font-size:15px; line-height:1.2; font-weight:500; color:var(--kc-text);}
.ks-title p{margin:0; font-size:11px; color:var(--kc-soft);}
.ks-cart-btn{position:relative;}
.ks-badge{position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--kc-accent); color:var(--kc-accent-ink); font-size:11px; font-weight:600; line-height:20px; text-align:center; box-shadow:0 0 0 2px #0B0E12;}
.ks-badge.is-bump{animation:ks-bump .5s ease-out;}
@keyframes ks-bump{30%{transform:scale(1.35);}}

/* Sahne */
.ks-stage{position:absolute; inset:0; overflow:clip;}
.ks-canvas{position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; cursor:grab; outline:none;}
.ks-canvas.is-dragging{cursor:grabbing;}
.ks-canvas.is-pointer{cursor:pointer;}
.ks-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--kc-accent);}
.ks:not(.is-ready) .ks-canvas{opacity:0;}
.ks.is-ready .ks-canvas{animation:kc-fade .9s ease-out;}
.ks-load{position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; font-size:12.5px; color:var(--kc-soft);}
.ks-load i{width:46px; height:46px; border-radius:50%; border:1.5px solid var(--kc-line-2); border-top-color:var(--kc-accent); animation:kc-rot 1s linear infinite;}
.ks-load b{font-weight:500; color:var(--kc-accent); min-height:1em;}
.ks.is-ready .ks-load, .ks.is-failed .ks-load{display:none;}
.ks-fail{display:none; position:absolute; left:24px; right:24px; top:38%; z-index:3; margin:0; text-align:center; font-size:14.5px; line-height:1.55; color:var(--kc-soft);}
.ks.is-failed .ks-fail{display:block;}
.ks-noscript{position:absolute; left:24px; right:24px; top:40%; text-align:center; color:var(--kc-soft);}
.ks-hint{position:absolute; left:50%; top:calc(66px + env(safe-area-inset-top)); z-index:2; transform:translateX(-50%); margin:0; padding:7px 12px; max-width:calc(100% - 24px); border-radius:10px; background:rgba(7,9,12,.55); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); font-size:11.5px; color:var(--kc-soft); text-align:center; pointer-events:none; transition:opacity .6s;}
.ks-hint.is-off, .ks:not(.is-ready) .ks-hint{opacity:0;}

/* Ürün işaretleri (3D'nin üstünde) */
.ks-tags{position:absolute; inset:0; z-index:2; overflow:clip; pointer-events:none;}
.ks-tag{position:absolute; left:0; top:0; display:flex; align-items:center; gap:7px; height:32px; padding:0 12px 0 5px; border:1px solid rgba(125,227,255,.55); border-radius:16px; background:rgba(7,10,14,.66); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); color:var(--kc-text); font-size:12px; font-weight:500; white-space:nowrap; cursor:pointer; pointer-events:auto; transform-origin:0 50%; transition:opacity .25s, background .2s, border-color .2s; will-change:transform;}
.ks-tag::before{content:"+"; display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:var(--kc-accent); color:var(--kc-accent-ink); font-size:16px; line-height:1; box-shadow:0 0 14px var(--kc-glow);}
.ks-tag:hover, .ks-tag.is-on{border-color:var(--kc-accent); background:rgba(14,30,38,.85);}
.ks-tag.is-on::before{content:"•";}
.ks-tag.is-hidden{opacity:0; pointer-events:none;}
.ks-tag-label{max-width:160px; overflow:hidden; text-overflow:ellipsis;}
.ks.has-panel .ks-tag:not(.is-on){opacity:.35;}

/* Alt çubuk: görünüm + ürün çipleri */
.ks-dock{position:absolute; z-index:5; left:0; right:0; bottom:0; padding:0 10px calc(10px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:8px; pointer-events:none; transition:transform .3s ease, opacity .3s;}
.ks-dock > *{pointer-events:auto;}
.ks.has-panel .ks-dock{transform:translateY(calc(100% + 8px)); opacity:0;}
.ks-views{align-self:center; flex:none; width:auto; background:rgba(7,9,12,.6); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);}
.ks-chips{display:flex; gap:8px; margin:0; padding:2px; list-style:none; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x proximity;}
.ks-chips::-webkit-scrollbar{display:none;}
.ks-chips li{flex:none; scroll-snap-align:start;}
.ks-chip{display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:136px; padding:9px 13px; border:1px solid var(--kc-line-2); border-radius:14px; background:rgba(7,9,12,.62); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); color:var(--kc-text); text-align:left; cursor:pointer;}
.ks-chip:hover, .ks-chip[aria-pressed="true"]{border-color:var(--kc-accent);}
.ks-chip b{font-size:13px; font-weight:500;}
.ks-chip span{font-size:11.5px; color:var(--kc-soft);}

/* Ürün paneli */
.ks-panel{position:absolute; z-index:7; left:0; right:0; bottom:0; max-height:min(64dvh, 560px); display:flex; flex-direction:column; border-radius:22px 22px 0 0; border:1px solid var(--kc-line-2); border-bottom:0; background:rgba(9,12,16,.94); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); box-shadow:0 -20px 50px rgba(0,0,0,.45); animation:ks-up .32s ease-out;}
@keyframes ks-up{from{transform:translateY(40px); opacity:0;}}
.ks-ph{display:flex; gap:12px; align-items:flex-start; padding:16px 16px 10px;}
.ks-ph > div{flex:1; min-width:0;}
.ks-kind{margin:0; font-size:11.5px; color:var(--kc-accent);}
.ks-ph h2{margin:2px 0 0; font-size:22px; line-height:1.2; font-weight:500; color:var(--kc-text);}
.ks-price{margin:4px 0 0; display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; font-size:15px;}
.ks-price b{font-weight:500; color:var(--kc-text);}
.ks-price s{font-size:12.5px; color:var(--kc-faint);}
.ks-x{flex:none; width:36px; height:36px; border:0; border-radius:11px; background:rgba(255,255,255,.07); color:var(--kc-text); font-size:22px; line-height:1; cursor:pointer;}
.ks-x:hover{background:rgba(255,255,255,.14);}
.ks-steps{display:flex; gap:6px; margin:0; padding:0 16px 10px; list-style:none; overflow-x:auto; scrollbar-width:none;}
.ks-steps::-webkit-scrollbar{display:none;}
.ks-steps button{display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:0 12px 0 5px; border:1px solid var(--kc-line); border-radius:17px; background:transparent; color:var(--kc-soft); font-size:12.5px; font-weight:500; white-space:nowrap; cursor:pointer;}
.ks-steps button span{display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.08); font-size:11.5px;}
.ks-steps button[aria-current="step"]{border-color:var(--kc-accent); color:var(--kc-text);}
.ks-steps button[aria-current="step"] span{background:var(--kc-accent); color:var(--kc-accent-ink);}
.ks-steps button.is-done span{background:rgba(125,227,255,.22); color:var(--kc-accent);}
.ks-body{flex:1; min-height:0; overflow-y:auto; padding:4px 16px 12px; overscroll-behavior:contain;}
.ks-body h3{margin:6px 0 10px; font-size:12px; font-weight:500; color:var(--kc-faint);}
.ks-body h3 + .ks-sws{margin-bottom:6px;}
.ks-sws{display:grid; grid-template-columns:repeat(auto-fill, minmax(70px, 1fr)); gap:8px; margin:0 0 12px;}
.ks-sw{display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 4px 7px; border:1px solid var(--kc-line); border-radius:14px; background:var(--kc-surface); color:var(--kc-soft); font-size:11.5px; line-height:1.25; text-align:center; cursor:pointer;}
.ks-sw i{width:36px; height:36px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.4);}
.ks-sw:hover{border-color:var(--kc-line-2); color:var(--kc-text);}
.ks-sw[aria-checked="true"]{border-color:var(--kc-accent); color:var(--kc-text); background:var(--kc-accent-soft);}
.ks-sw[aria-checked="true"] i{box-shadow:0 0 0 2px #0B0E12, 0 0 0 4px var(--kc-accent);}
.ks-pills{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px;}
.ks-pill{display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-height:42px; padding:7px 14px; border:1px solid var(--kc-line); border-radius:13px; background:var(--kc-surface); color:var(--kc-text); font-size:13.5px; font-weight:500; text-align:left; cursor:pointer;}
.ks-pill small{font-size:11px; font-weight:400; color:var(--kc-soft);}
.ks-pill[aria-checked="true"]{border-color:var(--kc-accent); background:var(--kc-accent-soft);}
.ks-pill:hover{border-color:var(--kc-line-2);}
.ks-note{margin:0 0 12px; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,184,102,.35); color:var(--kc-warm); font-size:12.5px; line-height:1.5;}
.ks-choice{margin:4px 0 10px; font-size:12.5px; line-height:1.5; color:var(--kc-soft);}
.ks-choice b{font-weight:500; color:var(--kc-text);}
.ks-details{margin:0; border-top:1px solid var(--kc-line); padding-top:8px;}
.ks-details summary{cursor:pointer; font-size:12.5px; color:var(--kc-soft); padding:4px 0;}
.ks-details p{margin:6px 0; font-size:12.5px; line-height:1.55; color:var(--kc-soft);}
.ks-details a{font-size:12.5px; color:var(--kc-accent);}
.ks-pf{display:flex; align-items:center; gap:8px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--kc-line);}
.ks-qty{display:flex; align-items:center; border:1px solid var(--kc-line); border-radius:13px;}
.ks-qty button{width:36px; height:44px; border:0; background:transparent; color:var(--kc-text); font-size:18px; cursor:pointer;}
.ks-qty button:disabled{color:var(--kc-faint); cursor:default;}
.ks-qty output{min-width:22px; text-align:center; font-size:14px; font-weight:500;}
.ks-btn{display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; min-height:46px; padding:0 18px; border:1px solid var(--kc-line-2); border-radius:14px; background:transparent; color:var(--kc-text); font-size:14px; font-weight:500; cursor:pointer; text-decoration:none;}
.ks-btn:hover{border-color:var(--kc-accent);}
.ks-btn-main{flex:1; min-width:0; padding:0 14px; border:0; background:var(--kc-accent); color:var(--kc-accent-ink);}
.ks-btn-main:hover{box-shadow:0 0 24px var(--kc-glow);}
.ks-btn-main:disabled{opacity:.6; cursor:default; box-shadow:none;}
.ks-btn-main small{font-weight:500; opacity:.8;}

/* Sepet */
.ks-cart{position:absolute; z-index:9; inset:0; display:flex; justify-content:flex-end; background:rgba(3,5,8,.55); animation:kc-fade .2s ease-out;}
.ks-cart-box{position:relative; width:100%; height:100%; display:flex; flex-direction:column; background:var(--kc-paper); color:var(--ink); color-scheme:light;}
.ks-ch{display:flex; align-items:center; gap:12px; padding:calc(16px + env(safe-area-inset-top)) 18px 12px; border-bottom:1px solid rgba(0,0,0,.08);}
.ks-ch h2{flex:1; margin:0; font-size:20px; font-weight:500; color:var(--ink);}
.ks-ch .ks-x{background:rgba(0,0,0,.06); color:var(--ink);}
.ks-cb{flex:1; min-height:0; overflow-y:auto; padding:14px 18px; overscroll-behavior:contain;}
.ks-empty{margin:30px 0; font-size:14.5px; line-height:1.6; color:var(--ink-soft); text-align:center;}
.ks-lines{margin:0; padding:0; list-style:none; display:grid; gap:10px;}
.ks-line{display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:12px; border-radius:16px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.05);}
.ks-line-sw{grid-row:span 3; width:44px; height:44px; border-radius:12px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);}
.ks-line h3{margin:0; font-size:14.5px; font-weight:500; color:var(--ink);}
.ks-line p{margin:0; font-size:12.5px; line-height:1.5; color:var(--ink-soft);}
.ks-line-foot{display:flex; align-items:center; gap:10px; margin-top:4px;}
.ks-line-foot b{margin-left:auto; font-size:14px; font-weight:500; color:var(--ink);}
.ks-line .ks-qty{border-color:rgba(0,0,0,.12);}
.ks-line .ks-qty button{width:32px; height:34px; color:var(--ink);}
.ks-line .ks-qty button:disabled{color:rgba(0,0,0,.25);}
.ks-link{border:0; background:none; padding:0; color:#0B6E8A; font-size:12.5px; font-weight:500; cursor:pointer;}
.ks-cf{padding:14px 18px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid rgba(0,0,0,.08); background:#fff;}
.ks-total{display:flex; justify-content:space-between; align-items:baseline; margin:0 0 8px; font-size:15px; color:var(--ink);}
.ks-total b{font-size:20px; font-weight:500;}
.ks-small{margin:0 0 10px; font-size:11.5px; line-height:1.5; color:var(--ink-soft);}
.ks-cart .ks-btn.ks-btn-main{width:100%; background:#0A0D10; color:#fff;}
.ks-cart .ks-btn.ks-btn-main:hover{background:#1B232B; box-shadow:none;}
.ks-cart .ks-btn{color:var(--ink); border-color:rgba(0,0,0,.15);}
.ks-form .field{margin-bottom:12px;}
.ks-form .field :is(input, textarea){background:#fff; border-radius:12px; padding-left:14px;}
.ks-form h3{margin:0 0 12px; font-size:13px; font-weight:500; color:var(--ink-soft);}
.ks-consent{display:flex; gap:10px; align-items:flex-start; margin:4px 0 12px; font-size:12.5px; line-height:1.5; color:var(--ink);}
.ks-consent input{margin-top:3px; width:18px; height:18px; flex:none; accent-color:#0A0D10;}
.ks-consent a{color:#0B6E8A; font-weight:500;}
.ks-sum{margin:0 0 14px; padding:10px 12px; border-radius:12px; background:#fff; font-size:12.5px; line-height:1.55; color:var(--ink-soft);}
.ks-done{padding:30px 6px; text-align:center;}
.ks-done i{display:inline-flex; width:56px; height:56px; border-radius:50%; align-items:center; justify-content:center; background:#0A0D10; color:#7DE3FF; font-size:26px; font-style:normal;}
.ks-done h3{margin:14px 0 6px; font-size:22px; font-weight:500; color:var(--ink);}
.ks-done p{margin:0 auto; max-width:360px; font-size:14px; line-height:1.6; color:var(--ink-soft);}
.ks-cart .msg{margin-bottom:12px;}

/* Bildirim */
.ks-toast{position:absolute; z-index:8; left:50%; top:calc(64px + env(safe-area-inset-top)); transform:translateX(-50%); display:flex; align-items:center; gap:12px; padding:8px 8px 8px 16px; border-radius:14px; border:1px solid rgba(125,227,255,.45); background:rgba(9,14,18,.94); color:var(--kc-text); font-size:13.5px; white-space:nowrap; box-shadow:0 10px 30px rgba(0,0,0,.4); animation:ks-drop .3s ease-out;}
@keyframes ks-drop{from{transform:translate(-50%, -12px); opacity:0;}}
.ks-toast button{min-height:34px; padding:0 12px; border:0; border-radius:10px; background:var(--kc-accent); color:var(--kc-accent-ink); font-size:12.5px; font-weight:500; cursor:pointer;}

/* Geniş ekran */
@media (min-width:960px){
  .ks-top{top:16px; left:18px; right:18px;}
  .ks-title h1{font-size:16px;}
  .ks-hint{top:auto; bottom:110px;}
  .ks-dock{left:18px; right:18px; bottom:16px; padding:0; flex-direction:row; align-items:flex-end; justify-content:space-between;}
  .ks.has-panel .ks-dock{transform:none; opacity:1; right:438px;}
  .ks-views{align-self:flex-end;}
  .ks-chips{max-width:calc(100% - 260px);}
  .ks.has-panel .ks-chips{display:none;}
  .ks-panel{left:auto; right:16px; top:76px; bottom:16px; width:404px; max-height:none; border-radius:22px; border-bottom:1px solid var(--kc-line-2); box-shadow:0 20px 60px rgba(0,0,0,.5); animation-name:ks-left;}
  .ks-pf{padding-bottom:14px;}
  @keyframes ks-left{from{transform:translateX(30px); opacity:0;}}
  .ks-cart-box{width:440px; border-radius:22px 0 0 22px; box-shadow:-20px 0 60px rgba(0,0,0,.35); animation:ks-left .28s ease-out;}
  .ks-ch{padding-top:18px;}
  .ks-toast{top:20px;}
}
@media (max-width:360px){
  .ks-title p{display:none;}
  .ks-chip{min-width:120px;}
}
@media (prefers-reduced-motion:reduce){
  .ks-panel, .ks-toast, .ks-cart, .ks-cart-box, .ks.is-ready .ks-canvas, .ks-badge.is-bump{animation:none;}
  .ks-dock, .ks-tag, .ks-hint{transition:none;}
}
