/* Arka Plan Karartması */
.ksc-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 99998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.ksc-overlay.active { opacity: 1; visibility: visible; }

/* Yan Sepet Ana Kapsayıcı */
.ksc-side-cart { position: fixed; top: 0; right: -400px; width: 400px; max-width: 100%; height: 100vh; background: #fff; z-index: 99999; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); display: flex; flex-direction: column; }
.ksc-side-cart.active { right: 0; }

/* Başlık */
.ksc-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.ksc-header h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;}
.ksc-close-btn { background: none; border: none; cursor: pointer; color: #111; display: flex; align-items: center; justify-content: center; padding: 5px; transition: transform 0.3s ease;}
.ksc-close-btn:hover { transform: rotate(90deg); }

/* İçerik Alanı */
.ksc-content { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative;}
.ksc-empty-state { padding: 60px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }

/* Kargo Çubuğu (SİYAH TASARIM KORUNDU) */
.ksc-shipping-bar { padding: 15px 20px; background: #fdfdfd; border-bottom: 1px solid #eee; font-size: 13px; text-align: center; }
.ksc-shipping-bar p { margin: 0 0 10px 0; }
.ksc-shipping-success { color: #000 !important; font-weight: bold; } 
.ksc-progress { background: #e0e0e0; height: 8px; border-radius: 4px; overflow: hidden; }
.ksc-progress-fill { background: #000 !important; height: 100%; transition: width 0.5s ease; }

/* Ürün Listesi */
.ksc-items { padding: 20px; }
.ksc-item { display: flex; align-items: stretch; margin-bottom: 25px; gap: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.ksc-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.ksc-item-img { flex-shrink: 0; }
.ksc-item-img img { width: 75px; height: 75px; object-fit: cover; border-radius: 6px; border: 1px solid #f1f1f1;}
.ksc-item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.ksc-item-title { font-size: 14px; color: #222; text-decoration: none; display: block; font-weight: 500; line-height: 1.3; margin-bottom: 5px; transition: color 0.2s;}
.ksc-item-title:hover { color: #000 !important; }
.ksc-item-price-wrap { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

/* Miktar Butonları */
.ksc-qty-wrapper { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; height: 32px; overflow: hidden; width: max-content;}
.ksc-qty-btn { background: #f9f9f9; border: none; width: 32px; height: 100%; cursor: pointer; font-size: 16px; color: #555; transition: 0.2s;}
.ksc-qty-btn:hover { background: #eee; color: #000;}
.ksc-qty-number { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600;}

/* Silme Butonu (SİYAH SVG KORUNDU) */
.ksc-remove-action { display: flex; align-items: center; justify-content: center; padding-left: 5px;}
.ksc-remove-item { display: flex; opacity: 0.5; transition: all 0.3s; }
.ksc-remove-item:hover { opacity: 1; transform: scale(1.1); }
.ksc-remove-item svg { stroke: #000 !important; } 

/* Çapraz Satışlar ve Varyasyon Kutuları */
.ksc-cross-sells { padding: 0 20px 20px; border-top: 1px solid #eee; margin-top: 15px; padding-top: 20px; background: #fafafa; }
.ksc-cross-sells h4 { font-size: 13px; text-transform: uppercase; color: #555; margin: 0 0 15px 0; font-weight: 600; letter-spacing: 0.5px; }
.ksc-cs-item { margin-bottom: 12px; padding: 10px; background: #fff; border: 1px solid #eee; border-radius: 6px; transition: border-color 0.3s; display: flex; flex-direction: column; }
.ksc-cs-item:hover { border-color: #ddd; }
.ksc-cs-top { display: flex; align-items: center; width: 100%; }
.ksc-cs-img { width: 45px; height: 45px; flex-shrink: 0; border-radius: 4px; overflow: hidden; margin-right: 12px; }
.ksc-cs-img img { width: 100%; height: 100%; object-fit: cover; }
.ksc-cs-info { flex: 1; }
.ksc-cs-title { font-size: 12px; color: #333; text-decoration: none; display: block; font-weight: 500; margin-bottom: 3px; line-height: 1.2; }
.ksc-cs-title:hover { color: #000; text-decoration: underline; }
.ksc-cs-price { font-size: 12px; font-weight: bold; color: #000; }
.ksc-cs-add { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #f1f1f1; color: #000; border-radius: 4px; text-decoration: none; transition: 0.3s; border:none; cursor: pointer; padding: 0;}
.ksc-cs-add:hover { background: #000; color: #fff; }

/* Varyasyon Hapları (Pills) */
.ksc-cs-variations { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eee; width: 100%; }
.ksc-attr-wrap { margin-bottom: 8px; }
.ksc-attr-label { font-size: 11px; font-weight: 600; color: #555; display: block; margin-bottom: 5px; }
.ksc-swatch-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.ksc-pill { font-size: 11px; padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; color: #555; background: #fff; transition: all 0.2s; user-select: none; }
.ksc-pill:hover { border-color: #999; }
.ksc-pill.active { background: #111; color: #fff; border-color: #111; font-weight: bold; }

/* Alt Bölüm ve Butonlar */
.ksc-footer { padding: 20px; border-top: 1px solid #eee; background: #fff; box-shadow: 0 -4px 10px rgba(0,0,0,0.02);}
.ksc-subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 15px; color: #333;}
.ksc-btn { display: flex; justify-content: center; align-items: center; width: 100%; padding: 14px 0; border-radius: 5px; text-decoration: none; font-weight: bold; margin-bottom: 10px; transition: 0.3s; font-size: 15px;}
.ksc-checkout-btn { background: #000; color: #fff !important; }
.ksc-checkout-btn:hover { background: #333; color: #fff !important; }
.ksc-checkout-btn .ksc-btn-price, .ksc-checkout-btn .ksc-btn-price span, .ksc-checkout-btn .ksc-btn-price bdi { color: #fff !important; margin-left: 5px;}
.ksc-viewcart-btn { background: #fff; color: #000; border: 2px solid #000; }
.ksc-viewcart-btn:hover { background: #f9f9f9; }

/* Yükleniyor Efekti */
.ksc-loading { opacity: 0.5; pointer-events: none; filter: blur(1px); transition: 0.2s;}