/* Yan sepet paneli (public/js/cart-drawer.js) */
.cd-lock, .cd-lock body { overflow: hidden; }
.cd-root { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.cd-overlay { position: absolute; inset: 0; background: rgba(2, 12, 30, .5); opacity: 0; transition: opacity .25s; }
.cd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 40px -20px rgba(0,0,0,.35); font-family: inherit; }
.cd-root.is-open { pointer-events: auto; }
.cd-root.is-open .cd-overlay { opacity: 1; }
.cd-root.is-open .cd-panel { transform: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e2e8f0; }
.cd-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: #0c2350; display: flex; gap: 10px; align-items: center; }
.cd-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #f1f5f9; color: #334155; cursor: pointer; font-size: 16px; }
.cd-x:hover { background: #e2e8f0; }
.cd-msg { margin: 12px 20px 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.cd-msg:empty { display: none; }
.cd-msg.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cd-msg.is-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.cd-list { list-style: none; margin: 0; padding: 8px 20px; flex: 1; overflow-y: auto; }
.cd-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.cd-item.is-added { background: #f0f9ff; margin: 0 -20px; padding: 12px 20px; }
.cd-img { flex: none; width: 64px; height: 64px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.cd-img img { width: 100%; height: 100%; object-fit: contain; }
.cd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cd-name { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-name:hover { color: #1667d9; }
.cd-qty { font-size: 12px; color: #64748b; }
.cd-price { flex: none; font-size: 14px; color: #0c1d3d; white-space: nowrap; }
.cd-foot { padding: 16px 20px 20px; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 10px; }
.cd-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #475569; }
.cd-sum b { font-size: 20px; color: #0c2350; }
.cd-go, .cd-continue { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 10px; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.cd-go { background: #0c2350; color: #fff; }
.cd-go:hover { background: #1667d9; color: #fff; }
.cd-continue { background: #fff; color: #0c2350; border: 1px solid #cbd5e1; }
.cd-continue:hover { background: #f8fafc; }
.cd-busy { opacity: .6; cursor: wait; }
