#mfix-cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 999;
}

#mfix-cart-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

#mfix-cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0; /* RTL: از سمت چپ باز شود */
    width: 360px;
    max-width: 90%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
}

#mfix-cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #111827;
}

.drawer-header button {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

#mfix-cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.drawer-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(243, 244, 246, 0.9);
    flex-shrink: 0;
}

.drawer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-info {
    flex: 1;
    font-size: 13px;
    color: #111827;
}

.drawer-price {
    font-size: 12px;
    color: #1d4ed8;
    margin-top: 4px;
}

.drawer-remove {
    border: none;
    background: transparent;
    color: #b91c1c;
    font-size: 18px;
    cursor: pointer;
}

.mfix-cart-toggle-btn {
    border-radius: 999px;
    border: 1px solid rgba(156, 163, 175, 0.8);
    background: rgba(255, 255, 255, 0.8);
    color: #111827;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

.mfix-cart-toggle-btn:hover {
    background: rgba(229, 231, 235, 0.9);
}
