/* ========== Kingston Side Cart - Frontend Styles v2 DARK ========== */
.ksc-floating-btn{position:fixed;bottom:30px;right:30px;width:56px;height:56px;background:#0f0f0f;border:1px solid #222;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 24px rgba(0,0,0,.5);z-index:999999;transition:all .3s cubic-bezier(.16,1,.3,1)}
.ksc-floating-btn:hover{transform:scale(1.08);background:#1a1a1a}
.ksc-floating-btn svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ksc-floating-count{position:absolute;top:-4px;right:-4px;background:#c8a962;color:#0f0f0f;font-size:11px;font-weight:900;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(200,169,98,.5)}
.ksc-floating-count.hidden{display:none}
.ksc-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(6px);z-index:9999999;opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
.ksc-overlay.active{opacity:1;visibility:visible}
.ksc-panel{position:fixed;top:0;right:0;width:400px;max-width:100vw;height:100vh;background:#0f0f0f;z-index:99999999;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .4s cubic-bezier(.16,1,.3,1);box-shadow:-8px 0 30px rgba(0,0,0,.4);font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif}
.ksc-panel.open{transform:translateX(0)}
.ksc-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #1e1e1e;flex-shrink:0;background:#0f0f0f}
.ksc-header-left{display:flex;align-items:center;gap:8px}
.ksc-header-left svg{width:20px;height:20px;stroke:#888;fill:none;stroke-width:2}
.ksc-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:2.5px;color:#fff}
.ksc-count{font-size:10px;background:#c8a962;color:#0f0f0f;width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;margin-left:4px}
.ksc-close{background:none;border:none;cursor:pointer;padding:4px;border-radius:6px;transition:background .2s;display:flex}
.ksc-close:hover{background:#1a1a1a}
.ksc-close svg{width:18px;height:18px;stroke:#666;fill:none;stroke-width:2}
.ksc-close:hover svg{stroke:#fff}
.ksc-progress{padding:12px 20px;background:#111;border-bottom:1px solid #1e1e1e;flex-shrink:0}
.ksc-progress-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.ksc-progress-msg{font-size:11px;color:#666;font-weight:500}
.ksc-progress-msg strong{color:#c8a962;font-weight:700}
.ksc-progress-done{font-size:11px;color:#c8a962;font-weight:600;display:none}
.ksc-progress-done.show{display:block}
.ksc-progress-track{width:100%;height:3px;background:#222;border-radius:2px;position:relative;margin-bottom:6px}
.ksc-progress-fill{height:100%;background:linear-gradient(90deg,#c8a962,#e8c97a);border-radius:2px;transition:width .5s cubic-bezier(.16,1,.3,1);width:0%}
.ksc-progress-dots{display:flex;justify-content:space-between}
.ksc-dot{display:flex;flex-direction:column;align-items:center;gap:2px}
.ksc-dot-circle{width:20px;height:20px;border-radius:50%;background:#222;border:1px solid #333;display:flex;align-items:center;justify-content:center;font-size:9px;transition:all .3s;color:#fff}
.ksc-dot.reached .ksc-dot-circle{background:#c8a962;color:#0f0f0f;border-color:#c8a962;font-size:8px}
.ksc-dot-label{font-size:8px;text-transform:uppercase;letter-spacing:.8px;color:#444;text-align:center;font-weight:600;line-height:1.2}
.ksc-dot.reached .ksc-dot-label{color:#c8a962}
.ksc-items{flex:1;overflow-y:auto;background:#0f0f0f}
.ksc-items::-webkit-scrollbar{width:3px}
.ksc-items::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:2px}
.ksc-item{display:flex;gap:12px;padding:14px 20px;border-bottom:1px solid #1a1a1a;animation:kscItemIn .25s ease}
@keyframes kscItemIn{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
.ksc-item-img{width:60px;height:60px;border-radius:10px;background:#1a1a1a;flex-shrink:0;overflow:hidden;border:1px solid #222}
.ksc-item-img img{width:100%;height:100%;object-fit:cover}
.ksc-item-body{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}
.ksc-item-name{font-size:12px;font-weight:600;margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.ksc-item-unit{font-size:10px;color:#555;margin-bottom:4px}
.ksc-item-qty{display:inline-flex;align-items:center;border:1px solid #2a2a2a;border-radius:5px;overflow:hidden;width:fit-content;background:#161616}
.ksc-item-qty button{width:26px;height:24px;background:none;border:none;cursor:pointer;font-size:13px;color:#888;display:flex;align-items:center;justify-content:center}
.ksc-item-qty button:hover{background:#222;color:#fff}
.ksc-item-qty span{width:26px;text-align:center;font-size:11px;font-weight:600;border-left:1px solid #2a2a2a;border-right:1px solid #2a2a2a;line-height:24px;color:#fff}
.ksc-item-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding:2px 0;flex-shrink:0}
.ksc-item-del{background:none;border:none;cursor:pointer;padding:2px;opacity:.4;transition:opacity .2s}
.ksc-item-del:hover{opacity:1}
.ksc-item-del svg{width:13px;height:13px;stroke:#ff4444;fill:none;stroke-width:2}
.ksc-item-total{font-size:13px;font-weight:700;color:#fff}
.ksc-item-reward{background:rgba(42,122,42,.08);border-bottom:1px solid #1a1a1a}
.ksc-empty{flex:1;display:none;flex-direction:column;align-items:center;justify-content:center;padding:40px;text-align:center;background:#0f0f0f}
.ksc-empty.show{display:flex}
.ksc-empty svg{width:48px;height:48px;stroke:#2a2a2a;fill:none;stroke-width:1.5;margin-bottom:16px}
.ksc-empty p{font-size:13px;color:#444;margin-bottom:16px}
.ksc-btn-shop{display:inline-block;background:#c8a962;color:#0f0f0f;border:none;padding:10px 28px;border-radius:8px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1px;cursor:pointer;text-decoration:none}
.ksc-coupon{padding:12px 20px;border-top:1px solid #1e1e1e;flex-shrink:0;background:#0f0f0f}
.ksc-coupon-toggle{font-size:11px;color:#555;cursor:pointer;display:flex;align-items:center;gap:5px;user-select:none;font-weight:600;text-transform:uppercase;letter-spacing:1px;transition:color .2s}
.ksc-coupon-toggle:hover{color:#c8a962}
.ksc-coupon-toggle svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;transition:transform .3s}
.ksc-coupon-toggle.open svg{transform:rotate(180deg)}
.ksc-coupon-form{display:flex;gap:6px;margin-top:8px;max-height:0;overflow:hidden;transition:max-height .3s}
.ksc-coupon-form.show{max-height:44px}
.ksc-coupon-form input{flex:1;height:34px;border:1px solid #2a2a2a;border-radius:8px;padding:0 12px;font-size:11px;text-transform:uppercase;letter-spacing:1px;outline:none;background:#161616;color:#fff;transition:border-color .2s}
.ksc-coupon-form input::placeholder{color:#444}
.ksc-coupon-form input:focus{border-color:#c8a962;box-shadow:0 0 0 2px rgba(200,169,98,.15)}
.ksc-coupon-form button{height:34px;padding:0 14px;background:#c8a962;color:#0f0f0f;border:none;border-radius:8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;cursor:pointer;transition:background .2s}
.ksc-coupon-form button:hover{background:#e8c97a}
.ksc-coupon-applied{display:none;align-items:center;gap:6px;margin-top:8px;padding:7px 10px;background:rgba(200,169,98,.1);border:1px solid rgba(200,169,98,.25);border-radius:8px;font-size:11px;font-weight:600;color:#c8a962}
.ksc-coupon-applied.show{display:flex}
.ksc-coupon-remove{margin-left:auto;background:none;border:none;cursor:pointer;color:#555;font-size:15px;transition:color .2s}
.ksc-coupon-remove:hover{color:#ff4444}
.ksc-coupon-error{display:none;margin-top:6px;font-size:11px;color:#ff6b6b;padding:6px 10px;background:rgba(255,107,107,.08);border-radius:6px;border-left:2px solid #ff4444;font-weight:500}
.ksc-coupon-error.show{display:block}
.ksc-footer{border-top:1px solid #1e1e1e;padding:14px 20px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));flex-shrink:0;background:#0f0f0f;display:none}
.ksc-footer.show{display:block}
.ksc-totals{margin-bottom:12px}
.ksc-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:3px;font-size:12px}
.ksc-row .label{color:#555}
.ksc-row .value{font-weight:600;color:#ccc}
.ksc-row.discount .value{color:#c8a962}
.ksc-shipping-note{font-size:9px;color:#444;text-align:right;margin-top:2px;margin-bottom:6px}
.ksc-grand{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid #1e1e1e}
.ksc-grand-label{font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:#fff}
.ksc-grand-points{display:flex;align-items:center;gap:4px;margin-top:2px;font-size:11px;font-weight:600;color:#c8a962}
.ksc-grand-points img{width:14px;height:14px;object-fit:contain}
.ksc-grand-value{font-size:22px;font-weight:800;color:#fff;letter-spacing:-.5px}
.ksc-btn-continue{width:100%;padding:10px;background:none;border:1px solid #2a2a2a;border-radius:8px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:1.2px;cursor:pointer;margin-bottom:8px;color:#666;transition:all .2s}
.ksc-btn-continue:hover{background:#161616;border-color:#444;color:#ccc}
.ksc-btn-checkout{display:flex;width:100%;padding:13px;background:linear-gradient(135deg,#c8a962,#e8c97a);color:#0f0f0f!important;border:none;border-radius:10px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;cursor:pointer;text-decoration:none;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 20px rgba(200,169,98,.35);transition:all .25s cubic-bezier(.16,1,.3,1)}
.ksc-btn-checkout:hover{background:linear-gradient(135deg,#e8c97a,#c8a962);color:#0f0f0f!important;transform:translateY(-1px);box-shadow:0 6px 28px rgba(200,169,98,.5)}
.ksc-ck-total{background:rgba(0,0,0,.2);padding:2px 8px;border-radius:4px;font-size:11px;color:#0f0f0f;font-weight:800}
.ksc-toast{position:fixed;top:0;left:0;right:0;background:#c8a962;color:#0f0f0f;padding:12px 20px;font-size:13px;font-weight:800;text-align:center;letter-spacing:.5px;z-index:999999999;opacity:0;transform:translateY(-100%);transition:all .35s cubic-bezier(.16,1,.3,1);pointer-events:none}
.ksc-toast.show{opacity:1;transform:translateY(0)}
body.ksc-open .botmenu,body.ksc-open .bottom-menu,body.ksc-open .mobile-menu-bottom,body.ksc-open .mobile-nav,body.ksc-open .fixed-bottom-nav,body.ksc-open .sticky-bottom,body.ksc-open [class*="bottom-nav"],body.ksc-open [class*="botmenu"],body.ksc-open [class*="mobile-menu"],body.ksc-open [class*="fixed-menu"],body.ksc-open #menu-mobile-bottom{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:768px){
.ksc-floating-btn{bottom:90px}
.ksc-panel{width:100%;height:auto;max-height:92vh;top:auto;bottom:0;right:0;left:0;transform:translateY(100%);border-radius:18px 18px 0 0;border-top:1px solid #1e1e1e}
.ksc-panel.open{transform:translateY(0)}
.ksc-header{border-radius:18px 18px 0 0}
.ksc-footer{padding-bottom:16px}
}