.bui-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bui-cart-drawer.is-open {
    right: 0;
}

.bui-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99997;
    transition: opacity 0.3s;
}

.bui-cart-overlay[hidden] {
    display: none;
}

.bui-cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.bui-cart-drawer__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.bui-cart-drawer__close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
}

.bui-cart-drawer__close:hover {
    color: #333;
}

.bui-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.bui-cart-drawer__empty {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 16px;
}

.bui-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bui-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.bui-cart-item:last-child {
    border-bottom: none;
}

.bui-cart-item__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.bui-cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bui-cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bui-cart-item__name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

.bui-cart-item__qty {
    font-size: 13px;
    color: #666;
}

.bui-cart-item__subtotal {
    font-size: 15px;
    font-weight: 600;
    color: var(--bui-primary, #E91E8C);
}

.bui-cart-item__remove {
    position: absolute;
    top: 12px;
    left: 0;
    background: #f5f5f5;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bui-cart-item__remove:hover {
    background: #ffebee;
    color: #d32f2f;
}

.bui-cart-drawer__footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.bui-cart-drawer__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.bui-btn--block {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.bui-btn--block:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .bui-cart-drawer {
        max-width: 100%;
        right: -100%;
    }
}
