/* === Sliding Cart Drawer === */
.mkc-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mkc-overlay.active { opacity: 1; pointer-events: auto; }

.mkc-drawer {
    position: fixed; top: 0; right: 0; width: 420px; max-width: 90vw;
    height: 100vh; background: #fff; z-index: 950;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.25,1,0.5,1);
    display: flex; flex-direction: column; font-family: 'Inter', sans-serif;
}
.mkc-drawer.open { transform: translateX(0); }

.mkc-inner { display: flex; flex-direction: column; height: 100%; }

.mkc-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; background: var(--mk-dark, #1a1a1a);
    color: #fff; flex-shrink: 0;
}
.mkc-header-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.mkc-header-count { font-weight: 400; color: #999; }
.mkc-close {
    color: #fff; background: none; border: none; cursor: pointer;
    opacity: 0.7; transition: opacity 0.2s; line-height: 1;
}
.mkc-close:hover { opacity: 1; }

.mkc-shipping {
    padding: 16px 24px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.mkc-shipping-text { font-size: 12px; color: #555; margin-bottom: 8px; font-weight: 500; }
.mkc-shipping-bar { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.mkc-shipping-fill { height: 100%; background: var(--mk-yellow, #EBF728); border-radius: 2px; transition: width 0.5s ease; }

.mkc-items { flex: 1; overflow-y: auto; padding: 0; }
.mkc-loading { padding: 40px; text-align: center; color: #999; }

.mkc-item {
    display: flex; gap: 16px; padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5; align-items: flex-start;
}
.mkc-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; flex-shrink: 0; }
.mkc-item-info { flex: 1; min-width: 0; }
.mkc-item-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 2px; display: block; text-decoration: none; }
.mkc-item-name:hover { color: #000; }
.mkc-item-variation { font-size: 11px; color: #888; margin-bottom: 6px; }
.mkc-item-price { font-size: 13px; color: #555; }
.mkc-item-line-total { font-size: 14px; font-weight: 700; color: #111; }

.mkc-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mkc-qty {
    display: flex; align-items: center; border: 1px solid #ddd; border-radius: 6px; overflow: hidden;
}
.mkc-qty-btn {
    width: 30px; height: 30px; border: none; background: #fafafa; cursor: pointer;
    font-size: 16px; color: #333; transition: background 0.2s; line-height: 1;
}
.mkc-qty-btn:hover { background: #eee; }
.mkc-qty-val { width: 35px; text-align: center; font-size: 13px; font-weight: 600; border: none; outline: none; }
.mkc-item-remove {
    font-size: 11px; color: #ccc; background: none; border: none; cursor: pointer;
    font-weight: 500; transition: color 0.2s; font-family: inherit;
}
.mkc-item-remove:hover { color: #d63638; }

.mkc-footer {
    padding: 20px 24px; border-top: 1px solid #eee; background: #fafafa; flex-shrink: 0;
}
.mkc-subtotal {
    display: flex; justify-content: space-between; font-size: 16px;
    font-weight: 700; margin-bottom: 4px;
}
.mkc-shipping-note { font-size: 11px; color: #888; margin-bottom: 16px; }
.mkc-actions { display: flex; gap: 10px; }

.mkc-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 700;
    text-decoration: none; text-align: center; transition: all 0.2s; cursor: pointer;
    border: none; font-family: inherit;
}
.mkc-btn--primary { background: var(--mk-dark, #1a1a1a); color: #fff; }
.mkc-btn--primary:hover { background: #000; }
.mkc-btn--secondary { background: #fff; color: #111; border: 1px solid #ddd; }
.mkc-btn--secondary:hover { border-color: #999; }

.mkc-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 40px 24px; text-align: center; color: #999;
}
.mkc-empty svg { margin-bottom: 20px; opacity: 0.3; }
.mkc-empty-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px; }
.mkc-empty-text { font-size: 13px; margin-bottom: 24px; }
.mkc-empty .mkc-btn { width: auto; padding: 12px 32px; }

@media (max-width: 768px) {
    .mkc-drawer { width: 100%; max-width: 100%; }
}
