/* ── Drawer yapısı (değişmeden kalır) ── */
#cartDrawer {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#cartContent {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* ── Liste ── */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    scrollbar-width: thin;
}

/* ── Ürün kartı ── */
.cart-item-modern {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) 26px;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 0.5px solid var(--border-color, #e5e5e5);
    border-radius: 12px;
    background: #fff;
    animation: ciSlideIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
    transition: border-color 0.15s;
}
.cart-item-modern:hover { border-color: #c8c8c8; }

@keyframes ciSlideIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}
.cart-item-modern.removing {
    animation: ciSlideOut 0.28s ease forwards;
    overflow: hidden;
}
@keyframes ciSlideOut {
    to { opacity: 0; transform: translateX(20px); max-height: 0;
        padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; }
}

/* ── Resim ── */
.ci-img {
    width: 58px; height: 58px;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}
.ci-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Bilgi ── */
.ci-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.ci-name {
    font-size: 13px; font-weight: 500; color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ci-qty   { font-size: 11px; color: #999; }
.ci-prices{ display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.ci-old   { font-size: 11px; color: #bbb; text-decoration: line-through; }
.ci-cur   { font-size: 13px; font-weight: 600; color: #111; }
.ci-save  {
    font-size: 10px; font-weight: 500;
    background: #EAF3DE; color: #3B6D11;
    padding: 1px 7px; border-radius: 20px;
}

/* ── Kaldır butonu ── */
.ci-remove {
    background: none; border: none; cursor: pointer;
    color: #bbb; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.ci-remove:hover { background: #FCEBEB; color: #A32D2D; }

/* ── Footer (toplam + buton) ── */
.cart-total-footer {
    position: sticky; bottom: 0;
    padding: 14px;
    background: #fff;
    border-top: 0.5px solid #e5e5e5;
}
.ct-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; color: #555; margin-bottom: 10px;
}
.ct-row strong { font-size: 16px; font-weight: 600; color: #111; }

.ct-go-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px;
    background: #111; color: #fff;
    border: none; border-radius: 12px; text-decoration: none;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
}
.ct-go-btn:hover { opacity: 0.86; }
.ct-go-btn:active { transform: scale(0.98); }

/* ── Boş sepet ── */
.cart-empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; gap: 12px; padding: 2rem; text-align: center;
}
.ces-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: #f5f5f5; display: flex;
    align-items: center; justify-content: center; color: #bbb;
}
.cart-empty-state p { font-size: 13px; color: #999; }